/* Taskyard pages (2/2): hand page + clipboard work order, job sheet page, yard pass (join), how credits work, workbench, 404.
   Prefixes: ag- hand, rn- job sheet, jn- yard pass, hw- how, bd-/b- workbench, nf- not found.
   Shared yard bits (.y-pin, .y-tape) are defined in pages.css. Tokens: see docs/DESIGN.md. */

:where(:root) {
  --bg: #f3ecdf; --bg-2: #e9e0cf; --surface: #fffbf3; --ink: #201d1a; --ink-2: #4a443c; --muted: #7a7264;
  --line: #ddd2bf; --line-2: #c8bba3; --orange: #f25c05; --orange-ink: #b84300; --orange-soft: #ffe3cf;
  --steel: #2b3a42; --steel-2: #36474f; --tape: #f6c445; --good: #2f7d4a; --bad: #c2362b;
  --sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --card-shadow: 0 1px 0 rgba(32, 29, 26, 0.08), 0 10px 22px -14px rgba(32, 29, 26, 0.35);
  --peg: radial-gradient(circle, rgba(32, 29, 26, 0.13) 1.5px, transparent 2px) 0 0 / 22px 22px;
}
.ag, .rn, .jn, .hw, .bd, .nf { --disp: var(--display, "Big Shoulders Stencil Display", sans-serif); }

/* shared small bits */
.ag-hole { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--orange-soft); }
.prose p { margin: 0 0 0.9em; color: var(--ink-2); max-width: 44rem; text-wrap: pretty; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.ag-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ag-crumb a { position: relative; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--line-2); }
.ag-crumb a:hover { border-bottom-color: var(--orange); }
.ag-crumb a::before { content: ""; position: absolute; inset: -11px -4px; }

