/* ANR Client Portal 0.18.0: Etch views only (body.acp-etch, admin-only until the Stage 6 cut-over). ACSS variables only.
 * On the Etch template canvas ACSS's full automatic.css also loads; these few rules keep the portal's look where its
 * global element styles (links, headings) would otherwise win. */
.acp-etch .acp-crumb a,
.acp-etch .acp-login-foot a{color:inherit}
.acp-login-hero__title{color:var(--white)} /* 0.20.3: on its own BEM class (was .acp-etch … inherit), so it is light in the Etch builder too */
/* 320px: the proposal tabs wrap instead of scrolling the page sideways (the classic view has the same 22px scroll; see report) */
.acp-etch .acp-ptabs{flex-wrap:wrap}
/* Top bar: staff controls, bell and account are siblings; let the row wrap rather than push the account off-screen */
.acp-etch .acp-top-right{flex-wrap:wrap;justify-content:flex-end;min-inline-size:0}
.acp-etch .acp-top-right > .acp-bell,.acp-etch .acp-top-right > .acp-account{flex-shrink:0}
/* Polish 1: ACSS styles every top-level <section> as a page section (padding-block: var(--section-padding-block),
 * padding-inline: var(--gutter), flex column + container-gap). Portal cards are components, not page sections,
 * so reset that at zero specificity; each component's own class rule still wins. */
:where(.acp-etch .acp-content section){display:block;padding:0;gap:normal}
/* Polish 2: one section rhythm in every view: a single var(--space-m) gap between top-level parts, heading + lead kept tight */
.acp-etch .acp-block--view > *{margin-block:0}
.acp-etch .acp-block--view > * + *{margin-block-start:var(--space-m)}
.acp-etch .acp-block--view > .acp-h1 + .acp-sub,
.acp-etch .acp-block--view > .acp-pagehead + .acp-sub{margin-block-start:calc(var(--space-xs) / 2)}
/* Polish 1: the dark sidebar runs the full page height on desktop (the 960px breakpoint matches portal-acss.css; below it
 * the sidebar is the fixed off-canvas drawer, already full viewport height) */
.acp-etch .acp-shell{min-block-size:100dvh}
@media (min-width:961px){
	.acp-etch .acp-side{align-self:stretch;block-size:auto;min-block-size:100dvh;position:relative;overflow:visible}
}
/* Top bar grows when the staff controls wrap, instead of clipping them */
.acp-etch .acp-top{block-size:auto;min-block-size:var(--space-xl);flex-wrap:wrap;padding-block:calc(var(--space-xs) / 2)}
/* Polish 4: care-status top bar shows the care client in place of the project switcher */
.acp-etch .acp-care-client{display:flex;align-items:center;gap:var(--space-xs);font-size:var(--text-s);color:var(--base-dark);min-inline-size:0}
.acp-etch .acp-care-client__label{color:var(--base-semi-dark);white-space:nowrap}
.acp-etch .acp-care-client__name{min-inline-size:0;overflow-wrap:anywhere}
/* 0.32.3: Invoices 'This project' summary and per-row share (layout in classes; type and colour from ACSS tokens) */
.portal-invoices__projshare{display:flex;flex-direction:column;gap:calc(var(--space-xs) / 2);padding:var(--space-s) var(--space-m);margin-block:var(--space-s);background:var(--neutral-ultra-light);border:var(--border-width, 1px) solid var(--neutral-light);border-radius:var(--radius);font-size:var(--text-s);color:var(--base-dark)}
.portal-invoices__projshare p{margin:0}
.portal-invoices__projshare strong{font-weight:var(--heading-font-weight, 600);color:var(--base-ultra-dark, var(--base-dark))}
.portal-invoices__projshare .portal-invoices__stat-note{font-size:var(--text-xs);color:var(--base-semi-dark)}
.portal-invoices__row .acp-projshare-line,.acp-etch .acp-projshare-line{display:block;margin-block-start:calc(var(--space-xs) / 4);font-size:var(--text-xs);font-weight:400;color:var(--base-semi-dark)}
/* 0.35.0: Etch Overview progress ring. Stored Etch styles keep a fixed 84px SVG inside a var(--space-xl) box, which put
   the % off centre. Here the SVG fills the box and the % is centred both ways for 1-3 digits. ACSS tokens only. */
.portal-overview__ring{aspect-ratio:1;container-type:inline-size}
.portal-overview__ring .portal-overview__ring-svg{width:100%;height:100%;display:block}
.portal-overview__ring .portal-overview__ring-value{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:min(var(--text-m), 24cqi)}
