/* Crabhaus issue shape v2 (approved 2026-11-08). Loaded only by
   templates/issue-page-v2.html; v1 pages never reference this file.

   Simplification pass (Vatsal, 8 Nov 2026): one visual system.
   - Type: serif headlines, sans for body and every label, mono only for the
     copyable prompt. Re-pointing --mono for v2 pages switches every shared kit
     label (folio, chips, buttons) to sans without touching v1.
   - Labels: one size of category chip (.v2-chip) and one small blue label
     (.v2-label).
   - Headlines link by colour and arrow, never underline.

   Wayfinding pass (Vatsal, 8 Nov 2026): four numbered sections, each with a
   header (number, label, thin rule; purpose lines dropped 8 Nov) and one soft colour
   matched to its job: news open on the page with an ink accent; Try this
   green (do); Explained blue (learn); Your turn cream/coral (reply). The blue
   line-pattern skim teaser stays the only strong colour. Space between
   sections is about twice the padding inside them. */
html[data-shape="v2"] {
  --mono: var(--sans);
  --v2-card-border: #d9e0eb;
  --v2-tint: #eef3fe;
  --v2-tint-border: #d0ddfa;
  --v2-prompt-font: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --v2-gap-in: 24px;
  --v2-gap-out: calc(var(--v2-gap-in) * 2);
}
@media (max-width: 600px) {
  html[data-shape="v2"] { --v2-gap-in: 20px; }
}
/* Byline at 10.5-11px is real text: muted (#5c687a, 5.6:1 on white), not the
   kit's decorative --border-strong (3.3:1). */
[data-shape="v2"] .folio .byline { color: var(--muted); }
.v2-label {
  margin: 0;
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-hover);
}

/* ---- "Today in AI" card (was the 30-second skim; the Week 1 briefing card, one column) ---- */
.v2-skim-card { margin-top: 24px; grid-template-columns: 1fr; border-color: var(--v2-card-border); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06); }
.v2-skim-card .briefing-main { padding: 28px 36px 26px; }
.v2-opener { margin: 8px 0 0; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--muted); }
.v2-skim-card .briefing-main h2 { margin: 14px 0 22px; }
.v2-skim-card .briefing-signals { list-style: none; margin: 0; padding: 0; }
.v2-skim-card .briefing-signal { grid-template-columns: 104px minmax(0, 1fr); padding: 12px 0; border-top-color: var(--divider); }
.v2-skim-card .briefing-signal .v2-chip { margin: 0; justify-self: start; }
.v2-skim-card .briefing-signal strong { font-size: 15px; line-height: 1.35; }
/* Each card headline jumps to its story below: headline styling kept, underline
   only on hover, a clear focus ring, and the target clears the page edge. */
.v2-skim-link { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .v2-skim-link:hover { text-decoration: underline; }
}
.v2-skim-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Item links fill their row and gain 5px above and below: a tap target of at
   least 29px for a one-line headline, with no change to the layout. */
