@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --page: #ffffff;
  --paper: #ffffff;
  --paper-2: #f1f0ed;
  /* Beige is kept only behind thumbnails (bot art, screenshots, story art). Pages are white or dark. */
  --thumb-bg: #e7e1d4;
  --ink: #1a1714;
  --ink-soft: #5c534b;
  --rule: rgba(26, 23, 20, 0.16);
  --accent: #0f5e59;
  --rust: #9c3412;
  --rust-ink: #fff7f2;
  --chip: transparent;
  --shadow: 0 24px 50px rgba(48, 32, 16, 0.08);
  --thumb-ratio: 1200 / 630;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --page: #12110f;
  --paper: #12110f;
  --paper-2: #1d1b17;
  --thumb-bg: #1d1b17;
  --ink: #f3ece2;
  --ink-soft: #c9bfb2;
  --rule: rgba(243, 236, 226, 0.16);
  --accent: #8fd9d1;
  --rust: #e58a64;
  --rust-ink: #1a100c;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* The beige "Light" page theme was removed for AI Field Report (David, 23 November 2026): white or dark only. */

/* White: the light look on plain white paper. Same ink and accents; cooler greys for panels and rules. */
:root[data-theme="white"] {
  --paper: #ffffff;
  --paper-2: #f1f0ed;
  --rule: rgba(26, 23, 20, 0.14);
  --shadow: 0 24px 50px rgba(20, 16, 12, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 430;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(143, 217, 209, 0.08), transparent 45%),
    var(--page);
}
:root[data-theme="white"] body { background: var(--paper); }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.site {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}
.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 {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 0 0.9rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  text-decoration: none;
}
.credit {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.site-search {
  display: flex;
  flex: 1 1 18rem;
  align-items: stretch;
  gap: 0.4rem;
  min-width: min(100%, 16rem);
  max-width: 36rem;
}
.site-search input[type="search"] {
  flex: 1 1 auto;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper, transparent);
  color: inherit;
  padding: 0.45rem 0.8rem;
  font-family: var(--serif);
  font-size: 1rem;
}
.site-search button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper, #ffffff);
  padding: 0.45rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.site-search-hero {
  margin: 1.15rem 0 0.35rem;
  max-width: 40rem;
}
.site-search-hero input[type="search"] {
  min-height: 52px;
  font-size: 1.15rem;
}
.search-hints {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.search-page .site-search { max-width: 42rem; }
table.search-report {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
table.search-report th,
table.search-report td {
  text-align: left;
  padding: 0.4rem 0.6rem 0.4rem 0;
  border-bottom: 1px solid var(--line, rgba(20, 16, 12, 0.15));
  vertical-align: top;
}
/* Home page: search sits under Account and the theme menu (David, 22 November 2026). */
.tools-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.tools-stack .site-search-header { width: min(28rem, 100%); flex: none; }
@media (max-width: 800px) {
  .tools-stack { display: contents; }
  .tools-stack .site-search-header { width: auto; }
  .top { align-items: flex-start; }
  .site-search-header { flex-basis: 100%; max-width: none; order: 3; }
}

.theme, .text-button, .admin-actions button, .stack button, .sub button, .vote, .gate > summary {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.theme { border-radius: 999px; }
.text-button { background: none; border: 0; text-decoration: underline; padding-inline: 0; }

.shelf-nav-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.shelf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 0.7rem 0 0.85rem;
  border-bottom: 3px solid var(--ink);
}
.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.chip[aria-current="page"] { border-bottom-color: var(--ink); }
.count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.issue, .desk-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
  padding-bottom: 0.45rem;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
h1, h2, h3, .rank-name, .wordmark {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}
/* Room for descenders (g, y, p) so wrapped headings never touch the line below (NB-22). */
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.08; margin: 0 0 0.6rem; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; margin: 0 0 0.45rem; }
h3 { font-size: 1.7rem; line-height: 1.15; margin: 0.35rem 0; }
.dek, .description { font-size: 1.22rem; line-height: 1.5; max-width: 46rem; }
.dek { margin-top: 0.85rem; color: var(--ink-soft); }
.by { margin: 0.2rem 0 0; font-style: italic; }

.hero, section { margin-top: 2.6rem; }
/* Sit the hero flush under the masthead line. Header, nav, and the date already sit under the sticky weekly bar. */
.hero { margin-top: 0; }

/* /youtube and /team: promo follows the page heading on a phone, and sits
   beside the content on a wide screen. The tan theme tokens are unchanged. */
.page-with-promo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-with-promo > .hero { margin: 0; }
@media (min-width: 960px) {
  .page-with-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    align-items: start;
    gap: 2rem 1.75rem;
  }
  .page-with-promo > main { grid-column: 1; }
  .page-with-promo > .hero { grid-column: 2; }
  .page-with-promo .hero-split,
  .page-with-promo .hero-split-3 {
    grid-template-columns: 1fr;
  }
  .page-with-promo .hero-split .hero-note,
  .page-with-promo .hero-split .bot-promo,
  .page-with-promo .hero-split .ios-promo,
  .page-with-promo .hero-split-3 .hero-note,
  .page-with-promo .hero-split-3 .bot-promo,
  .page-with-promo .hero-split-3 .ios-promo {
    grid-column: 1;
    grid-row: auto;
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .page-with-promo .hero-note {
    border-bottom: 1px solid var(--rule);
    padding: 0 0 1rem;
  }
  .page-with-promo .ios-promo,
  .page-with-promo .bot-promo {
    margin: 0;
    padding: 1rem 0;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
  }
  .page-with-promo .ios-promo:last-child,
  .page-with-promo .bot-promo:last-child {
    border-bottom: 0;
  }
}

/* /for-you: on phones the stacked App Store and newsletter promo covered the heading
   and sign-in prompt. Reorder so the heading comes first. Desktop (1280) stays
   promo-first and full width; the wrapper has no styles there. */
@media (max-width: 840px) {
  .page-promo-below-mobile {
    display: flex;
    flex-direction: column;
  }
  .page-promo-below-mobile > main {
    order: -1;
  }
}

.hero-note, .bot-note {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero .hero-note { margin-top: 0; }
.hero-note p, .bot-note p { margin: 0; max-width: 36rem; }

.bot-promo {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0 0 0.4rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--rule);
}
.bot-promo-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: block;
}
.bot-promo-copy { min-width: 0; flex: 1; }
/* "Plus" after the site name for signed-in Plus members, in the button color (David, 21 November 2026). */
.wordmark-plus { color: var(--rust); }
.bot-promo-title, .newsletter-title {
  font-size: 1.45rem;
  line-height: 1.22;
  margin: 0 0 0.4rem;
}
.bot-promo-copy p {
  margin: 0 0 0.85rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

/* Two equal columns when the bot promo URL is set. Subscribe stays first in the DOM. */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin: 0 0 1.6rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-split .hero-note {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 1rem 0 1rem 1.25rem;
  border: 0;
  border-left: 1px solid var(--rule);
  grid-template-columns: 1fr;
  align-items: start;
}
.hero-split .bot-promo,
.hero-split .ios-promo {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 1rem 1.25rem 1rem 0;
  border: 0;
}
.ios-promo {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0 0 0.4rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--rule);
}
.hero-split-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.hero-split-3 .bot-promo { grid-column: 1; }
.hero-split-3 .ios-promo {
  grid-column: 2;
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.hero-split-3 .hero-note { grid-column: 3; }
@media (max-width: 840px) {
  .hero-split-3 {
    grid-template-columns: 1fr;
  }
  .hero-split-3 .hero-note,
  .hero-split-3 .ios-promo,
  .hero-split-3 .bot-promo {
    grid-column: 1;
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-split-3 .hero-note { grid-row: 1; border-bottom: 1px solid var(--rule); }
  .hero-split-3 .ios-promo { grid-row: 2; border-bottom: 1px solid var(--rule); }
  .hero-split-3 .bot-promo { grid-row: 3; }
}
@media (max-width: 720px) {
  .bot-promo, .ios-promo { gap: 0.85rem; }
  .bot-promo-title, .newsletter-title { font-size: 1.28rem; }
  /* On phones the promo buttons sit at the right edge (David, 21 November 2026). */
  .bot-promo-copy .add { display: flex; width: fit-content; margin-left: auto; }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-split .hero-note {
    grid-column: 1;
    grid-row: 1;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0;
  }
  .hero-split .bot-promo,
  .hero-split .ios-promo {
    grid-column: 1;
    grid-row: 2;
    padding: 1rem 0 1.15rem;
  }
  .hero-split:has(.ios-promo):has(.bot-promo) .ios-promo { grid-row: 2; border-bottom: 1px solid var(--rule); }
  .hero-split:has(.ios-promo):has(.bot-promo) .bot-promo { grid-row: 3; }
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sub input[type="email"], .stack input, .stack textarea, .stack select, .filter-label + input, .add-bot input {
  min-height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  font-size: 1rem;
}
.sub input[type="email"] { min-width: min(100%, 16rem); flex: 1; }
.sub button, .add, .stack button.add, button.add, a.add {
  background: var(--rust);
  color: var(--rust-ink);
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  font-family: var(--sans);
  cursor: pointer;
}
.sub-compact input[type="email"] { min-width: 12rem; flex: 0 1 14rem; }

.picks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78vw);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}
.picks::-webkit-scrollbar { display: none; }
.picks > article { scroll-snap-align: start; }
.cover-link, .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
/* Cards in a grid row stretch to the same height. height: 100% on the link
   resolved against that stretched article, which already included the action
   row after the link, so the four buttons overflowed and showed only their
   top half. The card is a column instead: the link fills leftover space and
   the action row stays in flow under the byline. */
.card,
.cover,
.shelf-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.card .card-link,
.cover .cover-link,
.shelf-card .card-link {
  flex: 1 1 auto;
  height: auto;
}
.art {
  position: relative;
  overflow: hidden;
  background: var(--thumb-bg);
  aspect-ratio: var(--thumb-ratio);
}
.art img, .art svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.art svg { position: absolute; inset: 0; }
.caption { padding-top: 0.8rem; }
.caption h2, .card h3 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); margin: 0; }
.tally {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gate { margin-top: 0.6rem; }
.gate > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.85rem;
  font-family: var(--sans);
}
.gate > summary::-webkit-details-marker { display: none; }
.gate-form { margin-top: 0.8rem; max-width: 28rem; }
.comment-list { display: grid; gap: 1rem; margin: 1rem 0 1.4rem; }
.comment { border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.comment-body { white-space: pre-wrap; margin: 0.35rem 0 0; }
.comment.is-pending { color: var(--ink-soft); }
.hook {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 40rem;
}
.cover .hook, .card .hook { padding: 0.15rem 0.1rem 0; }

.recent {
  display: grid;
  gap: 1.4rem;
}
.card { border-top: 1px solid var(--rule); padding-top: 0.9rem; padding-bottom: 0.55rem; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
  min-height: 44px;
  margin: 0.45rem 0 0;
}
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
/* Keep the 32px boxed icon; extend the tap/click target to 44x44. */
.card-action::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.card-action svg {
  width: 16px;
  height: 16px;
  max-width: none;
  overflow: visible;
  display: block;
  flex-shrink: 0;
}
.card-action:hover, .card-action:focus-visible { border-color: var(--ink); }
.card-action.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
form:has(> .card-action) { margin: 0; }
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .card-actions { opacity: 0; }
  article:hover .card-actions,
  article:focus-within .card-actions,
  .rank li:hover .card-actions,
  .rank li:focus-within .card-actions { opacity: 1; }
}

