/*
  Elseweb design tokens. The single source of truth for every colour, space,
  size and shape on the public site. Read design/system.md before changing one.
  Component geometry lives in the canonical design stylesheets.
*/
:root {
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --danger-ink: #ffffff;
  --switch-thumb: #ffffff;
  --mask-opaque: #000000;
  --button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.14);
  --switch-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --dialog-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  --admin-dialog-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
  --backdrop: rgba(0, 0, 0, 0.4);
  --bg: #ffffff;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --body: #424245;
  --sec: #63636a;
  --faint: #8e8e93;
  --hair: rgba(0, 0, 0, 0.1);
  --edge: rgba(0, 0, 0, 0.04);
  --wash: rgba(0, 0, 0, 0.045);
  --link: #0b63ce;
  --nav: rgba(255, 255, 255, 0.78);
  --btn: #1d1d1f;
  --btn-ink: #ffffff;
  --field: #ffffff;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s40: 40px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
  --s11: 160px;
  --danger: #b3261e;
  --gutter: var(--s5);
  --sect: calc(var(--s8) + var(--s2));
  --flow: var(--s5);
  --pad: var(--s5);
  --pad-end: var(--pad);
  --r: 16px;
  --toast-max-width: 360px;
  --toast-icon-size: 20px;
  --reading-width: 920px;
  --reading-radius: 12px;
  --reading-row-pad: 20px;
  --reading-title-size: 18px;
  --reading-title-leading: 26px;
  --reading-title-weight: 500;
  --reading-border: #dedee2;
  --line: 1px;
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --reading-border: #333338;
    --tile: #18181a;
    --ink: #f5f5f7;
    --body: #c7c7cc;
    --sec: #a1a1a6;
    --faint: #7c7c82;
    --hair: rgba(255, 255, 255, 0.12);
    --edge: rgba(255, 255, 255, 0.06);
    --wash: rgba(255, 255, 255, 0.06);
    --link: #4aa3ff;
    --danger: #ff6b61;
    --danger-ink: #1d1d1f;
    --nav: rgba(11, 11, 12, 0.72);
    --btn: #f5f5f7;
    --btn-ink: #1d1d1f;
    --field: #0b0b0c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --reading-border: #333338;
  --tile: #18181a;
  --ink: #f5f5f7;
  --body: #c7c7cc;
  --sec: #a1a1a6;
  --faint: #7c7c82;
  --hair: rgba(255, 255, 255, 0.12);
  --edge: rgba(255, 255, 255, 0.06);
  --wash: rgba(255, 255, 255, 0.06);
  --link: #4aa3ff;
  --danger: #ff6b61;
  --danger-ink: #1d1d1f;
  --nav: rgba(11, 11, 12, 0.72);
  --btn: #f5f5f7;
  --btn-ink: #1d1d1f;
  --field: #0b0b0c;
  color-scheme: dark;
}
@media (min-resolution: 2dppx) {
  :root {
    --line: 0.5px;
  }
}
@media (prefers-contrast: more) {
  :root {
    --hair: currentColor;
    --reading-border: currentColor;
    --sec: var(--body);
    --faint: var(--body);
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: var(--s4);
    --sect: var(--s7);
    --flow: var(--s5);
    --pad: var(--s4);
  }
}

