/* Company filing forms, lane L3b: repeaters, documents, review, request and dormant review pages. Only what the fm-* kit in site.css
   cannot say. Type stays on the kit's ladder (inherit, or a kit class in the markup). Prefix fd- so nothing collides. */
.fd-people-list{display:grid;gap:32px;margin-bottom:24px}
.fd-person{padding:24px;border:2px solid var(--fm-line);border-radius:16px}
.fd-person-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.fd-person-title,.fd-review-title{margin:0;font:400 18px/27px var(--font);color:var(--fm-ink)}
.fl-form.fd-review,.fl-form.fl-pay{max-width:576px}
.fl-form.fd-review>.fm-error{max-width:none;margin-inline:0}
.fd-review{margin-top:0}
.fd-review-section{margin:0 0 32px}
.fd-review-section>.fd-review-title{margin-bottom:12px;font:500 18px/24px var(--font)}
.fd-review-list{margin:0}
/* One answer can hold several lines (one director's email per line). */
.fd-review-list dd{white-space:pre-line}
.fd-review-list>div{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 64px;align-items:baseline}
.fd-review-list .fd-change{justify-self:end}
.fd-change{margin:0;padding:0;font:400 16px/24px var(--font)}
.fd-fee-note{margin-top:12px}
.fd-pay-costs{margin:0 0 24px}
.fd-pay-total dt,.fd-pay-total dd{color:var(--fm-ink)}
.fd-pay-next{margin:0 0 24px;font:400 18px/27px var(--font);color:var(--fm-body)}
.fd-pay-legal{margin:24px 0 0}
/* Centred under the centred heading, table and button; on a phone the words sit left, as every stop screen's do. */
@media(min-width:641px){.fd-pay-next,.fd-pay-legal,.fl-pay .pay-mount>p{text-align:center}}
.fl-pay .pay-mount{min-height:0}
.fl-pay .pay-mount>.fm-button{display:block;width:100%;max-width:370px;margin:12px auto 0}
.fl-pay>.fm-button{display:flex;width:100%;max-width:370px;margin:16px auto 0}
.fd-record{width:100%;max-width:576px;margin:0 auto 24px}
.fd-record>div{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:12px;padding:12px 0}
.fd-company-input{display:block;width:100%;max-width:370px;margin-inline:auto}
.fd-people-now{display:grid;gap:12px;width:100%;max-width:370px;margin:0 auto 24px;padding:0;list-style:none}
.fd-people-now li{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.fd-add{margin-bottom:8px}
.fd-choice{display:grid;gap:16px}
.fd-current{margin-top:8px;padding:16px 24px;text-align:left}
.fd-current .fm-summary{margin:8px 0 0}
.fd-current .fm-summary>div:last-child{border-bottom:0}
.fd-authority{margin-top:16px}
.fd-use-office{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-bottom:24px;cursor:pointer}
.fd-use-office[hidden],.al-field[hidden]{display:none}
.fd-al-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:16px}
/* The error sits 8px under the boxes, as under every other field. */
.al-manual .fm-field:has(+.fm-error),.fd-al-row:has(+.fm-error)>.fm-field{margin-bottom:0}
.fd-al-more{display:flex;flex-wrap:wrap;gap:0 24px;margin:0;font:400 16px/24px var(--font);color:var(--fm-body)}
.fd-al-more [hidden]{display:none}
.al-back{margin-top:0}
.fd-file-input{position:absolute;width:1px;height:1px;opacity:0}
.fd-file-input:focus-visible+.fd-drop{outline:2px solid #4579ff;outline-offset:2px}
.fd-drop{cursor:pointer}
.fd-drop.dragging{border-color:var(--fm-ink)}
.fd-file-list{display:grid;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.fd-ticks{margin:24px 0}
.fd-part{margin-bottom:32px}
.fd-part p{text-wrap:pretty}
.fd-part>.fd-review-title{margin-bottom:16px;font:500 24px/30px var(--font)}
.fd-part .fm-field{max-width:370px;margin-inline:auto}
.fd-part .fm-file{display:flex;align-items:center;gap:16px}
.fd-part .order-file-name{flex:1;min-width:0;overflow-wrap:anywhere}
.fd-part .fm-button{display:flex;align-items:center;justify-content:center;width:100%;max-width:370px;margin:16px auto}
.fd-part form>.fm-check,.fd-part form>.fm-error{max-width:370px;margin-inline:auto}
.fd-part .fm-summary{margin-bottom:16px}
.fd-review-costs .fd-review-list>div,.fd-pay-costs>div,.fd-part .fm-summary>div,.fd-step>.fm-summary>div{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:12px 0}
.fd-review-costs .fd-review-list dd,.fd-pay-costs dd,.fd-part .fm-summary dd,.fd-step>.fm-summary dd{grid-column:2;grid-row:1;text-align:right}
.fd-part .fm-info{padding:16px 24px;text-align:left}
.fd-part .fm-file+.fm-error,.fd-part .fd-file-list+.fm-error{margin-top:12px}
.fd-spot{display:block;width:200px;height:auto;margin:0 auto 24px}
.fd-pill{display:block;align-self:flex-start;width:fit-content;margin:0 0 16px;padding:4px 16px;border-radius:16px;font:400 14px/21px var(--font);color:var(--fm-ink);background:var(--fm-line)}
.fd-pill-good{background:var(--fm-green);color:#fff}
.fd-pill-warn{background:var(--fm-yellow-2)}
.fd-pill-bad{background:var(--fm-error);color:#fff}
@media(max-width:640px){.fd-person{padding:16px}
 .fd-review-list>div{grid-template-columns:minmax(0,1fr) 64px;gap:4px 16px}
 .fd-review-list dt{grid-column:1}
 .fd-review-list dd{grid-column:1;grid-row:2}
 .fd-review-list .fd-change{grid-column:2;grid-row:1}
 .fd-part>.fd-review-title{font:500 18px/24px var(--font)}
 .fd-part .fm-file{flex-wrap:wrap;gap:4px 16px}
 .fd-part .order-file-name{flex:0 0 100%}
 .fd-part .fm-file .text-button{margin-left:auto}}
.fd-nationality-more{margin-top:16px}
.fd-nationality-more .sf-link{margin-top:8px}
.fd-step[hidden]{display:none}.fd-step-q{outline:none}.fd-step-q:not(:has(+.fm-q-help)){margin-bottom:32px}.fd-step .fm-check-list{max-width:576px;margin:0 auto}.fd-step .fd-ticks-short{max-width:370px}
#filing-dormant .fd-step{width:100%;max-width:784px;margin-inline:auto}
.fd-part,.fd-part~p{width:100%;max-width:576px;margin-inline:auto}
.fd-nowrap{white-space:nowrap}
.fd-ref-line,.fd-block{display:block}
.fd-pay-help{margin:16px 0 0;text-align:center}
@media(max-width:640px){.fd-pay-help{text-align:left}}
.fd-part>.fm-hint+p:not(.fm-hint){margin-top:16px}
.fd-change-answers{margin-top:16px}
.fd-change-answers>p{margin:0}
.fd-change-answers>.fm-hint{margin-top:4px}
.fd-part a[href^="tel:"],.fm-callout-screen a[href^="tel:"],.fd-pay-help a{white-space:nowrap}
/* Stop screens: the words in the helper column, and the help line clear of the button. */
:is(#filing-request,#filing-dormant,#filing-form,#idv-status,#pay-card)>.fm-callout-screen>p{max-width:576px}
:is(#filing-request,#filing-dormant,#filing-form,#idv-status,#pay-card)>.fm-callout-screen>.fm-button{margin-bottom:16px}
.fd-invisible{visibility:hidden}
.fd-share-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:end}
.fd-step .fd-people-list,.fd-step>.fd-add,.fd-step>.fm-check{width:100%;max-width:370px;margin-inline:auto}
.fd-step .fd-person{padding:0;border:0}
.fd-step .fd-person-head{display:none}
.fd-step .fd-person:nth-child(n+2) .fd-person-head{display:flex}
.fd-step>.fd-add{margin-bottom:24px}
.fd-step>.fm-summary{width:100%;max-width:576px;margin:0 auto 24px}
.fd-draft-link{display:block;margin:0 auto 24px}
.fd-step>.fm-field,.fd-step>.fm-date,.fd-step>.fm-button,#filing-dormant form>.fm-button,#filing-dormant form>.fm-error{display:block;max-width:370px;margin-inline:auto}
#filing-dormant form>.fm-button{margin-top:24px}
@media(min-width:641px){.fd-pill{align-self:center}
 /* One centred axis down the status pages. Facts, fields and files keep their own columns. */
 .fd-part{text-align:center}
 /* Room for the longest label on the register box (Correspondence address) on one line. */
 .fd-current .fm-summary>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .fd-part form,.fd-part .fm-summary,.fd-part .fm-info,.fd-part .fd-file-list{text-align:left}
 .fd-ask,.fd-company-status,.fd-review>.fm-status,.fl-pay>.pay-status,.fd-part~p{text-align:center}
 #filing-form>.fm-stages,#filing-request>.fm-stages,#filing-dormant>.fm-stages,#pay-stages,#idv-stages>.fm-stages{margin-bottom:64px}}

/* The register rules out the usual route: the way to ask us sits apart from the main button. */
.fd-blocked .fm-button{margin-bottom:20px}
.fd-blocked .fm-link{display:inline-block;margin-bottom:12px;color:var(--fm-ink);text-decoration:underline;text-underline-offset:3px}

.fd-ask{margin:0 0 16px}
.fd-ask a{color:var(--fm-ink);text-decoration:underline;text-underline-offset:3px}
.fd-tick-sub,.fm-check-list .fm-check>span>.fm-hint{display:block;margin-top:2px}
.fd-choice>.fm-hint+.fm-check-list{margin-top:16px}
.cf-confirm-list{margin:0 0 28px;padding-left:1.2em;max-width:576px}.cf-confirm-list li{margin:0 0 8px;line-height:1.5}
/* "By continuing, you confirm that:" (field type confirmList): the points as a plain list, then the one Continue. */
.fm-confirm{max-width:576px;margin:0 auto}
.fm-confirm-list{margin:0 0 32px;padding:0 0 0 22px;text-align:left;font:400 18px/28px var(--font);color:var(--fm-ink,#111)}
.fm-confirm-list li{margin:0 0 12px;padding-left:4px}
.fm-confirm-list li:last-child{margin-bottom:0}
.fd-review-confirm{margin:32px 0 0;max-width:none}.fd-review-confirm-lead{margin:0 0 12px;font:500 18px/28px var(--font);color:var(--fm-ink,#111)}.fd-review-confirm .fm-confirm-list{margin-bottom:24px}
.fm-confirm>.fm-button{display:block;width:100%;max-width:370px;margin:0 auto}
.fm-confirm>.fm-button[hidden]{display:none}
@media(max-width:640px){.fm-confirm-list{font-size:16px;line-height:24px}}

/* Kish 18/11/2026: the GOV.UK link right under a code box (filings-form.js getItLink) */
.fm-get-it{margin-top:12px}
.fm-get-it>.fm-hint{margin:0}
.fm-get-it-link a{font-weight:500;color:var(--fm-ink,#111)}
.fm-get-it>.fm-get-it-note{margin-top:4px}
/* Kish 18/11/2026: confirmation statement, Companies House details in editable boxes (filing-start.js registerBoxes) */
.fd-record-edit{margin:16px 0}
.fd-record-group{margin-bottom:16px}
.fd-record-group>.fm-label{margin-bottom:6px}
.fd-record-box+.fd-record-box{margin-top:8px}
.fd-record-changed{margin:4px 0 0}