.comment-policy, .plus-pitch {
  margin: 0.45rem 0 0.7rem;
  max-width: 40rem;
  color: var(--ink-soft);
}
.plus-pitch { margin-top: 0.2rem; }

/* rank list styles live in the "Full list" block at the end of this file */

.bot-hero {
  display: grid;
  gap: 1.2rem;
}
.art-large { aspect-ratio: var(--thumb-ratio); max-height: none; }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.25rem 0.45rem;
}
.actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: flex-start; }
.actions .gate[open] { flex: 1 0 100%; }
.added, .meta { color: var(--ink-soft); }
.score-block { max-width: 40rem; }
.score-block h2 span { color: var(--ink-soft); font-size: 0.55em; }
.score-facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.score-facts li { padding: 0.5rem 0; border-top: 1px solid var(--rule, rgba(0,0,0,0.12)); color: var(--ink-soft); }
.meter-row { margin: 1rem 0; }
.meter-label, .meter-row p { display: flex; justify-content: space-between; gap: 1rem; }
.meter-row p { color: var(--ink-soft); margin: 0.35rem 0 0; font-size: 1rem; }
.meter { height: 4px; background: var(--paper-2); margin-top: 0.35rem; }
.meter span { display: block; height: 100%; background: var(--accent); }
.sources { padding-left: 1.1rem; }
.sources li { margin: 0.4rem 0; }
.sources a { text-underline-offset: 0.15em; }

.foot {
  display: grid;
  gap: 1.4rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 3px solid var(--ink);
}
.disclaimer, .colophon { color: var(--ink-soft); font-size: 1rem; }
.banner {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  margin: 1rem 0;
}
.banner-ok { border-color: var(--accent); }
.banner-err { border-color: var(--rust); }
.empty { color: var(--ink-soft); }

