/* ============================================================
   MailCull public-page styles — used by standalone pages:
   blog.html, blog-post.html, terms.html, privacy.html
   Builds on _shared.css tokens. Full-bleed, real-page chrome.
   ============================================================ */

/* ---------- Public shell (header + footer) ---------- */
.public-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.public-page > main { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand-badge {
  width: 32px; height: 32px; border-radius: 7px; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; position: relative;
}
.site-brand-badge::after {
  content:''; position:absolute; top:5px; right:5px;
  width:3px; height:3px; background: var(--accent); border-radius:1px;
}
.site-brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.site-brand-subcopy { font-size: 12px; color: var(--muted); margin-top: 1px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active { font-weight: 500; }
.site-nav .button.primary.sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.site-footer .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .footer-links a { color: var(--muted); }
.site-footer .footer-links a:hover { color: var(--ink); }
.site-footer .footer-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Branded eyebrow used across pages */
.mc-eyebrow {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 4px;
  background: transparent; border: 1px solid rgba(255, 86, 0, 0.4);
  color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  width: fit-content;
}

/* ====================================================================
   BLOG INDEX
   ==================================================================== */
.blog-page {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 28px 80px;
}
.blog-hero { max-width: 720px; }
.blog-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -2.2px; line-height: 1; font-weight: 400; margin-top: 18px;
}
.blog-hero h1 em { color: var(--accent); font-style: italic; }
.blog-hero p { font-size: 17px; line-height: 1.55; margin-top: 18px; max-width: 56ch; }

.blog-toolbar {
  margin-top: 48px; padding: 14px 0;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tag-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.tag-chip:hover { border-color: var(--line-strong); }
.tag-chip.active { background: #111; color: #fff; border-color: #111; }
.blog-toolbar .count {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* Featured hero post */
.blog-featured {
  margin-top: 40px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden;
}
.blog-featured .art {
  background: #111; color: #fff; padding: 48px 48px 44px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 360px;
}
.blog-featured .art::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at top right, #000, transparent 70%);
}
.blog-featured .art::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,0,0.25), transparent 70%);
  pointer-events: none;
}
.blog-featured .art-mono {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
}
.blog-featured .art-mono .good { color: var(--accent); }
.blog-featured .art-mono .strike { color: rgba(255,255,255,0.35); text-decoration: line-through; }