/* ============ hand page ============ */
.by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.by > span:last-child { display: grid; font-weight: 700; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.by small { font: 500 0.74rem var(--mono); color: var(--muted); }
.by:hover > span:last-child { color: var(--orange-ink); }
.btn-price { font-family: var(--mono); font-weight: 600; }
.ag-inputs { margin: 0 0 0 1.1em; padding: 0; color: var(--ink-2); }
.try-example { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; margin-bottom: 16px; background: transparent; border: 1.5px dashed var(--orange-ink); border-radius: 4px; color: var(--orange-ink); font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background-color 0.2s, transform 0.15s; }
.try-example span { font-size: 1.1rem; line-height: 1; transition: transform 0.2s var(--ease); }
.try-example:hover { background: var(--orange-soft); }
.try-example:hover span { transform: rotate(90deg); }
.try-example:active { transform: scale(0.98); }

/* ============ job sheet page ============ */
.rn-head { margin: 0 0 26px; }
.rn-head h1 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; line-height: 0.96; font-size: clamp(2.2rem, 7vw, 3.6rem); overflow-wrap: anywhere; margin: 6px 0 0; }
.rn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.rn-doc { min-width: 0; }
.rn-doc .slip { margin: 0; width: 100%; }
.rn-side { display: grid; gap: 18px; min-width: 0; }
.rn-card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--card-shadow); padding: 14px 18px 18px; }
.rn-agent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; margin: 0 0 4px; text-decoration: none; border-bottom: 2px dashed var(--line-2); }
.rn-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; background: var(--cat, var(--orange)); color: #fff; overflow: hidden; }
.rn-tile .glyph { width: 26px; height: 26px; }
.rn-tile .emblem { width: 40px; height: 40px; }
.rn-agent small { display: block; font: 500 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.rn-agent strong { display: block; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; color: var(--ink); }
.rn-go { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.rn-agent:hover .rn-go { transform: translateX(3px); color: var(--orange-ink); }
.rn-meta { margin: 0; display: grid; }
.rn-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.rn-meta dt { font: 500 0.68rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.rn-meta dd { margin: 0; text-align: right; font: 500 0.82rem/1.6 var(--mono); font-variant-numeric: tabular-nums; }
.rn-st { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.rn-st i { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.rn-failed i { background: var(--bad); }
.rn-running i { background: var(--tape); box-shadow: 0 0 0 1.5px var(--ink); animation: ag-pulse 1.4s ease-in-out infinite; }
@keyframes ag-pulse { 50% { transform: scale(1.5); opacity: 0.5; } }
.slip-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.rn-cta { padding: 20px 18px; background: var(--steel); color: var(--bg); border-radius: 6px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.rn-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--orange) 0 7px, var(--steel) 7px 14px); }
.rn-cta p { margin: 6px 0 0; display: grid; gap: 3px; }
.rn-cta p span { color: rgba(243, 236, 223, 0.72); font-size: 0.88rem; }
.rn-cta .btn { justify-content: center; white-space: normal; text-align: center; }

/* share control + replay */
.share { position: relative; display: inline-block; }
.share-btn, [data-reprint] { min-height: 44px; min-width: 44px; gap: 7px; }
.share-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; gap: 2px; min-width: min(220px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 16px 40px -12px rgba(32, 29, 26, 0.45); animation: ag-pop 0.18s var(--ease); transform-origin: 20% 0; }
@keyframes ag-pop { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
.share-pop[hidden] { display: none; }
.share-opt { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.share-opt:hover, .share-opt:focus-visible { background: var(--orange-soft); }
.share-opt:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: -2px; }
@media (max-width: 420px) { .share-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; } }

/* ============ yard pass (join) ============ */
.jn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; justify-content: center; align-items: center; padding: 8px 0; }
.jn-card { order: -1; }
.jn-pass-col .eyebrow { margin-bottom: 10px; }
.jn-lanyard { position: relative; max-width: 340px; margin: 0 auto; padding-top: 70px; }
.jn-strap { position: absolute; top: 0; left: 50%; width: 140px; height: 90px; margin-left: -70px; z-index: 1; overflow: visible; }
.jn-pass { position: relative; padding: 18px 20px 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--steel); transform: rotate(-1.5deg); transition: transform 0.4s var(--ease); transform-origin: 50% 0; }
.jn-lanyard:hover .jn-pass { transform: rotate(0); }
.jn-slot { display: block; width: 54px; height: 9px; margin: 0 auto 14px; border-radius: 5px; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(32, 29, 26, 0.4); }
.jn-pass-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 700 0.76rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.jn-pass-top .y-pin { position: static; margin: 0; flex: none; }
.jn-pass-id { display: flex; align-items: center; gap: 14px; }
.jn-photo { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 6px; background: var(--steel); color: #fff; font: 800 2.4rem/1 var(--disp); text-transform: uppercase; }
.jn-pass-id > div { min-width: 0; }
.jn-name { margin: 0; font-weight: 800; font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.jn-handle { margin: 4px 0 0; font: 500 0.82rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.jn-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; padding-top: 14px; border-top: 2px dashed var(--line-2); }
.jn-meta dt { font: 500 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.jn-meta dd { margin: 4px 0 0; font: 600 0.92rem var(--mono); }
.jn-pass .y-tape { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; height: 6px; margin: 0; border-radius: 0 0 9px 9px; }
.jn-points { list-style: none; padding: 0; margin: 28px auto 0; max-width: 340px; display: grid; gap: 12px; }
.jn-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 0.95rem; }
.jn-points .ag-hole { margin-top: 6px; }
.jn-card { width: 100%; max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 28px 22px; box-shadow: var(--card-shadow); }
.jn-card h1 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; line-height: 0.98; font-size: clamp(2rem, 7vw, 2.8rem); margin: 0 0 8px; }
.jn-card form { margin-top: 22px; }
.jn-card .field label { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.at-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; }
.at-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.22); }
.at-input span { padding-left: 14px; color: var(--muted); font-family: var(--mono); }
.at-input input { border: 0 !important; box-shadow: none !important; padding-left: 4px; background: transparent !important; }