/*
  Elseweb public components. Uses only values from tokens.css.
  Each block is documented in design/components.md.
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
::selection {
  background: color-mix(in srgb, var(--link) 24%, transparent);
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hanging-punctuation: first;
}
:where(body, #root):has(> .footer) {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
:where(body, #root):has(> .footer) > main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: var(--s4);
  top: var(--s1);
  z-index: 20;
  padding: var(--s3) var(--s4);
  border-radius: 980px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 14px;
  line-height: 20px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.more {
  color: var(--link);
  white-space: nowrap;
  display: inline-block;
  padding: var(--s3) 0;
  margin: calc(var(--s3) * -1) 0;
}
.more::after {
  content: " \203A";
}
.more {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.more:hover {
  text-decoration-color: currentColor;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.2s;
}
.topbar.on {
  box-shadow: 0 var(--line) 0 var(--hair);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--s40);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: var(--s2) 0;
}
.brand-mark {
  display: block;
  width: var(--s6);
  height: var(--s6);
  flex-shrink: 0;
  transform: translateY(2px);
}
.topbar nav {
  align-items: center;
  min-width: 0;
  margin-left: auto;
  display: flex;
  gap: var(--s40);
}
.topbar nav > a {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--sec);
  padding: 22px 0;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.topbar nav > a:hover,
.topbar nav > a[aria-current] {
  color: var(--ink);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.011em;
  transition:
    background-color 0.15s,
    transform 0.15s var(--out);
  box-shadow: var(--button-shadow);
}
.pill[hidden] {
  display: none;
}
.pill:active {
  transform: scale(0.97);
}
.pill.small {
  position: relative;
  font-size: 15px;
  line-height: 20px;
  padding: 0 var(--s4);
  height: 36px;
}
.pill.small::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.pill.large {
  font-size: 16px;
  line-height: 24px;
  padding: 0 var(--s5);
  height: 44px;
}

/* Hero */
.hero {
  text-align: center;
  padding: var(--s7) 0 calc(var(--s7) + var(--s2));
}
.when {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--sec);
}
.when b {
  color: var(--ink);
  font-weight: 600;
}
.when i {
  width: var(--line);
  height: 16px;
  background: var(--hair);
  box-shadow: 0 0 0 0.5px var(--hair);
}
.hero h1 {
  margin: 0 auto;
  max-width: 12em;
  font-size: 52px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-accent,
.topic-accent {
  color: var(--link);
}
.hero .when + h1,
.hero .eyebrow + h1 {
  margin-top: var(--s4);
}
.hero .hero-text {
  margin: var(--flow) auto 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.02em;
  color: var(--sec);
  text-wrap: balance;
}
.hero .hero-text b {
  color: var(--ink);
  font-weight: 600;
}
.hero .dialog-actions {
  margin-top: var(--flow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s4) var(--s5);
}

/* One list component, used for every list on the site and in the email */
.card {
  background: var(--tile);
  box-shadow: inset 0 0 0 var(--line) var(--edge);
  border-radius: var(--r);
  padding: var(--pad) var(--pad) var(--pad-end);
  display: flex;
  flex-direction: column;
}
.card .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  padding-bottom: var(--s5);
}
.card h2,
.card h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: none;
}
.card .card-head span {
  font-size: 13px;
  line-height: 16px;
  color: var(--sec);
  white-space: nowrap;
  letter-spacing: 0;
}
.card.two-up,
.card.topic-panel,
.card:has(.post-list) {
  background: var(--bg);
  box-shadow: none;
  border: 1px solid var(--reading-border);
  border-radius: var(--reading-radius);
  padding: 0;
}
.card:is(.two-up, .topic-panel, :has(.post-list)) > .card-head {
  padding: calc(var(--s4) + var(--s1)) var(--s5);
  background: var(--tile);
  border-bottom: 1px solid var(--reading-border);
  border-radius: var(--reading-radius) var(--reading-radius) 0 0;
  align-items: center;
}
.card:is(.two-up, .topic-panel, :has(.post-list)) > .card-head :is(h2, h3) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  font-size: 20px;
  line-height: 26px;
}
.card .card-head .issue-week {
  padding: var(--s1) var(--s2);
  background: var(--link);
  color: var(--bg);
  border-radius: var(--s1);
  font-size: 12px;
  font-weight: 600;
}
.card:is(.two-up, .topic-panel, :has(.post-list)) > .post-list,
.card:has(.post-list) > [role="status"] {
  padding-inline: var(--s5);
}
.card.two-up > .card-end,
.card.topic-panel > .card-end,
.card:has(.post-list) > .card-end {
  box-shadow: none;
  border-top: 1px solid var(--reading-border);
  padding: var(--s4) var(--s5);
  font-size: 12px;
}
.card.two-up > .empty,
.card.topic-panel > .empty {
  padding: var(--s5);
  box-shadow: none;
}
.post-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
}
.post {
  display: grid;
  grid-template-columns: var(--s5) minmax(0, 1fr);
  column-gap: var(--s3);
  min-width: 0;
  padding: var(--reading-row-pad) 0;
  box-shadow: inset 0 calc(-1 * var(--line)) 0 var(--hair);
}
.post > * {
  min-width: 0;
  grid-column: 2;
}
.post:last-child {
  box-shadow: none;
}
.post .post-rank {
  grid-column: 1;
  grid-row: 1 / span 3;
  font-size: 12px;
  line-height: var(--reading-title-leading);
  font-variant-numeric: tabular-nums;
  color: var(--sec);
}
.post .post-title {
  font-size: var(--reading-title-size);
  line-height: var(--reading-title-leading);
  font-weight: var(--reading-title-weight);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.post .post-text {
  margin-top: var(--s1);
  font-size: 14px;
  line-height: 21px;
  color: var(--body);
  overflow-wrap: anywhere;
}
.post .post-meta {
  margin-top: var(--s2);
  font-size: 12px;
  line-height: 20px;
  color: var(--sec);
  overflow-wrap: anywhere;
}
.post .post-site,
.post .post-by {
  min-width: 0;
  overflow-wrap: anywhere;
}
.post .post-site {
  color: var(--sec);
  text-decoration: underline;
  text-decoration-color: var(--reading-border);
  text-underline-offset: 3px;
}
.post .post-by {
  color: var(--sec);
}
.post .post-divider {
  padding-inline: var(--s1);
}
.post:not(:has(.post-rank)) {
  grid-template-columns: minmax(0, 1fr);
}
.post:not(:has(.post-rank)) > * {
  grid-column: 1;
}
@media print {
  .post {
    break-inside: avoid;
  }
}
.card .card-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s5);
  box-shadow: inset 0 var(--line) 0 var(--hair);
  padding-top: var(--s5);
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.card .card-end .links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s5);
}
.card.two-up .post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Editorial homepage */
.editorial-home .hero {
  padding: var(--s7) 0 calc(var(--s7) + var(--s2));
}
.editorial-home .hero h1 {
  max-width: 760px;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.editorial-home .hero .when + h1 {
  margin-top: calc(var(--s4) + var(--s1));
}
.editorial-home .hero .hero-text {
  margin-top: var(--s5);
  max-width: 48ch;
  font-size: 17px;
  line-height: 26px;
}
.editorial-home .hero .signup {
  margin-top: calc(var(--s5) + var(--s1));
}
.editorial-home .hero .reasons {
  margin-top: var(--s4);
  gap: var(--s2) var(--s4);
  font-size: 13px;
}
.editorial-home .signin-line {
  margin-top: var(--s3);
  font-size: 13px;
}
.editorial-home :is(#week, #topics) .card {
  max-width: var(--reading-width);
  margin-inline: auto;
}
.editorial-home .section {
  margin-top: calc(var(--s8) + var(--s2));
}
.editorial-home .section > .wrap > h2 {
  font-size: 32px;
  line-height: 36px;
}
.editorial-home #topics .lede {
  margin-top: var(--s3);
  max-width: none;
  font-size: 17px;
  line-height: 26px;
}
.editorial-home #topics :is(.chips, .topic-panel) {
  margin-top: var(--s5);
}
.editorial-home .statement {
  max-width: 720px;
  font-size: 24px;
  line-height: 36px;
  color: var(--sec);
}
.editorial-home .statement + p {
  margin-top: var(--s5);
}
.editorial-home .email-panel {
  border-radius: var(--s4);
  padding: var(--s7) var(--s5);
}
.editorial-home .email-panel h2 {
  font-size: 30px;
  line-height: 36px;
}
.editorial-home .email-panel .lede {
  margin-top: var(--s4);
  font-size: 16px;
  line-height: 24px;
}
.editorial-home .email-panel .signup {
  margin-top: var(--s6);
}
body:has(.editorial-home) .footer {
  margin-top: calc(var(--s8) + var(--s2));
}
@media (max-width: 600px) {
  .editorial-home .hero {
    padding: var(--s6) 0 calc(var(--s6) + var(--s1));
  }
  .editorial-home .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }
  .editorial-home .section {
    margin-top: var(--s7);
  }
  .editorial-home .statement {
    font-size: 22px;
    line-height: 33px;
  }
  .editorial-home .email-panel {
    padding: var(--s6) var(--s4);
  }
  .editorial-home .signup {
    flex-direction: row;
    border-radius: 980px;
    padding: var(--s1);
    gap: var(--s1);
  }
  .editorial-home .signup input {
    flex: 1;
    text-align: left;
    padding-inline: var(--s3);
  }
  .editorial-home .signup .pill {
    padding-inline: var(--s3);
    font-size: 14px;
  }
  .editorial-home .chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    mask-image: none;
  }
  .editorial-home .chips li:last-child {
    padding-right: 0;
  }
  .card:is(.two-up, .topic-panel, :has(.post-list))
    > :is(.card-head, .card-end) {
    padding: var(--s4);
  }
  .card:is(.two-up, .topic-panel, :has(.post-list)) > .post-list,
  .card:has(.post-list) > [role="status"] {
    padding-inline: var(--s4);
  }
}