.blog-featured .content { padding: 48px 48px 44px; display: flex; flex-direction: column; }
.blog-featured .eyebrow-row { display: flex; align-items: center; gap: 10px; }
.blog-featured .featured-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.blog-featured h2 {
  margin-top: 18px; font-size: 36px; letter-spacing: -1.2px; line-height: 1.05; font-weight: 400;
  text-wrap: balance;
}
.blog-featured h2 em { color: var(--accent); font-style: italic; }
.blog-featured .dek { margin-top: 18px; font-size: 16px; line-height: 1.55; max-width: 44ch; }
.blog-featured .byline { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 10px; }
.byline .ava {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.byline .who { font-size: 13.5px; color: var(--ink); font-weight: 500; line-height: 1.2; }
.byline .date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.read-cta {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px; width: fit-content;
}
.read-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Post grid */
.post-grid {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .12s, transform .12s;
}
.post-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.post-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  position: relative; overflow: hidden;
}
.post-cover.mono {
  background: #111; color: rgba(255,255,255,0.8);
  font-family: var(--font-mono); font-size: 12px;
  padding: 18px; align-items: flex-start; justify-content: flex-start;
  line-height: 1.55;
}
.post-cover.mono::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,0,0.2), transparent 70%);
}
.post-cover.mono .accent { color: var(--accent); }
.post-cover.mono .dim { opacity: 0.55; }
.post-cover.accent {
  background: linear-gradient(135deg, #fdfcfa, #f5f3ef);
}
.post-cover.accent .big {
  font-size: 96px; font-weight: 400; letter-spacing: -4px;
  color: var(--accent); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.post-cover.pattern {
  background: #fff;
  background-image: radial-gradient(circle, #dedbd6 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.post-cover.pattern .glyph {
  width: 64px; height: 64px; border-radius: 14px; background: #111;
}

.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.post-meta-row .pt { color: var(--accent); font-weight: 500; }
.post-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-card h3 {
  margin-top: 12px; font-size: 22px; letter-spacing: -0.5px; line-height: 1.15; font-weight: 500;
  text-wrap: pretty;
}
.post-card p { margin-top: 10px; font-size: 14px; line-height: 1.55; flex: 1; color: var(--muted); }
.post-card .foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--muted);
}

.blog-pagination {
  margin-top: 36px; display: flex; justify-content: center; gap: 6px;
}
.blog-pagination button {
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: var(--ink); font-size: 13px; cursor: pointer;
}
.blog-pagination button:hover { background: var(--surface); }
.blog-pagination button.active { background: #111; color: #fff; border-color: #111; }
.blog-pagination button.nav { color: var(--muted); }

/* Newsletter cta strip on listing */
.newsletter-strip {
  margin-top: 64px; padding: 36px 40px;
  background: #111; color: #fff; border-radius: var(--radius-card);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.2px);
  background-size: 28px 28px;
}
.newsletter-strip > * { position: relative; z-index: 1; }
.newsletter-strip h3 { font-size: 28px; letter-spacing: -0.8px; font-weight: 400; line-height: 1.1; color: #fff; }
.newsletter-strip h3 em { color: var(--accent); font-style: italic; }
.newsletter-strip p { margin-top: 8px; color: rgba(255,255,255,0.7); font-size: 14.5px; line-height: 1.55; max-width: 48ch; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; min-height: 44px; padding: 10px 14px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); box-shadow: none; }
.newsletter-form button {
  background: var(--accent); color: #fff; border: 0; padding: 0 18px; border-radius: 4px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-strip .fineprint {
  margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.5);
}

/* ====================================================================
   BLOG ARTICLE
   ==================================================================== */
.article-page {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 28px 80px;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: start;
}
.article-rail { position: sticky; top: 88px; }
.rail-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.toc { display: grid; gap: 8px; }
.toc a {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px;
  margin-left: -14px;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }

.article-actions { display: grid; gap: 8px; }
.action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; cursor: pointer;
  font-size: 12.5px; color: var(--ink); width: 100%;
}
.action-btn:hover { background: var(--surface); }
.action-btn svg { color: var(--muted); flex-shrink: 0; }

.article-body { min-width: 0; max-width: 720px; }
.article-body .back-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 6px;
}
.article-body .back-link:hover { color: var(--accent); }
.article-body h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 54px);
  letter-spacing: -2px; line-height: 1.02; font-weight: 400;
  text-wrap: balance;
}
.article-body h1 em { color: var(--accent); font-style: italic; }
.article-body .dek {
  margin-top: 18px; font-size: 18px; line-height: 1.55; max-width: 56ch;
  color: var(--muted);
}
.article-body .byline-row {
  margin-top: 28px; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 14px;
}
.article-body .byline-row .left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-body .byline-row .tag-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); padding: 4px 10px;
  border: 1px solid rgba(255,86,0,0.4); border-radius: 4px;
}

.article-cover {
  margin-top: 32px; aspect-ratio: 2 / 1;
  background: #111; color: #fff;
  border-radius: var(--radius-card);
  padding: 40px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.article-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.2px);
  background-size: 28px 28px;
}
.article-cover .cover-stat {
  position: relative; z-index: 1;
  font-family: var(--font-sans); font-size: clamp(64px, 9vw, 96px);
  letter-spacing: -4px; line-height: 0.9; font-weight: 400;
}
.article-cover .cover-stat em { color: var(--accent); font-style: italic; }
.article-cover .cover-label {
  position: relative; z-index: 1; margin-left: auto; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  text-align: right; max-width: 14ch;
}

