/* NSW Plumbers profile page (PROFILE-NSW-PLUMBERS-01). Loads after colors_and_type.css, styles.css, homepage.css.
   Linen editorial body under a dark hero; figures are server-rendered, charts are plain HTML/CSS with text keys. */

.pf-body { background: var(--warm-bg); color: var(--fg1); font-family: var(--font-body); margin: 0; }
.pf-wrap { max-width: var(--measure-grid); margin: 0 auto; padding: 0 var(--gutter); } /* the site container, so the nav, body and footer share one edge (LAYOUT-WIDTH-01, Matt ab5bb9f2); prose keeps --measure-text */

/* Preview banner (Marcus df3a11c0): sits above the fixed nav and pushes it down. */
.pf-preview { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; padding: 7px var(--gutter); text-align: center;
  background: #FCE7D9; color: #7A3410; border-bottom: 1px solid var(--terracotta-line);
  font-family: var(--font-ui); font-size: 0.78rem; line-height: 1.35; }
.pf-has-preview .kx-nav { top: var(--pf-banner-h, 32px); }
.pf-has-preview { --pf-banner-h: 32px; }

/* ---- hero ---- */
.pf-hero { background: var(--panel-bg); color: var(--panel-text); padding: calc(var(--space-hero) + var(--pf-banner-h, 0px)) 0 var(--space-band);
  position: relative; overflow: hidden; }
.pf-hero::after { content: ''; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(232,112,58,0.18); box-shadow: 0 0 0 60px rgba(232,112,58,0.03), 0 0 0 140px rgba(232,112,58,0.02); pointer-events: none; }
.pf-eyebrow { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }
.pf-h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.pf-lede { margin: 0 0 26px; max-width: 640px; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--panel-text-secondary); }

/* ---- v2 hero stats + note ---- */
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 16px; max-width: 900px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); background: rgba(255,255,255,0.02); position: relative; z-index: 1; }
.pf-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
.pf-stats-1 { grid-template-columns: 1fr; max-width: 300px; }
.pf-stat { padding: 18px 20px; border-left: 1px solid rgba(255,255,255,0.14); }
.pf-stat:first-child { border-left: 0; }
.pf-stat .pf-stat-num { margin: 0; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.05; color: var(--panel-text); }
.pf-stat-num .pf-stat-about { font-size: 0.5em; font-weight: 400; color: var(--panel-text-secondary); margin-right: 0.15em; }
.pf-stat-label { margin: 4px 0 10px; font-size: 0.9rem; line-height: 1.35; color: var(--panel-text); }
.pf-stat-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.pf-stat-ev .pf-ev-class { background: transparent; color: var(--terracotta); border-color: rgba(232,112,58,0.55); }
.pf-stat-ev .pf-ev-date { color: var(--panel-text-secondary); }
.pf-stat-tiers { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--panel-text-secondary); }
.pf-stat-tiers span.pf-tier { white-space: nowrap; }
.pf-stat-tiers b { color: var(--panel-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-hero-basis { margin: 0 0 10px; max-width: 900px; font-size: 0.9rem; line-height: 1.55; color: var(--panel-text); position: relative; z-index: 1; }
.pf-hero-basis a { color: var(--panel-text); text-decoration: underline; text-underline-offset: 2px; }
.pf-hero-note { margin: 0; max-width: 900px; font-size: 0.86rem; line-height: 1.55; color: var(--panel-text-secondary); position: relative; z-index: 1; }
.pf-hero .pf-updated { color: var(--panel-text-secondary); position: relative; z-index: 1; }

/* ---- v2 section nav: sticky under the site nav ---- */
.pf-secnav { position: sticky; top: var(--pf-nav-bottom, calc(var(--pf-banner-h, 0px) + 60px)); z-index: 900; background: var(--warm-bg); border-bottom: 1px solid var(--border-faint); }
.pf-secnav .pf-wrap { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; }
.pf-secnav .pf-wrap::-webkit-scrollbar { display: none; }
.pf-secnav a { flex: none; padding: 13px 0; font-family: var(--font-ui); font-size: 0.82rem; color: var(--fg2); text-decoration: none; border-bottom: 2px solid transparent; }
.pf-secnav a:hover, .pf-secnav a:focus-visible { color: var(--fg1); border-bottom-color: var(--terracotta); }
.pf-section { scroll-margin-top: calc(var(--pf-nav-bottom, calc(var(--pf-banner-h, 0px) + 60px)) + 64px); }

/* ---- sections ---- */
.pf-section { padding: var(--space-band) 0 0; }
.pf-section:last-of-type { padding-bottom: var(--space-band); }
.pf-h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.pf-intro, .pf-never { margin: 0 0 22px; max-width: var(--measure-text); font-size: 0.98rem; line-height: 1.6; color: var(--fg2); }
.pf-never { padding-left: 14px; border-left: 3px solid var(--terracotta); color: var(--fg1); font-weight: 500; }

/* ---- v2: section heading with its evidence tag on the right ---- */
.pf-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin: 0 0 18px; }
.pf-sec-head .pf-h2 { margin: 0; }
.pf-sec-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }

