/* ========================================================================
   learn-inner.css — refined typography & information structure for each pane
   Overrides + augments learn.css. Apply last.
   ======================================================================== */

/* ---------- Pane head: subtler eyebrow, larger title, paper rule ---------- */
.pane-head {
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: end;
}
.pane-head .eyebrow {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}
.pane-head h2 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.pane-head .lede {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--muted);
  max-width: 64ch;
}

/* ==================================================
   SUMMARY — turn h2 numbered headings into big serif markers
   ================================================== */

/* Let the summary card fill the full pane width — the original 780px
   max-width left a large gap on the right while pane-head took full width.
   Drop the max-width here and override the one set in learn.css. */
.summary-pane .summary-content {
  padding: 64px 64px 72px;
  font-size: 16.5px;
  line-height: 1.75;
  max-width: none;
}
.summary-content h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--rule);
}
.summary-content > blockquote:first-of-type {
  background: transparent;
  border: none;
  padding: 0;
  margin: -6px 0 28px;
  color: var(--muted);
  font-size: 14.5px;
  border-left: 2px solid var(--rule);
  padding-left: 18px;
  border-radius: 0;
}
.summary-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 56px 0 10px;
  padding-left: 0;
  position: relative;
  line-height: 1.3;
}
.summary-content h2::before {
  /* remove the small dot */
  display: none;
}
/* Number-style oversize counter — works for "1. ..." style headings */
.summary-content {
  counter-reset: principle;
}
.summary-content h2 {
  counter-increment: principle;
}
.summary-content h2::after {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  right: 100%;
  margin-right: 22px;
  top: 0.18em;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .summary-content h2::after { position: static; display: inline-block; margin: 0 10px 0 0; }
}
.summary-content p { font-size: 16px; color: var(--ink-2); margin: 12px 0; }
.summary-content strong { color: var(--ink); font-weight: 600; }
.summary-content blockquote {
  margin: 18px 0 24px;
  padding: 14px 18px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.summary-content blockquote p { margin: 0; }
.summary-content blockquote code {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  margin: 2px 4px 2px 0;
  display: inline-block;
}

/* ==================================================
   TACTICS — refined card with structured sections
   ================================================== */

.tactic-section, .ce-section-group {
  margin-bottom: 40px;
}
.tactic-section > h3, .ce-section-group > h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: none;
  display: flex; align-items: baseline; gap: 10px;
}
.tactic-section > h3::before, .ce-section-group > h3::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--muted-2);
}

.tactic-card, .ce-card {
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-1);
}
.tactic-card > summary, .ce-card > summary {
  padding: 18px 26px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  gap: 14px;
}
.tactic-card > summary::after, .ce-card > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  width: 24px; text-align: center;
  transition: transform var(--t-base) var(--ease-spring);
}
.tactic-card[open] > summary::after, .ce-card[open] > summary::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--accent);
}
.tac-stars, .ce-stars { font-size: 12px; }
.tac-id {
  font-size: 9.5px;
  padding: 3px 8px;
  text-transform: none;
}

.tac-body, .ce-body {
  padding: 22px 28px 28px;
  gap: 18px;
}
.tac-oneliner {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 4px 0 8px;
  border-radius: 0;
  letter-spacing: -0.012em;
}