.prose { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 48px; font-size: 30px; letter-spacing: -0.8px; line-height: 1.15; font-weight: 500;
  text-wrap: balance;
}
.prose h3 {
  margin-top: 32px; font-size: 20px; letter-spacing: -0.3px; line-height: 1.25; font-weight: 500;
}
.prose p { color: var(--ink); }
.prose em { font-style: italic; color: inherit; }
.prose strong { font-weight: 600; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.prose ul, .prose ol { padding-left: 24px; margin: 0; }
.prose li { margin-top: 8px; }
.prose ol li { padding-left: 4px; }
.prose blockquote {
  margin: 32px 0; padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--panel-strong);
  border-radius: 4px;
  font-size: 19px; line-height: 1.5; letter-spacing: -0.2px;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: var(--font-mono); font-size: 15px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
}

.callout {
  margin: 28px 0; padding: 18px 22px 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: #fff; border-radius: 4px;
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
}
.callout .ic {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,86,0,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.callout .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.callout .bd { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink); }

.article-cta-card {
  margin-top: 40px; padding: 28px 30px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}
.article-cta-card .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.article-cta-card h3 { margin-top: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; }
.article-cta-card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.article-cta-card .cta-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.next-prev {
  margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.np {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px 22px; display: block;
}
.np:hover { border-color: var(--line-strong); }
.np .lb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.np h4 { margin-top: 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.3; color: var(--ink); }
.np.right { text-align: right; }

.article-foot {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* ====================================================================
   LEGAL PAGES (privacy + terms)
   ==================================================================== */
.legal-page-stage {
  max-width: 1100px; margin: 0 auto;
  padding: 56px 28px 80px;
}
.legal-hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(40px, 5.5vw, 56px); letter-spacing: -2px; line-height: 1; font-weight: 400; margin-top: 18px; }
.legal-hero h1 em { color: var(--accent); font-style: italic; }
.legal-hero .dek { margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.legal-hero .meta-row { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.legal-hero .meta-chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.legal-hero .meta-chip strong { color: var(--ink); font-weight: 500; }

.legal-tldr {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 22px 26px;
  align-self: start;
}
.legal-tldr .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.legal-tldr h3 { margin-top: 6px; font-size: 19px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.25; }
.legal-tldr ul { margin: 14px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.legal-tldr li { margin-top: 8px; }
.legal-tldr li strong { font-weight: 600; }

.legal-layout {
  display: grid; grid-template-columns: 260px minmax(0, 720px);
  gap: 48px; align-items: start;
  margin-top: 48px;
}
.legal-sidebar { position: sticky; top: 88px; align-self: start; }
.legal-sidebar .rail-label { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.legal-sidebar a {
  display: block; padding: 7px 12px; font-size: 13px; color: var(--muted);
  border-left: 2px solid transparent; margin-left: -14px; padding-left: 14px;
  line-height: 1.4;
}
.legal-sidebar a:hover { color: var(--ink); }
.legal-sidebar a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.legal-sidebar .meta {
  margin-top: 28px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.legal-sidebar .meta .lb {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; display: block; margin-bottom: 6px;
}
.legal-sidebar .meta a { display: inline; padding: 0; margin: 0; border: 0; color: var(--ink); }
.legal-sidebar .meta a:hover { color: var(--accent); }
.legal-sidebar .meta strong { color: var(--ink); font-weight: 500; font-family: var(--font-mono); }

.legal-body section.num-sec { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-body section.num-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body section.num-sec .hd { display: flex; align-items: baseline; gap: 16px; }
.legal-body section.num-sec .n {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500;
  min-width: 36px;
}
.legal-body section.num-sec h2 {
  font-size: 26px; font-weight: 500; letter-spacing: -0.6px; line-height: 1.2;
  text-wrap: balance;
}
.legal-body section.num-sec h3 {
  margin-top: 24px; font-size: 16px; font-weight: 600; letter-spacing: -0.1px; line-height: 1.3;
  color: var(--ink);
}
.legal-body section.num-sec p {
  margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 64ch;
}
.legal-body section.num-sec p a {
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
}
.legal-body section.num-sec p a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.legal-body section.num-sec ul { margin-top: 14px; padding-left: 22px; max-width: 64ch; }
.legal-body section.num-sec li { margin-top: 8px; line-height: 1.6; font-size: 15px; }
.legal-body section.num-sec code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
}
.legal-body section.num-sec .plain-en {
  margin-top: 18px; padding: 14px 18px;
  background: var(--panel-strong); border: 1px solid var(--line); border-radius: 4px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
  display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: flex-start;
  max-width: 64ch;
}
.legal-body section.num-sec .plain-en .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  padding-top: 3px;
}

.legal-foot {
  margin-top: 64px; padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.legal-foot .q { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.2px; }
.legal-foot .s { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.legal-foot .ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ====================================================================
   TEXT-FIRST BLOG LISTING (no thumbnails required)
   Editorial stack — works without any image assets.
   ==================================================================== */
.blog-text-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.blog-text-row {
  display: grid;
  grid-template-columns: 96px 1fr 220px 80px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
  position: relative;
}
.blog-text-row:hover { background: rgba(17,17,17,0.015); }
.blog-text-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); opacity: 0; transition: opacity .12s;
}
.blog-text-row:hover::before { opacity: 1; }
.blog-text-row .date {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding-left: 12px;
}
.blog-text-row .body { min-width: 0; }
.blog-text-row .body h3 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.4px; line-height: 1.25;
  color: var(--ink); text-wrap: pretty;
}
.blog-text-row .body h3 em { color: var(--accent); font-style: italic; }
.blog-text-row:hover .body h3 { color: var(--accent); }
.blog-text-row .body .dek {
  margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted);
  max-width: 60ch;
}
.blog-text-row .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
  align-self: center;
}
.blog-text-row .tags .t {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--ink); white-space: nowrap;
}
.blog-text-row .read {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); text-align: right;
}
.blog-text-row .read strong { color: var(--ink); font-weight: 500; font-family: var(--font-sans); display: block; font-size: 14px; letter-spacing: -0.1px; }