.v2-skim-card .briefing-signal .v2-skim-link { display: block; padding: 5px 0; margin: -5px 0; }
#lead-story,
.v2-more .t-item[id] { scroll-margin-top: 16px; }
.v2-number-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0 0;
  border-top: 1px solid var(--divider);
}
.v2-number-strip p { margin: 0; }
.v2-number-figure { font: 700 34px/1 var(--display); letter-spacing: -0.02em; color: var(--brand); white-space: nowrap; }
.v2-number-text { margin-top: 3px !important; font-size: 14px; line-height: 1.4; color: var(--text); }
.v2-number-text a { color: var(--muted); white-space: nowrap; }
/* The one blue moment: the line-pattern teaser at the foot of the skim card. */
.v2-skim-card .briefing-learn { min-height: 0; padding: 24px 36px 26px; }
.v2-learn-teaser .briefing-learn-label { color: #fff; font: 700 11px/1.4 var(--sans); letter-spacing: 0.08em; }
.v2-learn-teaser h3 a { color: #fff; text-decoration: none; }
.v2-learn-teaser h3 a::after { content: ""; position: absolute; inset: 0; }
.v2-learn-teaser h3 + p { color: #fff; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .v2-learn-teaser h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.v2-learn-teaser:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.v2-learn-teaser a:focus-visible { outline: none; }
@media (max-width: 600px) {
  .v2-skim-card .briefing-main { padding: 22px 20px 20px; }
  .v2-skim-card .briefing-main h2 { font-size: 30px; }
  .v2-skim-card .briefing-signal { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .v2-skim-card .briefing-learn { padding: 22px 20px 22px; }
  .v2-number-figure { font-size: 30px; }
}

/* ---- category chip: one size everywhere (skim, the big one, three more) ---- */
.v2-chip {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.v2-chip.cat-labs { background: var(--cat-labs); color: var(--cat-labs-ink); }
.v2-chip.cat-agents { background: var(--cat-agents); color: var(--cat-agents-ink); }
.v2-chip.cat-research { background: var(--cat-research); color: var(--cat-research-ink); }
.v2-chip.cat-biz { background: var(--cat-biz); color: var(--cat-biz-ink); }
.v2-chip.cat-tutorials { background: var(--cat-tutorials); color: var(--cat-tutorials-ink); }
.v2-chip.cat-notable { background: var(--cat-notable); color: var(--cat-notable-ink); }
.v2-chip.cat-policy { background: var(--cat-policy, #f6d3c4); color: var(--cat-policy-ink, #7a2e12); }

/* ---- section frame: number, label, thin rule (no purpose line) ---- */
.v2-section {
  --sec-accent: var(--ink);
  --sec-rule: var(--ink);
  margin-top: var(--v2-gap-out);
  scroll-margin-top: 16px;
}
.v2-pattern { --sec-accent: #1d6a43; --sec-rule: #9ccbad; --sec-bg: #e9f5ed; --sec-border: #c6e3d0; }
.v2-learn { --sec-accent: #1945b8; --sec-rule: #a9bff2; --sec-bg: var(--v2-tint); --sec-border: var(--v2-tint-border); }
.v2-turn { --sec-accent: #a63d17; --sec-rule: #eab497; --sec-bg: #fdf0e7; --sec-border: #f3d3bf; }
.v2-pattern,
.v2-learn,
.v2-turn {
  padding: var(--v2-gap-in);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-lg);
  background: var(--sec-bg);
}
.v2-sec-head {
  margin-bottom: var(--v2-gap-in);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sec-rule);
}
.v2-sec-head h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 700 20px/1.25 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.v2-sec-num {
  flex: none;
  width: 28px;
  font: 700 14px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--sec-accent);
}
.v2-sec-crab { margin-left: auto; font-size: 16px; }
@media (max-width: 600px) {
  .v2-sec-head h2 { font-size: 19px; }
}

/* ---- headlines: links by colour and arrow, no underline ---- */
[data-shape="v2"] .story h3 a,
.v2-more .t-line {
  color: var(--ink);
  text-decoration: none;
}
[data-shape="v2"] .story h3 .go,
.v2-more .t-line span { color: var(--brand); }
@media (hover: hover) and (pointer: fine) {
  [data-shape="v2"] .story h3 a:hover,
  .v2-more .t-line:hover { color: var(--brand-hover); }
}

/* ---- 01 Today's news: open on the page. Lead story, then "Also today" ---- */
.story .v2-chip { margin-top: 0; }
[data-shape="v2"] .story h3 { margin: 10px 0 0; }
.v2-why { margin-top: 18px; }
.v2-why p:last-child { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.v2-practitioner { margin: 12px 0 0; font-size: 15px; line-height: 1.55; font-style: italic; color: var(--text); }
.v2-practitioner-by { font-style: normal; color: var(--muted); }
.v2-practitioner-by a { color: var(--muted); }
.v2-also {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 0;
  font: 700 13px/1.4 var(--sans);
  color: var(--muted);
}
.v2-also::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.v2-more .t-body { flex: 1; min-width: 0; }
.v2-more .t-line { display: block; padding: 11px 0 10px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.v2-more .t-why { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
[data-shape="v2"] .v2-more .t-item:first-of-type { border-top: 0; padding-top: 12px; }

/* ---- compact subscribe: the one white card left outside the skim ---- */
[data-shape="v2"] .subscribe-compact {
  border: 1px solid var(--v2-card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* ---- 02 Try this at work (green): prompt block + web-only Copy ---- */
.v2-pattern-card .v2-label { margin-bottom: 6px; color: var(--sec-accent); }
.v2-pattern-card h3 { margin: 0 0 8px; font: 700 22px/1.2 var(--display); color: var(--ink); }
.v2-pattern-card > p { margin: 0; line-height: 1.55; }
.v2-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.5; }
.v2-steps li::marker { color: var(--sec-accent); font-weight: 700; }
.v2-prompt-wrap { margin-top: 14px; }
.v2-prompt {
  margin: 0;
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font: 500 13.5px/1.6 var(--v2-prompt-font);
  color: var(--ink);
}
.v2-copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid var(--sec-accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: 700 15px/1.2 var(--sans);
  color: var(--sec-accent);
  cursor: pointer;
}
.v2-copy[hidden] { display: none; }
.v2-copy[data-state="copied"]::before { content: "✓\00a0"; }
.v2-copy { transition: transform 120ms ease-out; }
.v2-copy:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .v2-copy { transition: none; } .v2-copy:active { transform: none; } }
@media (hover: hover) and (pointer: fine) { .v2-copy:hover { background: #f5fbf7; } }
.v2-copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.v2-pattern-card .v2-watch { margin-top: 14px; font-size: 15px; color: var(--muted); }
.v2-watch b { color: var(--ink); }

/* ---- 03 Explained like you're busy (blue tint), dark text ---- */
.v2-learn-card { color: var(--text); }
.v2-learn-card h3 { margin: 0; font: 700 clamp(24px, 3.4vw, 30px)/1.12 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.v2-short-p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.v2-short-p b { color: var(--ink); }
.v2-learn-figure { margin: 18px 0 0; }
.v2-diagram-link { display: block; border-radius: var(--radius-md); cursor: zoom-in; }
.v2-learn-figure .explainer-visual { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: var(--radius-md); mix-blend-mode: multiply; }
.v2-deeper { margin-top: 14px; border-top: 1px solid var(--sec-rule); }
.v2-deeper summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-top: 8px;
  list-style: none;
  cursor: pointer;
  font: 700 16px/1.4 var(--sans);
  color: var(--brand-hover);
}
.v2-deeper summary::-webkit-details-marker { display: none; }
.v2-deeper summary::after { content: "→"; transition: transform 160ms ease-out; }
.v2-deeper[open] summary::after { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .v2-deeper summary::after { transition: none; } }
@media (hover: hover) and (pointer: fine) { .v2-deeper summary:hover { text-decoration: underline; text-underline-offset: 4px; } }
.v2-learn-card a:focus-visible,
.v2-deeper summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.v2-deeper-body { padding: 4px 0 6px; }
.v2-deeper-body .explainer-block .eb-label { font: 700 11px/1.4 var(--sans); letter-spacing: 0.08em; color: var(--brand-hover); }
.v2-deeper-body .explainer-block p { color: var(--text); }

/* ---- 04 Your turn (cream/coral): poll, yesterday, reply; links line ---- */
[data-shape="v2"] .poll-q { margin-top: 0; }
[data-shape="v2"] .v2-turn .poll-choices button { background: var(--surface); }
/* Confirm stays collapsed until an option is picked (poll.js adds
   .is-selected), so the disabled button is never shown at rest. The 0fr to 1fr
   row reveal avoids a jump; without :has() the old always-visible button
   remains. poll.js sets [hidden] once the vote is recorded. */
.poll-confirm-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows 200ms ease-out, opacity 200ms ease-out, visibility 0s 200ms; }
.poll-confirm-wrap > div { overflow: hidden; }
.poll:has(.poll-choices .is-selected) .poll-confirm-wrap { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition: grid-template-rows 200ms ease-out, opacity 200ms ease-out; }
@supports not selector(:has(*)) { .poll-confirm-wrap { grid-template-rows: 1fr; visibility: visible; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .poll-confirm-wrap, .poll:has(.poll-choices .is-selected) .poll-confirm-wrap { transition: none; } }
.poll-confirm-wrap .poll-confirm { margin: 12px 0 2px; }
.v2-yesterday { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.v2-reply { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--sec-rule); font-size: 16px; line-height: 1.5; }
.v2-reply span { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.v2-more-today { margin-top: var(--v2-gap-out); font-size: 16px; line-height: 1.5; color: var(--text); }
.v2-more-today a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--brand-hover);
  text-decoration-color: var(--v2-tint-border);
  text-underline-offset: 4px;
}
[data-shape="v2"] .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- poll widget (assets/poll.js) ---- */
/* ============ topical poll (Weeks 2-3, item 11; pairs with assets/poll.js) ============ */
/* Mirrors the .survey block. Tokens from signal-sense-kit.css :root
   (there is no --accent token; --brand is the accent). */
.poll:not(.v2-section) {
  margin-top: var(--section-gap, 32px);
  scroll-margin-top: 24px;
}
.poll-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 10px 0 16px;
}
.poll-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poll-choices button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--text);
  background: var(--surface-subtle);
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
}
@media (hover: hover) {
  .poll-choices button:hover:not(.is-selected):not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
  }
}
.poll-choices button:focus-visible,
.poll-confirm:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.poll-choices button:disabled {
  cursor: default;
  opacity: 0.6;
}
.poll-choices button.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hover);
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.poll-choices button.is-selected::before {
  content: "✓ ";
}
.poll-confirm {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  min-height: 44px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
}
.poll-confirm:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.poll-confirm:disabled {
  cursor: default;
  opacity: 0.5;
}
.poll-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.poll-results[hidden] {
  display: none;
}
.poll-result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.poll-result-label {
  font: 600 14px/1.35 var(--sans);
  color: var(--text);
}
.poll-result.is-mine .poll-result-label {
  color: var(--brand-hover);
}
.poll-result-count {
  flex: none;
  font: 600 12px/1.3 var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.poll-bar {
  height: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.poll-bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}
.poll-result.is-mine .poll-bar-fill {
  background: var(--brand);
}
.poll-status {
  min-height: 0;
  margin: 12px 0 0;
  font: 600 13px/1.5 var(--mono);
  color: var(--muted);
}
.poll-status:empty {
  margin: 0;
}
.poll-status[data-state="success"] {
  color: var(--success);
}
.poll-status[data-state="error"] {
  color: var(--error);
}