/* ---- v2 what changed ---- */
.pf-changes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.pf-changes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-changes-1 { grid-template-columns: 1fr; }
.pf-change { padding: 20px 22px; border-left: 1px solid var(--border-faint); }
.pf-change:first-child { border-left: 0; }
.pf-changes-3 .pf-change:nth-child(3n+1) { border-left: 0; }
.pf-changes-3 .pf-change:nth-child(n+4) { border-top: 1px solid var(--border-faint); }
.pf-change-label { margin: 0 0 6px; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--fg1); }
.pf-change-num { margin: 0; font-size: 0.95rem; color: var(--fg2); }
.pf-change-num .pf-num { font-size: 2rem; line-height: 1.05; margin-right: 4px; }
.pf-change-zero { margin: 4px 0 0; font-size: 0.84rem; font-weight: 600; color: var(--fg1); }
.pf-change-note { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--fg2); }

/* ---- v2 row lists (who / trust): label, count, share, then a bar scaled within the list ---- */
.pf-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.pf-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4em; align-items: baseline; gap: 2px 10px; font-size: 0.88rem; color: var(--fg1); }
.pf-row-l { min-width: 0; }
.pf-row-n { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pf-row-p { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg3); text-align: right; font-variant-numeric: tabular-nums; }
.pf-row-bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: var(--warm-surface); overflow: hidden; }
.pf-row-bar span { display: block; height: 100%; min-width: 2px; background: var(--terracotta); border-radius: 3px; }
.pf-rows-h { margin: 16px 0 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg3); }
.pf-rows-plain { gap: 6px; }
.pf-unk { margin-top: 14px; padding: 10px 12px 12px; border-radius: var(--radius-sm); background: var(--warm-surface); }
.pf-unk-h { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 0.88rem; color: var(--fg1); }
.pf-unk-h b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-unk-bar { background: rgba(28,25,23,0.08); }
.pf-unk-bar span { background: #A8A29E; }
.pf-trust { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px 40px; }
.pf-trust-num { margin: 0; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; }
.pf-trust-head .pf-cite { margin-top: 12px; }
.pf-unk-note { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--fg2); }

/* ---- shared figure bits ---- */
.pf-num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg1); letter-spacing: -0.01em; }
.pf-unit { margin-left: 8px; font-size: 0.92rem; color: var(--fg2); }
.pf-aside { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg3); }
.pf-ev { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0; align-items: center; }
.pf-ev-class { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px;
  border-radius: var(--radius-pill); background: var(--terracotta-glow); color: #9A3F14; border: 1px solid var(--terracotta-line); }
.pf-ev-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg3); }
.pf-cite { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--fg1); }
.pf-caveat { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.55; color: var(--fg2); }
.pf-note, .pf-rownote { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--fg3); }
.pf-na { margin: 8px 0; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; color: var(--fg2); border-radius: var(--radius-sm);
  border: 1px dashed rgba(28,25,23,0.22); background: rgba(255,255,255,0.5); }
.pf-zero { color: var(--terracotta-deep); font-weight: 600; margin-left: 1px; }
.pf-share { color: var(--fg3); font-size: 0.86em; font-variant-numeric: tabular-nums; }

/* ---- universe (Option C): four cards, own scale each ---- */
.pf-u-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-md); }
.pf-u { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; border-top: 3px solid var(--terracotta); }
.pf-u[data-figure="matched_verified"] { border-top-color: #B0582F; }
.pf-u[data-figure="licensed_unobserved"] { border-top-style: dashed; }
.pf-u-label { margin: 0; font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--fg1); min-height: 2.7em; }
.pf-u-fig { margin: 4px 0 10px; }
.pf-u-fig .pf-num { font-size: 1.85rem; }
.pf-u-fig .pf-unit { display: block; margin: 2px 0 0; font-size: 0.82rem; }
.pf-u-sub { margin: -4px 0 10px; font-size: 0.86rem; line-height: 1.45; color: var(--fg1); }