/* Sections */
.section {
  margin-top: var(--sect);
}
.section h2 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 16em;
  text-wrap: balance;
}
.eyebrow {
  font-weight: 600;
  color: var(--sec);
  margin-bottom: var(--s3);
}
.lede {
  margin-top: var(--s4);
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.015em;
  color: var(--sec);
  max-width: 34em;
  text-wrap: balance;
}

/* Topics */
#topics > .wrap > :is(.eyebrow, h2, .lede) {
  text-align: center;
  margin-inline: auto;
}
#topics > .wrap > .chips {
  justify-content: center;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--flow);
}
.chips button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--s4);
  border-radius: 980px;
  background: var(--bg);
  font-weight: 500;
  transition:
    box-shadow 0.15s,
    background-color 0.15s,
    color 0.15s,
    transform 0.15s var(--out);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.chips button:active {
  transform: scale(0.97);
}
.chips button[aria-pressed="true"] {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: none;
}
.card.topic-panel {
  margin-top: var(--flow);
}
.card.topic-panel > .card-end,
.card.topic-panel > .card-end > .links {
  justify-content: center;
  text-align: center;
}
.card.topic-panel .post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.card.topic-panel[hidden],
.card.topic-panel .post-list[hidden] {
  display: none;
}
.card .card-note {
  padding: var(--s6) 0;
  box-shadow: inset 0 var(--line) 0 var(--hair);
  color: var(--sec);
  max-width: 60ch;
}

/* Statement */
.statement {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--sec);
  max-width: 22em;
  text-wrap: pretty;
}
.statement b {
  color: var(--ink);
  font-weight: 600;
}
.statement {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}
.statement + p {
  margin-top: var(--flow);
  text-align: center;
}

/* Email */
.email-panel {
  background: var(--tile);
  box-shadow: inset 0 0 0 var(--line) var(--edge);
  border-radius: var(--r);
  padding: var(--pad);
  text-align: center;
}
.email-panel h2 {
  margin: 0 auto;
}
.email-panel .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 28em;
}
.signup {
  margin: var(--flow) auto 0;
  max-width: 448px;
  display: flex;
  gap: var(--s1);
  padding: var(--s1);
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--hair);
  border-radius: 980px;
}
.signup:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--link),
    0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent);
}
.signup input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s4);
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  border-radius: 980px;
}
.signup input::placeholder {
  color: var(--sec);
}
.signup .pill {
  height: 44px;
  padding: 0 var(--s5);
  font-size: 16px;
  line-height: 24px;
  flex: none;
}
.email-panel small {
  display: block;
  margin-top: var(--s5);
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}

/* Footer */
.footer {
  margin-top: var(--sect);
  box-shadow: inset 0 var(--line) 0 var(--hair);
  padding: var(--s4) 0;
  font-size: 13px;
  line-height: 16px;
  color: var(--sec);
  letter-spacing: 0;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--s6);
}
.footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s5);
  justify-content: center;
}
.footer a,
.footer button {
  display: inline-block;
  padding: 14px 0;
  color: var(--sec);
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.footer a,
.footer button {
  transition: color 0.15s;
}
.footer p {
  padding: 14px 0;
}

/* Gentle entrance */
.reveal {
  transition:
    opacity 0.5s var(--out),
    transform 0.5s var(--out);
}
.js .reveal,
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--out),
    transform 0.5s var(--out);
}
.js .reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal {
    transition: none;
  }
  .pill:active,
  .chips button:active {
    transform: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    background: color-mix(in srgb, var(--btn) 86%, var(--bg));
  }
  .post .post-title:hover,
  .post .post-site:hover {
    text-decoration-color: currentColor;
  }
  .chips button:hover {
    box-shadow: inset 0 0 0 1px var(--sec);
  }
  .footer a:hover,
  .footer button:hover {
    color: var(--ink);
  }
}
section[id] {
  scroll-margin-top: 96px;
}
.swap,
.swap *,
.swap *::before,
.swap *::after {
  transition: none !important;
}