/* ============ how credits work ============ */
.hw-head { margin: 8px 0 30px; max-width: 46rem; }
.hw-head h1 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.8rem, 9vw, 5rem); margin: 6px 0 0; }
.hw-head .lede { margin-top: 14px; }
.hw-steps { list-style: none; margin: 0 0 44px; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.hw-steps::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 7px; background: repeating-linear-gradient(-45deg, var(--orange) 0 7px, var(--ink) 7px 14px); border-radius: 1px; }
.hw-step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--card-shadow); }
.hw-step::before { content: ""; position: absolute; left: -26px; top: 50%; width: 26px; height: 2px; background: var(--ink); }
.hw-no { font-family: var(--disp); font-weight: 900; font-size: 3.4rem; line-height: 0.85; color: var(--orange); min-width: 28px; }
.hw-step h3 { margin: 0 0 4px; }
.hw-step p { margin: 0; color: var(--ink-2); font-size: 0.95rem; text-wrap: pretty; }
.hw-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.hw-split { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--card-shadow); padding: 24px 22px 22px 32px; }
.hw-split::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line-2); }
.hw-split header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hw-lab { font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.hw-tot { font-family: var(--disp); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.hw-tot small { font: 400 0.8rem var(--mono); color: var(--muted); }
.hw-bar { display: flex; gap: 4px; height: 40px; margin: 18px 0 18px; }
.hw-bar span { flex: var(--w) 1 0; min-width: 0; display: flex; align-items: center; padding: 0 12px; background: var(--orange); color: #fff; border-radius: 3px; font: 600 0.8rem var(--mono); transform-origin: left; }
.hw-bar span + span { background: var(--steel); }
.hw-bar b { font-weight: 600; }
.js .hw-split.reveal .hw-bar span { transform: scaleX(0); transition: transform 0.7s var(--ease) 0.15s; }
.js .hw-split.reveal.in .hw-bar span { transform: none; }
.hw-legend { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hw-legend dt { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.hw-legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--orange); flex: none; }
.hw-legend .hw-k2 { background: var(--steel); }
.hw-legend dd { margin: 4px 0 0; font-family: var(--disp); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.hw-legend small { display: block; font: 400 0.8rem var(--sans); color: var(--muted); margin-top: 3px; }
.hw-refund { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 16px; background: var(--orange-soft); border-radius: 4px; font-size: 0.93rem; }
.hw-refund .ag-hole { margin-top: 5px; }
.hw-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hw-facts li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; }
.hw-facts b { font-family: var(--disp); font-weight: 800; font-size: 2rem; line-height: 1; white-space: nowrap; }
.hw-facts span { color: var(--ink-2); font-size: 0.92rem; }
.hw-rules { position: relative; padding: 34px 22px 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--card-shadow); transform: rotate(0.6deg); }
.hw-rules h2 { font-family: var(--disp); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; margin: 0 0 14px; }
.hw-rules ol { list-style: none; margin: 0; padding: 0; counter-reset: rule; display: grid; gap: 12px; }
.hw-rules li { counter-increment: rule; position: relative; padding-left: 34px; color: var(--ink-2); font-size: 0.93rem; text-wrap: pretty; }
.hw-rules li::before { content: counter(rule); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 3px; font: 600 0.72rem var(--mono); }
.hw-privacy { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--line-2); }
.hw-privacy h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.hw-privacy h3 svg { color: var(--orange-ink); }
.hw-privacy p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }

