/* GovCheck — the practical guide as the online guide (/guide, node 4619).
   The body is written by scripts/openbudget/guide_online.php; every content class carries the prefix gp-.
   One column on a phone; columns open with the width of the text area (container queries). */
.gp {
  --gp-amber: #eca327; --gp-orange: #ee7b42; --gp-blue: #4faac6; --gp-green: #5ab78d; --gp-lilac: #c671ba;
  --gp-navy: #3b3a5e; --gp-navy-dk: #2c2b48; --gp-text: #414141; --gp-muted: #5f5f6b; --gp-rule: #e1e1ec;
  --gp-cream: #efede5; --gp-paper: #fbfaf7;
  --gp-body: "Barlow", system-ui, sans-serif; --gp-display: "Draft Natural", "Barlow", sans-serif;
  --acc: var(--gp-amber); --acc-tx: #8a5600; --acc-tint: #fbf0d9; --acc-lt: #f3bd5c;
}
.gp .gp-t-amber { --acc: var(--gp-amber); --acc-tx: #8a5600; --acc-tint: #fbf0d9; --acc-lt: #f3bd5c; }
.gp .gp-t-orange { --acc: var(--gp-orange); --acc-tx: #ad400d; --acc-tint: #fde9df; --acc-lt: #f6ad88; }
.gp .gp-t-blue { --acc: var(--gp-blue); --acc-tx: #1f6c85; --acc-tint: #e3f1f6; --acc-lt: #93cfe2; }
.gp .gp-t-green { --acc: var(--gp-green); --acc-tx: #256b4d; --acc-tint: #e4f3ec; --acc-lt: #93d6b6; }
.gp .gp-t-lilac { --acc: var(--gp-lilac); --acc-tx: #8a3f80; --acc-tint: #f5e6f3; --acc-lt: #e3aedb; }
.gp .gp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gp .gp-head__note { margin: 0; color: #4c4b63; font-size: .9rem; line-height: 1.5; }
.gp .hc-guide__toc { scroll-margin-top: calc(var(--header-h, 86px) + 1rem); }
.gp .hc-guide__toc b { flex: none; }
.gp .hc-guide__toc a { min-height: 40px; }
.gp .gp-main { container: gp / inline-size; min-width: 0; color: var(--gp-text); }
.gp .gp-anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h, 86px) + 1rem); }

/* ---------- Sections ---------- */
.gp .gp-sec { scroll-margin-top: calc(var(--header-h, 86px) + 1rem); margin: 0 0 1.25rem; padding: 1.2rem 1.1rem 1.1rem; border: 1px solid var(--gp-rule); border-top: 4px solid var(--acc); border-radius: 16px; background: #fff; }
.gp .gp-page__body > :last-child, .gp .gp-col > :last-child { margin-bottom: 0; }
.gp .gp-ph { margin: 0 0 1rem; }
.gp .gp-kicker { margin: 0 0 .25rem; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-tx); }
.gp h2.gp-title { margin: 0; font-family: var(--gp-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: .005em; color: var(--gp-navy); }
.gp .gp-title small { display: block; margin-top: .35rem; font-family: var(--gp-body); font-size: 1rem; font-weight: 400; line-height: 1.45; letter-spacing: 0; color: #1f6c85; }
.gp .gp-main p { max-width: none; margin: 0 0 .7rem; font-size: .95rem; line-height: 1.55; }
.gp .gp-main li, .gp .gp-main dd { font-size: .95rem; line-height: 1.5; }
.gp .gp-main strong, .gp .gp-main b { font-weight: 600; }
.gp .gp-lead { font-size: 1.05rem; line-height: 1.5; color: #1f6c85; }
.gp .gp-main h3 { margin: 0 0 .3rem; font-family: var(--gp-body); font-size: 1.02rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--gp-navy); }
.gp .gp-main h3.gp-d { margin-bottom: .5rem; font-family: var(--gp-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.gp .gp-main h4 { margin: 0 0 .4rem; font-family: var(--gp-body); font-size: .875rem; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-tx); }
.gp .gp-main .gp-sp { margin-top: 1.1rem; }
.gp .gp-main .gp-note { margin: .2rem 0 0; font-size: .875rem; line-height: 1.45; color: var(--gp-muted); }
.gp .gp-main a { color: var(--gp-navy); text-decoration: underline; text-decoration-color: var(--gp-amber); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.gp .gp-main a:hover, .gp .gp-main a:focus-visible { color: var(--gp-navy-dk); text-decoration-color: var(--gp-navy); }
.gp .gp-main a.gp-url { font-weight: 600; overflow-wrap: anywhere; }
.gp .gp-main ul.gp-l, .gp .gp-main ol.gp-l { margin: 0 0 .7rem; padding-left: 1.25rem; }
.gp .gp-main ul.gp-l { list-style: disc; }
.gp .gp-main ol.gp-l { list-style: decimal; }
.gp .gp-main .gp-l > li { margin: 0 0 .25rem; padding-left: .1rem; }
.gp .gp-main .gp-l > li::marker { color: var(--acc-tx); font-weight: 600; }
.gp .gp-main .gp-top { margin: -.3rem 0 0; text-align: right; }
.gp .gp-main .gp-top a { display: inline-flex; align-items: center; min-height: 40px; font-size: .875rem; font-weight: 600; }

/* ---------- The opening of a part ---------- */
.gp .gp-part { position: relative; overflow: hidden; scroll-margin-top: calc(var(--header-h, 86px) + 1rem); margin: 2.4rem 0 1.25rem; padding: 1.5rem 1.2rem 1.3rem; border-radius: 16px; background: var(--gp-navy); color: #fff; }
.gp .gp-part .gp-divider__label { display: inline-block; margin: 0 .5rem 0 0; font-size: .875rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--acc-lt); }
.gp .gp-part .gp-divider__num { display: inline-block; margin: 0; font-family: var(--gp-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--acc-lt); }
.gp .gp-part h2.gp-title { margin: .3rem 0 0; font-size: 1.75rem; line-height: 1.15; color: #fff; }
.gp .gp-part .gp-divider__text { margin: .8rem 0 0; font-size: 1.02rem; line-height: 1.55; color: rgba(255, 255, 255, .95); }
.gp .gp-part .gp-divider__list { margin: 1rem 0 0; padding: 0; list-style: none; }
.gp .gp-part .gp-divider__list li { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; }
.gp .gp-part .gp-divider__list li::before { content: none; display: none; }
.gp .gp-part .gp-divider__list a, .gp .gp-part .gp-divider__list .gp-more { display: flex; gap: .7rem; align-items: baseline; min-height: 40px; padding: .5rem 0; color: #fff !important; text-decoration: none; }
.gp .gp-part .gp-divider__list .gp-more a { display: inline; min-height: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--acc-lt); }
.gp .gp-part .gp-divider__list a:hover, .gp .gp-part .gp-divider__list a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--acc); }
.gp .gp-part .gp-divider__list b { flex: none; min-width: 2rem; font-family: var(--gp-display); font-weight: 700; color: var(--acc-lt); }
.gp .gp-part .gp-divider__art { display: none; }

/* ---------- A part opens and closes under its banner ---------- */
.gp .gp-part:has(+ .gp-fold) { margin-bottom: .6rem; }
.gp details.gp-fold { margin: 0 0 1.25rem; padding: 0; border: 0; background: none; }
.gp .gp-fold > summary { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; margin: 0 0 1.25rem; padding: .5rem 1.2rem; border: 2px solid var(--gp-navy); border-radius: 2rem; background: #fff; color: var(--gp-navy); font-size: 1rem; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.gp .gp-fold > summary::-webkit-details-marker { display: none; }
.gp .gp-fold > summary::marker { content: ""; }
.gp .gp-fold > summary::before { content: none; }
.gp .gp-fold > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: -.25rem; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.gp .gp-fold[open] > summary { background: var(--gp-cream); border-color: var(--gp-cream); }
.gp .gp-fold[open] > summary::after { margin-top: .25rem; transform: rotate(225deg); }
.gp .gp-fold > summary:hover, .gp .gp-fold > summary:focus-visible { background: var(--gp-navy); border-color: var(--gp-navy); color: #fff; }
.gp .gp-fold[open] > summary .gp-fold__o, .gp .gp-fold:not([open]) > summary .gp-fold__c { display: none; }

/* ---------- Columns ---------- */
.gp .gp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-content: start; margin: 0 0 1rem; }
.gp .gp-col { min-width: 0; }
.gp .gp-flow { margin: 0 0 1rem; }
.gp .gp-flow > * { break-inside: avoid; }
.gp .gp-flow > .gp-split { break-inside: auto; }

/* ---------- Boxes ---------- */
.gp .gp-keep, .gp .gp-on, .gp .gp-warn, .gp .gp-act { margin: .8rem 0 1rem; padding: .85rem 1rem; border-radius: 0 10px 10px 0; break-inside: avoid; }
.gp .gp-keep { background: #fbf0d9; border-left: 5px solid var(--gp-amber); }
.gp .gp-main .gp-keep h4 { color: #8a5600; }
.gp .gp-on { background: #e3f1f6; border-left: 5px solid var(--gp-blue); }
.gp .gp-main .gp-on h4 { color: #1f6c85; }
.gp .gp-warn { background: #fde9df; border-left: 5px solid var(--gp-orange); }
.gp .gp-main .gp-warn h4 { color: #a83c0b; }
.gp .gp-act { border-radius: 12px; background: var(--gp-navy); color: #fff; }
.gp .gp-main .gp-act h4 { color: var(--gp-amber); }
.gp .gp-main .gp-act a:not(.gp-btn) { color: #fff !important; }
.gp .gp-main .gp-act .gp-l > li::marker { color: var(--gp-amber); }
.gp .gp-keep > :last-child, .gp .gp-on > :last-child, .gp .gp-warn > :last-child, .gp .gp-act > :last-child, .gp .gp-check > :last-child { margin-bottom: 0; }
.gp .gp-check { margin: .8rem 0 1rem; padding: .85rem 1rem; border: 1px solid var(--gp-rule); border-top: 5px solid var(--gp-green); border-radius: 0 0 10px 10px; background: #fff; break-inside: avoid; }
.gp .gp-main .gp-check h4 { color: #256b4d; }
.gp .gp-main .gp-check ul.gp-l { margin: 0; padding: 0; list-style: none; }
.gp .gp-main .gp-check .gp-l > li { position: relative; margin: 0 0 .4rem; padding-left: 1.7rem; }
.gp .gp-main .gp-check .gp-l > li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; border: 1.5px solid var(--gp-navy); border-radius: 3px; background: #fff; }

/* ---------- Numbered steps ---------- */
.gp .gp-step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 .8rem; margin: 0 0 .9rem; break-inside: avoid; }
.gp .gp-step__n { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--acc); color: var(--gp-navy-dk); font-family: var(--gp-display); font-size: 1.1rem; font-weight: 700; }
.gp .gp-step--s { grid-template-columns: 2rem minmax(0, 1fr); gap: 0 .7rem; }
.gp .gp-step--s .gp-step__n { width: 2rem; height: 2rem; font-size: 1rem; }
.gp .gp-main .gp-step h3 { margin-top: .5rem; }
.gp .gp-main .gp-step--s h3 { margin-top: .3rem; }
.gp .gp-step > div > :last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.gp .gp-ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.gp .gp-dot { flex: none; display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gp-amber); color: var(--gp-navy-dk); font-size: 1.3rem; }
.gp .gp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 0 0 1rem; }
.gp .gp-card { margin: 0 0 .6rem; padding: .9rem 1rem; border: 1px solid var(--gp-rule); border-radius: 12px; background: #fff; }
.gp .gp-cards > .gp-card { margin: 0; }
.gp .gp-main .gp-card h3 { margin: .6rem 0 .25rem; }
.gp .gp-main .gp-card p { margin: 0; font-size: .9rem; line-height: 1.5; }
.gp .gp-card--row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 .8rem; align-items: start; }
.gp .gp-main .gp-card--row h3 { margin-top: 0; }
.gp .gp-card--cream { border: 0; background: var(--gp-cream); }
.gp .gp-main .gp-num { display: block; margin: 0; font-family: var(--gp-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--acc-tx); }

/* ---------- Roles ---------- */
.gp .gp-roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.gp .gp-role { display: flex; flex-direction: column; padding: .9rem 1rem; border: 1px solid var(--gp-rule); border-top: 5px solid var(--acc); border-radius: 0 0 12px 12px; background: #fff; }
.gp .gp-role__head { display: flex; align-items: center; gap: .7rem; margin: 0 0 .5rem; }
.gp .gp-main .gp-role__head h3 { margin: 0; font-family: var(--gp-display); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.gp .gp-main .gp-role p, .gp .gp-main .gp-role li { font-size: .9rem; }
.gp .gp-main .gp-role .gp-go { margin: auto 0 0; padding-top: .5rem; font-size: .875rem; font-weight: 700; line-height: 1.7; }

/* ---------- Status steps ---------- */
.gp .gp-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: .8rem 0 1rem; padding: 1.1rem .5rem .9rem; border-radius: 14px; background: var(--gp-navy); color: #fff; break-inside: avoid; }
.gp .gp-track > div { position: relative; padding: 0 .3rem; text-align: center; }
.gp .gp-track i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin: 0 auto .45rem; border-radius: 50%; background: var(--gp-green); color: var(--gp-navy-dk); font-family: var(--gp-display); font-size: 1.05rem; font-style: normal; font-weight: 700; }
.gp .gp-track > div + div::before { content: ""; position: absolute; top: .95rem; left: calc(-50% + 1.3rem); right: calc(50% + 1.3rem); height: 3px; border-radius: 2px; background: var(--gp-green); }
.gp .gp-main .gp-track b { display: block; color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.25; }
.gp .gp-track span { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.gp .gp-track .gp-off i { border: 2px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; }
.gp .gp-track > div.gp-off::before { background: rgba(255, 255, 255, .3); }

/* ---------- The five-step cycle ---------- */
.gp .gp-cycle { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin: 0 0 .8rem; }
.gp .gp-cycle > div { position: relative; padding: .8rem 1rem .8rem 3.9rem; border: 1px solid var(--gp-rule); border-radius: 12px; background: #fff; }
.gp .gp-cycle > div::before { content: attr(data-n); position: absolute; top: .8rem; left: .9rem; display: flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c, var(--gp-amber)); color: var(--gp-navy-dk); font-family: var(--gp-display); font-size: 1.15rem; font-weight: 700; }
.gp .gp-main .gp-cycle h3 { margin: 0 0 .2rem; }
.gp .gp-main .gp-cycle p { margin: 0; font-size: .9rem; }
.gp .gp-main .gp-cycle__loop { margin: 0 0 1rem; padding: .6rem 1rem; border-radius: 10px; background: var(--gp-cream); color: var(--gp-navy); font-weight: 600; text-align: center; }

/* ---------- Tables ---------- */
.gp .gp-tw { margin: 0 0 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gp .gp-tw table { width: 100%; margin: 0; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.gp .gp-tw--wide table { min-width: 34rem; }
.gp .gp-tw th { padding: .5rem .65rem; border: 0; background: var(--gp-navy); color: #fff; font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-align: left; vertical-align: bottom; }
.gp .gp-tw td { padding: .5rem .65rem; border: 0; border-bottom: 1px solid var(--gp-rule); background: #fff; vertical-align: top; }
.gp .gp-tw tr:nth-child(even) td { background: #f7f5ef; }
.gp .gp-tw td:first-child { font-weight: 600; color: var(--gp-navy); }
.gp .gp-tag { display: inline-block; padding: .05rem .6rem; border-radius: 1rem; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.gp .gp-tag--y { background: var(--gp-navy); color: #fff; }
.gp .gp-tag--n { background: var(--gp-cream); color: var(--gp-navy); }
.gp .gp-main ul.gp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.gp .gp-main .gp-chips li { margin: 0; padding: .2rem .75rem; border: 1px solid var(--gp-rule); border-radius: 1.2rem; background: #fff; color: var(--gp-navy); font-size: .875rem; font-weight: 500; }
.gp .gp-main .gp-chips li::before { content: none; display: none; }

/* ---------- A phone screen beside the text ---------- */
.gp figure.gp-phone { width: 200px; max-width: 70%; margin: 0 auto 1rem; break-inside: avoid; }
.gp .gp-phone__f { padding: 6px; border-radius: 22px; background: var(--gp-navy-dk); box-shadow: 0 4px 12px rgba(44, 43, 72, .25); }
.gp .gp-phone img { display: block; width: 100%; height: auto; margin: 0; border-radius: 16px; }
.gp .gp-phone figcaption { margin-top: .5rem; font-size: .875rem; line-height: 1.4; color: var(--gp-muted); text-align: center; }

/* ---------- Answers ---------- */
.gp .gp-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.gp .gp-answers div { padding: .55rem .4rem; border-radius: 10px; color: var(--gp-navy-dk); font-size: .95rem; font-weight: 700; text-align: center; }
.gp .gp-answers small { display: block; margin-top: .1rem; font-size: .875rem; font-weight: 400; line-height: 1.3; }
.gp .gp-a-y { background: var(--gp-green); } .gp .gp-a-p { background: var(--gp-amber); } .gp .gp-a-n { background: #f2a888; } .gp .gp-a-u { background: var(--gp-cream); }

/* ---------- Templates ---------- */
.gp .gp-tpl { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1.5px dashed #a9a7bd; border-radius: 10px; background: #fff; break-inside: avoid; }
.gp .gp-main .gp-tpl h4 { margin-bottom: .5rem; color: var(--gp-navy); }
.gp .gp-main .gp-tpl p { margin-bottom: .45rem; font-size: .9rem; }
.gp .gp-tpl u { padding: 0 .25rem; border-bottom: 1px dotted var(--gp-muted); color: var(--gp-muted); text-decoration: none; }
.gp .gp-tpl .gp-tw { margin: .3rem 0 0; }
.gp .gp-tpl > :last-child { margin-bottom: 0; }

/* ---------- Glossary, questions ---------- */
.gp .gp-main dl { margin: 0 0 1rem; }
.gp .gp-main dt { margin-top: .7rem; font-weight: 700; color: var(--gp-navy); break-after: avoid; }
.gp .gp-main dt:first-child { margin-top: 0; }
.gp .gp-main dd { margin: 0; }
.gp .gp-main .gp-faq dt { position: relative; padding-left: 1.7rem; font-size: 1rem; }
.gp .gp-faq dt::before { content: "?"; position: absolute; left: 0; top: .12rem; display: flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gp-amber); color: var(--gp-navy-dk); font-size: .8rem; font-weight: 700; }
.gp .gp-main .gp-faq dd { padding-left: 1.7rem; }

/* ---------- Buttons ---------- */
.gp .gp-main a.gp-btn { display: inline-flex; align-items: center; min-height: 44px; margin: .3rem .5rem .2rem 0; padding: .45rem 1.2rem; border: 2px solid var(--gp-amber); border-radius: 2rem; background: var(--gp-amber); color: var(--gp-navy-dk) !important; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.gp .gp-main a.gp-btn--line { border-color: rgba(255, 255, 255, .75); background: transparent; color: #fff !important; }

/* ---------- Step-by-step screens ---------- */
.gp .gp-shots { --ar: 390 / 540; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; align-content: start; margin: .8rem 0 1.2rem; padding: 0 0 0 .5rem; }
.gp .gp-shots--tall { --ar: 390 / 700; }
.gp .gp-shots--app { --ar: 1080 / 2340; }
.gp figure.gp-shot { position: relative; min-width: 0; margin: 0; break-inside: avoid; }
.gp .gp-main .gp-shot__f { display: block; padding: 5px; border-radius: 16px; background: var(--gp-navy-dk); box-shadow: 0 4px 12px rgba(44, 43, 72, .22); text-decoration: none; }
.gp .gp-shot__f img { display: block; width: 100%; height: auto; margin: 0; aspect-ratio: var(--ar); object-fit: cover; object-position: 0 0; border-radius: 11px; background: #fff; }
.gp .gp-shots--app .gp-shot:not(.gp-shot--txt) .gp-shot__f { padding-top: 16px; }
.gp .gp-shots--app .gp-shot:not(.gp-shot--txt) .gp-shot__f img { border-radius: 4px 4px 11px 11px; }
.gp .gp-shot__n { position: absolute; z-index: 1; top: -.6rem; left: -.6rem; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 2px solid #fff; border-radius: 50%; background: var(--gp-amber); color: var(--gp-navy-dk); font-family: var(--gp-display); font-size: 1rem; font-weight: 700; }
.gp .gp-shot figcaption { margin-top: .5rem; font-size: .875rem; line-height: 1.4; color: var(--gp-text); }
.gp .gp-main .gp-shot figcaption b { display: block; color: var(--gp-navy); font-size: .9rem; font-weight: 700; }
.gp .gp-main .gp-shot--txt .gp-shot__f { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 1rem .9rem; background: var(--gp-navy); box-shadow: none; color: #fff; }
.gp .gp-main .gp-shot--txt h4 { color: var(--gp-amber); }
.gp .gp-main .gp-shot--txt p { margin-bottom: .5rem; font-size: .875rem; line-height: 1.45; }
.gp .gp-main .gp-shot--txt p b { color: var(--gp-amber); }
.gp .gp-shot--txt .gp-ref { display: block; margin: .2rem 0 .6rem; padding: .35rem .5rem; border: 1.5px dashed rgba(255, 255, 255, .6); border-radius: 8px; font-family: var(--gp-display); font-size: 1.1rem; font-weight: 700; text-align: center; }

/* On a phone the steps go one under the other, number at the left (long words in Swahili). */
@container gp (max-width: 479.98px) {
  .gp .gp-track { grid-auto-flow: row; grid-auto-columns: auto; gap: .9rem; padding: 1rem; }
  .gp .gp-track > div { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: .75rem; align-content: start; padding: 0; text-align: left; }
  .gp .gp-track i { grid-row: 1 / span 2; margin: 0; }
  .gp .gp-track b { align-self: end; }
  .gp .gp-track span { margin-top: 0; }
  .gp .gp-track > div + div::before { top: -.9rem; bottom: auto; left: calc(1.05rem - 1.5px); right: auto; width: 3px; height: .9rem; }
  .gp .gp-track > div:not(:last-child)::after { content: ""; position: absolute; top: 2.1rem; bottom: 0; left: calc(1.05rem - 1.5px); width: 3px; border-radius: 2px; background: var(--gp-green); }
  .gp .gp-track > div:has(+ .gp-off)::after { background: rgba(255, 255, 255, .3); }
}

/* ---------- Wider text area ---------- */
@container gp (min-width: 480px) {
  .gp .gp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .gp-answers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gp .gp-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container gp (min-width: 580px) {
  .gp .gp-sec { padding: 1.4rem 1.5rem 1.3rem; }
  .gp .gp-part { padding: 1.8rem 1.7rem 1.6rem; }
  .gp .gp-part .gp-page__body { min-height: 15rem; padding-right: 40%; }
  .gp .gp-part .gp-divider__art { display: block; position: absolute; right: 1.2rem; bottom: 1rem; width: 36%; height: calc(100% - 2rem); margin: 0; object-fit: contain; object-position: right bottom; }
  .gp h2.gp-title { font-size: 1.55rem; }
  .gp .gp-part h2.gp-title { font-size: 2rem; }
  .gp .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .gp-grid--wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .gp .gp-grid--side { grid-template-columns: minmax(0, 1fr) 200px; }
  .gp .gp-grid--side2 > .gp-phone, .gp .gp-grid--3 > :nth-child(3):last-child { grid-column: 1 / -1; }
  .gp .gp-grid--shots, .gp .gp-col .gp-grid { grid-template-columns: minmax(0, 1fr); }
  .gp .gp-col .gp-cards { grid-template-columns: minmax(0, 1fr); }
  .gp .gp-flow { columns: 2; column-gap: 2rem; }
  .gp .gp-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .gp-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
  .gp figure.gp-phone { max-width: 100%; }
  .gp .gp-tw--wide table { min-width: 0; }
}
/* Middle widths (a computer screen with the site's side menu): a table takes the whole width. */
@container gp (min-width: 580px) and (max-width: 859.98px) {
  .gp .gp-grid:has(> .gp-col > .gp-tw) { grid-template-columns: minmax(0, 1fr); }
  .gp .gp-grid:has(> .gp-col > .gp-tw) figure.gp-phone { max-width: 200px; }
  .gp .gp-col .gp-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container gp (min-width: 860px) {
  .gp .gp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp .gp-grid--3 > :nth-child(3):last-child { grid-column: auto; }
  .gp .gp-grid--side2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 200px; }
  .gp .gp-grid--side2 > .gp-phone { grid-column: auto; }
  .gp .gp-grid--shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .gp .gp-col .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .gp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp .gp-cards--2, .gp .gp-col .gp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .gp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gp .gp-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gp .gp-flow--3 { columns: 3; }
  .gp .gp-colbreak { break-before: column; }
  .gp .gp-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp .gp-cycle { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-top: 1.6rem; }
  .gp .gp-cycle > div { padding: 2rem .8rem .8rem; }
  .gp .gp-cycle > div::before { top: -1.1rem; left: .8rem; }
  .gp .gp-cycle > div + div::after { content: "→"; position: absolute; top: -.85rem; left: -.85rem; width: .9rem; color: var(--gp-navy); font-weight: 700; text-align: center; }
  .gp .gp-shots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gp .gp-shots--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .gp .gp-shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  .gp .gp-top, .gp .gp-head__note, .gp .gp-fold > summary { display: none; }
  .gp .gp-sec { padding: 0 0 .8rem; border: 0; border-top: 3px solid var(--acc); border-radius: 0; }
  .gp .gp-part, .gp .gp-act, .gp .gp-track, .gp .gp-tw th, .gp .gp-keep, .gp .gp-on, .gp .gp-warn, .gp .gp-step__n, .gp .gp-dot, .gp .gp-shot__n, .gp .gp-shot__f, .gp .gp-tag, .gp .gp-answers div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gp .gp-part { break-before: page; }
  .gp .gp-ph { break-after: avoid; }
}

/* The two films above the contents. */
.gp .gp-video { margin: 1.25rem 0 1.75rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 14px; background: #2c2b48; color: #fff; }
.gp .gp-video__title { margin: 0 0 .25rem; font-family: "Draft Natural", "Barlow", sans-serif; font-size: 1.45rem; line-height: 1.15; color: #fff; }
.gp .gp-video__lead { margin: 0 0 .9rem; color: #d9d7e8; font-size: .95rem; line-height: 1.45; }
.gp .gp-video__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gp .gp-video__one { margin: 0; }
.gp .gp-video__one video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #1f1e33; }
.gp .gp-video__one figcaption { margin-top: .4rem; font-size: .9rem; color: #d9d7e8; }
.gp .gp-video__one figcaption b { color: #eca327; }
@media (min-width: 900px) { .gp .gp-video__grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
@media print { .gp .gp-video { display: none; } }