@media (max-width: 900px) {
  .topbar nav > a.nav-wide {
    display: none;
  }
}
@media (max-width: 600px) {
  .topbar .wrap {
    height: 56px;
  }
  .post {
    column-gap: var(--s2);
  }
  .card .card-end {
    row-gap: var(--s3);
  }
  .card .card-end .links {
    row-gap: var(--s3);
  }
  .topbar .wrap {
    gap: var(--s2);
  }
  .topbar nav > a:not(.nav-always) {
    display: none;
  }
  .topbar nav > a.nav-always {
    color: var(--ink);
    padding: 18px 0;
  }
  .hero {
    padding: var(--s6) 0 calc(var(--s6) + var(--s1));
  }
  .hero h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .hero .hero-text {
    margin-top: var(--s5);
  }

  .section h2 {
    font-size: 28px;
    line-height: 32px;
  }
  .statement {
    font-size: 24px;
    line-height: 32px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chips {
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(
      to right,
      var(--mask-opaque) calc(100% - 40px),
      transparent
    );
    mask-image: linear-gradient(
      to right,
      var(--mask-opaque) calc(100% - 40px),
      transparent
    );
  }
  .chips li {
    scroll-snap-align: start;
  }
  .chips li:last-child {
    padding-right: var(--s6);
  }
  .chips button {
    white-space: nowrap;
  }
  .signup {
    flex-direction: column;
    border-radius: 28px;
    padding: var(--s2);
    gap: var(--s2);
  }
  .signup input {
    text-align: center;
    flex: none;
  }
}

/* ---------- Other pages ---------- */
.subnav {
  display: none;
}
.page {
  padding-top: var(--s7);
}
.title {
  margin-top: 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 14em;
}
.when + .title,
.eyebrow + .title {
  margin-top: var(--s4);
}
.after-head,
.page + .wrap:not(.after-head) {
  margin-top: var(--flow);
}
.narrow {
  max-width: 720px;
}
.wrap.reading {
  max-width: calc(var(--reading-width) + 2 * var(--gutter));
}
.slim {
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}
.heading {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.card + .card {
  margin-top: var(--s5);
}
.card .card-text {
  color: var(--body);
  padding-bottom: var(--s5);
  max-width: 60ch;
}
.chips a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--s4);
  border-radius: 980px;
  background: var(--bg);
  font-weight: 500;
  white-space: nowrap;
  transition:
    box-shadow 0.15s,
    transform 0.15s var(--out);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.chips a[aria-current] {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: none;
}
.chips a:active {
  transform: scale(0.97);
}

/* Document pages */
.doc h2 {
  margin-top: var(--flow);
}
.doc > h2:first-child {
  margin-top: 0;
}
.doc p:not(.when):not(.lede) {
  margin-top: var(--s4);
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.014em;
  color: var(--body);
  max-width: 65ch;
  text-wrap: pretty;
}
.doc p b {
  color: var(--ink);
  font-weight: 600;
}
.doc p a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent);
  text-underline-offset: 3px;
}
.spec {
  margin-top: var(--s5);
}
.spec > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s5);
  padding: var(--s4) 0;
  box-shadow: inset 0 var(--line) 0 var(--hair);
}
.spec dt {
  color: var(--body);
}
.spec dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.spec.questions > div {
  grid-template-columns: 9em minmax(0, 1fr);
}
.spec.questions dt {
  color: var(--ink);
  font-weight: 600;
}
.spec.questions dd {
  font-weight: 400;
  color: var(--body);
}
.formula {
  margin-top: var(--s5);
  padding: var(--s5) var(--pad);
  background: var(--tile);
  box-shadow: inset 0 0 0 var(--line) var(--edge);
  border-radius: var(--r);
  font:
    500 15px/28px ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0;
  white-space: pre;
  overflow-x: auto;
}

/* Rows of links */
.rows {
  list-style: none;
}
.rows a {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s4) 0;
  box-shadow: inset 0 var(--line) 0 var(--hair);
}
.rows b {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.rows span {
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
  white-space: nowrap;
}
.rows a::after {
  content: "\203A";
  color: var(--faint);
  font-size: 20px;
  line-height: 28px;
  transition:
    transform 0.15s,
    color 0.15s;
}
.rows a > span {
  margin-left: auto;
}

/* Forms */
form.card,
.publisher-stack > form {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.card-head + .field,
form.card > .field,
.publisher-stack > form > .field,
.publisher-stack > .small-print,
.account-auth-form > .small-print,
.account-auth-form > .pill.wide {
  margin-top: 0;
}
.publisher-stack > form > .pill {
  align-self: flex-start;
}
.field {
  display: block;
  margin-top: var(--s5);
}
.field > span {
  display: block;
  margin-bottom: var(--s2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--sec);
}
.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 980px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--hair);
  font: inherit;
  color: var(--ink);
  outline: none;
}
.input::placeholder {
  color: var(--sec);
}
.input:focus-visible {
  box-shadow:
    inset 0 0 0 1px var(--link),
    0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent);
}
.pill.wide {
  width: 100%;
  height: 44px;
  font-size: 16px;
  line-height: 24px;
  margin-top: var(--s4);
}
.small-print {
  margin-top: var(--s5);
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.small-print a {
  color: var(--link);
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s4) 0;
  box-shadow: inset 0 var(--line) 0 var(--hair);
  min-height: 60px;
}
.digest-subscription-card .setting {
  box-shadow: none;
}
.setting b {
  font-weight: 600;
  display: block;
}
.setting small {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.switch {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 980px;
  background: var(--faint);
  cursor: pointer;
  transition: background-color 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: var(--switch-shadow);
  transition: transform 0.2s var(--out);
}
.switch:checked {
  background: var(--link);
}
.switch:checked::after {
  transform: translateX(20px);
}
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s8);
}
.check {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  box-shadow: inset 0 var(--line) 0 var(--hair);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--link);
}
.inline-form {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
}
.inline-form .input {
  flex: 1;
  min-width: 0;
}
.inline-form .pill {
  flex: none;
  height: 44px;
  padding: 0 var(--s5);
  font-size: 16px;
}
.reference-nav {
  flex-basis: 100%;
  padding-top: var(--s2);
  box-shadow: inset 0 var(--line) 0 var(--hair);
  margin-top: var(--s2);
}
.reference-nav b {
  font-weight: 600;
  white-space: nowrap;
}
.reference-nav li:first-child {
  padding: 14px 0;
}

