/* Learn hub, articles, comparison pages, About, Security, Privacy and Terms. Same system as the home page ("Framed"): off-white, DM Sans headings,
   mono labels, hairline frame with crop marks, sky-blue accent. Nav and footer live in chrome.css.
   .htaccess caches CSS for a year: bump ?v= on every page that links this file after editing it. */
:root {
  --bg: #F8F8F5; --card: #FFFFFF; --ink: #1D1D1D; --ink-2: #4a4a47; --mute: #6b6b66; --hair: #D9D9D3; --soft: #F1F1EC;
  --blue: #0284C7; --blue-d: #0369A1; --blue-l: #0EA5E9; --blue-bg: #E0F2FE; --blue-bd: #BAE6FD; --blue-50: #F0F9FF;
  --code-bg: #141414;
  --mono: "Chivo Mono", ui-monospace, monospace;
  --head: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --read: "DM Sans", "Helvetica Neue", Arial, sans-serif;  /* long article text */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* category tags */
.tag { display: inline-block; font-size: 11px; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--blue-bg); color: var(--blue-d); border: 1px solid var(--blue-bd); }
.tag.vision { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.tag.tutorial { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.tag.video, .tag.comparison, .tag.plain { background: var(--soft); color: var(--ink-2); border-color: var(--hair); }

/* page frame with crop marks */
.frame { position: relative; max-width: 1160px; margin: 0 auto; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.frame::before, .frame::after { content: ""; position: absolute; top: 24px; width: 22px; height: 22px; border-top: 1px solid var(--ink); }
.frame::before { left: -1px; border-left: 1px solid var(--ink); }
.frame::after { right: -1px; border-right: 1px solid var(--ink); }
@media (max-width: 760px) { .frame { border-left: 0; border-right: 0; } .frame::before, .frame::after { display: none; } }

/* ---------- Article ---------- */
.article { max-width: 768px; margin: 0 auto; padding: 56px 24px 88px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); margin-bottom: 40px; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.back svg { width: 14px; height: 14px; }
.post-head { margin-bottom: 40px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.035em; line-height: 1.06; margin: 18px 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mute); }
.meta a:hover { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }

.hero-img, .video-embed { border: 1px solid var(--ink); border-radius: 6px; background: var(--card); box-shadow: 8px 8px 0 var(--blue-l); margin: 0 0 48px; }
.hero-img { width: 100%; }
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose { font-family: var(--read); font-size: 18px; line-height: 1.7; color: #2f2f2c; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.35em; }
.prose h2 { font-size: 30px; color: var(--ink); margin: 2.4em 0 .6em; line-height: 1.15; }
.prose h3 { font-size: 21px; color: var(--ink); letter-spacing: -.02em; margin: 1.9em 0 .5em; line-height: 1.25; }
.prose h2 + h3 { margin-top: .8em; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin-bottom: 1.35em; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose li { margin-bottom: .5em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: .68em; width: 7px; height: 7px; background: var(--blue-l); border: 1px solid var(--ink); }
.prose ol > li::marker { font-family: var(--mono); font-size: .85em; color: var(--mute); }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--soft); border: 1px solid var(--hair); border-radius: 3px; padding: 1px 5px; color: var(--ink); }
.prose img { border: 1px solid var(--ink); border-radius: 6px; background: var(--card); margin: 2em 0; width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2.5em 0; }

/* quotes: pulled lines (default), the question typed into VerbaGPT (.ask), and returned output or errors (.output) */
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue-l); font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .7em; }
.prose blockquote.ask { position: relative; background: var(--code-bg); color: #7DD3FC; border: 0; border-radius: 6px; padding: 18px 20px 18px 44px; font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.75; letter-spacing: 0; }
.prose blockquote.ask::before { content: ">"; position: absolute; left: 20px; top: 18px; color: #8d8d85; }
.prose blockquote.output { background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--ink); border-radius: 0 6px 6px 0; padding: 16px 20px; font-family: var(--mono); font-weight: 400; font-size: 13.5px; line-height: 1.75; letter-spacing: 0; color: var(--ink-2); }
.prose blockquote strong { color: inherit; }

/* data tables: scroll sideways on narrow screens */
.table-wrap, .cmp-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--hair); border-radius: 6px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); overflow-wrap: normal; }
.prose th { background: var(--soft); font-weight: 700; color: var(--ink); vertical-align: bottom; }
.prose td { color: var(--ink-2); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose table.total-last tbody tr:last-child td { font-weight: 700; color: var(--ink); background: var(--blue-50); }

/* comparison tables */
.prose table.cmp { min-width: 620px; }
.cmp th.vg { background: var(--blue-bg); color: var(--blue-d); }
.cmp td.feat { width: 30%; font-weight: 700; color: var(--ink); }
.cmp td.vg { background: var(--blue-50); color: var(--ink); }
.cmp .yes { color: #047857; font-weight: 700; }
.cmp .partial { color: #B45309; font-weight: 700; }
.cmp .no { color: var(--mute); }
.prose .fine { font-size: 14px; line-height: 1.6; color: var(--mute); }

/* expandable transcripts (comparison pages) */
.prose details { background: var(--card); border: 1px solid var(--hair); border-radius: 6px; padding: 14px 18px; margin: 0 0 10px; }
.prose details[open] { border-color: var(--ink); }
.prose summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); }
.prose details details { border: 0; padding: 0; margin: 4px 0 8px; }
.prose details details summary { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--mute); }
.prose details img { margin: 12px 0 4px; width: auto; border-color: var(--hair); }