.blog-text-row.featured {
  grid-template-columns: 96px 1fr 220px 80px;
  padding: 36px 0 40px;
  background: rgba(255, 86, 0, 0.03);
}
.blog-text-row.featured::before { opacity: 1; }
.blog-text-row.featured .body h3 { font-size: 32px; letter-spacing: -0.8px; line-height: 1.15; }
.blog-text-row.featured .body .dek { font-size: 16px; max-width: 64ch; margin-top: 12px; }
.blog-text-row.featured .pill {
  display: inline-flex; align-items: center;
  margin-bottom: 12px;
  padding: 4px 10px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}

/* Year header — divides the list */
.blog-year-head {
  margin-top: 56px;
  padding: 14px 0 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.blog-year-head h2 {
  font-size: 80px; letter-spacing: -3px; font-weight: 400; line-height: 1;
  color: var(--ink);
}
.blog-year-head .meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

@media (max-width: 820px) {
  .blog-text-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .blog-text-row .date { padding-left: 0; }
  .blog-text-row .tags { order: 4; margin-top: 4px; }
  .blog-text-row .read { text-align: left; }
  .blog-text-row.featured .body h3 { font-size: 26px; }
  .blog-year-head h2 { font-size: 56px; }
}

/* ====================================================================
   DOCS — INDEX
   ==================================================================== */
.docs-page {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 28px 80px;
}
.docs-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.docs-hero h1 { font-size: clamp(40px, 5.5vw, 64px); letter-spacing: -2.2px; line-height: 1; font-weight: 400; margin-top: 16px; }
.docs-hero h1 em { color: var(--accent); font-style: italic; }
.docs-hero .dek { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 56ch; }

.docs-search {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 18px 20px;
  display: grid; gap: 12px;
  align-self: start;
}
.docs-search .field {
  position: relative;
}
.docs-search input {
  min-height: 48px; padding: 12px 16px 12px 44px; font-size: 15px;
  background: var(--bg);
}
.docs-search .icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.docs-search .kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 7px;
}
.docs-search .hint {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.docs-search .hint code {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px; color: var(--ink);
}

/* Quick tiles */
.docs-tiles {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.docs-tile {
  display: grid; gap: 14px;
  padding: 26px 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: border-color .12s, transform .12s;
  position: relative; overflow: hidden;
}
.docs-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.docs-tile .glyph {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.docs-tile h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; }
.docs-tile p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.docs-tile .foot {
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.docs-tile .foot .count { color: var(--accent); }

/* Section blocks */
.docs-section {
  margin-top: 64px;
}
.docs-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.docs-section-head .left { display: flex; align-items: baseline; gap: 16px; }
.docs-section-head .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  min-width: 32px;
}
.docs-section-head h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; }
.docs-section-head .as-of {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}
.docs-section .descript {
  max-width: 64ch; padding: 14px 0 4px;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}

.docs-rows {
  display: grid; gap: 0;
}
.docs-row {
  display: grid; grid-template-columns: 32px 1fr 200px 28px;
  gap: 20px; align-items: center;
  padding: 18px 4px 18px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .12s;
}
.docs-row:hover { background: rgba(17,17,17,0.02); }
.docs-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); opacity: 0; transition: opacity .12s;
}
.docs-row:hover::before { opacity: 1; }
.docs-row .ic {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted);
}
.docs-row:hover .ic { color: var(--accent); border-color: var(--accent-line); }
.docs-row .body { min-width: 0; }
.docs-row .body .t {
  font-size: 16px; font-weight: 500; letter-spacing: -0.2px; color: var(--ink);
  line-height: 1.3;
}
.docs-row .body .s {
  margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.docs-row .meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); text-align: right;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
}
.docs-row .meta .lb { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.docs-row .arr { color: var(--line-strong); transition: color .12s, transform .12s; }
.docs-row:hover .arr { color: var(--accent); transform: translateX(2px); }
.docs-row.archived .body .t { color: var(--muted); }
.docs-row.archived .body .t::after {
  content: 'archived'; margin-left: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px; text-transform: uppercase; font-weight: 400;
  vertical-align: 2px;
}

/* Conventions card */
.docs-conventions {
  margin-top: 64px;
  padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
}
.docs-conventions h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.docs-conventions .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.docs-conventions p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.docs-conventions ol { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.docs-conventions ol li { margin-top: 10px; }
.docs-conventions ol li strong { font-weight: 600; }
.docs-conventions code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
}

/* ====================================================================
   DOCS — SINGLE PAGE
   ==================================================================== */
.doc-page {
  max-width: 1320px; margin: 0 auto;
  padding: 0;
}
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 0;
  min-height: calc(100vh - 64px);
}
.doc-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 24px 32px 28px;
  position: sticky; top: 64px; align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.doc-sidebar .field { margin-bottom: 18px; position: relative; }