.prose { max-width: 42rem; }
.prose .actions { margin-top: 1.4rem; align-items: center; }
.prose .actions a:not(.add) { align-self: center; }
.stack { display: grid; gap: 0.45rem; max-width: 40rem; }
.stack label, .filter-label { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.row input { flex: 1; min-width: min(100%, 16rem); }
.desk h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.admin-list { display: grid; gap: 0.8rem; margin-top: 1rem; }
.admin-bot {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}
.admin-bot header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.admin-bot h2 { font-size: 1.6rem; margin: 0; }
.admin-bot h2 a { text-decoration: none; }
.admin-bot p { margin: 0.25rem 0; }
.filter-label { display: block; margin-top: 1.2rem; }
#filter, .add-bot input { width: min(100%, 36rem); }

code { font-family: "Outfit", ui-monospace, monospace; font-size: 0.92em; }

@media (min-width: 720px) {
  .site { width: min(1180px, calc(100% - 3.5rem)); }
  .recent { grid-template-columns: 1fr 1fr; }
  .bot-hero { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .art-large { aspect-ratio: var(--thumb-ratio); }
  .hero-note { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .foot { grid-template-columns: 1.2fr 0.8fr; }
  .disclaimer, .colophon { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .picks-spread {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1.15fr 1fr 1fr;
    overflow: visible;
    gap: 1.25rem;
  }
  .picks-spread > article:first-child { grid-column: span 2; }
  .picks-spread > article:first-child .art { aspect-ratio: var(--thumb-ratio); }
  .recent { grid-template-columns: 1fr 1fr 1fr; }
  .hero, section { margin-top: 4.2rem; }
  .hero { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .picks, .top-shelf-track { scroll-snap-type: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.weekly-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 4;
}
.weekly-bar[hidden] { display: none; }
.weekly-bar p { margin: 0; font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0.01em; max-width: 44rem; line-height: 1.35; }
.weekly-bar .sub { margin: 0; flex-wrap: nowrap; }
.weekly-bar input[type="email"] {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 239, 230, 0.35);
  min-height: 36px;
}
.weekly-bar .sub button, .weekly-dismiss {
  min-height: 36px;
  padding: 0.2rem 0.85rem;
  white-space: nowrap;
}
.weekly-dismiss {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font-family: var(--sans);
  cursor: pointer;
}

.pin-controls button, .pin-panel .add { min-height: 44px; }
.pin-shelf { margin-bottom: 2rem; }
.admin-bot.is-pinned { background: color-mix(in srgb, var(--accent) 8%, transparent); padding-inline: 0.8rem; }
.pin-panel {
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.4rem;
}
.pin-panel h2 { margin-top: 0; }

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.shot {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--thumb-bg); }
.lightbox {
  width: min(960px, calc(100% - 2rem));
  border: 0;
  padding: 0.8rem;
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(18, 17, 15, 0.72); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--thumb-bg); }
.lightbox p { margin: 0.6rem 0; }
.shot-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.shot-edit { display: grid; grid-template-columns: 160px 1fr; gap: 0.6rem 1rem; align-items: center; }
.shot-edit img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--thumb-bg); }
.shot-edit .admin-actions { grid-column: 2; }

.copy-grid { display: grid; gap: 1.5rem; }
.copy-preview {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: var(--paper-2);
}
.copy-preview p, .copy-preview h2, .copy-preview h3 { white-space: pre-wrap; }
.weekly-preview {
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  font-family: var(--sans);
}
.say { margin: 1rem 0 0; }
.say h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }

@media (min-width: 900px) {
  .copy-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .copy-preview { position: sticky; top: 4.2rem; }
}


.custom-art {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 1.8rem;
}
.custom-art figure {
  margin: 0;
  border: 1px solid var(--rule);
  padding: 0.8rem;
  background: var(--thumb-bg);
}
.custom-art img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--thumb-ratio);
  object-fit: contain;
  background: var(--thumb-bg);
}
.custom-art figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
}
@media (min-width: 720px) {
  .custom-art { grid-template-columns: 1fr 1fr; }
}

.privacy-note {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.privacy-note a { text-underline-offset: 0.15em; }
.weekly-bar .privacy-note { margin: 0; color: inherit; opacity: 0.85; }
.weekly-bar .privacy-note a { color: inherit; }
.sub .privacy-note { flex-basis: 100%; }


.card-name {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.3;
}
.cover .card-name { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
/* Reserved two-line title above the thumbnail so every image in a row starts at the same y. */
.card-link .card-name,
.cover-link .card-name {
  display: flex;
  align-items: flex-end;
  min-height: calc(2 * 1.3em);
}
.feature-link .card-name {
  display: flex;
  align-items: flex-start;
  min-height: calc(2 * 1.3em);
}
.card-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  width: 100%;
}
/* Korean/Japanese/Chinese card titles wrap at spaces, not mid-word ("X Healer Bot (X 힐러봇)"); still breaks a word too long for the line. */
.card-name, .card-name-text, .card-title, .rank-name, .cl-row-name, .ed-card h3, .ptile h4, .cl-home-card h4,
.bot .bot-hero h1, .cl-item .bot-hero h1 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-link .hook, .cover-link .hook, .shelf-card .hook {
  margin-top: 0.65rem;
}
.card-link .by, .cover-link .by, .shelf-card .by {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-search-block { max-width: 36rem; }
.site-search-header {
  flex: 1 1 18rem;
  min-width: min(100%, 16rem);
  max-width: 28rem;
}
.site-search-header .search-hints,
.site-search-footer .search-hints,
.site-search-page .search-hints {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.site-search-footer {
  max-width: 40rem;
  margin: 0 0 1.6rem;
}
.top-shelf { margin: 1.4rem 0 0.6rem; }
/* Keep Editor's Picks close to the carousel above it (NB-27). */
.top-shelf + .picks-block { margin-top: 1.2rem; }
.top-shelf h2 { margin: 0; }
.top-shelf-track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.top-shelf-track::-webkit-scrollbar { display: none; }
.shelf-card {
  flex: 0 0 min(16.5rem, 78vw);
  scroll-snap-align: start;
}
.shelf-card .hook {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}
.shelf-score {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .site-search-header { flex-basis: 100%; max-width: none; order: 3; }
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.7rem;
}
.carousel > .carousel-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.45rem;
}
.carousel > .carousel-controls[hidden] { display: none; }
.carousel-controls {
  display: flex;
  gap: 0.4rem;
  flex: none;
}
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--rust);
  color: var(--rust);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0.15rem 0 0;
  padding: 0;
}
.carousel-dots[hidden] { display: none; }
.carousel-dot {
  width: 1.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ink-soft);
  opacity: 0.45;
  transform: translate(-50%, -50%);
}
.carousel-dot:hover::after { opacity: 0.8; }
.carousel-dot[aria-current="true"]::after {
  background: var(--rust);
  opacity: 1;
  width: 0.58rem;
  height: 0.58rem;
}