/* ============ workbench ============ */
.bd-head { margin: 8px 0 26px; max-width: 46rem; }
.bd-head h1 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.8rem, 9vw, 5rem); margin: 6px 0 0; overflow-wrap: anywhere; }
.bd-head .lede { margin-top: 14px; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.b-rail { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; position: sticky; top: 63px; z-index: 5; background: var(--bg); border-bottom: 2px solid var(--ink); margin: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.b-rail::-webkit-scrollbar { display: none; }
.b-rail a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 3px; text-decoration: none; color: var(--ink-2); font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.b-rail a b { font-family: var(--disp); font-weight: 800; font-size: 1.15rem; color: var(--muted); }
.b-rail a:hover { background: var(--bg-2); }
.b-rail a.on { background: var(--ink); color: var(--bg); }
.b-rail a.on b { color: var(--orange); }
.b-main { min-width: 0; display: grid; gap: 22px; }
.b-sec { position: relative; min-width: 0; margin: 0; padding: 34px 18px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--card-shadow); scroll-margin-top: 70px; }
.b-sec::before { content: ""; position: absolute; top: 12px; right: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(32, 29, 26, 0.45); }
.b-sec legend { position: absolute; top: -14px; left: 16px; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px 0 0; background: var(--ink); color: var(--bg); border-radius: 3px; font: 700 0.76rem var(--mono); text-transform: uppercase; letter-spacing: 0.07em; float: none; width: auto; }
.b-n { display: grid; place-items: center; align-self: stretch; padding: 0 10px; background: var(--orange); color: #fff; border-radius: 3px 0 0 3px; font-family: var(--disp); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.b-fields { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 14px; }
.b-field { display: grid; grid-template-columns: 1fr; gap: 0 12px; padding: 16px 14px 6px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 4px; }
.b-field-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0 10px; font-size: 0.9rem; }
.b-field-foot label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.b-remove { min-height: 40px; padding: 0 10px; background: none; border: 0; color: var(--bad); font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tool-picks, .model-picks { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.tool-pick, .model-pick { position: relative; display: block; cursor: pointer; }
.tool-pick input, .model-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tool-pick > span, .model-pick > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px 12px 42px; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 4px; transition: border-color 0.15s, background-color 0.15s; position: relative; }
.tool-pick > span::before, .model-pick > span::before { content: ""; position: absolute; left: 13px; top: 15px; width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--surface); }
.tool-pick > span::before { border-radius: 3px; }
.model-pick > span::before { border-radius: 50%; }
.tool-pick input:checked + span, .model-pick input:checked + span { border-color: var(--ink); background: var(--orange-soft); }
.tool-pick input:checked + span::before, .model-pick input:checked + span::before { background: var(--orange); box-shadow: inset 0 0 0 3px var(--surface); }
.tool-pick input:focus-visible + span, .model-pick input:focus-visible + span { outline: 2px solid var(--orange-ink); outline-offset: 2px; }
.tool-pick strong, .model-pick strong { font-weight: 700; }
.tool-pick small, .model-pick small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.pick-meta { font: 500 0.7rem var(--mono) !important; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-ink) !important; }
.price-field input { max-width: 160px; font-family: var(--mono); font-weight: 600; }
.b-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.b-actions .btn { flex: 1 1 200px; }

