/* ─────────────────────────────────────────────────────────────────────────
   CodeRunShip design system
   Tokens + layout, ported from the Claude Design handoff (WebsiteDesign.zip).
   Dark is the default theme; light is opt-in via <html data-theme="light">.
   ───────────────────────────────────────────────────────────────────────── */

:root,
:root[data-theme="dark"] {
  --bg: #0b0d10;
  --panel: #0e1014;
  --panel2: #161a20;
  --border: #1e2229;
  --text: #f2f4f6;
  --body: #e8eaed;
  --muted: #8b929c;
  --accent: #ffb224;
  --accent-hov: #ffcd6b;
  --brand: #ffb224;       /* fixed amber for buttons/logo regardless of theme */
  --on-brand: #0b0d10;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --stripe: repeating-linear-gradient(-45deg, var(--panel2) 0 12px, var(--panel) 12px 24px);
  --stripe-lg: repeating-linear-gradient(-45deg, var(--panel2) 0 14px, var(--panel) 14px 28px);
  --stripe-sm: repeating-linear-gradient(-45deg, var(--panel2) 0 10px, var(--panel) 10px 20px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf9f7;
  --panel: #ffffff;
  --panel2: #efede8;
  --border: #e3e0da;
  --text: #16191f;
  --body: #23272e;
  --muted: #6b7280;
  --accent: #9a6200;
  --accent-hov: #7a4e00;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  transition: background .25s, color .25s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); }
img { max-width: 100%; display: block; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
.site-main { flex: 1; display: flex; flex-direction: column; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { display: none !important; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; width: 100%; padding-left: 48px; padding-right: 48px; }
.page { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.page-narrow { max-width: 900px; }
.page-dashboard { max-width: 1100px; }
.page-about { gap: 48px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-products, .grid-videos { gap: 24px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-5 { display: flex; flex-direction: column; gap: 5px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between.baseline { align-items: baseline; }
.row-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; }
.row-links a { font-family: var(--mono); }
.mt-auto { margin-top: auto; }
.max-640 { max-width: 640px; }
.s-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

/* ── Type scale ─────────────────────────────────────────────────────────── */
.h-34 { font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1.15; }
.h-30 { font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.h-22 { font-size: 22px; font-weight: 700; color: var(--text); }
.h-20 { font-size: 20px; font-weight: 700; color: var(--text); }
.h-18 { font-size: 18px; font-weight: 700; color: var(--text); }
.sub-15 { font-size: 15px; color: var(--muted); line-height: 1.6; }
.sub-14 { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sub-13 { font-size: 13px; color: var(--muted); line-height: 1.5; }
.t-15 { font-weight: 600; font-size: 15px; color: var(--text); }
.t-14 { font-weight: 600; font-size: 14px; color: var(--text); }
.t-13 { font-size: 13px; }
.t-12 { font-size: 12px; }
.t-11 { font-size: 11px; }
.t-10 { font-size: 10px; }
.ls-8 { letter-spacing: .08em; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .12em; }
.kicker.t-11 { font-size: 11px; letter-spacing: .1em; }
.kicker-muted { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.link-mono { font-family: var(--mono); font-size: 13px; }
.cta-13 { font-size: 13px; color: var(--accent); }
.price { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); }
.price-accent { font-size: 12px; color: var(--accent); }
.tag { font-size: 11px; letter-spacing: .08em; }
.tag-accent { color: var(--accent); }
.tag-muted { color: var(--muted); }

/* ── Buttons / inputs / chips ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; border-radius: 6px; border: 0; cursor: pointer;
  white-space: nowrap; line-height: 1.2; transition: background .15s, color .15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: #ffcd6b; color: var(--on-brand); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-sm.btn-primary { font-size: 12px; padding: 8px 16px; }
.site-header .btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 14px; padding: 13px 24px; }
.newsletter-form .btn { font-size: 13px; padding: 12px 20px; }
.input {
  font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 16px; min-width: 240px; outline: none;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--accent); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--border); color: var(--muted); background: transparent; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 48px; border-bottom: 1px solid var(--border); position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; align-items: center; gap: 4px; }
.brand-tri { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid var(--brand); }
.brand-bar { width: 4px; height: 18px; background: var(--text); }
.brand-word { font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.brand-run { color: var(--accent); }
.site-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; align-items: center; }
.site-nav a { color: var(--body); }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.nav-account { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-signin { font-size: 14px; color: var(--body); }
.nav-signin:hover { color: var(--accent); }
.theme-toggle { background: none; border: 0; font-size: 15px; color: var(--muted); cursor: pointer; padding: 4px; line-height: 1; user-select: none; }
.theme-toggle:hover { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 12px 6px; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--body); transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto; border-top: 1px solid var(--border); padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ── Home ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 72px; align-items: center;
}
.hero-title { font-size: 48px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text); text-wrap: pretty; }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-ctas .link-mono { font-size: 14px; padding: 13px 10px; }
.section-store { padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.section-newsletter { padding-bottom: 72px; }

/* ── Embeds / video tiles ───────────────────────────────────────────────── */
.embed { aspect-ratio: 16/9; border-radius: 10px; border: 1px solid var(--border); background: var(--stripe-lg); overflow: hidden; position: relative; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.embed-label { position: absolute; bottom: 10px; left: 12px; font-size: 11px; color: var(--muted); }
.play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,178,36,.9); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.play-tri { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #0b0d10; margin-left: 3px; }
.play-lg { width: 64px; height: 64px; }
.play-lg .play-tri { border-top-width: 11px; border-bottom-width: 11px; border-left-width: 18px; margin-left: 4px; }
.vthumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; border-radius: 8px; border: 1px solid var(--border); background: var(--stripe); overflow: hidden; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb .play { position: relative; }
.vthumb:hover .play { transform: scale(1.06); }
.vthumb-sm { border-radius: 6px; background: var(--stripe-sm); }
.vthumb-sm .play { display: none; }
.videos-featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.videos-featured .embed { border-radius: 10px; }
.upnext-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }

/* ── Cards / panels ─────────────────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--body); }
.card-link:hover { border-color: var(--muted); color: var(--body); }
.card.product { padding: 24px; gap: 14px; }
.card-sm { padding: 20px; gap: 6px; }
.card-title { font-weight: 700; font-size: 16px; color: var(--text); }
.card-title-17 { font-weight: 700; font-size: 17px; color: var(--text); }
.cover { border-radius: 6px; background: var(--stripe); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-110 { height: 110px; }
.cover-130 { height: 130px; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 28px 32px; }
.row-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter { padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { border: 1px dashed var(--border); border-radius: 8px; padding: 12px 16px; color: var(--muted); }

/* ── Blog list / post ───────────────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--border); color: var(--body);
}
.post-row:hover { color: var(--body); }
.post-row:hover .post-row-title { color: var(--accent); }
.post-row-title { font-weight: 700; font-size: 18px; color: var(--text); transition: color .15s; }
.post-row[hidden] { display: none; }
.pagination { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.pagination .page-number, .pagination .extend { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); }
.pagination .current { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.post { display: flex; flex-direction: column; gap: 28px; }
.post-head { display: flex; flex-direction: column; gap: 14px; }
.post-meta { font-size: 11px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-weight: 600; font-size: 14px; }
.post-nav-link.right { text-align: right; align-items: flex-end; }
.post-nav-link:hover { color: var(--accent); }

.prose { font-size: 16px; line-height: 1.75; color: var(--body); max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin-top: 2em; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-top: 1.6em; }
.prose h4 { font-size: 16px; font-weight: 700; color: var(--text); }
.prose p { margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--panel2); border-radius: 4px; padding: .1em .35em; }
.prose pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose figure.highlight { margin: 1.4em 0; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; }
.prose figure.highlight table { border-collapse: collapse; margin: 0; }
.prose figure.highlight pre { border: 0; padding: 0; background: none; }
.prose figure.highlight td { padding: 16px 18px; }
.prose figure.highlight .gutter { display: none; }
.prose img { border-radius: 8px; border: 1px solid var(--border); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--panel2); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }

/* Post content helpers (callout, wide tables) */
.prose .callout { margin: 1.6em 0; padding: 18px 20px; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 8px; background: var(--panel); font-size: 15px; }
.prose .callout .kicker { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .1em; }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose .table-wrap table { min-width: 560px; }
.post .embed { margin-top: 4px; }

/* ── About ──────────────────────────────────────────────────────────────── */
.about-lede { font-size: 17px; color: var(--body); line-height: 1.7; max-width: 640px; }
.creator { padding: 36px; display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center; }
.avatar { width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--border); background: var(--stripe-sm); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.progress { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: 3px; }
.lib-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 16px 20px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
.hide-mobile { }
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .hero-title { font-size: 40px; }
  .videos-featured { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .brand-word { font-size: 14px; }
  .brand-tri { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 12px; }
  .brand-bar { width: 3px; height: 14px; }
  .hide-mobile { display: none !important; }
  .nav-burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
  .page { padding-top: 28px; padding-bottom: 40px; gap: 28px; }
  .h-34 { font-size: 26px; }
  .hero { padding-top: 28px; padding-bottom: 28px; gap: 16px; }
  .hero-title { font-size: 28px; line-height: 1.15; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { padding: 14px; border-radius: 8px; }
  .hero-ctas .link-mono { text-align: center; padding: 12px; font-size: 13px; }
  .hero > .stack-20 { order: 0; }
  .hero > .embed { order: 1; }
  .hero > .stack-20 .hero-sub { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .section-store { padding-bottom: 40px; }
  .section-newsletter { padding-bottom: 40px; }
  .newsletter { padding: 22px 20px; }
  .newsletter-form { width: 100%; }
  .newsletter-form .input { flex: 1; min-width: 0; }
  .panel { padding: 20px; }
  .creator { grid-template-columns: 1fr; padding: 24px; justify-items: start; }
  .post-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .post-row-date { order: -1; }
  .card.product { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 16px; }
  .card.product .cover-130 { width: 64px; height: 64px; border-radius: 4px; }
  .card.product .cover-130 span { display: none; }
  .card.product .row-between { grid-column: 1 / -1; }
  .card.product .sub-13 { display: none; }
  .upnext-row { grid-template-columns: 100px 1fr; }
  .lib-row { grid-template-columns: 1fr auto; }
  .lib-row .t-11 { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ── Shipping soon (/dashboard/) + store teaser card ────────────────────── */
.card-soon { border-style: dashed; }
.card-soon .cover { background: var(--stripe-sm); }
.card-soon .cover .mono { letter-spacing: .12em; text-transform: uppercase; }

.terminal { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--body); }
.term-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.term-prompt { color: var(--accent); }
.term-ok { color: var(--accent); }
.term-wip { color: var(--muted); font-style: italic; }
.term-progress { flex: 1; max-width: 420px; height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; display: inline-block; }
.term-progress-bar { display: block; height: 100%; width: 62%; border-radius: 3px; background: var(--brand); animation: term-build 2.4s ease-in-out infinite alternate; }
.term-cursor { display: inline-block; width: 9px; height: 17px; background: var(--accent); animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-build { from { width: 46%; } to { width: 72%; } }
@keyframes term-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .term-progress-bar, .term-cursor { animation: none; }
}

/* ── Supporter callout (SupportCta.astro) ───────────────────────────────── */
.support-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; border-left: 3px solid var(--brand); }
.support-cta .sub-14 { max-width: 560px; }
.support-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.support-cta-inline { padding: 18px 24px; }
@media (max-width: 720px) {
  .support-cta { align-items: flex-start; flex-direction: column; }
}

/* ── Supporter area (/dashboard/) ───────────────────────────────────────── */
.sup-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 24px; }
.sup-hero .sub-15 { margin: 0 auto; }
.sup-hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.term-head { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.term-head .t-12 { margin-left: 8px; }
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--border); display: inline-block; }
.unlock { max-width: 720px; width: 100%; margin: 0 auto; }
.unlock-row { display: flex; gap: 12px; align-items: center; }
.unlock-row .input { flex: 1; letter-spacing: .08em; }
.unlock-hint a { color: var(--accent); }
.sup-welcome { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sup-next-card { display: flex; align-items: center; justify-content: center; text-align: center; }
.sup-code { display: flex; align-items: center; gap: 12px; }
.code-pill { font-size: 14px; letter-spacing: .1em; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 999px; padding: 9px 20px; cursor: pointer; font-weight: 700; }
.code-pill:hover { background: var(--accent-hov); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: 1fr; }
  .unlock-row { flex-direction: column; align-items: stretch; }
}

/* Author display rules (e.g. .page{display:flex}) must never defeat the hidden attribute */
[hidden] { display: none !important; }

/* ── Sponsor inquiry form (about page) ──────────────────────────────────── */
.sponsor-form-panel { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.sponsor-form { display: flex; flex-direction: column; gap: 12px; }
.sponsor-form-row { display: flex; gap: 12px; }
.sponsor-form-row .input { flex: 1; }
.sponsor-form textarea.input { resize: vertical; min-height: 72px; }
.sponsor-form .btn { align-self: flex-start; }
@media (max-width: 720px) { .sponsor-form-row { flex-direction: column; } }

.store-what-list { padding-left: 1.2em; display: grid; gap: 8px; max-width: 640px; }

/* ── Cookie consent — small corner card; GA loads only after Accept ────── */
.consent { position: fixed; z-index: 60; left: 20px; bottom: 20px; max-width: 336px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  animation: consent-in .35s ease; }
.consent[hidden] { display: none; }
.consent-text { font-size: 13px; line-height: 1.55; color: var(--body); margin: 8px 0 12px; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; align-items: center; gap: 16px; }
.consent-decline { background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; }
.consent-decline:hover { color: var(--text); }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
