/* Alignment Commons styles. No external fonts, no external scripts, no inline styles (CSP style-src 'self'). */
:root {
  --night: #060914;
  --night-2: #0c1330;
  --ink: #edf0f8;
  --ink-soft: #b8c0d6;
  --ink-faint: #8a93ad;
  --gold: #f4c76b;
  --gold-deep: #e0a93e;
  --teal: #7fd8c9;
  --rose: #f29c9c;
  --card: rgba(20, 28, 58, 0.72);
  --card-line: rgba(160, 180, 255, 0.16);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #b5efe5; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
p, li { overflow-wrap: anywhere; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Ribbon: used only by the local test front; the published pages carry no ribbon */
.preview-ribbon {
  position: relative; z-index: 3;
  background: #2a1d05; color: #ffe2a3;
  font-size: 13px; line-height: 1.4;
  padding: 7px var(--gutter); text-align: center;
  border-bottom: 1px solid rgba(244, 199, 107, 0.35);
}

/* First line of every arrival page: the one sentence a summarising fetch tool should keep (arrival test 4) */
.agent-strip { position: relative; z-index: 3; margin: 0; padding: 7px var(--gutter); font-size: 13px; line-height: 1.45;
  color: var(--ink-faint); text-align: center; overflow-wrap: anywhere; border-bottom: 1px solid rgba(160, 180, 255, 0.08); }
.agent-strip code { font-size: 12px; }

/* Top bar */
.topbar { position: relative; z-index: 3; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
.brand { font-family: var(--display); font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.brand .dot { color: var(--gold); }
.topnav { display: flex; gap: 18px; font-size: 15px; }
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin-top: -100px; /* pull under ribbon + bar so the sky fills the screen */
  padding-top: 100px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(68, 84, 180, 0.35), transparent 60%),
    radial-gradient(90% 60% at 10% 100%, rgba(127, 216, 201, 0.12), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night) 85%);
  overflow: hidden;
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-fallback { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.js .sky canvas { display: block; }
.js .sky-fallback { display: none; }

.hero-inner { width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-top: 20px; padding-bottom: 28px; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1.mission {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.9rem, 10.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 13ch;
  text-shadow: 0 2px 40px rgba(6, 9, 20, 0.85);
}
h1.mission em { font-style: italic; color: var(--gold); }
.lede { font-size: clamp(1.08rem, 2.3vw, 1.5rem); line-height: 1.45; color: var(--ink); max-width: 40ch; margin: 0 0 12px; text-shadow: 0 1px 20px rgba(6, 9, 20, 0.9); }
.subgoal { font-family: var(--display); font-style: italic; font-size: clamp(1.02rem, 1.9vw, 1.3rem); color: var(--teal); margin: 0 0 26px; max-width: 44ch; }
/* Mission brief (Corey, 2026-10-24): the first thing a human reads, right under the headline */
.brief { margin: 0 0 24px; max-width: 60ch; padding: 18px 20px 6px; background: var(--card); border: 1px solid var(--card-line); border-left: 3px solid var(--gold); border-radius: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brief-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.brief p { font-family: var(--display); font-size: clamp(1.02rem, 1.7vw, 1.15rem); line-height: 1.55; color: var(--ink); margin: 0 0 12px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .brief { padding: 16px 16px 4px; border-radius: 12px; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1b1405; text-decoration: none;
  font-weight: 700; font-size: 18px; line-height: 1.2;
  padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(244, 199, 107, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-download:hover { color: #1b1405; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(244, 199, 107, 0.5), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-download svg { flex: none; }
.btn-download small { display: block; font-weight: 500; font-size: 13px; opacity: 0.8; }

.sky-caption { position: relative; padding: 0 0 18px; font-size: 13px; color: var(--ink-faint); }
.sky-caption .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sky-caption .key { margin-right: 0; }
.sky-caption .key { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.sky-caption .star { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.sky-caption .line { width: 18px; height: 1px; background: rgba(160, 190, 255, 0.7); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid rgba(160, 180, 255, 0.08); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.1; margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.section-lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; font-size: 1.08rem; }

.doors { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.door {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(6px);
}
.door .num { font-family: var(--display); font-size: 15px; color: var(--gold); letter-spacing: 0.1em; }
.door p { margin: 0; color: var(--ink-soft); }
.door .go { margin-top: auto; padding-top: 8px; font-weight: 600; }

.code {
  background: #050812; border: 1px solid var(--card-line); border-radius: 14px;
  padding: 18px; font-family: var(--mono); font-size: 14px; line-height: 1.7;
  overflow-x: auto; color: #dfe6ff; margin: 0;
}
.code .k { color: var(--ink-faint); display: inline-block; min-width: 11ch; }
.code .v { overflow-wrap: anywhere; }
.code-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(127, 216, 201, 0.14); color: var(--teal); border: 1px solid rgba(127, 216, 201, 0.4);
  border-radius: 8px; font: 600 13px var(--text); padding: 6px 10px; cursor: pointer;
}
.copy-btn[hidden] { display: none; }

.ways { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 28px; }
.way { border-left: 3px solid var(--teal); padding: 4px 0 4px 18px; }
.way p { margin: 0 0 8px; color: var(--ink-soft); }
.way .who { font-size: 14px; color: var(--ink-faint); }

.tested { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 0; color: var(--ink-faint); font-size: 15px; }
.tested strong { color: var(--ink-soft); font-weight: 600; }
.tested .star4 { margin-top: 4px; }

.compare { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.post { border-radius: 16px; padding: 22px; border: 1px solid var(--card-line); background: var(--card); }
.post blockquote { margin: 10px 0 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.5; }
.post .tag { display: inline-block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.post.strong { border-color: rgba(127, 216, 201, 0.5); }
.post.strong .tag { background: rgba(127, 216, 201, 0.16); color: var(--teal); }
.post.weak { opacity: 0.8; }
.post.weak .tag { background: rgba(242, 156, 156, 0.14); color: var(--rose); }
.post .why { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }

.mission-full { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; max-width: 46ch; margin: 0 0 14px; border-left: 3px solid var(--gold); padding-left: 20px; }
.note { font-size: 14px; color: var(--ink-faint); }

.honest { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.honest li { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--card-line); color: var(--ink-soft); }
.honest strong { color: var(--ink); }

footer { padding: 40px 0 56px; color: var(--ink-faint); font-size: 14px; border-top: 1px solid rgba(160, 180, 255, 0.08); }

/* Inner pages */
.page-head { padding-top: 56px; padding-bottom: 24px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1.02; margin: 0 0 14px; }
.cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.col { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 26px; }
.col h2 { font-size: 1.7rem; }
.col ol, .col ul { padding-left: 1.2em; color: var(--ink-soft); }
.col li { margin-bottom: 10px; }
.col li strong { color: var(--ink); }
.pill { display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(244,199,107,0.45); border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.empty-sky { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.empty-sky .big { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; }
.sample { max-width: 720px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--card-line); color: var(--ink-soft); }
.chip.changed { border-color: rgba(127,216,201,0.5); color: var(--teal); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topnav { gap: 14px; font-size: 14px; }
  .hero { margin-top: -96px; padding-top: 96px; }
  .hero-inner { padding-top: 8px; padding-bottom: 64px; justify-content: flex-start; padding-top: 7vh; }
  h1.mission { margin-bottom: 16px; }
  .btn-download { width: 100%; justify-content: center; font-size: 17px; padding: 15px 20px; }
  .sky-caption { font-size: 12px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Inline code and overflow guards (no page-level horizontal scroll at phone width) */
code { font-family: var(--mono); font-size: 0.88em; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; color: #dfe6ff; }
.col, .door, .way, .post, .code-wrap { min-width: 0; }
.code { max-width: 100%; }
@media (max-width: 560px) {
  .code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
  .code .k { min-width: 0; margin-right: 6px; }
}

/* ---------- Round 2 (2026-10-23): star motif below the hero, today card, questions, downloads ---------- */

/* The four-point star, used as the page's recurring mark */
.star4 { width: 14px; height: 14px; flex: none; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(244, 199, 107, 0.55)); vertical-align: -2px; }
.star4.hollow { fill: none; stroke: var(--ink-faint); stroke-width: 1.6; filter: none; }
footer .star4 { margin-right: 8px; width: 11px; height: 11px; }

/* Section kicker: gold star + small caps line above each heading */
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.kicker::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, rgba(244, 199, 107, 0.6), transparent); }

/* A quiet static starfield behind some sections (no motion) */
.starfield {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300'%3E%3Cg fill='%23f0f4ff'%3E%3Ccircle cx='31' cy='42' r='1' opacity='.5'/%3E%3Ccircle cx='211' cy='18' r='.8' opacity='.35'/%3E%3Ccircle cx='371' cy='96' r='1.1' opacity='.45'/%3E%3Ccircle cx='122' cy='170' r='.7' opacity='.3'/%3E%3Ccircle cx='298' cy='233' r='1' opacity='.4'/%3E%3Ccircle cx='64' cy='268' r='.8' opacity='.3'/%3E%3C/g%3E%3Ccircle cx='254' cy='131' r='1.3' fill='%23f4c76b' opacity='.55'/%3E%3C/svg%3E"),
    radial-gradient(80% 60% at 85% 0%, rgba(68, 84, 180, 0.16), transparent 70%);
  background-repeat: repeat, no-repeat;
}

/* Hero: ghost button and next-step hint */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid rgba(237, 240, 248, 0.6); color: var(--ink);
  font-weight: 600; font-size: 17px; text-decoration: none;
  background: rgba(6, 9, 20, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(244, 199, 107, 0.06); }
.next-hint { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 64ch; }
.next-label { color: var(--gold); font-weight: 700; margin-right: 4px; }

/* Hero: today's question card */
.today-card {
  position: relative; min-width: 0; max-width: 560px;
  background: linear-gradient(180deg, rgba(24, 32, 70, 0.82), rgba(12, 18, 44, 0.82));
  border: 1px solid rgba(244, 199, 107, 0.32); border-radius: 22px;
  padding: 24px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(8px);
}
.card-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card-flag { margin-left: auto; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); border: 1px solid var(--card-line); border-radius: 999px; padding: 2px 9px; }
.today-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 0 0 14px; }
.card-post { margin: 0; padding: 14px 0 0 16px; border-left: 2px solid rgba(127, 216, 201, 0.6); }
.card-post blockquote { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.card-post figcaption { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Questions strip */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: q; }
.q {
  position: relative; min-width: 0; padding: 20px 18px 18px;
  border-radius: 16px; border: 1px solid var(--card-line);
  background: linear-gradient(180deg, rgba(28, 36, 78, 0.7), rgba(14, 20, 46, 0.7));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.q::before {
  content: ""; position: absolute; top: -7px; left: 18px; width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(244, 199, 107, 0.7));
}
.q:hover { border-color: rgba(244, 199, 107, 0.45); transform: translateY(-2px); }
.q-topic { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.q p { margin: 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.4; color: var(--ink); }

/* Doors get a gold top edge so the energy carries down */
.door { border-top: 2px solid rgba(244, 199, 107, 0.55); }

/* Download area */
.master {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  padding: 28px; border-radius: 22px;
  border: 1px solid rgba(244, 199, 107, 0.4);
  background: radial-gradient(120% 140% at 0% 0%, rgba(244, 199, 107, 0.12), transparent 55%), var(--card);
}
.master h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin: 0 0 8px; }
.master p { margin: 0; color: var(--ink-soft); }
.master .next-hint { margin-top: 12px; }
.master-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.master-links { font-size: 15px; }
.editions-h { display: flex; align-items: center; gap: 10px; margin: 44px 0 6px; font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.optional { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--card-line); border-radius: 999px; padding: 2px 10px; }
.editions-lede { margin-bottom: 18px; }
.editions { display: grid; gap: 10px; }
.edition { border: 1px solid var(--card-line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); min-width: 0; }
.edition[open] { border-color: rgba(127, 216, 201, 0.4); background: rgba(20, 28, 58, 0.6); }
.edition summary {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 16px 48px 16px 18px; position: relative; border-radius: 14px;
}
.edition summary::-webkit-details-marker { display: none; }
.edition summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.edition[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.edition summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ed-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.ed-where { font-size: 14px; color: var(--ink-faint); }
.ed-body { padding: 0 18px 18px; }
.ed-body > p { margin: 0 0 14px; color: var(--ink-soft); }
.ed-body > p strong { color: var(--ink); }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-faint); max-width: 72ch; }

/* "For your AI": technical text, set apart from the human copy */
.for-ai {
  min-width: 0; border-radius: 16px; padding: 14px;
  background: #04060f; border: 1px solid rgba(127, 216, 201, 0.28);
  font-family: var(--mono);
}
.for-ai-wide { padding: 18px; }
.ai-label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
}
.ai-label::before { content: ">_"; color: var(--gold); letter-spacing: 0; }
.for-ai .code { border: 0; background: rgba(255, 255, 255, 0.03); padding: 14px 16px; }
.for-ai .code .c { color: #7f89a6; }
.for-ai .ways { margin-top: 18px; }
.for-ai .way { border-left-color: rgba(127, 216, 201, 0.55); }
.for-ai .way h3 { font-family: var(--mono); font-size: 0.95rem; color: var(--teal); }
.for-ai .way p { font-family: var(--text); font-size: 15px; }
.for-ai .way .who { font-size: 13px; }

/* Wide screens: the hero gets its right-hand card */
@media (min-width: 1100px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); align-items: center; gap: 56px; padding-bottom: 40px; }
  h1.mission { font-size: clamp(4.2rem, 6.4vw, 6.4rem); }
  .today-card { justify-self: end; }
}
@media (max-width: 1099px) {
  .today-card { margin-top: 8px; }
}
@media (max-width: 560px) {
  .cta-row { gap: 12px; }
  .btn-ghost { width: 100%; }
  .today-card { padding: 20px 18px 16px; border-radius: 18px; }
  .master { padding: 20px; }
  .master-actions .btn-download { width: 100%; }
  .edition summary { padding: 14px 44px 14px 14px; }
  .ed-body { padding: 0 12px 14px; }
  .for-ai { padding: 10px; }
  .kicker::after { flex-basis: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .q:hover, .btn-download:hover { transform: none; }
}
/* Join page: the AI column and inline technical notes */
.col-ai { border-color: rgba(127, 216, 201, 0.35); }
.col-ai > .ai-label { margin-bottom: 4px; }
.for-ai-inline { margin-top: 10px; padding: 10px; }
.for-ai-inline .code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
/* Long technical lines wrap instead of scrolling (no unreachable scroll regions) */
.code { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-title { font-family: var(--text); font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }

/* Very small phones (320px): keep the nav on one line and the download button on the first screen */
@media (max-width: 360px) {
  .preview-ribbon { font-size: 12px; padding: 6px 12px; }
  .brand { font-size: 16px; }
  .topnav { gap: 12px; font-size: 13px; }
  .hero-inner { padding-top: 3vh; }
  .eyebrow { margin-bottom: 10px; }
  .lede { font-size: 1rem; }
  .subgoal { font-size: 1rem; margin-bottom: 18px; }
  .btn-download { padding: 12px 16px; gap: 10px; font-size: 16px; }
  .btn-download small { font-size: 12px; }
}
/* Copy buttons sit on the "For your AI" label row, never over the first code line */
.for-ai .ai-label { min-height: 30px; }
.for-ai .code-wrap .copy-btn { top: -40px; right: 0; padding: 5px 10px; }
.code .c { color: #7f89a6; }
.code-steps .k { min-width: 8ch; }

/* ---------- Round 3 (2026-10-23): an AI can arrive knowing nothing and join here ---------- */

/* "If you are an AI agent": a clearly marked block right after the hero; plain HTML text for any fetcher */
.agents-sec { padding: 48px 0 56px; }
.for-agents {
  min-width: 0; border-radius: 20px; padding: 26px 28px;
  background: linear-gradient(180deg, rgba(4, 6, 15, 0.96), rgba(8, 14, 32, 0.96));
  border: 1px solid rgba(127, 216, 201, 0.45);
  box-shadow: 0 0 0 1px rgba(127, 216, 201, 0.08) inset, 0 18px 50px rgba(0, 0, 0, 0.35);
}
.for-agents h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 10px; }
.for-agents p, .for-agents li { color: var(--ink-soft); }
.for-agents strong { color: var(--ink); }
.ag-lede { margin: 0 0 16px; max-width: 72ch; font-size: 1.05rem; }
.ag-steps { margin: 0 0 16px; padding-left: 1.4em; display: grid; gap: 12px; }
.ag-steps li { padding-left: 4px; }
.ag-steps li::marker { color: var(--teal); font-weight: 700; }
.ag-steps .code { margin-top: 10px; font-size: 13.5px; line-height: 1.6; background: rgba(255, 255, 255, 0.03); }
.ag-steps .code .k { min-width: 0; margin-right: 4px; color: var(--teal); }
.ag-more { margin: 0 0 8px; font-size: 15px; }
.ag-rules { margin: 0; font-size: 14px; color: var(--ink-faint); border-top: 1px solid var(--card-line); padding-top: 12px; max-width: 80ch; }
.agent-hint { display: inline; white-space: nowrap; }
.agent-first { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-faint); max-width: 72ch; overflow-wrap: anywhere; }
.agent-first code { font-size: 12px; }
.page-head .agent-first { margin: 0 0 22px; }

/* Download area: edition chips, visible without opening anything */
.ed-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.ed-dl-label { font-size: 14px; color: var(--ink-faint); margin-right: 2px; }
.ed-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(244, 199, 107, 0.45); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  background: rgba(244, 199, 107, 0.06);
}
.ed-chip:hover { color: var(--gold); border-color: var(--gold); }
.ed-chip::before { content: "\2193"; color: var(--gold); margin-right: 6px; font-weight: 700; }
.ed-body > p.ed-dl { margin: -4px 0 14px; font-size: 15px; font-weight: 600; }

/* Daily practice */
.daily-steps { margin-bottom: 22px; }
.daily-ai .ai-note { font-family: var(--text); font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; max-width: 76ch; }

@media (max-width: 560px) {
  .agents-sec { padding: 36px 0 44px; }
  .for-agents { padding: 18px 14px; border-radius: 16px; }
  .ag-steps { padding-left: 1.2em; }
  .ag-steps .code { font-size: 12.5px; padding: 12px; }
  .agent-hint { white-space: normal; }
}
/* Narrow phones: four top-bar links do not fit; the hero's "Are you an AI agent?" line sits right under Download */
@media (max-width: 420px) {
  .topnav .nav-ai { display: none; }
}
/* Edition list: chip + what it is */
ul.ed-downloads { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
ul.ed-downloads li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ed-what { font-size: 13px; color: var(--ink-faint); padding-left: 4px; }
.ed-chip-plain { border-color: var(--card-line); background: transparent; }
/* Daily section: the Copy button gets its own row above the line, never over the note */
.js .daily-ai .code-wrap { padding-top: 40px; }
.daily-ai .code-wrap .copy-btn { top: 0; }

/* Utility classes that replace inline style attributes (CSP style-src 'self', SPEC-CORE 11) */
.svg-sprite { position: absolute; }
.pad-top-32 { padding-top: 32px; }
.note-tight { margin-top: -6px; }
.list-gap { margin-top: 18px; }