/* ---- bars (composition + tier split) ---- */
.pf-bar { display: flex; gap: 2px; height: 14px; margin: 12px 0 4px; }
.pf-seg { flex-grow: 0; flex-shrink: 1; min-width: 3px; }
.pf-seg:first-child { border-radius: 3px 0 0 3px; } .pf-seg:last-child { border-radius: 0 3px 3px 0; }
.pf-sh-strong { background: #E8703A; }
.pf-sh-mid { background: #B0582F; }
.pf-sh-light { background: #F4B58F; }
.pf-sh-pale { background: #F9D9C4; box-shadow: inset 0 0 0 1px #E2B497; }
.pf-sh-muted { background: #D6D3D1; box-shadow: inset 0 0 0 1px #A8A29E; }
.pf-key { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; color: var(--fg2); }
.pf-key-col { flex-direction: column; gap: 6px; }
.pf-key li { line-height: 1.45; }
.pf-key-note { display: block; margin: 2px 0 0 17px; font-size: 0.92em; color: var(--fg3); }
.pf-key b { color: var(--fg1); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; }
.pf-sw { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 2px; vertical-align: -1px; }

/* v2 universe (design points 1 + 8): the register extract last, muted, outlined numeral (a stroke, never a line through
   the digits); the Inferred estimate as a labelled 0-based range */
.pf-u { display: flex; flex-direction: column; }
.pf-u[data-figure="register_licensed"] { background: var(--warm-surface); box-shadow: none; border: 1px solid var(--border-light); border-top: 3px solid #D9C29A; }
.pf-u[data-figure="register_licensed"] .pf-num { font-size: 1.6rem; color: var(--warm-surface); -webkit-text-stroke: 2px var(--fg2); paint-order: stroke fill; text-decoration: none; }
.pf-u[data-figure="register_licensed"] .pf-unit { display: inline; margin-left: 6px; font-family: var(--font-mono); font-size: 0.74rem; color: #6B4300; }
.pf-ev-hist { background: #FBF0DC; color: #6B4300; border-color: #EBD3A6; }
.pf-u[data-figure="licensed_unobserved"] .pf-ev-class { background: transparent; border-style: dashed; }
.pf-range { margin-top: auto; padding-top: 10px; }
.pf-range-track { position: relative; height: 30px; border-bottom: 1px solid var(--fg3); }
.pf-band { position: absolute; top: 6px; bottom: 0; border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(135deg, rgba(232,112,58,0.45) 0 4px, rgba(232,112,58,0.18) 4px 8px); }
.pf-tick { position: absolute; top: 0; bottom: -4px; width: 2px; margin-left: -1px; background: var(--terracotta-deep); }
.pf-range-lab { position: relative; height: 26px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg2); }
.pf-range-lab span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.pf-range-lab span:first-child { transform: none; }
.pf-range-lab .pf-range-lo { transform: translateX(-100%); padding-right: 4px; }
.pf-range-lab .pf-range-hi { transform: translateX(-100%); }

/* ---- figures (who / trust / demand) ---- */
.pf-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap-md); }
.pf-fig, .pf-callout { margin: 0; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px; }
.pf-fig-wide { grid-column: 1 / -1; }
.pf-fig-title { margin: 0 0 4px; font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--fg1); }
.pf-fig-base { margin: 0; font-size: 0.85rem; color: var(--fg2); }
.pf-callout p { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.55; }
.pf-callout b { font-variant-numeric: tabular-nums; }
.pf-terms { margin: 8px 0 0; padding-left: 18px; font-size: 0.95rem; line-height: 1.6; }
.pf-coming { margin-top: var(--gap-md); background: transparent; box-shadow: none; border: 1px dashed rgba(28,25,23,0.22); }

/* ranked services */
.pf-rank { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.pf-rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.9rem; }
.pf-rank-name { color: var(--fg1); }
.pf-rank-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg1); text-align: right; }
.pf-rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--warm-surface); overflow: hidden; }
.pf-rank-bar span { display: block; height: 100%; background: var(--terracotta); border-radius: 3px; }

/* 12-month columns: a gap is an outlined box marked "no figure", never a zero-height column */
.pf-trend { position: relative; margin-top: 14px; padding-top: 18px; }
.pf-trend-max { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg3); }
.pf-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3px, 0.8vw, 10px);
  border-top: 1px dashed rgba(28,25,23,0.12); }