@media (hover: hover) and (pointer: fine) {
  .chips a:hover {
    box-shadow: inset 0 0 0 1px var(--sec);
  }
  .rows a:hover::after {
    color: var(--link);
    transform: translateX(3px);
  }
  .rows a:hover b {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }
}
@media (max-width: 600px) {
  .subnav {
    display: block;
    box-shadow: inset 0 calc(var(--line) * -1) 0 var(--hair);
  }
  .subnav .wrap {
    display: flex;
    gap: var(--s5);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .subnav .wrap::-webkit-scrollbar {
    display: none;
  }
  .subnav a {
    flex: none;
    padding: var(--s3) 0;
    font-size: 15px;
    line-height: 20px;
    color: var(--sec);
  }
  .subnav a[aria-current] {
    color: var(--ink);
    font-weight: 500;
  }
  .page {
    padding-top: var(--s6);
  }
  .title {
    font-size: 32px;
    line-height: 40px;
  }
  .heading {
    font-size: 24px;
    line-height: 28px;
  }
  .doc p:not(.when):not(.lede) {
    font-size: 17px;
  }
  .spec.questions > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .rows a {
    flex-wrap: wrap;
  }
  .rows a > span {
    margin-left: 0;
    flex-basis: 100%;
    order: 3;
  }
  .formula {
    padding: var(--s4) var(--pad);
    font-size: 13px;
  }
}

/* Hero sign-up */
.reasons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--s5);
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.reasons li + li::before {
  content: "";
  display: inline-block;
  width: var(--line);
  height: 12px;
  margin: 0 var(--s3);
  background: var(--hair);
  box-shadow: 0 0 0 0.5px var(--hair);
  vertical-align: -1px;
}
.signin-line {
  margin-top: var(--s7);
  color: var(--body);
}
.signin-line a {
  display: inline-block;
  padding: var(--s3) 0;
  margin: calc(var(--s3) * -1) 0;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .reasons {
    flex-direction: column;
    align-items: center;
    row-gap: var(--s1);
  }
  .reasons li + li::before {
    display: none;
  }
}

/* ---------- States, menus and dialogs ---------- */
.notice {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: baseline;
  padding: var(--s4) var(--s5);
  border-radius: 16px;
  background: var(--tile);
  box-shadow: inset 0 0 0 var(--line) var(--edge);
  color: var(--body);
}
.notice > span {
  flex: 1 1 18rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.notice b {
  color: var(--ink);
  font-weight: 600;
}
.notice .more,
.notice button.more {
  margin-left: auto;
  flex: none;
}
.notice button.more {
  min-height: 44px;
  color: var(--link);
}
.notice.error {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent);
}
.notice.error b {
  color: var(--danger);
}
button.more {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.empty {
  padding: var(--flow) 0;
  text-align: center;
  box-shadow: inset 0 var(--line) 0 var(--hair);
}
.empty b {
  display: block;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.empty p {
  margin: var(--s2) auto 0;
  color: var(--sec);
  max-width: 36ch;
}
.skel {
  display: block;
  border-radius: 6px;
  background: var(--wash);
}
.post .post-rank.skel {
  height: 16px;
  width: 16px;
}
.post .skel-meta {
  margin: var(--s2) 0 var(--s1);
}
.skel-title {
  height: 20px;
  margin: var(--s1) 0;
  width: 62%;
}
.skel-text {
  height: 16px;
  margin: var(--s3) 0 var(--s1);
  width: 90%;
}
.skel-meta {
  height: 12px;
  margin: 22px 0 6px;
  width: 34%;
}
@media (prefers-reduced-motion: no-preference) {
  .skel {
    animation: skel 1.4s ease-in-out infinite;
  }
}
@keyframes skel {
  50% {
    opacity: 0.45;
  }
}
.field-error,
.field > .field-error {
  display: block;
  margin-top: var(--s2);
  font-size: 14px;
  line-height: 20px;
  color: var(--danger);
}
.input[aria-invalid="true"]:not(:focus-visible) {
  box-shadow: inset 0 0 0 1px var(--danger);
}
textarea.input {
  height: auto;
  min-height: 120px;
  padding: var(--s3) 20px;
  border-radius: 22px;
  resize: vertical;
  line-height: 24px;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sec) 50%),
    linear-gradient(135deg, var(--sec) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 19px,
    calc(100% - 18px) 19px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.pill.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.pill.danger {
  background: var(--danger);
  color: var(--danger-ink);
}
.pill.medium {
  height: 44px;
  padding: 0 var(--s5);
  font-size: 16px;
  line-height: 24px;
}

.menu-button {
  position: relative;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 36px;
  padding: 0 var(--s3) 0 var(--s1);
  border: 0;
  border-radius: 980px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  cursor: pointer;
}

.menu-button::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.menu-button i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-ink);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}
.menu-button {
  anchor-name: --account-menu;
}
.menu {
  position-anchor: --account-menu;
  inset: auto;
  top: calc(anchor(bottom) + var(--s2));
  right: anchor(right);
  margin: 0;
  padding: var(--s2);
  width: 240px;
  max-width: calc(100vw - 2 * var(--gutter));
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    0 0 0 var(--line) var(--hair),
    var(--menu-shadow);
}
.menu a,
.menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu hr {
  border: 0;
  height: var(--line);
  margin: var(--s2) var(--s3);
  background: var(--hair);
}
.dialog {
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow: auto;
  width: min(448px, calc(100vw - 2 * var(--gutter)));
  margin: auto;
  padding: var(--pad);
  border: 0;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    0 0 0 var(--line) var(--hair),
    var(--dialog-shadow);
}
.dialog::backdrop {
  background: var(--backdrop);
}
.dialog h2 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.dialog p {
  margin-top: var(--s3);
  color: var(--body);
}
.dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s6);
}
@media (max-width: 600px) {
  .menu-button {
    padding: 0 var(--s1);
  }
  .menu-button span {
    display: none;
  }
}
.gallery > * + *:not(dialog):not([popover]) {
  margin-top: var(--s5);
}
@media (hover: hover) and (pointer: fine) {
  .menu a:hover,
  .menu button:hover {
    background: var(--wash);
  }
  .pill.quiet:hover {
    background: var(--wash);
  }
  .menu-button:hover {
    background: var(--wash);
  }
}