.doc-sidebar .field input {
  min-height: 36px; padding: 6px 12px 6px 32px; font-size: 13px; border-radius: 6px;
}
.doc-sidebar .field .icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.doc-sidebar .field .kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 5px;
}
.doc-nav-group {
  margin-top: 20px;
}
.doc-nav-group:first-of-type { margin-top: 4px; }
.doc-nav-group .lb {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: 6px 10px 8px;
  display: flex; align-items: center; gap: 6px;
}
.doc-nav-group .lb .n {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 6px; font-size: 9.5px;
}
.doc-nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 5px;
  font-size: 13px; color: var(--muted); line-height: 1.35;
  border: 1px solid transparent;
}
.doc-nav-link .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0;
}
.doc-nav-link:hover { color: var(--ink); background: var(--surface); }
.doc-nav-link.active {
  color: var(--ink); font-weight: 500;
  background: var(--surface);
  border-color: var(--line);
}
.doc-nav-link.active .dot { background: var(--accent); }

.doc-main {
  padding: 56px 56px 80px;
  background: var(--bg);
  min-width: 0;
}
.doc-meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.doc-meta-row .crumb a { color: var(--muted); }
.doc-meta-row .crumb a:hover { color: var(--ink); }
.doc-meta-row .crumb .sep { margin: 0 8px; color: var(--line-strong); }
.doc-meta-row .as-of {
  margin-left: auto;
  padding: 3px 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink);
}
.doc-meta-row .as-of strong { color: var(--accent); font-weight: 500; }