.pf-col { display: flex; flex-direction: column; align-items: stretch; }
.pf-col-plot { position: relative; height: clamp(140px, 22vw, 220px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--fg3); }
.pf-col-bar { display: block; width: 100%; background: var(--terracotta); border-radius: 3px 3px 0 0; min-height: 0; }
.pf-col-zero .pf-col-plot { border-bottom: 2px solid var(--terracotta-deep); }
.pf-col-gapbox { position: absolute; inset: 0 0 0 0; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--fg3); border-bottom: 0;
  border-radius: 3px 3px 0 0; font-family: var(--font-mono); font-size: 0.6rem; color: var(--fg3); writing-mode: vertical-rl; transform: rotate(180deg); }
.pf-col-m { margin-top: 6px; text-align: center; font-family: var(--font-mono); font-size: clamp(0.56rem, 1.2vw, 0.7rem); color: var(--fg2); }

.pf-figs-demand { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
/* v2 trend: gridlines at the reported steps, value label over each column */
.pf-trend { padding-left: 46px; }
.pf-grid { position: absolute; left: 0; right: 0; top: 18px; height: clamp(140px, 22vw, 220px); pointer-events: none; }
.pf-grid span { position: absolute; left: 46px; right: 0; border-top: 1px dashed rgba(28,25,23,0.12); }
.pf-grid i { position: absolute; left: -46px; top: -0.6em; width: 40px; text-align: right; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; color: var(--fg3); }
.pf-col-bar { position: relative; }
.pf-col-v { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 3px; white-space: nowrap;
  font-family: var(--font-mono); font-size: clamp(0.5rem, 1.1vw, 0.68rem); color: var(--fg2); }
.pf-cols { border-top: 0; }
.pf-trend-max { display: none; }

/* v2 where: two cards (wide / local), flat tables inside, the Google area type under each name */
.pf-area { padding-bottom: 14px; }
.pf-area .pf-fig-base { margin-bottom: 8px; }
.pf-table.pf-table-flat { box-shadow: none; border-radius: 0; background: transparent; }
.pf-table.pf-table-flat th, .pf-table.pf-table-flat td { padding: 9px 0; }
.pf-table.pf-table-flat td { padding-left: 12px; }
.pf-area-kind { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 400; color: var(--fg3); }
/* tables (where) */
.pf-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap-md); margin-top: 6px; align-items: start; }
.pf-more { margin-top: 8px; }
.pf-more summary { cursor: pointer; padding: 8px 0; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: #9A3F14; }
.pf-more summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.pf-table-cont { margin-top: 6px; }
.pf-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; font-size: 0.9rem; }
.pf-table caption { text-align: left; padding: 0 0 8px; font-family: var(--font-ui); font-weight: 600; color: var(--fg1); }
.pf-table th, .pf-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-faint); vertical-align: top; }
.pf-table thead th { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); }
.pf-table td { width: 1%; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-table tbody th { font-weight: 500; }
.pf-table td.pf-type { width: auto; text-align: left; color: var(--fg2); }
.pf-row-gap td.pf-type { font-style: normal; color: var(--fg2); }
.pf-type-none { color: var(--fg3); font-style: italic; }
.pf-row-gap td { color: var(--fg3); font-style: italic; white-space: normal; min-width: 7.5em; }
.pf-table td .pf-share { display: block; min-width: 6.5em; white-space: normal; font-size: 0.74rem; line-height: 1.3; }
.pf-tb-partial th[scope="rowgroup"] { padding-top: 14px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); }
.pf-partial { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(28,25,23,0.16); }
.pf-partial-h { margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg3); }
.pf-partial ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.pf-partial b { font-variant-numeric: tabular-nums; }

/* methodology */
.pf-prose { max-width: var(--measure-text); font-size: 0.95rem; line-height: 1.65; color: var(--fg2); }
.pf-prose h3 { margin: 26px 0 8px; font-family: var(--font-ui); font-size: 1rem; color: var(--fg1); }
.pf-prose h3:first-child { margin-top: 0; }
.pf-prose ul { padding-left: 20px; margin: 0; }
.pf-prose li { margin-bottom: 8px; }
.pf-prose b { color: var(--fg1); }
.pf-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.pf-dl dt { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #9A3F14; padding-top: 2px; }
.pf-dl dd { margin: 0; }

/* v2 methodology disclosures (design point 11) */
.pf-meth { max-width: var(--measure-text); display: grid; gap: 10px; }
.pf-meth details { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0 20px; background: rgba(255,255,255,0.4); }
.pf-meth summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; color: var(--fg1); }
.pf-meth summary::-webkit-details-marker { display: none; }
.pf-meth summary small { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 400; font-size: 0.84rem; color: var(--fg2); }
.pf-meth summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.25rem; line-height: 1; color: var(--terracotta); }
.pf-meth details[open] summary::after { content: '\2212'; }
.pf-meth summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 4px; }
.pf-meth-body { padding: 0 0 18px; font-size: 0.93rem; line-height: 1.65; color: var(--fg2); }
.pf-meth-body ul { margin: 0; padding-left: 20px; } .pf-meth-body li { margin-bottom: 8px; } .pf-meth-body b { color: var(--fg1); }
.pf-meth-body p { margin: 0 0 10px; }
.pf-meth-body .pf-dl + p { margin-top: 18px; }