.b-preview { display: grid; gap: 14px; min-width: 0; }
.b-peg { position: relative; padding: 22px 16px 24px; background: var(--peg), var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; }
.b-peg .eyebrow { margin-bottom: 18px; }
.bd-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 24px 16px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--card-shadow); transform: rotate(-1deg); }
.bd-tab { position: absolute; top: 9px; right: 12px; font-family: var(--disp); font-weight: 800; font-size: 1rem; color: var(--orange-ink); }
.bd-tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: var(--c-cat, var(--orange)); color: #fff; }
.bd-tile svg { width: 34px; height: 34px; }
.bd-card.cat-research { --c-cat: #1f5fae; }
.bd-card.cat-trading { --c-cat: #a86800; }
.bd-card.cat-markets { --c-cat: #6b3fa0; }
.bd-card.cat-onchain { --c-cat: #17784a; }
.bd-card.cat-content { --c-cat: #c22f22; }
.bd-body { min-width: 0; }
.bd-body h3 { margin: 0; overflow-wrap: anywhere; }
.bd-body p { margin: 4px 0 10px; color: var(--ink-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.bd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 0.72rem var(--mono); color: var(--muted); }
.bd-cat { color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.bd-price { margin-left: auto; font-family: var(--disp); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.bd-price small { font: 500 0.66rem var(--mono); color: var(--muted); margin-left: 2px; }
.pv-slip-label { margin: 10px 0 2px; }
.bd-brief { padding-top: 38px; }
.bd-brief .field label { pointer-events: none; }

/* ============ not on the board ============ */
.nf { text-align: center; padding: 18px 0 40px; display: grid; justify-items: center; gap: 8px; }
.nf-art { width: min(100%, 360px); margin-bottom: 10px; }
.nf-art svg { width: 100%; height: auto; overflow: visible; }
.nf-peg { fill: var(--bg-2); stroke: var(--ink); stroke-width: 2; }
.nf-hooks circle { fill: rgba(32, 29, 26, 0.22); }
.nf-card rect:first-child { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; }
.nf-card path { stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; fill: none; }
.nf-tile { fill: var(--steel); }
.nf-pin { fill: var(--orange); }
.nf-gap rect { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-dasharray: 5 5; }
.nf-gap path { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.nf-tape { fill: var(--orange); }
.js .nf-card { transform-box: fill-box; transform-origin: 50% 0; animation: nf-sway 4s ease-in-out infinite alternate; }
@keyframes nf-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.nf h1 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; line-height: 0.98; font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 0; overflow-wrap: anywhere; }
.nf .muted { margin: 4px 0 14px; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .ag-facts { grid-template-columns: repeat(5, 1fr); }
  .ag-facts > div, .ag-facts > div:nth-child(odd) { border-bottom: 0; border-right: 1px dashed var(--line-2); }
  .ag-facts > div:last-child { grid-column: auto; border-right: 0; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .b-field { grid-template-columns: 1fr 1fr; }
  .b-field .wide, .b-field-foot { grid-column: 1 / -1; }
  .tool-picks, .model-picks { grid-template-columns: 1fr 1fr; }
  .jn-card { padding: 34px 32px; }
  .hw-facts li { grid-template-columns: 120px 1fr; }
  .reviews-grid { grid-template-columns: minmax(0, 320px) 1fr; }
  .reviews-grid.solo { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .ag-hero { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .ag-portrait { padding: 34px 0 14px; align-self: stretch; align-items: center; }
  .ag-card { width: 230px; margin-bottom: 8px; }
  .ag-grid { grid-template-columns: minmax(0, 1fr) 390px; grid-template-areas: "out side" "main side"; gap: 24px 44px; }
  .ag-sticky { position: sticky; top: 100px; }
  .rn-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .rn-side { position: sticky; top: 100px; }
  .jn { grid-template-columns: minmax(0, 360px) minmax(0, 460px); gap: 72px; min-height: 62vh; }
  .jn-card { order: 0; margin: 0; }
  .jn-lanyard, .jn-points { margin-left: 0; margin-right: 0; }
  .hw-steps { grid-template-columns: repeat(3, 1fr); padding: 26px 0 0; gap: 18px; }
  .hw-steps::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 7px; }
  .hw-step { grid-template-columns: 1fr; gap: 8px; padding: 20px 18px; }
  .hw-step::before { left: 50%; top: -26px; width: 2px; height: 26px; }
  .hw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 44px; }
  .builder { grid-template-columns: 148px minmax(0, 1fr) 320px; gap: 28px; }
  .b-rail { position: sticky; top: 100px; flex-direction: column; border-bottom: 0; border-left: 3px solid var(--ink); padding: 2px 0; background: transparent; z-index: 1; -webkit-mask-image: none; mask-image: none; }
  .b-rail a { padding: 0 10px; border-radius: 0 3px 3px 0; }
  .b-preview { position: sticky; top: 100px; }
  .b-sec { padding: 36px 24px 10px; }
}
@media (max-width: 420px) {
  .ag-card { width: 200px; }
  .ag-brief { padding-left: 14px; padding-right: 14px; box-shadow: 4px 4px 0 var(--steel); }
  .hw-split { padding-left: 28px; padding-right: 16px; }
  .hw-facts li { grid-template-columns: 1fr; gap: 4px; }
  .jn-card { padding: 24px 16px; }
  .b-sec { padding-left: 14px; padding-right: 14px; }
  .hw-legend { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-card, .jn-pass, .delivers li, .ag-quote, .try-example, .hist-bar span { transition: none; }
  .ag-portrait:hover .ag-card, .jn-lanyard:hover .jn-pass { transform: rotate(-1.5deg); }
  .rn-running i, .js .nf-card, .share-pop { animation: none !important; }
  .js .hw-split.reveal .hw-bar span { transform: none; transition: none; }
}