.topic-head,
.topic-list > .small-print {
  text-align: center;
}
.topic-head .title,
.topic-head .lede {
  margin-inline: auto;
}
.pagination {
  text-align: center;
}
.publisher-stack {
  display: grid;
  gap: var(--s5);
  min-width: 0;
}
.publisher-stack > .field,
.publisher-stack > .card + .card {
  margin-top: 0;
}
.ownership-flow {
  padding: 0;
  overflow: hidden;
}
.ownership-step {
  padding: var(--pad);
  display: grid;
  gap: var(--s4);
  min-width: 0;
}
.ownership-step + .ownership-step {
  border-top: var(--line) solid var(--hair);
}
.ownership-step-heading {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.ownership-step-heading > span {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--s6);
  height: var(--s6);
  border-radius: 50%;
  background: var(--field);
  color: var(--sec);
}
.ownership-step h2,
.ownership-success h3 {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}
.ownership-entry,
.ownership-instructions,
.ownership-proof {
  display: grid;
  gap: var(--s4);
  min-width: 0;
}
.ownership-entry .field,
.ownership-copy .small-print {
  margin: 0;
}
.ownership-help,
.ownership-progress {
  color: var(--sec);
}
.ownership-progress:empty,
.ownership-copy .small-print:empty {
  display: none;
}
.ownership-step > .pill {
  justify-self: start;
}
.ownership-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  border: 0;
  min-width: 0;
}
.ownership-methods legend,
.ownership-copy > label {
  display: block;
  margin-bottom: var(--s2);
  color: var(--sec);
}
.ownership-methods label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border: var(--line) solid var(--hair);
  border-radius: var(--r);
  cursor: pointer;
}
.ownership-methods label:has(:checked) {
  background: var(--field);
  border-color: var(--link);
}
.ownership-methods input {
  accent-color: var(--link);
}
.ownership-code {
  resize: vertical;
  min-height: var(--s8);
  overflow-wrap: anywhere;
}
.ownership-copy .inline-form {
  align-items: start;
}
.ownership-copy .input {
  font-family: monospace;
}
.ownership-success {
  display: flex;
  gap: var(--s3);
  align-items: start;
}
.ownership-success > svg {
  width: var(--s5);
  height: var(--s5);
  flex: none;
  color: var(--link);
}
.ownership-success > div {
  display: grid;
  gap: var(--s3);
  min-width: 0;
}
.ownership-flow :is(p, b) {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .ownership-methods label {
    flex: 1;
    white-space: nowrap;
  }
  .ownership-flow .publisher-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ownership-step > .pill {
    justify-self: stretch;
  }
}
.publisher-blog-head {
  padding: var(--s7) 0 var(--s5);
}
.publisher-blog-head h1 {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.03em;
}
.publisher-blog-head p {
  margin-top: var(--s2);
  color: var(--sec);
}
.publisher-blog-empty {
  padding: var(--s5) 0;
  text-align: center;
}
.publisher-blog-empty p {
  max-width: 42ch;
  margin: var(--s3) auto var(--s5);
  color: var(--sec);
}
.publisher-blog-empty .publisher-actions {
  justify-content: center;
  gap: var(--s3);
}
.publisher-blog-toolbar {
  padding-bottom: var(--s5);
}
@media (max-width: 600px) {
  .publisher-blog-head h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .publisher-blog-empty {
    padding: var(--s3) 0;
  }
  .publisher-blog-list .publisher-actions {
    flex-direction: column;
  }
}
.publisher-details {
  display: grid;
  gap: var(--s4);
}
.publisher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.rows b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.publisher-rows .row-action {
  display: inline-block;
  padding: 0 0 var(--s5);
  box-shadow: none;
}
.publisher-rows .row-action::after {
  content: none;
}
.owned-blog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s3);
  border-top: 1px solid var(--hair);
}
.owned-blog-row > a:first-child {
  display: grid;
  justify-content: start;
  gap: var(--s1);
  padding: 0;
  box-shadow: none;
}
.owned-blog-row > a:first-child::after {
  content: none;
}
.owned-blog-row > a > span {
  margin: 0;
  white-space: normal;
}
.owned-blog-row .row-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
}