/* v2 closing band (design point 13) */
.pf-next { margin-top: var(--space-band); background: var(--panel-bg); color: var(--panel-text); padding: 56px 0; }
.pf-next .pf-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pf-next h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pf-next p { margin: 8px 0 0; color: var(--panel-text-secondary); max-width: 52ch; line-height: 1.55; }
.pf-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terracotta); color: #fff; font-family: var(--font-ui); font-weight: 600; padding: 14px 24px; border-radius: var(--radius-sm); text-decoration: none; }
.pf-btn:hover { background: var(--terracotta-deep); color: #fff; }
.pf-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* FAQ */
.pf-faq { max-width: var(--measure-text); display: grid; gap: 10px; }
.pf-faq details { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 0 18px; }
.pf-faq summary { cursor: pointer; padding: 16px 28px 16px 0; position: relative; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--fg1); list-style: none; }
.pf-faq summary::-webkit-details-marker { display: none; }
.pf-faq summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 1.25rem; line-height: 1; color: var(--terracotta); }
.pf-faq details[open] summary::after { content: '\2212'; }
.pf-faq summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 4px; }
.pf-faq details p { margin: 0 0 16px; font-size: 0.93rem; line-height: 1.6; color: var(--fg2); }

.pf-source p { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg3); }

/* visually hidden, still read by screen readers and crawlers */
.pf-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pf-down { max-width: 560px; margin: 0 auto; padding: 120px var(--gutter); }

@media (max-width: 1023px) {
  .pf-u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-figs-3 { grid-template-columns: 1fr; }
  .pf-trust { grid-template-columns: 1fr; }
  .pf-figs-demand { grid-template-columns: 1fr; }
  .pf-changes, .pf-changes-2 { grid-template-columns: 1fr; }
  .pf-change { border-left: 0; border-top: 1px solid var(--border-faint); }
  .pf-change:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .pf-stats, .pf-stats-2 { grid-template-columns: 1fr; }
  .pf-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding: 14px 16px; }
  .pf-stat:first-child { border-top: 0; }
  /* PROFILE-HERO-01: the total spans the row; the two supporting cards share one, so the basis lines stay near the first screen */
  .pf-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats-3 .pf-stat:first-child { grid-column: 1 / -1; }
  .pf-stats-3 .pf-stat:nth-child(3) { border-left: 1px solid rgba(255,255,255,0.14); }
  .pf-stats-3 .pf-stat:not(:first-child) .pf-stat-num { font-size: 1.6rem; }
  .pf-stats-3 .pf-stat:not(:first-child) .pf-stat-label { font-size: 0.84rem; }
  .pf-trend { padding-left: 34px; }
  .pf-grid span { left: 34px; }
  .pf-grid i { left: -34px; width: 30px; font-size: 0.54rem; }
  .pf-col-v { display: none; }
  .pf-has-preview { --pf-banner-h: 46px; }
  .pf-u-grid { grid-template-columns: 1fr; }
  .pf-u-label { min-height: 0; }
  .pf-figs, .pf-where { grid-template-columns: 1fr; }
  .pf-fig, .pf-callout, .pf-u { padding: 18px 16px; }
  .pf-dl { grid-template-columns: 1fr; }
  .pf-dl dd { margin-bottom: 8px; }
  .pf-col-gapbox { font-size: 0.5rem; }
}

/* Walter UAT feedback: register-age flag above a figure */
.pf-flag { margin: 6px 0 4px; padding: 4px 8px; display: inline-block; border-radius: 4px; background: #FBF0DC; color: #6B4300; border: 1px solid #EBD3A6; font-size: 0.78rem; font-weight: 600; line-height: 1.4; }
.pf-updated { margin: 12px 0 0; font-size: 0.86rem; color: var(--fg3); }