.doc-title {
  font-size: clamp(40px, 5vw, 56px); letter-spacing: -2px; line-height: 1.02; font-weight: 400;
  text-wrap: balance;
}
.doc-title em { color: var(--accent); font-style: italic; }
.doc-summary {
  margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted);
  max-width: 60ch;
}
.doc-tags {
  margin-top: 20px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.doc-tags .pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink); padding: 4px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.doc-tags .pill.accent {
  color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft);
}

.doc-tldr {
  margin-top: 32px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 22px 26px;
  max-width: 720px;
}
.doc-tldr .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.doc-tldr h3 { margin-top: 6px; font-size: 18px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.3; }
.doc-tldr ul { margin: 12px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.doc-tldr li { margin-top: 6px; }
.doc-tldr li strong { font-weight: 600; }

/* Prose for docs (denser than blog) */
.doc-prose { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 720px; margin-top: 40px; }
.doc-prose > * + * { margin-top: 18px; }
.doc-prose h2 {
  margin-top: 56px; font-size: 26px; letter-spacing: -0.6px; line-height: 1.2; font-weight: 500;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  text-wrap: balance;
  scroll-margin-top: 80px;
}
.doc-prose h3 {
  margin-top: 36px; font-size: 18px; letter-spacing: -0.2px; line-height: 1.3; font-weight: 600;
  scroll-margin-top: 80px;
}
.doc-prose p { color: var(--ink); }
.doc-prose ul, .doc-prose ol { padding-left: 22px; }
.doc-prose li { margin-top: 8px; }
.doc-prose li code { font-size: 13.5px; }
.doc-prose code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px;
}
.doc-prose pre {
  background: #111; color: #fff; padding: 18px 22px;
  border-radius: 6px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
  margin: 24px 0;
}
.doc-prose pre code {
  background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit;
}
.doc-prose pre .c-dim { color: rgba(255,255,255,0.45); }
.doc-prose pre .c-acc { color: var(--accent); }
.doc-prose pre .c-good { color: #6dd39a; }
.doc-prose pre .c-comm { color: rgba(255,255,255,0.4); font-style: italic; }
.doc-prose a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.doc-prose a:hover { color: var(--accent); }
.doc-prose strong { font-weight: 600; }

/* Tables */
.doc-prose table {
  margin: 24px 0; width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.doc-prose thead th {
  text-align: left;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: 12px 16px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line);
}
.doc-prose tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.55;
}
.doc-prose tbody tr:last-child td { border-bottom: 0; }
.doc-prose tbody tr:hover td { background: var(--panel-strong); }
.doc-prose td code { font-size: 13px; }

/* Status badges within doc content */
.doc-prose .badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  border: 1px solid;
  vertical-align: 1px;
}
.doc-prose .badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.doc-prose .badge.deliverable   { color: var(--good);    border-color: var(--good-line);    background: var(--good-soft); }
.doc-prose .badge.risky         { color: var(--warn);    border-color: var(--warn-line);    background: var(--warn-soft); }
.doc-prose .badge.undeliverable { color: var(--danger);  border-color: var(--danger-line);  background: var(--danger-soft); }
.doc-prose .badge.unknown       { color: var(--unknown); border-color: var(--unknown-line); background: var(--unknown-soft); }

/* Callout */
.doc-callout {
  margin: 28px 0; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px;
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  max-width: 720px;
}
.doc-callout.info { border-left-color: var(--accent); }
.doc-callout.warn { border-left-color: var(--warn); }
.doc-callout.warn .ic { background: var(--warn-soft); color: var(--warn); }
.doc-callout .ic {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.doc-callout .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.doc-callout.warn .lb { color: var(--warn); }
.doc-callout .bd { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }

/* Next / prev nav */
.doc-pager {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 720px;
}
.doc-pager .pg {
  display: block; padding: 18px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: border-color .12s;
}
.doc-pager .pg:hover { border-color: var(--ink); }
.doc-pager .pg .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.doc-pager .pg h4 { margin-top: 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.2px; color: var(--ink); }
.doc-pager .pg.right { text-align: right; }

.doc-foot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  max-width: 720px;
}
.doc-foot a.gh {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--ink); font-size: 12.5px;
}
.doc-foot a.gh:hover { border-color: var(--ink); }