.stats-head > a {
  display: inline-block;
  margin-bottom: var(--s3);
  color: var(--link);
}
.stats-head p {
  overflow-wrap: anywhere;
}
.publisher-stats > .stats-filter {
  flex-direction: row;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--s3);
}
.stats-filter .field {
  flex: 1 1 9rem;
  min-width: 0;
}
.publisher-stats > .stats-filter > .pill {
  align-self: end;
}
.stats-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s4);
}
.stats-totals > div + div {
  padding-left: var(--s4);
  border-left: var(--line) solid var(--hair);
}
.stats-totals dt,
.stats-detail th,
.stats-detail p {
  font-size: 14px;
  color: var(--sec);
}
.stats-totals dd {
  margin-top: var(--s1);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stats-detail table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: var(--s4);
  font-variant-numeric: tabular-nums;
}
.stats-detail th,
.stats-detail td {
  padding-block: var(--s3);
  text-align: right;
  width: 18%;
  overflow-wrap: anywhere;
}
.stats-detail :is(th, td):first-child {
  text-align: left;
  width: auto;
  padding-right: var(--s4);
}
.stats-detail td {
  border-top: var(--line) solid var(--hair);
  vertical-align: baseline;
}
.stats-detail tr:last-child td {
  padding-bottom: 0;
}
.stats-detail p,
.stats-detail .pagination {
  margin-top: var(--s4);
}
@media (max-width: 600px) {
  .publisher-stats > .stats-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .stats-filter:has(input[type="date"]) > :is(:first-child, .pill) {
    grid-column: 1 / -1;
  }
  .publisher-stats > .stats-filter:has(input[type="date"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Account flows */
.account-signin {
  max-width: 480px;
}
.account-signin-head {
  padding: var(--s7) 0 var(--s5);
  text-align: center;
}
.account-signin-head h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.account-signin-head p {
  margin-top: var(--s2);
  font-size: 16px;
  line-height: 24px;
  color: var(--sec);
}
.account-signin-panel {
  display: grid;
  gap: var(--s5);
}
.account-signin-panel > form,
.account-signin-panel > .message {
  margin-top: 0;
}
.account-signin > .small-print {
  text-align: center;
}
.account-signin .account-code-copy {
  overflow-wrap: anywhere;
}
.account-auth-form {
  display: grid;
  gap: var(--s5);
}
.account-auth-form .field {
  margin-top: 0;
}
.account-code-copy,
.account-code-actions {
  margin-top: 0;
  text-align: center;
}
.account-code-copy b {
  color: var(--ink);
}
.account-inline-action,
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button {
  min-height: 44px;
  padding: var(--s2) 0;
}
.account-inline-action:disabled {
  color: var(--sec);
  cursor: default;
  text-decoration: none;
}
.account-task {
  display: grid;
  gap: var(--s4);
  overflow-wrap: anywhere;
}
.account-task .field,
.account-delete-form .field {
  margin-top: 0;
}
.account-task .field > [data-code-control] {
  margin-bottom: 0;
}
.account-code-recovery {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s4);
  border-top: var(--line) solid var(--hair);
}
.account-code-recovery .account-inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.account-delete-choice {
  display: grid;
  gap: var(--s2);
  border: 0;
  padding: 0;
  margin: 0;
}
.account-delete-choice legend {
  margin-bottom: var(--s2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--sec);
}
.account-delete-choice .check {
  min-height: 44px;
  box-shadow: none;
}
.account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}
.settings-group h2 {
  margin-bottom: var(--s2);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-block: var(--s4);
}
.settings-row > div:first-child {
  min-width: 0;
  flex: 1 1 14rem;
  overflow-wrap: anywhere;
}
.settings-row b {
  font-weight: 600;
}
.settings-row p {
  color: var(--sec);
  font-size: 14px;
  line-height: 20px;
}
.settings-row .input {
  width: auto;
  max-width: 100%;
}
.settings-row + .settings-row {
  border-top: var(--line) solid var(--hair);
}
.settings-group > :last-child {
  padding-bottom: 0;
}
.topic-request-card .card-head {
  padding-bottom: var(--s2);
}
.account-topic-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s3);
  margin-top: 0;
}
.account-topic-request .field {
  min-width: 0;
  margin-top: 0;
}
.account-topic-request .pill {
  margin-top: calc(20px + var(--s2));
}
.topic-request-limit[role="alert"] {
  color: var(--danger);
}
.topic-request-limit {
  min-height: 20px;
  margin-top: var(--s3);
  font-size: 13px;
  line-height: 20px;
  color: var(--sec);
}
@media (max-width: 600px) {
  .account-topic-request {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-topic-request .pill {
    width: 100%;
    margin-top: 0;
  }
}

.menu-button span {
  min-width: 0;
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.publisher-stack > .card {
  min-width: 0;
}

.signup-error {
  max-width: 448px;
  margin: var(--s2) auto 0;
  padding-inline: var(--s4);
  text-align: left;
}
.signup:has(input[aria-invalid="true"]):not(:focus-within) {
  box-shadow: inset 0 0 0 1px var(--danger);
}

/* Public stories and policies */
.hero .signup,
.hero .reasons {
  margin-top: var(--flow);
}
.marketing-hero h1 {
  max-width: 13em;
}
.marketing-hero h1 span {
  color: var(--link);
}
.marketing-hero .hero-text {
  max-width: 30em;
}
.eyebrow {
  color: var(--sec);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--flow);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.feature-card {
  padding: var(--pad);
  background: var(--tile);
  border-radius: var(--r);
}
.feature-number {
  display: block;
  color: var(--link);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: var(--flow);
}
.feature-card h2 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin-top: var(--s3);
  color: var(--sec);
}
.story-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--flow);
  padding: var(--pad);
  border-top: var(--line) solid var(--hair);
  border-bottom: var(--line) solid var(--hair);
}
.story-panel h2 {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.story-panel p {
  color: var(--sec);
  font-size: 17px;
  line-height: 26px;
}
.story-panel p + p {
  margin-top: var(--s5);
}
.story-panel .more {
  margin-top: var(--s5);
}
.story-cta {
  padding: var(--pad);
  text-align: center;
  background: var(--tile);
  border-radius: var(--r);
}
.story-cta h2 {
  margin-inline: auto;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.story-cta p {
  max-width: 30em;
  margin: var(--s5) auto 0;
  color: var(--sec);
  font-size: 17px;
  line-height: 26px;
}
.ranking-section-head {
  text-align: center;
  margin-bottom: var(--flow);
}
.ranking-section-head h2,
.ranking-section-head .lede {
  margin-inline: auto;
}
.ranking-section-head h2 {
  margin-top: var(--s4);
}
.ranking-steps,
.ranking-weights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.ranking-steps {
  list-style: none;
  padding: 0;
}
.ranking-steps li,
.ranking-weights > div {
  padding: var(--pad);
  border-radius: var(--r);
  background: var(--tile);
}
.ranking-steps h3 {
  font-size: 20px;
  line-height: 28px;
}
.ranking-steps p {
  margin-top: var(--s4);
  color: var(--sec);
}
.ranking-weights {
  margin-block: var(--s6);
}
.ranking-weights > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: end;
  gap: var(--s2);
}
.ranking-weights dt {
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.ranking-weights dd {
  margin: 0;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  color: var(--link);
}
@media (max-width: 900px) {
  .ranking-steps,
  .ranking-weights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ranking-steps {
    grid-template-columns: 1fr;
  }
}
.ranking-story {
  border: 0;
  box-shadow:
    inset 0 var(--line) 0 var(--hair),
    inset 0 calc(-1 * var(--line)) 0 var(--hair);
}
.method-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--flow);
  padding-block: var(--flow);
  box-shadow: inset 0 var(--line) 0 var(--hair);
}
.method-chapter header .eyebrow {
  color: var(--link);
  margin-bottom: var(--s4);
}
.method-chapter h3 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.03em;
}
.method-copy {
  min-width: 0;
}
.method-copy > :first-child {
  margin-top: 0;
}
.method-copy h4 {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
  margin-top: var(--flow);
}
.method-copy .ranking-weights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .method-chapter {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}
.policy-index {
  margin-bottom: var(--flow);
  padding: var(--pad);
  background: var(--tile);
  border-radius: var(--r);
}
.policy-index ol {
  margin-top: var(--s4);
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s5);
}
.policy-index a {
  display: block;
  padding: var(--s3) 0;
  color: var(--link);
}
.policy-section {
  scroll-margin-top: var(--s10);
  padding-block: var(--flow);
}
.policy-section h2 {
  margin-top: 0;
}
.policy-section:first-child {
  padding-top: 0;
}
.policy-section:last-child {
  padding-bottom: 0;
}
.policy-section + .policy-section {
  border-top: var(--line) solid var(--hair);
}
.crawler-check > .small-print {
  text-align: center;
}
.crawler-check-form > p {
  color: var(--sec);
}
.crawler-check-form > .pill {
  align-self: flex-start;
}
.crawler-check-feedback:empty {
  display: none;
}
.crawler-check-result {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border: var(--line) solid var(--hair);
  border-radius: var(--r);
  background: var(--field);
}
.crawler-check-result > svg {
  width: var(--s5);
  height: var(--s5);
  flex: none;
  color: var(--link);
}
.crawler-check-result.error > svg,
.crawler-check-result.error h3 {
  color: var(--danger);
}
.crawler-check-result.error {
  border-color: var(--danger);
}
.crawler-check-result h3 {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}
.crawler-check-result p {
  margin-top: var(--s2);
  color: var(--body);
}
.crawler-check-progress {
  color: var(--sec);
}
@media (max-width: 600px) {
  .crawler-check-form > .pill {
    align-self: stretch;
  }
}
.suggest-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--flow);
  align-items: start;
}
.suggest-intro h2 {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.02em;
}
.suggest-intro p {
  margin-top: var(--s5);
  color: var(--sec);
}
.suggest-intro .more {
  margin-top: var(--s5);
}
.suggest-form {
  padding: var(--pad);
  background: var(--tile);
  border-radius: var(--r);
}
.suggest-form h2 {
  font-size: 24px;
  line-height: 28px;
}
.suggest-form .pill {
  align-self: start;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: var(--s4);
  }
}
@media (max-width: 600px) {
  .feature-grid,
  .story-panel,
  .suggest-layout {
    grid-template-columns: 1fr;
  }
  .story-panel h2,
  .story-cta h2 {
    font-size: 28px;
    line-height: 32px;
  }
  .policy-index ol {
    grid-template-columns: 1fr;
  }
}

