/* "DU changed last Friday" — figure components.
   Progressive by design: every modern feature below has a fallback.
   - :has(), container queries, @property, <details name>, @starting-style, text-wrap: shipped everywhere we care about.
   - Popover API + anchor positioning: primary, with a JS positioner / toggle in du.js for the long tail.
   - View Transitions, scroll-driven animations, scroll-state queries: enhancement only, wrapped in @supports;
     the IntersectionObserver / scrollend code paths in du.js are the default.
   Traps handled: [popover] is visible where the API is missing (hidden below); `animation` shorthand resets
   animation-timeline (timeline declared after it); position-area always uses two keywords + fallbacks. */

/* ---------------- utilities ---------------- */
.du-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.article p, .article li { text-wrap: pretty; }
.article .fbox p { margin: 0; }
.fbox.cq { container-type: inline-size; }
.fig-h { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.fig-h .t { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--puw-teal-900); }
.fig-h .s { font-family: var(--font-meta); font-size: 12.5px; color: var(--puw-slate-400); }
.du-note, .article p.du-note { font-family: var(--font-meta); font-size: 12.5px; line-height: 1.5; color: var(--puw-slate-400); margin-top: 14px; }
@keyframes duPop { 0% { transform: scale(.86); opacity: .3; } 100% { transform: none; opacity: 1; } }
.du-pop { animation: duPop .45s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .du-pop { animation: none; } }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-meta); font-weight: 600; font-size: 12px; letter-spacing: .01em; padding: 6px 11px; border-radius: var(--radius-full); border: 1px solid var(--puw-border-light); background: #fff; color: var(--puw-teal-600); white-space: nowrap; line-height: 1.2; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; flex: 0 0 auto; }
.pill.ok { color: #17704A; border-color: rgba(31,138,91,.35); background: #EEF8F2; }
.pill.bad { color: var(--puw-coral-600); border-color: rgba(255,54,33,.35); background: var(--puw-coral-50); }
.pill.warn { color: #8A5A0F; border-color: rgba(245,158,11,.45); background: #FFF7E6; }
.pill.old { color: var(--puw-slate-400); background: var(--puw-surface-2); }
.pill.new { color: #1A6B76; border-color: var(--puw-teal-mid-border); background: var(--puw-teal-mid-bg); }
.pill.wrap { white-space: normal; }

/* buttons */
.du-btn { font-family: var(--font-action); font-weight: 600; font-size: 12.5px; color: #fff; background: var(--puw-teal-900); border: none; border-radius: var(--radius-full); padding: 9px 15px; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.du-btn:hover { background: var(--puw-coral-600); }
.du-btn:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.du-btn.ghost { background: #fff; color: var(--puw-teal-900); border: 1px solid var(--puw-border-light); }
.du-btn.ghost:hover { color: var(--puw-coral-600); border-color: var(--puw-coral-500); background: #fff; }

/* ---------------- 1) two triggers — pipeline sorter ---------------- */
.tg { display: flex; flex-direction: column; gap: 10px; }
.tg-head, .tg-row { display: grid; grid-template-columns: 1.25fr .85fr .85fr 1.3fr 1.3fr auto; gap: 12px; align-items: center; }
.tg-head { font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--puw-slate-400); padding: 0 14px; }
.tg-row { background: var(--puw-surface-2); border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); padding: 12px 14px; transition: border-color .3s, background .3s, box-shadow .3s; }
.tg-row.done { border-color: var(--puw-teal-mid-border); background: #fff; box-shadow: 0 10px 26px rgba(3,54,61,.06); }
.tg-row .nm { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--puw-teal-900); }
.tg-row .nm small { display: block; font-family: var(--font-meta); font-weight: 400; font-size: 11.5px; color: var(--puw-slate-400); margin-top: 2px; }
.tg-row .d { font-family: var(--font-meta); font-size: 13px; color: var(--puw-teal-600); font-variant-numeric: tabular-nums; }
.tg-row .d b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--puw-slate-400); font-weight: 600; margin-bottom: 2px; }
.tg-row .pill { transition: color .3s, background .3s, border-color .3s; }
@container (max-width: 760px) {
  .tg-head { display: none; }
  .tg-row { grid-template-columns: 1fr 1fr; }
  .tg-row .nm { grid-column: 1 / -1; }
  .tg-row .pill { grid-column: 1 / -1; white-space: normal; }
  .tg-row .du-btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------------- 2) mock findings — potential red flags ---------------- */
@property --rfn { syntax: "<integer>"; initial-value: 0; inherits: true; }
/* The article column is ~630px wide on desktop, so the default is stacked: a two-column grid of signal
   switches above a full-width report; side by side only in a genuinely wide container. */
.rep { --s1: 0; --s2: 0; --s3: 0; --s4: 0; --s5: 0; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.rep:has(#sig1:checked) { --s1: 1; }
.rep:has(#sig2:checked) { --s2: 1; }
.rep:has(#sig3:checked) { --s3: 1; }
.rep:has(#sig4:checked) { --s4: 1; }
.rep:has(#sig5:checked) { --s5: 1; }

.rep-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@container (max-width: 540px) { .rep-sigs { grid-template-columns: 1fr; } }
.rep-sigs .h { grid-column: 1 / -1; font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); margin-bottom: 2px; }
.sig { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); background: #fff; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.sig:hover { border-color: var(--puw-slate-300); }
.sig:has(input:checked) { border-color: var(--puw-coral-500); box-shadow: 0 8px 22px rgba(254,106,87,.12); }
.sig:has(input:focus-visible) { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.sig .sw { flex: 0 0 auto; width: 34px; height: 20px; border-radius: 12px; background: var(--puw-slate-400); position: relative; transition: background .25s; margin-top: 1px; }
.sig .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: translate .25s cubic-bezier(.2,.8,.2,1); }
.sig:has(input:checked) .sw { background: var(--puw-coral-600); }
.sig:has(input:checked) .sw::after { translate: 14px 0; }
.sig .tx { font-family: var(--font-meta); font-size: 13px; line-height: 1.45; color: var(--puw-teal-900); }
.sig .tx b { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--puw-slate-400); margin-bottom: 3px; font-weight: 600; }
.sig:has(input:checked) .tx b { color: var(--puw-coral-600); }
@media (forced-colors: active) {
  .sig .sw { forced-color-adjust: none; background: Canvas; border: 1px solid CanvasText; }
  .sig .sw::after { background: CanvasText; box-shadow: none; }
  .sig:has(input:checked) .sw { background: Highlight; border-color: Highlight; }
  .sig:has(input:checked) .sw::after { background: HighlightText; }
  .rep-modes label:has(input:checked), .et-type label:has(input:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

.rep-doc { background: #fff; border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); overflow: clip; font-family: var(--font-meta); min-height: 300px; }
@supports (view-transition-name: x) { .rep-doc { view-transition-name: rep-doc; } }
.rep-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--puw-border-light); background: var(--puw-surface-2); }
.rep-top .ttl { font-weight: 600; font-size: 13px; color: var(--puw-teal-900); }
.rep-top .ttl small { display: block; font-weight: 400; font-size: 11px; color: var(--puw-slate-400); margin-top: 1px; }
.rep-modes { display: inline-flex; gap: 3px; background: #fff; border: 1px solid var(--puw-border-light); border-radius: var(--radius-full); padding: 3px; }
.rep-modes label { position: relative; font-family: var(--font-action); font-weight: 600; font-size: 12px; color: var(--puw-teal-600); padding: 6px 12px; border-radius: var(--radius-full); cursor: pointer; transition: background .2s, color .2s; }
.rep-modes label:has(input:checked) { background: var(--puw-coral-600); color: #fff; }
.rep-modes label:has(input:focus-visible) { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.rep-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: var(--puw-coral-600); background: var(--puw-coral-50); border: 1px solid rgba(254,106,87,.35); border-radius: var(--radius-full); padding: 5px 10px; }
.rep-count .n { --rfn: calc(var(--s1) + var(--s2) + var(--s3) + var(--s4) + var(--s5)); transition: --rfn .55s cubic-bezier(.2,.8,.2,1); counter-reset: rf var(--rfn); font-variant-numeric: tabular-nums; min-width: 1ch; display: inline-block; text-align: center; }
.rep-count .n::after { content: counter(rf); }
.rep:has(#mode-old:checked) .rep-count { visibility: hidden; }
.rep-sec { padding: 12px 16px; border-bottom: 1px solid var(--puw-border-light); }
.rep-sec:last-child { border-bottom: none; }
.rep-sec h5 { margin: 0 0 8px; font-family: var(--font-meta); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); }
.rep-sec h5 .sub { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.rep-msg, .article p.rep-msg { font-size: 13px; line-height: 1.5; color: var(--puw-teal-900); margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rep-msg .mid { flex: 0 0 auto; font-size: 11px; color: var(--puw-slate-400); }
.rep-tbl { margin-top: 8px; }
.rep-tbl .h { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--puw-slate-400); padding-bottom: 4px; }
.rep-row { display: none; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--puw-border-light); opacity: 1; translate: 0 0; transition: opacity .35s, translate .35s cubic-bezier(.2,.8,.2,1), display .35s allow-discrete; }
@starting-style { .rep-row { opacity: 0; translate: 0 8px; } }
.rep:has(#sig1:checked) .rep-row[data-sig="1"],
.rep:has(#sig2:checked) .rep-row[data-sig="2"],
.rep:has(#sig3:checked) .rep-row[data-sig="3"],
.rep:has(#sig4:checked) .rep-row[data-sig="4"],
.rep:has(#sig5:checked) .rep-row[data-sig="5"] { display: grid; }
.rep-row.plain { grid-template-columns: 1fr; }
@container (max-width: 420px) { .rep-row, .rep-tbl .h { grid-template-columns: 74px 1fr; gap: 9px; } .rep-id { font-size: 10.5px; padding: 4px 5px; } }
.rep-row.na { opacity: .55; }
.rep-id { font-family: var(--font-meta); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; color: var(--puw-teal-900); background: var(--puw-slate-100); border: 1px solid var(--puw-border-light); border-radius: var(--radius-sm); padding: 4px 7px; cursor: pointer; text-align: left; align-self: start; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.rep-id:hover, .rep-id:focus-visible, .rep-id:popover-open { background: var(--puw-coral-600); color: #fff; border-color: var(--puw-coral-600); outline: none; }
.rep-id:focus-visible { outline: 2px solid var(--puw-teal-900); outline-offset: 2px; }
.rep-id .tag { display: block; font-weight: 400; font-size: 10px; }
.rep-id.new { border-color: rgba(254,106,87,.5); background: var(--puw-coral-50); color: var(--puw-coral-600); }
.rep-id.static { cursor: default; }
.rep-txt { font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); }
.rep-txt b { color: var(--puw-teal-900); font-weight: 600; }
.rep-empty { font-size: 12.5px; color: var(--puw-slate-400); display: none; padding: 6px 0; }
.rep:not(:has(.rep-sigs input:checked)) .rep-empty { display: block; }
.rep-list { display: none; }
.rep:has(#sig1:checked, #sig2:checked, #sig3:checked, #sig4:checked) .rep-list-occ { display: block; }
.rep:has(#sig5:checked) .rep-list-prop { display: block; }
.rep-list + .rep-list { margin-top: 14px; }
.rep:has(#mode-old:checked) .rep-new { display: none; }
.rep:has(#mode-new:checked) .rep-old { display: none; }
.rep-old .rep-row.ex { display: grid; }
.rep-old .rep-row.ex .rep-id { color: var(--puw-slate-400); }
.rep-old .gone { font-size: 11.5px; color: var(--puw-slate-400); margin-top: 8px; }
/* view transition: a short flip between the two layouts (crossfade elsewhere; instant where unsupported) */
@keyframes duFlipOut { to { opacity: 0; transform: perspective(900px) rotateX(-8deg) translateY(-6px); } }
@keyframes duFlipIn { from { opacity: 0; transform: perspective(900px) rotateX(8deg) translateY(6px); } }
::view-transition-old(rep-doc) { animation: 200ms ease-in both duFlipOut; }
::view-transition-new(rep-doc) { animation: 260ms ease-out both duFlipIn; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(rep-doc), ::view-transition-new(rep-doc) { animation: none !important; }
  .rep-row, .sig .sw, .sig .sw::after, .rep-count .n { transition: none; }
}

/* message-identifier tips: Popover API + anchor positioning */
.tip { position: fixed; inset: auto; margin: 0; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 14px 16px; border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 18px 50px rgba(3,54,61,.16); font-family: var(--font-meta); color: var(--puw-teal-600); text-align: left;
  position-area: block-end span-inline-end; position-try-fallbacks: flip-block, block-end span-all, block-start span-all; margin-block: 8px; }
/* on a phone the tip is nearly as wide as the screen: centre it under (or over) the button with a 16px gutter */
@media (max-width: 480px) { .tip { position-area: block-end span-all; position-try-fallbacks: flip-block; margin-inline: 16px; } }
.article .tip h6 { margin: 0 0 4px; font-family: var(--font-meta); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-coral-600); }
.article .tip p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); }
.article .tip p:last-child { margin-bottom: 0; }
.tip::backdrop { background: transparent; }
.tip { opacity: 0; translate: 0 4px; transition: opacity .18s, translate .18s, display .18s allow-discrete, overlay .18s allow-discrete; }
.tip:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .tip:popover-open { opacity: 0; translate: 0 4px; } }
@supports not selector(:popover-open) {
  .tip:not(.is-open) { display: none; }
  .tip.is-open { display: block; opacity: 1; translate: none; position: fixed; z-index: 70; }
}
.no-js .tip { display: block; position: static; opacity: 1; translate: none; width: auto; box-shadow: none; margin: 8px 0 0; }

/* ---------------- 3) where the evidence lives — exclusive accordion ---------------- */
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@container (max-width: 600px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }
.ev { background: #fff; border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); overflow: clip; transition: border-color .25s, box-shadow .25s; }
.ev[open] { border-color: var(--puw-coral-500); box-shadow: 0 12px 30px rgba(3,54,61,.07); }
.ev summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 15px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--puw-teal-900); }
.ev summary::-webkit-details-marker { display: none; }
.ev summary:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: -2px; }
.ev summary .ic { width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--puw-coral-50); color: var(--puw-coral-600); display: grid; place-items: center; flex: 0 0 auto; }
.ev summary .ic svg { width: 18px; height: 18px; }
.ev summary .flag { margin-left: auto; font-family: var(--font-meta); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; color: var(--puw-slate-400); text-align: right; }
.ev summary .pl { width: 18px; height: 18px; flex: 0 0 auto; color: var(--puw-slate-400); transition: rotate .3s, color .3s; }
.ev[open] summary .pl { rotate: 45deg; color: var(--puw-coral-600); }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .ev, .ic-cure { interpolate-size: allow-keywords; }
    .ev::details-content, .ic-cure::details-content { block-size: 0; overflow: clip; transition: block-size .35s cubic-bezier(.2,.8,.2,1), content-visibility .35s allow-discrete; }
    .ev[open]::details-content, .ic-cure[open]::details-content { block-size: auto; }
  }
}
.article .ev-body p { padding: 0 15px 14px; font-family: var(--font-meta); font-size: 13px; line-height: 1.55; color: var(--puw-teal-600); }
.article .ev-body p + p { padding-top: 0; margin-top: -6px; }
.ev-body q { quotes: "\201C" "\201D"; }

/* ---------------- 4) employment-history timeline ---------------- */
.et-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; align-items: end; }
@container (max-width: 520px) { .et-ctl { grid-template-columns: 1fr; } }
.et-ctl .lab { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-meta); font-size: 12.5px; color: var(--puw-slate-400); margin-bottom: 8px; }
.et-ctl .lab b { color: var(--puw-coral-600); font-variant-numeric: tabular-nums; font-weight: 600; }
.et input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 5px; background: var(--puw-slate-100); outline: none; cursor: pointer; }
.et input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--puw-coral-600); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(255,54,33,.35); cursor: grab; }
.et input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--puw-coral-600); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(255,54,33,.35); cursor: grab; }
.et input[type="range"]:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: 4px; }
.et-type { display: inline-flex; gap: 4px; background: var(--puw-surface-2); border: 1px solid var(--puw-border-light); border-radius: var(--radius-full); padding: 4px; }
.et-type label { position: relative; font-family: var(--font-action); font-weight: 600; font-size: 12.5px; color: var(--puw-teal-600); padding: 7px 14px; border-radius: var(--radius-full); cursor: pointer; transition: background .2s, color .2s; }
.et-type label:has(input:checked) { background: var(--puw-coral-600); color: #fff; }
.et-type label:has(input:focus-visible) { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.et-bar { --prior: 0; --cur: 12; --scale: 48; position: relative; height: 22px; margin: 34px 0 60px; border-radius: 11px; background: var(--puw-slate-100); }
.et-seg { position: absolute; top: 0; height: 100%; border-radius: 11px; container-type: inline-size; transition: width .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1); }
.et-seg.prior { left: 0; width: calc(var(--prior) / var(--scale) * 100%); background: var(--puw-slate-300); }
.et-seg.cur { left: calc(var(--prior) / var(--scale) * 100%); width: calc(var(--cur) / var(--scale) * 100%); background: linear-gradient(90deg, var(--puw-teal-mid), var(--puw-coral-500)); }
.et-seg .l { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-family: var(--font-meta); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; pointer-events: none; }
.et-seg.prior .l { color: var(--puw-teal-900); }
@container (max-width: 76px) { .et-seg .l { display: none; } }
.et-mk { position: absolute; top: -9px; bottom: -9px; width: 2px; background: var(--puw-slate-400); translate: -50% 0; transition: left .35s cubic-bezier(.2,.8,.2,1), background .25s; }
.et-mk span { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; font-family: var(--font-meta); font-size: 11px; color: var(--puw-slate-400); transition: color .25s; }
.et-mk.m3 { left: calc((var(--prior) + 3) / var(--scale) * 100%); }
.et-mk.m3 span { top: 100%; margin-top: 5px; left: 0; translate: -3px 0; }
.et-mk.m12 { left: calc(12 / var(--scale) * 100%); }
.et-mk.m12 span { bottom: 100%; margin-bottom: 5px; }
.et-mk.met { background: #17704A; }
.et-mk.met span { color: #17704A; font-weight: 600; }
.et-scale { display: flex; justify-content: space-between; font-family: var(--font-meta); font-size: 11px; color: var(--puw-slate-400); margin-top: -26px; margin-bottom: 22px; }
.et-res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@container (max-width: 520px) { .et-res { grid-template-columns: 1fr; } }
.et-card { padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--puw-border-light); background: var(--puw-surface-2); transition: border-color .3s; }
.et-card .k { font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); }
.et-card .v { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--puw-teal-900); transition: color .3s; }
.et-card .v svg { width: 20px; height: 20px; flex: 0 0 auto; }
.et-card .v .no { display: none; }
.et-card.bad .v .no { display: block; } .et-card.bad .v .yes { display: none; }
.et-card .why { font-family: var(--font-meta); font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); margin-top: 8px; min-height: 4.5em; }
.et-card.ok { border-color: rgba(31,138,91,.4); } .et-card.ok .v { color: #1F8A5B; }
.et-card.bad { border-color: rgba(255,54,33,.4); } .et-card.bad .v { color: var(--puw-coral-600); }
@media (prefers-reduced-motion: reduce) { .et-seg, .et-mk { transition: none; } }

/* ---------------- 5) close-by calendar ---------------- */
.cb-ctl { display: flex; gap: 18px 26px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.cb-ctl label { font-family: var(--font-meta); font-size: 12.5px; color: var(--puw-slate-400); display: flex; flex-direction: column; gap: 6px; }
.cb-ctl input[type="date"] { font-family: var(--font-meta); font-size: 16px; color: var(--puw-teal-900); border: 1px solid var(--puw-slate-400); border-radius: var(--radius-md); padding: 8px 10px; background: #fff; field-sizing: content; min-width: 160px; }
.cb-ctl input[type="date"]:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.cb-ctl .chk { flex-direction: row; align-items: center; gap: 9px; font-size: 13px; color: var(--puw-teal-600); padding-bottom: 9px; cursor: pointer; }
.cb-ctl .chk input { flex: 0 0 16px; width: 16px; height: 16px; accent-color: var(--puw-coral-600); }
.cb-ctl .chk .du-note { margin: 0; }
.cb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cb-dow { font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--puw-slate-400); padding-bottom: 4px; }
.cb-day { position: relative; aspect-ratio: 1.25; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--puw-border-light); display: grid; place-items: center; font-family: var(--font-meta); font-size: 13px; color: var(--puw-teal-900); font-variant-numeric: tabular-nums; transition: background .25s, border-color .25s, color .25s; }
.cb-day.pad { opacity: .35; }
.cb-day.we, .cb-day.hol { background: repeating-linear-gradient(135deg, var(--puw-slate-100) 0 4px, #fff 4px 9px); color: var(--puw-slate-400); }
.cb-day.cnt { border-color: var(--puw-teal-mid-border); background: var(--puw-teal-mid-bg); color: var(--puw-teal-900); }
.cb-day.rep { background: var(--puw-teal-900); color: #fff; border-color: var(--puw-teal-900); }
.cb-day.old { box-shadow: inset 0 0 0 2px var(--puw-slate-400); }
.cb-day.new { background: var(--puw-coral-600); color: #fff; border-color: var(--puw-coral-600); box-shadow: 0 8px 20px rgba(255,54,33,.28); }
.cb-day .m { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 8.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cb-day .dn { line-height: 1; margin-bottom: 8px; }
@container (max-width: 520px) { .cb-grid { gap: 3px; } .cb-day { font-size: 11.5px; } .cb-day .m { font-size: 7.5px; } }
.cb-leg { display: flex; gap: 14px 18px; flex-wrap: wrap; margin-top: 14px; font-family: var(--font-meta); font-size: 12px; color: var(--puw-slate-400); }
.cb-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cb-leg i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--puw-border-light); display: inline-block; background: #fff; }
.cb-leg i.rep { background: var(--puw-teal-900); border-color: var(--puw-teal-900); }
.cb-leg i.cnt { background: var(--puw-teal-mid-bg); border-color: var(--puw-teal-mid-border); }
.cb-leg i.we { background: repeating-linear-gradient(135deg, var(--puw-slate-100) 0 3px, #fff 3px 6px); }
.cb-leg i.old { box-shadow: inset 0 0 0 2px var(--puw-slate-400); }
.cb-leg i.new { background: var(--puw-coral-600); border-color: var(--puw-coral-600); }
.cb-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
@container (max-width: 520px) { .cb-out { grid-template-columns: 1fr; } }
.cb-out .rx-v { font-size: clamp(18px, 2.4vw, 24px); }

/* ---------------- 6) "run the file" cards ---------------- */
.ic-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ic-card { background: #fff; border: 1px solid var(--puw-border-light); border-radius: var(--radius-xl); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, box-shadow .3s; }
.ic-card.ran { border-color: var(--puw-slate-300); box-shadow: 0 14px 34px rgba(3,54,61,.07); }
.ic-card .k { font-family: var(--font-meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); }
.ic-card h4 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--puw-teal-900); text-wrap: balance; }
.article .ic-card .sc { font-family: var(--font-meta); font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); }
.ic-run { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; min-height: 42px; }
.ic-st { display: none; }
.ic-card.ran .ic-st { display: inline-flex; }
.ic-card.ran .ic-st { opacity: 1; scale: 1; transition: opacity .35s, scale .35s cubic-bezier(.2,.8,.2,1); }
@starting-style { .ic-card.ran .ic-st { opacity: 0; scale: .85; } }
.ic-before { font-family: var(--font-meta); font-size: 11.5px; color: var(--puw-slate-400); }
.ic-before b { color: var(--puw-teal-600); font-weight: 600; }
.ic-card.ran .ic-before { display: none; }
.ic-cure { margin-top: 2px; }
.ic-cure summary { font-family: var(--font-meta); font-size: 12.5px; font-weight: 600; color: var(--puw-teal-mid); cursor: pointer; list-style: none; display: flex; gap: 7px; align-items: center; }
.ic-cure summary::-webkit-details-marker { display: none; }
.ic-cure summary::before { content: "+"; width: 16px; height: 16px; border-radius: 4px; background: var(--puw-teal-mid-bg); display: grid; place-items: center; font-size: 12px; line-height: 1; }
.ic-cure[open] summary::before { content: "–"; }
.ic-cure summary:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; border-radius: 4px; }
.article .ic-cure .b p { font-family: var(--font-meta); font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); padding-top: 8px; }
.article .ic-cure .b p + p { padding-top: 6px; }
@container (max-width: 560px) {
  .ic-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .ic-card { flex: 0 0 min(84%, 320px); scroll-snap-align: center; scroll-snap-stop: always; }
}
/* enhancement: scroll-driven assembly (Chromium, Safari 26+); Firefox keeps the plain layout */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .ic-rail .ic-card { animation: duAssemble linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .js .ic-rail .ic-card:nth-child(2) { animation-range: entry 8% entry 58%; }
    .js .ic-rail .ic-card:nth-child(3) { animation-range: entry 16% entry 66%; }
  }
}
@keyframes duAssemble { from { opacity: 0; transform: translateY(26px) rotate(-.5deg); } to { opacity: 1; transform: none; } }

/* ---------------- 7) countdown + DU calendar rail ---------------- */
@property --cdn { syntax: "<integer>"; initial-value: 0; inherits: false; }
.cd { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
@container (max-width: 520px) { .cd { grid-template-columns: 1fr; } }
.cd-big { display: flex; flex-direction: column; }
.cd-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(60px, 9vw, 96px); line-height: 1; letter-spacing: -.03em; color: var(--puw-coral-600); font-variant-numeric: tabular-nums; --cdn: 0; --to: 0; transition: --cdn 1.6s cubic-bezier(.2,.7,.2,1); counter-reset: cd var(--cdn); text-box: trim-both cap alphabetic; }
.cd-num::after { content: counter(cd); }
.cd-num.go { --cdn: var(--to); }
.cd-lab { font-family: var(--font-meta); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); margin-top: 10px; max-width: 220px; line-height: 1.4; }
.article .cd-txt p { font-family: var(--font-meta); font-size: 13.5px; line-height: 1.55; color: var(--puw-teal-600); }
.article .cd-txt p + p { margin-top: 8px; }
.cd-txt .ft { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cd-txt .ft .pill { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .cd-num { transition: none; } }

.cal { position: relative; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-nav .t { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--puw-teal-900); }
.cal-nav .btns { display: flex; gap: 6px; }
.cal-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--puw-border-light); background: #fff; color: var(--puw-teal-900); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.cal-nav button:hover { background: var(--puw-coral-600); color: #fff; border-color: var(--puw-coral-600); }
.cal-nav button:focus-visible { outline: 2px solid var(--puw-coral-600); outline-offset: 2px; }
.cal-nav button svg { width: 16px; height: 16px; }
.cal-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.cal-item { flex: 0 0 min(78%, 300px); scroll-snap-align: center; scroll-snap-stop: always; }
.cal-in { height: 100%; background: #fff; border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); padding: 16px 18px; transition: border-color .3s, box-shadow .3s, translate .3s; }
.cal-in .d { font-family: var(--font-meta); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-coral-600); font-weight: 600; }
.cal-in h5 { margin: 6px 0 0; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--puw-teal-900); line-height: 1.3; }
.article .cal-in p { margin: 6px 0 0; font-family: var(--font-meta); font-size: 12.5px; line-height: 1.5; color: var(--puw-teal-600); }
.cal-item.on .cal-in { border-color: var(--puw-coral-500); box-shadow: 0 14px 34px rgba(3,54,61,.09); translate: 0 -2px; }
.cal-item.now .cal-in { background: var(--puw-teal-900); border-color: var(--puw-teal-900); }
.cal-item.now .cal-in h5 { color: #fff; }
.article .cal-item.now .cal-in p { color: rgba(255,255,255,.75); }
.cal-item.past .cal-in .d { color: var(--puw-slate-400); }
/* enhancement: scroll-state(snapped) replaces the JS "on" class in Chromium */
@supports (container-type: scroll-state) {
  .cal-item { container-type: scroll-state; }
  @container scroll-state(snapped: inline) { .cal-in { border-color: var(--puw-coral-500); box-shadow: 0 14px 34px rgba(3,54,61,.09); translate: 0 -2px; } }
}
@media (prefers-reduced-motion: reduce) { .cal-in { transition: none; } }

/* ---------------- parity table ---------------- */
.du-tbl { width: 100%; border-collapse: collapse; font-family: var(--font-meta); font-size: 13px; }
.du-tbl th { text-align: left; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--puw-slate-400); padding: 0 10px 8px 0; border-bottom: 1px solid var(--puw-border-light); font-weight: 600; }
.du-tbl td { padding: 10px 10px 10px 0; border-bottom: 1px dashed var(--puw-border-light); vertical-align: top; color: var(--puw-teal-600); line-height: 1.45; }
.du-tbl td:first-child { color: var(--puw-teal-900); font-weight: 600; }
.du-tbl tr:last-child td { border-bottom: none; }
@container (max-width: 640px) { .du-tbl { font-size: 12px; } }

/* reduced motion, for rules declared above with their own transitions (kept last so it wins on order) */
@media (prefers-reduced-motion: reduce) {
  .ic-card.ran .ic-st { transition: none; }
  .tip, .tip:popover-open { transition: none; translate: none; }
}

/* ---------------- without JavaScript: show the default case, hide controls that cannot work ---------------- */
.no-js .du-btn, .no-js .cal-nav .btns, .no-js .et input[type="range"], .no-js .et-type, .no-js .cb-ctl, .no-js .cb-grid, .no-js .cb-leg, .no-js .cb-out, .no-js .cd-big { display: none; }
.no-js .ic-st { display: inline-flex; }
.no-js .cd { grid-template-columns: 1fr; }

/* ---------------- print: everything readable on paper ---------------- */
@media print {
  .ic-rail .ic-card { animation: none !important; opacity: 1 !important; transform: none !important; break-inside: avoid; }
  .ic-rail, .cal-track { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible !important; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev::details-content, .ic-cure::details-content { content-visibility: visible !important; block-size: auto !important; }
  .tip { display: block !important; position: static !important; opacity: 1 !important; translate: none !important; width: auto; max-height: none; box-shadow: none; margin: 8px 0 0; }
  .rep .rep-row { display: grid !important; }
  .rep .rep-list { display: block !important; }
  .rep .rep-old, .rep .rep-empty, .rep-sigs, .rep-modes, .rep-count, .du-btn, .cal-nav .btns, .et input[type="range"], .et-type, .cb-ctl { display: none !important; }
  .ic-st { display: inline-flex !important; }
  .cal-item.now .cal-in { background: #fff; border-color: #000; }
  .cal-item.now .cal-in h5, .article .cal-item.now .cal-in p { color: inherit; }
  .figure, .takeaway, .pull, .cal-item { break-inside: avoid; }
}