/* Right rail - on this page */
.doc-rail {
  padding: 56px 24px 32px 24px;
  position: sticky; top: 64px; align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.doc-rail .lb {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.doc-rail nav { display: grid; gap: 4px; }
.doc-rail nav a {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px;
  margin-left: -14px;
}
.doc-rail nav a:hover { color: var(--ink); }
.doc-rail nav a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.doc-rail nav a.sub { font-size: 11.5px; padding-left: 24px; }

.doc-rail .actions {
  margin-top: 28px;
  display: grid; gap: 6px;
}
.doc-rail .actions a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  font-size: 12px; color: var(--muted); border-radius: 4px;
}
.doc-rail .actions a:hover { color: var(--ink); background: var(--surface); }
.doc-rail .actions a svg { color: var(--muted); }

@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: 240px 1fr; }
  .doc-rail { display: none; }
  .doc-main { padding: 40px 32px 64px; }
}
@media (max-width: 720px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
  .doc-main { padding: 32px 20px 56px; }
  .docs-hero { grid-template-columns: 1fr; gap: 32px; }
  .docs-tiles { grid-template-columns: 1fr; }
  .docs-row { grid-template-columns: 28px 1fr; gap: 12px; }
  .docs-row .meta, .docs-row .arr { display: none; }
  .docs-conventions { grid-template-columns: 1fr; gap: 18px; }
}

/* ====================================================================
   ADDITIONS for the MailCull help renderer
   The design source HTML used inline `style="…"` for a few blocks
   (the was-this-helpful widget + the in-article related grid). Our
   CSP forbids inline styles, so the renderer emits proper classes
   and we style them here. Keep visual parity with the source HTML —
   same paddings, borders, and tile sizing.
   ==================================================================== */

/* "Was this article helpful?" feedback widget */
.doc-feedback {
  margin-top: 48px; padding: 20px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 720px; flex-wrap: wrap;
}
.doc-feedback-q { font-size: 15px; font-weight: 500; color: var(--ink); }
.doc-feedback-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-feedback-acts > button,
.doc-feedback-acts > a {
  padding: 8px 14px; border-radius: 4px;
  font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-family: inherit;
}
.doc-feedback-acts > button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.doc-feedback-acts > button:hover:not(:disabled) { border-color: var(--ink); }
.doc-feedback-acts > button:disabled,
.doc-feedback-acts > button.is-acked { cursor: default; opacity: 0.55; }

/* Article-not-found CTA — replaces an inline style="margin-top: 18px"
   block. Same spacing the inline used, just promoted to a class so
   CSP doesn't bite. */
.docs-hero-actions { margin-top: 18px; }

/* Blog article — additions for the redesigned renderer. The design
   source HTML had a couple of inline styles for the byline tag pill
   and the related-rail list under "Share"; both are re-classed here
   for CSP. */

/* Tag-pill in the byline row is an anchor that filters the blog
   index to that tag. Same baseline visual as the static span the
   design used, plus hover state. */
.byline-row .tag-pill {
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.byline-row .tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* Article-foot tag chain ("Tags · email-validation · deliverability …")
   — replaces an inline-style monospace span in the design. */
.article-foot-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-foot-tags a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}
.article-foot-tags a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Right-rail "Keep reading" list. Sits below the share buttons.
   Same vertical rhythm as the share button list. */
.article-rail .rail-label-spaced { margin-top: 24px; }
.related-rail-list { display: grid; gap: 8px; }
.related-rail-item {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  transition: border-color .12s;
}
.related-rail-item:hover { border-color: var(--ink); }
.related-rail-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.related-rail-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* Empty filter state on the blog index (e.g. `?tag=nonexistent`).
   Replaces inline `style="padding: 48px 0; text-align: center;"`
   from the renderer. */