/* Topic directory */
.topic-directory-head {
  text-align: center;
  margin-bottom: var(--flow);
}
.topic-directory-head p {
  margin-top: var(--s5);
  color: var(--sec);
}
.topic-directory .chips {
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: var(--s1);
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}
.topic-directory .chips li:last-child {
  padding-right: 0;
}
.topic-directory .chips a {
  min-height: 44px;
  height: auto;
  padding-block: var(--s2);
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.subscription-shell {
  margin-top: var(--s7);
}
.subscription-shell > .security-verification {
  margin-block-start: var(--s3);
}
.subscription-stage {
  display: grid;
}
.security-verification {
  min-width: 0;
  text-align: center;
}
.security-verification > .small-print {
  margin: 0;
}
.security-verification > .small-print:not(:empty) {
  padding-block: var(--s2);
}
.security-widget {
  display: flex;
  justify-content: center;
}
.subscription-pane {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}
.subscription-pane.is-active {
  visibility: visible;
  pointer-events: auto;
}
.subscription-shell .signup {
  margin-top: 0;
}
.subscription-message {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  text-align: center;
}
.hero .subscription-message {
  padding-top: var(--s5);
}
.subscription-message > p {
  max-width: 46ch;
}
.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s5);
}
.signup-error:empty {
  display: none;
}
.subscription-message h2,
.editorial-home .subscription-message h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}
.subscription-message p,
.email-panel .subscription-message p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--sec);
}
.subscription-message a:not(.pill) {
  font-size: 14px;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.subscription-message .pill {
  margin-top: var(--s2);
}
.editorial-home .hero .subscription-shell {
  margin-top: calc(var(--s5) + var(--s1));
}
.editorial-home .hero .subscription-shell .signup,
.email-panel .subscription-shell .signup {
  margin-top: 0;
}
.email-panel .subscription-shell {
  margin-top: var(--s6);
}

.otp-input {
  position: relative;
  display: block;
  width: min(100%, 340px);
  direction: ltr;
}
.otp-input > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: text;
}
.otp-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s2);
}
.otp-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--hair);
  border-radius: var(--s2);
  background: var(--bg);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.otp-slot.is-selected {
  border-color: var(--link);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent);
}
.otp-input:has(input[aria-invalid="true"]) .otp-slot {
  border-color: var(--danger);
}
.otp-input.is-disabled {
  opacity: 0.6;
}
.otp-caret {
  width: 2px;
  height: 24px;
  background: var(--link);
}

.toast {
  position: fixed;
  z-index: 1400;
  bottom: max(var(--gutter), env(safe-area-inset-bottom));
  right: max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: max-content;
  max-width: min(
    var(--toast-max-width),
    calc(
      100% - max(var(--gutter), env(safe-area-inset-left)) -
        max(var(--gutter), env(safe-area-inset-right))
    )
  );
  padding: var(--s1) var(--s1) var(--s1) var(--s4);
  border-radius: var(--r);
  border: var(--line) solid var(--hair);
  background: var(--tile);
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--toast-icon-size);
  height: var(--toast-icon-size);
  color: var(--link);
}
.toast.error .toast-icon {
  color: var(--danger);
}
.toast svg {
  width: var(--toast-icon-size);
  height: var(--toast-icon-size);
}
.toast-message {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.toast button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--sec);
  font: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .toast button:hover {
    background: var(--hair);
  }
}
.toast button:focus-visible {
  outline-color: currentColor;
}

#subscribe {
  scroll-margin-top: var(--s10);
}