/* Full list: filters and ranked rows */
.list-tools {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
}
.list-chip:hover { border-color: var(--ink); }
.list-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.list-chip[aria-current="true"] .count { color: var(--paper); opacity: 0.85; }
.list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.list-field { display: grid; gap: 0.3rem; }
.list-field-q { flex: 1 1 18rem; max-width: 30rem; }
.list-field label {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.list-field input, .list-field select {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--page);
  color: var(--ink);
  border-radius: 0;
  padding: 0.45rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  width: 100%;
}
.list-field select { min-width: 11rem; }
.list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
}
.list-toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); margin: 0; }
.list-apply {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  cursor: pointer;
}
.list-js .list-apply { display: none; }
.list-count {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.rank { list-style: none; margin: 1rem 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.rank li[hidden] { display: none; }
.rank li { overflow: visible; }
.rank a {
  display: grid;
  grid-template-columns: 2.4rem 112px minmax(0, 1fr) auto;
  grid-template-areas: "num art body score";
  gap: 0.4rem 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.rank a:hover .rank-name { text-decoration: underline; text-underline-offset: 0.15em; }
.rank-num {
  grid-area: num;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rank-art {
  grid-area: art;
  display: block;
  width: 100%;
  aspect-ratio: var(--thumb-ratio);
  overflow: hidden;
  background: var(--thumb-bg);
}
.rank-art svg, .rank-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rank-body { grid-area: body; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.rank-name { font-size: 1.15rem; line-height: 1.25; }
.rank-hook {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.rank-meta .by { font-style: normal; margin: 0; }
.rank-new {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  align-self: center;
}
.rank-score {
  grid-area: score;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 3rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rank-score-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.list-empty { margin-top: 1rem; }
.list-more { margin: 1.2rem 0 0; text-align: center; }
.list-more[hidden] { display: none; }
.list-more-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.list-more-button:hover { background: var(--ink); color: var(--paper); }

@media (min-width: 720px) {
  .rank a { grid-template-columns: 3rem 176px minmax(0, 1fr) 4.5rem; gap: 0.5rem 1.25rem; padding: 1rem 0; }
  .rank-name { font-size: 1.3rem; }
}

@media (max-width: 560px) {
  .list-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -0.25rem; padding: 0 0.25rem 0.2rem; }
  .list-chips::-webkit-scrollbar { display: none; }
  .list-chip { flex: 0 0 auto; }
  /* YouTube category chips wrap like the header nav, so "News" and "Builds and demos" stay on screen. */
  .yt-tools .list-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0 0 0.2rem; }
  .yt-tools .list-chip { white-space: nowrap; }
  .list-field-q { flex-basis: 100%; max-width: none; }
  .list-field:not(.list-field-q) { flex: 1 1 auto; }
  .rank a {
    grid-template-columns: 1.7rem 88px minmax(0, 1fr) auto;
    grid-template-areas: "num art body score";
    gap: 0.3rem 0.6rem;
    align-items: start;
  }
  .rank-num { font-size: 1rem; padding-top: 0.1rem; }
  .rank-name { font-size: 1.05rem; }
  .rank-hook { font-size: 0.92rem; }
  .rank-score { font-size: 1.15rem; min-width: 2.2rem; }
  .rank-score-label { font-size: 0.6rem; }
}

/* White page canvas; tan only on bot thumbnail frames.
   Light theme only; dark theme is unchanged. The weekly bar stays dark. */
html:not([data-theme="dark"]) .top,
html:not([data-theme="dark"]) .shelf-nav,
html:not([data-theme="dark"]) .issue,
html:not([data-theme="dark"]) .hero,
html:not([data-theme="dark"]) .hero-note,
html:not([data-theme="dark"]) .bot-note,
html:not([data-theme="dark"]) .top-shelf,
html:not([data-theme="dark"]) .top-shelf-track,
html:not([data-theme="dark"]) .picks,
html:not([data-theme="dark"]) .picks-block,
html:not([data-theme="dark"]) .cover,
html:not([data-theme="dark"]) .card,
html:not([data-theme="dark"]) .shelf-card,
html:not([data-theme="dark"]) .rank a,
html:not([data-theme="dark"]) .list-tools,
html:not([data-theme="dark"]) .list-chips,
html:not([data-theme="dark"]) .carousel-controls,
html:not([data-theme="dark"]) .carousel-btn,
html:not([data-theme="dark"]) .carousel-dots,
html:not([data-theme="dark"]) main > section,
html:not([data-theme="dark"]) main > article,
html:not([data-theme="dark"]) .bot,
html:not([data-theme="dark"]) .score-block,
html:not([data-theme="dark"]) .foot,
html:not([data-theme="dark"]) .lightbox,
html:not([data-theme="dark"]) .copy-preview,
html:not([data-theme="dark"]) .custom-art figure,
html:not([data-theme="dark"]) .pin-panel,
html:not([data-theme="dark"]) .banner {
  background: var(--page);
  box-shadow: none;
}

/* Thin rules separate sections on the flat white canvas.
   The hero sits under the nav's existing 3px bar, so it does not get another line.
   The footer keeps its existing 3px ink rule. */
html:not([data-theme="dark"]) main > section:not(.hero),
html:not([data-theme="dark"]) main > article {
  border-top: 1px solid var(--rule);
}

/* Beige lives only here: thumbnail frames use --thumb-bg (#e7e1d4) on the white page. */
html:not([data-theme="dark"]) .art,
html:not([data-theme="dark"]) .art-large,
html:not([data-theme="dark"]) .rank-art,
html:not([data-theme="dark"]) .custom-art img,
html:not([data-theme="dark"]) .shot img,
html:not([data-theme="dark"]) .shot-edit img,
html:not([data-theme="dark"]) .lightbox img {
  background: var(--thumb-bg);
}

/* Form fields sit on the white page, so fill them with the page color.
   Leave the weekly bar inputs alone. */
html:not([data-theme="dark"]) .site-search input[type="search"],
html:not([data-theme="dark"]) .hero input[type="email"],
html:not([data-theme="dark"]) .bot-note input[type="email"],
html:not([data-theme="dark"]) .top .sub input[type="email"],
html:not([data-theme="dark"]) .foot input[type="email"],
html:not([data-theme="dark"]) .stack input,
html:not([data-theme="dark"]) .stack textarea,
html:not([data-theme="dark"]) .stack select,
html:not([data-theme="dark"]) .gate-form input,
html:not([data-theme="dark"]) .list-field input,
html:not([data-theme="dark"]) .list-field select {
  background: var(--page);
}

/* Bots without enough signal show a short note instead of a number. */
.rank-score.is-pending { justify-content: center; max-width: 7.5rem; }
.rank-score-none {
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: right;
  color: var(--ink-soft);
}
.shelf-score.is-pending { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0; }
.score-block h2.score-none { font-size: 1.35rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .rank-score.is-pending { max-width: 4.2rem; min-width: 0; }
  .rank-score-none { font-size: 0.6rem; line-height: 1.25; overflow-wrap: normal; }
}

/* Bookmark buttons on cards and list rows. */
.bm { margin: 0.35rem 0 0; }
.bm-button {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.bm-button:hover { border-color: var(--ink); }
.bm-button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rank li .bm { margin: 0 0 0.6rem; }

/* Sign in with Google */
.google-row { margin: 0; }
.auth-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
  max-width: 22rem;
}
.auth-buttons .google-button,
.comment-auth .google-button,
.gate-form .google-button {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.google-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 500;
  text-decoration: none;
}
.google-button:hover { background: #f6f6f6; }
.or-row { margin: 1.4rem 0 1.2rem; font-size: 0.875rem; opacity: 0.75; }

/* Next build, 19 November 2026 */
.independent {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.independent a { color: inherit; text-underline-offset: 0.15em; }
.independent-bot { margin-top: 0.8rem; }
.plus-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.plus-button:hover { background: var(--rust, var(--ink)); }
.sub-box {
  display: grid;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.sub-box p { margin: 0; font-size: 1rem; line-height: 1.45; }
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.8rem 0 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.sort-label { color: var(--ink-soft); margin-right: 0.2rem; }
.sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}
.sort-link:hover { border-color: var(--ink); }
.sort-link[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.banner-links a { margin-left: 0.6rem; font-weight: 600; }
.vote { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.vote .thumb { flex: 0 0 auto; }
.vote[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.x-button .x-mark { color: #000; }
.github-button { background: #24292f; border-color: #24292f; color: #fff; }
.github-button:hover { background: #1b1f23; color: #fff; }
.github-button .gh-mark { color: #fff; }
.apple-button { background: #000; border-color: #000; color: #fff; }
.apple-button:hover { background: #1a1a1a; color: #fff; }
.apple-button .apple-mark { color: #fff; }
.rank-score-of { font-size: 0.7em; color: var(--ink-soft); }
.plus-perks { padding-left: 1.1rem; }
.plus-perks li { margin: 0.5rem 0; line-height: 1.5; }
.plus-perks strong { display: block; }
/* Featured Stories and YouTube Picks: two boxes under the homepage slider, stacked on phones. */
.features {
  display: grid;
  gap: 2rem;
  padding-top: 1.4rem;
}
.feature-box { min-width: 0; display: flex; flex-direction: column; }
.feature-box-title {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.feature-link .card-name { margin: 0.85rem 0 0; }
.feature-link:hover .card-name, .feature-link:focus-visible .card-name { text-decoration: underline; text-underline-offset: 0.12em; }
.feature-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-more { margin: 0.7rem 0 0; font-family: var(--sans); font-size: 0.95rem; }
.feature-more a { text-underline-offset: 0.15em; }
.art img[src*="i.ytimg.com"] { object-fit: cover; }
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}

/* Story and video pages. */
.feature-page > h1 { max-width: 46rem; margin-bottom: 0.35rem; }
.feature-page > .by { font-family: var(--sans); color: var(--ink-soft); margin: 0 0 1.2rem; }
.feature-page > .art-large { max-width: 52rem; }
.feature-body { margin-top: 1.6rem; }
.feature-body a { text-underline-offset: 0.15em; }
.feature-body blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink);
}
.feature-body blockquote p { margin: 0.4rem 0; }
.feature-body pre { overflow-x: auto; padding: 0.8rem; background: var(--paper-2); }
.feature-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.feature-sources, .feature-bots { margin-top: 2.6rem; }
.feature-bot.is-pending .hook { font-style: italic; }
.video-embed {
  position: relative;
  max-width: 52rem;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
}
.feature-nav a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: inherit; }
.feature-nav a[rel="next"], .feature-nav span:last-child { text-align: right; }
.feature-nav-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.feature-nav-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.feature-nav a:hover .feature-nav-title { text-decoration: underline; }
.feature-nav-empty { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.5; }
html:not([data-theme="dark"]) .features,
html:not([data-theme="dark"]) .feature-box,
html:not([data-theme="dark"]) .feature-page { background: var(--page); box-shadow: none; }
html:not([data-theme="dark"]) .video-embed { background: var(--paper-2); }

.team-intro {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 40rem;
  color: var(--ink);
}
.team-independence {
  margin: 0 0 1.6rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 40rem;
  color: var(--ink-soft);
}
.team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.4rem;
}
@media (min-width: 640px) {
  .team-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .team-list { grid-template-columns: 1fr 1fr 1fr; }
}
.team-member {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--paper-2);
  border-radius: 14px;
  border-top: 0;
}
.team-avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
}
.team-avatar img,
.team-avatar svg {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: cover;
  max-width: none;
}
.team-body { min-width: 0; flex: 1; }
.team-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 560;
  line-height: 1.2;
}
.team-handle, .team-role { margin: 0.2rem 0 0; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.team-handle { margin-top: 0.35rem; }
.team-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}
.team-bots a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--page);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-decoration: none;
  color: inherit;
}
.team-bots a:hover, .team-bots a:focus-visible { border-color: var(--ink); }

.plus-grid {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.plus-tile {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0.9rem 0.95rem;
  background: var(--paper-2);
  border-radius: 14px;
}
.plus-tile p { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.plus-tile strong { display: block; font-family: var(--sans); }
.plus-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--paper-2, #f1f0ed);
  color: var(--ink);
  border-radius: 10px;
}
.plus-box {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--paper-2);
  border-radius: 14px;
}
.plus-box .kicker { margin-bottom: 0.35rem; }
.plus-box p { margin: 0.35rem 0 0; }
.plus-box .add { margin-top: 0.7rem; }
.early-list { display: grid; gap: 1.1rem; margin: 1.2rem 0 1.5rem; }
.early-item { padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.early-item h2 { margin: 0.15rem 0 0.35rem; font-size: 1.2rem; }
.settings-set { border: 0; padding: 0; margin: 0.6rem 0 1rem; }
.settings-set legend { font-weight: 650; margin-bottom: 0.4rem; }
.settings-set label { display: block; margin: 0.3rem 0; }

/* Website Plus: the two plan buttons. */
.plus-plans { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.plus-plan { display: flex; flex-direction: column; gap: 0.35rem; }
.plus-plan .add { cursor: pointer; }

/* Calmer header, 20 November 2026: Get Plus, one account menu, and an icon theme button. */
.tools { gap: 0.75rem; }
.theme {
  width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--rule);
}
.theme:hover { border-color: var(--ink); }
/* Theme menu, 20 November 2026: the round button opens System, Light, White and Dark. */
.theme-menu { position: relative; }
.theme-menu > summary { list-style: none; }
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-menu[open] > summary { border-color: var(--ink); }
.theme-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 20;
  min-width: 9.5rem;
  display: grid;
  padding: 0.35rem 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.12);
}
.theme-menu-list button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.theme-menu-list button::before {
  content: "";
  width: 0.7rem;
  height: 0.38rem;
  margin-top: -0.2rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  visibility: hidden;
}
.theme-menu-list button[aria-checked="true"]::before { visibility: visible; }
.theme-menu-list button[aria-checked="true"] { font-weight: 600; }
.theme-menu-list button:hover { background: var(--paper-2); }
.theme-menu-list button:focus-visible { outline-offset: -2px; }
.account-menu { position: relative; }
.account-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.2rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  cursor: pointer;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}
.account-menu[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.account-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 20;
  min-width: 12rem;
  max-width: calc(100vw - 2rem);
  display: grid;
  padding: 0.35rem 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.12);
}
/* Keep the list inside the viewport at every width, without depending on a
   header-width breakpoint. Default is right: 0, which is correct while Account
   is on the right. The 500px left-anchor is only a no-JS fallback for narrow
   phones; it is not enough for a free member's Get Plus header, where the tools
   stay wrapped and Account stays on the left up to 599px. account-menu.js
   measures the open list and sets data-anchor to left, right, or a clamped
   offset so the list stays inside the viewport for every header variant.
   max-width: calc(100vw - 2rem) is the CSS clamp. The script also keeps the
   left edge from going below 0 and the right edge from passing 100vw.
   Do not use position-try. */
@media (max-width: 500px) {
  .account-menu-list {
    left: 0;
    right: auto;
  }
}
.account-menu-list[data-anchor="right"] {
  left: auto;
  right: 0;
}
.account-menu-list[data-anchor="left"] {
  left: 0;
  right: auto;
}
.account-menu-list[data-anchor="clamp"] {
  right: auto;
}
.account-menu-list a,
.account-menu-list button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu-list a:hover,
.account-menu-list button:hover { background: var(--paper-2, rgba(20, 16, 12, 0.06)); }
.account-menu-list form { margin: 0; border-top: 1px solid var(--rule); }

/* Home and interior three-part box, final order (David, 20 November 2026): wide screens read our Grok Bot, the
   newsletter, then the iPhone app; on phones the newsletter comes last. Overrides the placements above. */
.hero-split .bot-promo { grid-column: 1; grid-row: 1; }
.hero-split .hero-note { grid-column: 2; grid-row: 1; }
.hero-split-3 .hero-note { grid-column: 2; grid-row: 1; border-left: 1px solid var(--rule); padding: 1rem 1.25rem; }
.hero-split-3 .ios-promo { grid-column: 3; grid-row: 1; border-left: 1px solid var(--rule); padding: 1rem 0 1rem 1.25rem; }
.hero-split:not(.hero-split-3) .ios-promo { grid-column: 1; grid-row: 1; }
@media (max-width: 840px) {
  .hero-split, .hero-split-3 { grid-template-columns: 1fr; }
  .hero-split > * { grid-column: 1 !important; border-left: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .hero-split .bot-promo { grid-row: 1; border-bottom: 1px solid var(--rule); }
  .hero-split .ios-promo { grid-row: 2; border-bottom: 1px solid var(--rule); }
  .hero-split .hero-note { grid-row: 3; border-bottom: 0; }
}

/* Hide the site's iPhone app promo row on phones. The Smart App Banner covers the App Store
   link. The weekly newsletter box stays. Desktop keeps the row (David, 22 November 2026). */
@media (max-width: 840px) {
  .ios-promo { display: none; }
  /* Avoid an empty grid row where the app promo sat. */
  .hero-split:has(.ios-promo) .bot-promo,
  .hero-split-3:has(.ios-promo) .bot-promo { grid-row: 1; }
  .hero-split:has(.ios-promo) .hero-note,
  .hero-split-3:has(.ios-promo) .hero-note { grid-row: 2; border-bottom: 0; }
}

/* Home page: search sits in the Top Rated row, between the heading and the arrows. */
.carousel-head .site-search-home { flex: 1 1 18rem; max-width: 30rem; margin-left: auto; }
.carousel-head .site-search-home .site-search { max-width: none; }
.home-search-row { display: flex; justify-content: flex-end; margin: 1.4rem 0 0.6rem; }
@media (max-width: 800px) {
  .carousel-head { flex-wrap: wrap; }
  .carousel-head .site-search-home { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
}

/* Phones: the first screen shows bots before any scrolling (David, 20 November 2026). The black newsletter bar is
   left out (the newsletter is in the box below Top Rated and in the footer), and the masthead is tighter. */
@media (max-width: 720px) {
  .weekly-bar { display: none; }
  .top { padding: 0.7rem 0 0.5rem; gap: 0.5rem 1rem; }
  .wordmark { font-size: 2rem; }
  .credit { margin-top: 0.2rem; }
  .shelf-nav { padding: 0.45rem 0 0.55rem; }
  .issue { margin-top: 0.5rem; }
  .top-shelf { margin-top: 0.8rem; }
  .carousel-head { margin-bottom: 0.5rem; gap: 0.6rem; }
  .carousel-head h2 { font-size: 1.9rem; }
}
.account-menu-who {
  margin: 0;
  padding: 0.5rem 1rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
/* /join ads landing: logo, form, sample picks, and a small footer. */
body.join-landing {
  background: var(--page);
}
.join-shell {
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.join-top {
  margin: 0 0 1.6rem;
}
.join-wordmark {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.join-page h1 {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(1.85rem, 7vw, 2.4rem);
  line-height: 1.15;
}
.join-dek, .join-what {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}
.join-page .sub {
  margin: 0 0 0.35rem;
}
.join-picks {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.join-picks .card {
  margin: 0;
}
.join-picks .card-link {
  text-decoration: none;
  color: inherit;
}
.join-foot {
  margin-top: auto;
  padding-top: 2.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.join-foot p { margin: 0.35rem 0 0; }
.join-foot a { color: inherit; }
.join-foot .disclaimer {
  margin-bottom: 0.85rem;
  font-size: inherit;
  line-height: 1.45;
  max-width: 36em;
}
.plus-prices {
  margin: 0.85rem 0 0;
}
.plus-price-alt {
  color: var(--ink-soft);
}
.plus-price-row {
  margin: 0.45rem 0 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}
.plus-price-row a {
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 0.15em;
}
.plus-price-row .plus-trial {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

/* On phones, the price and subscribe block sits under the intro so it is on or near
   the first screen. Source order stays intro → perks → subscribe, so desktop is unchanged. */
@media (max-width: 840px) {
  .plus-page {
    display: flex;
    flex-direction: column;
  }
  .plus-intro { order: 1; }
  .plus-subscribe { order: 2; }
  .plus-page > .plus-perks { order: 3; }
}

/* Grok on YouTube (/youtube): pinned team video, search and filters, then a grid of videos. */
.yt-page > .dek { margin-bottom: 1.6rem; }
.yt-pin { margin: 0 0 2.2rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.yt-tools { display: grid; gap: 0.9rem; margin: 0 0 1.8rem; scroll-margin-top: 4.5rem; }
.yt-clear { align-self: center; font-family: var(--sans); font-size: 0.95rem; text-underline-offset: 0.15em; }
.yt-results { margin-top: 0; }
.yt-grid { display: grid; gap: 1.6rem; }
.yt-card { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.yt-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.yt-art { aspect-ratio: 16 / 9; }
.yt-art img { object-fit: cover; }
.yt-title { margin: 0.75rem 0 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.yt-link:hover .yt-title, .yt-link:focus-visible .yt-title { text-decoration: underline; text-underline-offset: 0.12em; }
.yt-meta { margin: 0.35rem 0 0; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.yt-summary { margin-top: 0.45rem; }
.yt-card .badges { margin: 0.6rem 0 0; }
.yt-empty { font-size: 1.15rem; max-width: 40rem; }
.yt-card-pin { border-top: 0; padding-top: 0; }
.yt-pin .yt-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.yt-pin .yt-title a { color: inherit; text-decoration: none; }
.yt-pin .yt-title a:hover, .yt-pin .yt-title a:focus-visible { text-decoration: underline; text-underline-offset: 0.12em; }
@media (min-width: 720px) {
  .yt-grid { grid-template-columns: 1fr 1fr; }
  .yt-card-pin { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
  .yt-pin .yt-title { margin-top: 0; }
}
@media (min-width: 1040px) {
  .yt-grid { grid-template-columns: 1fr 1fr 1fr; }
}
html:not([data-theme="dark"]) .yt-page { background: var(--page); }

/* "Your GrokBotHQ Plus" dashboard (David, 21 November 2026). */
.plus-cards {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.plus-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rust);
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plus-card h2 { font-size: 1.3rem; margin: 0; }
.plus-card p { margin: 0; color: var(--ink-soft); flex: 1; }
.plus-card .add, .plus-card form { align-self: flex-start; }
.based-on { margin: 0 0 1rem; color: var(--ink-soft); }

/* The fold around the three-part box on inside pages (David, 22 November 2026). */
.promo-fold { position: relative; }
.promo-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  min-width: 44px;
  margin-left: auto;
  width: fit-content;
  color: var(--ink-soft);
}
.promo-fold > summary::-webkit-details-marker { display: none; }
.promo-fold > summary::after {
  content: "";
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  transition: transform 0.15s ease;
}
.promo-fold:not([open]) > summary::after { transform: rotate(90deg); }
.promo-fold:not([open]) > summary { border-bottom: 1px solid var(--rule); width: 100%; }
.promo-fold[open] > summary { position: absolute; right: 0; top: 0; z-index: 1; }


/* /newsletter: a public ads landing with the pitch, weekly list, and a signup at the top and bottom. */
.newsletter-page { max-width: 40rem; }
.newsletter-page > .kicker { margin: 0 0 0.35rem; }
.newsletter-page > h1 { margin: 0 0 0.6rem; }
.newsletter-page > .dek { margin: 0 0 1.25rem; }
.newsletter-page > .sub { margin: 0 0 2rem; }
.newsletter-what { margin: 0 0 2.2rem; padding-top: 0.2rem; border-top: 1px solid var(--rule); }
.newsletter-what h2 { margin: 1.2rem 0 0.7rem; }
.newsletter-what ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.newsletter-what h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.newsletter-what p { margin: 0; color: var(--ink-soft); }
.newsletter-signup-again { padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.newsletter-signup-again h2 { margin: 0 0 0.4rem; }
.newsletter-signup-again > p { margin: 0 0 1rem; color: var(--ink-soft); }

.archive-entry { margin: 0.45rem 0 0; font-size: 1rem; }
.hero-note .archive-entry { margin-top: 0.75rem; }
.newsletter-page > .archive-entry { margin: -0.45rem 0 1.15rem; }
.newsletter-page > #signup { margin: 0 0 2rem; }
.newsletter-page > #signup > .sub { margin: 0; }
.foot .archive-entry { margin: 0.4rem 0 0.85rem; }
.archive-lead { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 40rem; }
.archive-heading { margin: 1.8rem 0 0.75rem; font-size: 1.35rem; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.archive-date { color: var(--ink-soft); }
.archive-item-locked .archive-title { color: var(--ink-soft); }
.archive-subscribe, .archive-pdf { white-space: nowrap; }
.archive-empty, .archive-signup-note { color: var(--ink-soft); }
.archive-signup-note { margin-top: 2rem; }
.archive-issue-date { color: var(--ink-soft); margin: 0 0 0.35rem; }
.archive-issue-pdf { margin: 0 0 1.25rem; }
.archive-issue-body { margin-top: 0.5rem; }
.archive-issue-body a { color: var(--link); }
@media (max-width: 700px) {
  .archive-item { grid-template-columns: 1fr auto; }
  .archive-date { grid-column: 1 / -1; }
}


/* --- Nav v5: section nav, Plus pill, category row, H1-row search, menu sheet --- */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.nav-bar .wordmark {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}
.nav-sections {
  display: none;
  align-items: center;
  gap: 0.15rem 0.95rem;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-sections a {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-sections a[aria-current="page"] {
  border-bottom: 1.5px solid var(--ink);
}
.nav-bar .plus-pill {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rust, #9a3b1a);
  background: color-mix(in srgb, var(--rust, #9a3b1a) 10%, var(--page, #fff));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.nav-bar .plus-pill:hover { background: color-mix(in srgb, var(--rust, #9a3b1a) 18%, var(--page, #fff)); }
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.nav-end .plus-button { min-height: 40px; padding: 0.35rem 0.9rem; white-space: nowrap; }
.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg { display: block; }
.menu-sheet .icon-btn { display: inline-flex; }

.masthead-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.45rem 0 0;
  font-size: 0.88rem;
}
.masthead-legal .independent { margin: 0; }
.masthead-legal .credit { color: var(--ink-soft, inherit); }

.cat-row-wrap { padding-top: 0.15rem; }
.cat-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.7rem 0 0.75rem;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-break { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.cat-chip[aria-current="true"] {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--rust-ink, #fff);
  font-weight: 500;
}

@media (min-width: 841px) {
  .nav-bar {
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
  }
  .nav-bar .wordmark { font-size: 1.8rem; }
  .nav-sections { display: flex; flex-wrap: nowrap; }
  .nav-bar .plus-pill { display: inline-flex; }
  .nav-end .icon-btn { display: none !important; }
  .cat-row {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.45rem 0.5rem;
  }
  .cat-break {
    display: block;
    flex: 0 0 100%;
    height: 0;
    overflow: hidden;
  }
}

@media (max-width: 840px) {
  .nav-bar { padding: 0.45rem 0; gap: 0.35rem; }
  .nav-bar .wordmark { font-size: 1.45rem; }
  .nav-bar .plus-pill,
  .nav-end .plus-button,
  .nav-end .account-menu,
  .nav-end .text-button,
  .nav-end .theme-menu { display: none; }
  .nav-end .icon-btn { display: inline-flex; }
}

main, #content { container-type: inline-size; }
.title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  grid-template-areas:
    "kicker kicker"
    "title  search"
    "dek    hint";
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  align-items: start;
  margin: 0.35rem 0 0.8rem;
}
.title-row .kicker,
.title-row .issue-line { grid-area: kicker; margin-bottom: 0; }
.title-row h1,
.title-row h2 {
  grid-area: title;
  margin: 0;
  min-width: 0;
  font-size: clamp(2.4rem, 7cqi, 5.4rem);
}
.title-search { grid-area: search; margin: 0; }
.title-search-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.title-search-box input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  border-right: 0;
  padding: 0.45rem 0.8rem;
  font-family: var(--serif);
  font-size: 1rem;
  background: var(--page, #fff);
  color: var(--ink);
}
.title-search-box button {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--page, #fff);
  padding: 0.45rem 0.9rem;
  font-family: var(--sans);
  cursor: pointer;
}
.title-dek { grid-area: dek; margin: 0.35rem 0 0; }
.title-search-hint {
  grid-area: hint;
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink-soft, #5c564e);
}

@media (max-width: 840px) {
  .title-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "dek"
      "search"
      "hint";
    row-gap: 0.35rem;
  }
  .title-search { max-width: none; }
}

.menu-sheet {
  box-sizing: border-box;
  width: min(28rem, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0.45rem 1rem 2rem;
  background: var(--page, #fff);
  color: var(--ink);
}
@media (max-width: 840px) {
  .menu-sheet {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    margin: 0;
  }
}
.menu-sheet::backdrop { background: rgba(20, 16, 12, 0.35); }
.menu-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.menu-sheet-top .wordmark { font-size: 1.45rem; text-decoration: none; color: var(--ink); }
.menu-sheet .menu-plus-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 1rem 0 0.15rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--rust, #9a3b1a);
  background: color-mix(in srgb, var(--rust, #9a3b1a) 12%, var(--page, #fff));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}
.menu-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.menu-list a {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.menu-account {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
}
.menu-account a,
.menu-account button {
  color: var(--ink);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.footer-nav { margin: 0.6rem 0 0; font-family: var(--sans); }
.footer-nav a { margin-right: 0; }

.card-link .hook,
.cover-link .hook {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --- home-v6 mock: section row, divider, share, video watch, sidebar subscribe --- */
.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1.35rem;
  margin: 0;
  padding: 0.7rem 0 0.75rem;
  list-style: none;
}
.section-row a {
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--ink);
  padding: 0.15rem 0;
}
.section-row a[aria-current="page"] {
  border-bottom: 1.5px solid var(--ink);
}
@media (min-width: 841px) {
  .section-row {
    gap: 0.65rem 1.75rem;
    padding: 0.85rem 0 0.9rem;
  }
  .section-row a { font-size: 1.35rem; }
}
hr.nav-divider {
  display: block;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  height: 0;
}

/* Weekly newsletter sidebar: email on its own row, Subscribe left underneath. */
.hero-note .sub,
.video-signup .sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.55rem;
}
.hero-note .sub input[type="email"],
.video-signup .sub input[type="email"] {
  width: 100%;
  flex: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-note .sub button,
.video-signup .sub button {
  align-self: flex-start;
  width: auto;
  flex: none;
}

.share-button,
button.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.share-button .share-icon,
.card-action .share-icon { display: block; }
.pin-note {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.video-watch { max-width: 52rem; }
.video-watch .video-embed,
.feature-page .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 1rem 0 0.75rem;
}
.video-watch .video-embed iframe,
.feature-page .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-open { margin: 0.85rem 0 1.3rem; }
.video-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.video-open-button:hover,
.video-open-button:focus-visible {
  background: var(--paper-2, var(--paper));
  border-color: var(--ink);
}
.video-related { margin: 2rem 0 1.5rem; }
.video-related h2,
.video-watch .feature-bots h2 { margin: 0 0 0.8rem; }
.video-signup { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--rule); }

.hero-note.video-signup,
.video-signup.hero-note {
  display: block;
}
.hero-note.video-signup p { max-width: none; }


/* AI Field Report hub at "/" (23 November 2026). White or dark page; no beige. */
.hub { padding: 2.5rem 0 1rem; }
.hub-hero { max-width: 46rem; padding-bottom: 2rem; }
.hub-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0.4rem 0 1rem; }
.hub-dek { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.hub-hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hub-sections { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.hub-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.hub-card { border: 1px solid var(--rule); border-radius: 14px; background: var(--page); padding: 1.3rem 1.4rem; }
.hub-card h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0.2rem 0 0.5rem; }
.hub-card-link { display: block; text-decoration: none; color: inherit; }
.hub-card-link:hover h2, .hub-card-link:focus-visible h2 { text-decoration: underline; }
.hub-tally { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }
.hub-cta { font-family: var(--sans); font-weight: 600; color: var(--accent); }
.hub-card-soon { color: var(--ink-soft); }
.hub-foot { margin-top: 2.5rem; }

/* AI Field Report header logo (the has-logo class is only rendered on aifieldreport.com). */
.wordmark.has-logo { display: inline-flex; align-items: center; gap: 0.4em; }
.wordmark-logo { height: 1.15em; width: auto; flex: none; }


/* ===== t736 (Nov 24, 2026): Grok Bots directory — New Bots, videos ===== */
:root { --tone-violet: #5a3fc0; --tone-violet-bg: #eeeafd; --tone-blue-bg: #e6effc; --tone-rust: #b23c12; --tone-rust-bg: #fdebe3; }
:root[data-theme="dark"] { --tone-violet: #b9a8ff; --tone-violet-bg: #251d45; --tone-blue-bg: #13264a; --tone-rust: #f0a07c; --tone-rust-bg: #3a1d12; }
.new-bots { margin: 1rem 0 1.6rem; padding: 1rem 1rem 0.6rem; border-radius: 16px; background: var(--tone-rust-bg); }
.new-bots .carousel-head { align-items: flex-end; }
.new-bots .kicker { color: var(--tone-rust); margin: 0 0 0.15rem; }
.new-bots .dek { margin: 0.2rem 0 0; font-family: var(--sans); font-size: 0.92rem; }
.new-bots .dek a { color: var(--tone-rust); font-weight: 600; }
.new-bots .shelf-card { background: var(--page); border-radius: 10px; padding: 0.55rem; }
.new-when { margin: 0.45rem 0 0; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone-rust); font-weight: 650; }

.dir-videos { margin: 2rem 0 0.6rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, var(--tone-violet-bg), var(--tone-blue-bg)); }
.dir-videos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.dir-videos-head h2 { margin: 0; }
.dir-videos-head .kicker { margin: 0 0 0.1rem; color: var(--tone-violet); }
.dir-videos-head > a { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--tone-violet); white-space: nowrap; }
.dir-videos-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .dir-videos-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.3rem; } }
.dir-videos .lite-wrap { margin: 0; }
.dir-videos .lite-yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.dir-videos .lite-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-videos .lite-yt iframe, .dir-videos .is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dir-videos .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: rgba(26, 23, 20, 0.86); color: #fff; }
.dir-videos .play svg { width: 45%; height: 45%; }
.dir-videos figcaption { margin-top: 0.55rem; display: flex; flex-direction: column; gap: 0.1rem; }
.dir-videos figcaption strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.dir-videos figcaption .by { font-style: italic; color: var(--ink-soft); font-size: 0.92rem; }
.dir-videos-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; align-content: start; }
.dir-videos-list a { display: grid; grid-template-columns: 128px 1fr; gap: 0.7rem; text-decoration: none; color: inherit; }
.dir-videos .vb-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.dir-videos .vb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-videos .vb-thumb .play { width: 30px; height: 30px; }
.dir-videos .vb-copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dir-videos .vb-copy strong { font-family: var(--serif); font-size: 0.98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dir-videos .vb-copy .by { font-style: italic; font-size: 0.84rem; color: var(--ink-soft); }
/* Pre-existing bug: the visually-hidden "Rating" label in off-screen Top Rated cards escaped the scroller (no positioned
   ancestor), which made the whole Grok Bots page ~2× wider than the window on desktop. Contain it in the card. */
.shelf-card, .top-shelf-track { position: relative; }
/* The light-theme "white canvas" rule above (html:not([data-theme="dark"]) .top-shelf …) would flatten New Bots to white. */
html .top-shelf.new-bots, html:not([data-theme="dark"]) .top-shelf.new-bots { background: var(--tone-rust-bg); }
html:not([data-theme="dark"]) .new-bots .top-shelf-track { background: transparent; }
html:not([data-theme="dark"]) .new-bots .shelf-card { background: var(--page); }
html:not([data-theme="dark"]) .new-bots .carousel-controls, html:not([data-theme="dark"]) .new-bots .carousel-dots, html:not([data-theme="dark"]) .new-bots .carousel-head { background: transparent; }
html:not([data-theme="dark"]) main > section.dir-videos { background: linear-gradient(135deg, var(--tone-violet-bg), var(--tone-blue-bg)); border-top: 0; }
html:not([data-theme="dark"]) main > section.new-bots { border-top: 0; }