.blog-empty-filter { border-top: 1px solid var(--line); }
.blog-empty-filter-body { padding: 48px 0; text-align: center; }
.blog-empty-filter-eyebrow { margin: 0 auto 18px; }
.blog-empty-filter p { color: var(--muted); }
.blog-empty-filter a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.blog-empty-filter a:hover { color: var(--accent); }

/* Newsletter strip disabled state — the input + button are visibly
   disabled (greyed) when newsletter signup isn't wired yet, with a
   tooltip on hover (title=). Distinct from the active state in the
   design so a user immediately sees this is coming-soon. */
.newsletter-form input:disabled,
.newsletter-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.newsletter-form button:disabled:hover { background: var(--accent); }

/* Tag chip anchors (server-side filter on the blog index). The
   design used `<span>` for the chips; we use `<a>` so search engines
   index the filtered views and right-click works. Preserve the
   same look. */
a.tag-chip {
  text-decoration: none;
  color: var(--ink);
}
a.tag-chip:hover { border-color: var(--line-strong); }
a.tag-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Pagination as <a> elements (links) instead of <button>s — same
   visual baseline as the design's button chips. */
.blog-pagination a {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blog-pagination a:hover { background: var(--surface); }
.blog-pagination .active {
  background: #111;
  color: #fff;
  border-color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
}
.blog-pagination .nav[aria-disabled="true"] {
  color: var(--line-strong);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 13px;
}

/* Search empty-state line. Slots in between the featured tiles and
   the category sections when a query matches zero articles. Modest
   on purpose — the page is still scrollable, this is just a
   "nothing here, try again" affordance. */
.help-search-empty {
  margin: 24px 0 4px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.help-search-empty strong { color: var(--ink); font-weight: 600; }
.help-search-empty a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.help-search-empty a:hover { color: var(--accent); }

/* Defensive — `hidden` should already hide elements, but a couple of
   our grid containers (.docs-rows / .doc-nav-group) have children
   with `display: grid`/`flex` that can re-establish display in
   stricter user agents. Force the override. */
.docs-row[hidden],
.docs-section[hidden],
.docs-tile[hidden],
.doc-nav-group[hidden],
.doc-nav-link[hidden],
.docs-conventions[hidden] { display: none !important; }
.doc-feedback-acts > a.primary {
  border: 1px solid #111; background: #111; color: #fff;
}
.doc-feedback-acts > a.primary:hover { background: var(--ink); }

/* Related-articles grid inside an article (compact docs-tile reuse) */
[data-help-related] {
  margin-top: 32px; max-width: 720px;
}
.doc-related-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.doc-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.doc-related-tile { padding: 18px 20px; }
.doc-related-tile h3 { font-size: 15px; line-height: 1.3; }
.doc-related-tile p { font-size: 13px; }
@media (max-width: 720px) {
  .doc-related-grid { grid-template-columns: 1fr; }
}

/* Scroll anchor target offsets — H2s inside the prose carry an id;
   ensure they don't tuck under the sticky header when jumped to. */
.doc-prose [id] { scroll-margin-top: 80px; }

/* Hide the doc-page footer "Email support" link decoration when it
   wraps the renderIcon SVG output (the design's pattern lacks the
   svg-as-icon flex alignment; this nudges it back to baseline). */
.doc-foot a.gh svg { vertical-align: -3px; }

/* Responsive collapses */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-rail { position: static; }
  .article-rail.actions-rail { display: none; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .art { min-height: 220px; padding: 32px; }
  .blog-featured .content { padding: 32px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-hero { grid-template-columns: 1fr; gap: 24px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .newsletter-strip { grid-template-columns: 1fr; padding: 28px; }
  .legal-foot { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.button) { display: none; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-page, .article-page, .legal-page-stage { padding-left: 20px; padding-right: 20px; }
  .site-header-inner { padding-left: 20px; padding-right: 20px; }
}