.tac-section h5, .ce-section h5 {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.tac-section h5::before, .ce-section h5::before {
  content: "▸";
  margin-right: 6px;
  color: var(--muted-2);
}

.tac-section, .ce-section {
  font-size: 14px;
  line-height: 1.65;
}
.tac-section ul, .ce-section ul { padding-left: 18px; }
.tac-section li, .ce-section li { margin-bottom: 6px; }
.tac-section code, .ce-section code {
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.tac-section .tac-fields {
  font-size: 11.5px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  color: var(--ink-2);
}

.tac-grid, .ce-grid {
  gap: 20px;
}

.tac-plug summary {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.tac-plug summary::before { content: "{ "; opacity: 0.5; }
.tac-plug summary::after { content: " }"; opacity: 0.5; }
.tac-plug pre {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  font-size: 11.5px;
  line-height: 1.6;
  border-radius: 10px;
  margin-top: 10px;
}
[data-theme="dark"] .tac-plug pre {
  background: #0a0908;
}

/* ==================================================
   COUNTER-EXAMPLES — bigger ✗/✓ blocks
   ================================================== */

.ce-card > summary {
  position: relative;
}
.ce-sev {
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ce-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ce-wrong, .ce-right {
  padding: 16px 18px 18px;
  border-radius: 12px;
  border-left: none;
  position: relative;
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.ce-wrong {
  background: rgba(197, 64, 10, 0.06);
  box-shadow: inset 0 0 0 1px rgba(197, 64, 10, 0.15);
}
.ce-right {
  background: rgba(31, 138, 91, 0.06);
  box-shadow: inset 0 0 0 1px rgba(31, 138, 91, 0.15);
}
.ce-wrong::before, .ce-right::before {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ce-wrong::before {
  content: "✕";
  background: var(--warn);
  color: white;
}
.ce-right::before {
  content: "✓";
  background: var(--good);
  color: white;
}
.ce-wrong h5, .ce-right h5 { display: none; }

.ce-quote blockquote {
  background: var(--paper-2);
  border-left: 3px solid var(--star);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  padding: 12px 16px;
  position: relative;
  font-style: normal;
  color: var(--ink-2);
}
.ce-quote blockquote::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--star);
  position: absolute;
  left: 6px; top: -6px;
  opacity: 0.5;
}

.ce-inval {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px dashed var(--rule);
  color: var(--ink-2);
  letter-spacing: 0;
}

/* ==================================================
   BESTIARY — portrait-style cards with initial avatar
   ================================================== */

.bestiary-section {
  margin-bottom: 44px;
}
.bestiary-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--muted);
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 16px;
}
.bestiary-section h3::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--muted-2);
  display: inline-block;
}
.bestiary-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.bestiary-card {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  overflow: visible;
}
.bestiary-card::before {
  /* turn the side bar into a corner dot */
  width: 0; height: 0;
}
.bestiary-card .label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--c, var(--accent));
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bestiary-card .label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c, var(--accent)) 15%, transparent);
}
.bestiary-card .name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.bestiary-card .behavior {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.bestiary-card .warning {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.bestiary-card .warning::before {
  content: "!";
  position: absolute;
  left: 12px; top: 11px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--warn);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.bestiary-card .warning strong { display: none; }
.bestiary-card .quote {
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding: 12px 0 0;
  font-style: italic;
  position: relative;
  padding-left: 16px;
}
.bestiary-card .quote::before {
  content: "”";
  font-family: Georgia, serif;
  font-size: 28px;
  position: absolute;
  left: -2px; top: 8px;
  color: var(--muted-2);
  line-height: 0.5;
}

/* ==================================================
   TWEET LIST — refined cards
   ================================================== */
.tweet-card {
  padding: 30px 34px 26px;
  border-radius: var(--r-lg);
}
.tweet-meta {
  margin-bottom: 16px;
  font-size: 11.5px;
}
.tweet-meta .stars { font-size: 11px; }
.tweet-meta .type-pill {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tweet-meta .contrarian {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.tweet-text {
  font-size: 15.5px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
.tweet-insight {
  margin-top: 20px;
  padding: 16px 20px 18px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.tweet-insight .label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.tweet-tags .tag-mini {
  font-size: 10.5px;
  padding: 3px 9px;
  letter-spacing: -0.005em;
}
.tweet-footer {
  margin-top: 18px;
  padding-top: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
  gap: 16px;
}
.tweet-footer .read-more {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--t-quick) var(--ease-out);
}
.tweet-card:hover .read-more { gap: 8px; }

/* ==================================================
   READER — hero quote, framed insight, more whitespace
   ================================================== */
.reader-body { padding: 80px 32px 180px; max-width: 700px; }
.reader-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.reader-meta .stars { font-size: 12px; letter-spacing: 1px; }
.reader-quote {
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 48px;
  padding-left: 0;
}
.reader-quote::before {
  font-size: 4em;
  top: -0.5em;
  left: -0.6em;
  opacity: 0.5;
}
@media (max-width: 760px) {
  .reader-quote { font-size: 22px; }
}

.reader-insight {
  padding: 32px 36px;
  border-radius: 16px;
  margin: 36px 0 24px;
}
.reader-insight .label { margin-bottom: 14px; font-size: 11.5px; }
.reader-insight .body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.reader-takeaway {
  padding: 28px 32px;
  border-radius: 16px;
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.7;
}
.reader-takeaway .label { font-size: 11.5px; margin-bottom: 12px; }
.reader-section h4 {
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

/* ==================================================
   Controls — sticker-like
   ================================================== */
.controls {
  padding: 20px 22px;
  border-radius: var(--r-lg);
}
.chip {
  font-size: 12px;
  padding: 5px 12px;
  letter-spacing: -0.005em;
}
.chip-label {
  letter-spacing: 0.14em;
  font-size: 10.5px;
}