.source-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mute); }
.prose .source-note { font-size: 14px; }
.source-note a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.article > hr { border: 0; border-top: 1px solid var(--hair); margin: 48px 0; }

.cta-box { margin-top: 48px; padding: 40px 28px; text-align: center; background: var(--blue-d); border: 1px solid var(--ink); border-radius: 6px; color: #fff; }
.cta-box h2 { font-size: 28px; color: #fff; margin: 0 0 10px; }
.cta-box p { color: var(--blue-bd); max-width: 44ch; margin: 0 auto 22px; }
.cta-box a.btn { background: #fff; color: var(--blue-d); border-color: #fff; text-decoration: none; }
.cta-box p.small { font-size: 12px; margin: 14px auto 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; line-height: 1.65; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); white-space: nowrap; transition: transform .12s; }
.btn:hover { transform: translateY(-1px); }

/* related posts */
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related-list { border: 1px solid var(--hair); background: var(--card); }
.related-list a { display: block; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.related-list a:last-child { border-bottom: 0; }
.related-list a:hover { background: var(--blue-50); }
.related-list p { font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; margin-top: 8px; }

@media (max-width: 600px) {
  .article { padding: 32px 20px 64px; }
  .back { margin-bottom: 28px; }
  .hero-img, .video-embed { box-shadow: 5px 5px 0 var(--blue-l); margin-bottom: 36px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .prose blockquote { font-size: 19px; padding-left: 16px; }
  .prose blockquote.ask { font-size: 13px; padding: 16px 16px 16px 36px; }
  .prose blockquote.ask::before { left: 16px; top: 16px; }
  .prose table { font-size: 12px; }
  .prose th, .prose td { padding: 8px 9px; }
}

/* ---------- About, Security, Privacy, Terms (.article.doc) ---------- */
.doc .prose { font-size: 17px; }
.doc .prose section { margin-top: 40px; }
.doc .prose section:first-child { margin-top: 0; }
.doc .prose section > :last-child { margin-bottom: 0; }
.doc .prose h2 { font-size: 23px; margin: 0 0 .6em; }
.doc .prose .lead { font-size: 19px; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; margin-top: 28px; }
.facts > div { background: var(--card); outline: 1px solid var(--hair); padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.facts .kicker { font-family: var(--mono); color: var(--blue-d); margin-bottom: 6px; }
.doc .prose .callout { background: var(--blue-50); border: 1px solid var(--blue-bd); border-radius: 6px; padding: 24px 26px; }
@media (max-width: 620px) { .doc .prose .lead { font-size: 17px; } .facts { grid-template-columns: 1fr; } .doc .prose .callout { padding: 20px 18px; } }
@media print {
  .vg-nav, .vg-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .frame { border: 0; }
  .frame::before, .frame::after { display: none; }
  .article { max-width: none; padding: 0; }
  .doc .prose { font-size: 11pt; }
  .doc .prose .callout { border: 0; padding: 0; background: none; }
  .doc .prose section { break-inside: avoid; }
  .prose a { color: inherit; text-decoration: none; }
}

/* ---------- Learn hub ---------- */
.hub-head { padding: 72px 40px 40px; }
.hub-head h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -.035em; line-height: 1.04; max-width: 18ch; margin-top: 12px; }
.hub-head p.sub { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }

.filters { position: sticky; top: 64px; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 40px; background: var(--bg); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.fpill { font-family: var(--mono); font-size: 12px; line-height: 1.65; padding: 5px 12px; border: 1px solid var(--hair); border-radius: 3px; background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.fpill:hover { border-color: var(--ink); }
.fpill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.hub-body { padding: 40px; }
.hidden { display: none !important; }

.featured { display: grid; grid-template-columns: 1fr .8fr; margin-bottom: 48px; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--card); box-shadow: 8px 8px 0 var(--blue-l); }
.featured:hover { background: var(--blue-50); }
.featured-text { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured .tags { display: flex; gap: 8px; margin-bottom: 18px; }
.featured h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px; }
.featured p { font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.featured .meta { margin-top: 24px; }
.featured .read { color: var(--blue-d); font-weight: 700; margin-left: 12px; }
.featured-img { position: relative; min-height: 260px; border-left: 1px solid var(--hair); background: #fff; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.filter-banner { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 13px; color: var(--ink-2); }
.filter-banner a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }

/* hairline grid: 1px gaps, so neighbouring outlines merge and filtered-out cards leave no stray borders */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.card { display: flex; flex-direction: column; background: var(--card); outline: 1px solid var(--hair); }
.card:hover { background: var(--blue-50); }
.card-thumb { position: relative; height: 180px; flex-shrink: 0; overflow: hidden; border-bottom: 1px solid var(--hair); background: #fff; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-thumb.quote { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--blue-bg); }
.card-thumb.quote p { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; text-align: center; color: #0c4a6e; text-wrap: balance; }
.card-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ink); border-radius: 6px; }
.card-thumb .play svg { width: 16px; height: 16px; fill: #fff; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 22px 22px; }
.card-body h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.22; margin: 12px 0 10px; }
.card-body p { font-size: 13px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.card-body p.date { flex: 0; align-self: stretch; font-size: 12px; color: var(--mute); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair); }

.final { text-align: center; padding: 80px 40px; background: var(--blue-d); color: #fff; border-top: 1px solid var(--ink); }
.final h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; margin: 0 auto; }
.final p { margin: 16px auto 0; max-width: 52ch; color: var(--blue-bd); }
.final .btn { margin-top: 28px; background: #fff; border-color: #fff; color: var(--blue-d); }
.final p.small { margin-top: 14px; font-size: 12px; }

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hub-head { padding: 40px 20px 28px; }
  .filters { padding: 12px 20px; }
  .hub-body { padding: 28px 20px 48px; }
  .featured { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--blue-l); margin-bottom: 36px; }
  .featured-text { padding: 24px 22px; }
  .featured-img { order: -1; min-height: 200px; border-left: 0; border-bottom: 1px solid var(--hair); }
  .final { padding: 56px 20px; }
}
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
/* phones: one scrolling row, so the sticky bar stays short */
@media (max-width: 480px) { .filters { top: 56px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 10px 20px; } .fpill { flex: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
