@layer reset, tokens, base, layout, components, utilities, responsive;

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

/* Reader account and static newsroom masthead. */
@layer components {
  .site-header {
    position: relative;
    inset: auto;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
  }

  .header-theme-toggle > span { display: grid; place-items: center; }
  .header-theme-toggle > span[hidden] { display: none; }
  .avatar { overflow: hidden; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }

  .profile-menu-panel {
    width: min(280px, calc(100vw - 32px));
    min-width: 240px;
    max-height: min(570px, calc(100dvh - 96px));
    padding: 8px;
    overflow-y: auto;
  }
  .profile-menu-panel__identity {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin-block-end: 5px;
    padding: 9px 8px 12px;
    border-block-end: 1px solid var(--border);
  }
  .profile-menu-panel__identity .avatar { width: 48px; height: 48px; }
  .profile-menu-panel__identity > span:last-child { min-width: 0; display: flex; flex-direction: column; }
  .profile-menu-panel__identity strong,
  .profile-menu-panel__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-menu-panel__identity strong { color: var(--ink); font-size: 13px; }
  .profile-menu-panel__identity small { color: var(--muted); font-size: 11.5px; direction: ltr; text-align: end; }
  .profile-menu-panel a,
  .profile-menu-panel button { min-height: 42px; font-size: 12px; font-weight: 750; }
  .profile-menu-panel a > svg,
  .profile-menu-panel button > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
  }
  .profile-menu-panel__logout { margin-block-start: 5px; padding-block-start: 5px; border-block-start: 1px solid var(--border); }
  .profile-menu-panel__logout button { color: var(--danger); }

  .breaking-slot:empty { display: none; }
  .breaking-slot[hidden] { display: none; }
  .breaking-slot.is-arriving .breaking-bar { animation: breaking-in 260ms ease-out both; }
  .toast.is-breaking { border-color: #8f1c1c; background: #b92222; color: #fff; }

  .mobile-theme-control {
    width: 100%;
    min-height: 44px;
    margin-block: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 12px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
  }
  .mobile-theme-control > span:first-child,
  .mobile-theme-control > span:nth-child(2) { display: grid; place-items: center; }
  .mobile-theme-control > span[hidden] { display: none; }
  .mobile-theme-control svg { width: 18px; height: 18px; }
  .mobile-unread-count {
    margin-inline-start: auto;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 11.5px;
  }
  .mobile-nav-icon { position: relative; display: inline-grid; place-items: center; }
  .mobile-nav-badge {
    position: absolute;
    inset-block-start: -8px;
    inset-inline-end: -9px;
    min-width: 16px;
    height: 16px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 8px;
    line-height: 1;
  }

  .reader-profile-hero { border-block-end: 1px solid var(--border); background: var(--surface); }
  .reader-profile-hero__inner {
    min-height: 224px;
    display: grid;
    grid-template-columns: 126px minmax(240px, 1fr) minmax(420px, 620px);
    align-items: center;
    gap: 30px;
    padding-block: 34px;
  }
  .profile-avatar-form { position: relative; width: 116px; min-height: 136px; display: grid; justify-items: center; align-content: start; gap: 8px; }
  .avatar--profile { width: 104px; height: 104px; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); background: var(--navy-soft); font-size: 32px; }
  .profile-avatar-form__choose {
    position: absolute;
    inset-inline-end: 3px;
    inset-block-start: 72px;
    width: 34px;
    height: 34px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
  }
  .profile-avatar-form__choose svg { width: 15px; height: 15px; }
  .profile-avatar-form [data-avatar-submit] { min-height: 30px; }
  .profile-avatar-form .form-message { position: absolute; inset-block-start: calc(100% + 4px); width: 260px; z-index: 2; }
  .reader-profile-hero__copy { min-width: 0; }
  .reader-profile-hero__copy h1 { margin-block: 3px 4px; font-size: clamp(29px, 3vw, 38px); }
  .reader-profile-hero__copy p { color: var(--ink-soft); direction: ltr; text-align: end; }
  .reader-profile-hero__copy small { display: block; margin-block-start: 8px; color: var(--muted); font-size: 11px; }
  .profile-role { color: var(--navy); font-size: 11px; font-weight: 850; }
  .profile-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border); }
  .profile-stat-strip > div { min-height: 78px; display: grid; align-content: center; padding-inline: 22px; }
  .profile-stat-strip > div + div { border-inline-start: 1px solid var(--border); }
  .profile-stat-strip dt { color: var(--muted); font-size: 11.5px; }
  .profile-stat-strip dd { margin: 0; font-family: var(--font-editorial); font-size: 24px; font-weight: 700; }

  .reader-profile-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 46px; align-items: start; padding-block: 42px 78px; }
  .profile-tabs { position: sticky; inset-block-start: 22px; border-block-start: 3px solid var(--navy); }
  .profile-tabs a {
    min-height: 49px;
    border-block-end: 1px solid var(--border);
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
  }
  .profile-tabs a:hover,
  .profile-tabs a.is-active { color: var(--navy); }
  .profile-tabs a.is-active { padding-inline-start: 10px; background: var(--navy-soft); }
  .profile-tabs svg { width: 18px; height: 18px; }
  .profile-tabs strong { min-width: 21px; height: 21px; border-radius: 11px; display: grid; place-items: center; background: var(--danger); color: #fff; font-size: 10.5px; }
  .profile-panel { min-width: 0; }
  .profile-panel__header {
    min-height: 66px;
    margin-block-end: 12px;
    border-block-end: 1px solid var(--border-strong);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }
  .profile-panel__header > div > span { color: var(--muted); font-size: 11.5px; font-weight: 800; }
  .profile-panel__header h2 { font-size: 25px; }
  .profile-panel__header > a { display: inline-flex; align-items: center; gap: 6px; padding-block-start: 10px; color: var(--navy); font-size: 12px; font-weight: 800; }
  .profile-panel__header > a svg { width: 15px; }

  .profile-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 1px solid var(--border); }
  .profile-overview-grid > a {
    min-height: 116px;
    border-block-end: 1px solid var(--border);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 18px;
  }
  .profile-overview-grid > a:nth-child(odd) { border-inline-end: 1px solid var(--border); }
  .profile-overview-grid > a:hover { background: var(--surface); }
  .profile-overview-grid > a > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
  .profile-overview-grid > a > span svg { width: 20px; }
  .profile-overview-grid > a > svg { width: 17px; color: var(--muted); }
  .profile-overview-grid strong,
  .profile-overview-grid small { display: block; }
  .profile-overview-grid strong { font-size: 14px; }
  .profile-overview-grid small { margin-block-start: 3px; color: var(--muted); font-size: 11px; }

  .profile-story-row { min-height: 154px; display: grid; grid-template-columns: 190px minmax(0, 1fr) 42px; gap: 21px; align-items: center; padding-block: 20px; border-block-end: 1px solid var(--border); }
  .profile-story-row__media { width: 190px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-media); background: var(--surface-emphasis); }
  .profile-story-row__media img { width: 100%; height: 100%; object-fit: cover; }
  .profile-story-row__copy h2 { margin-block: 5px; font-size: 19px; }
  .profile-story-row__copy p { max-width: 68ch; color: var(--ink-soft); font-size: 12px; }
  .profile-story-row__copy .story-meta { margin-block-start: 7px; }

  .reader-comment-list,
  .reader-notification-list { list-style: none; }
  .reader-comment-list > li { padding-block: 23px; border-block-end: 1px solid var(--border); }
  .reader-comment-list__meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .reader-comment-list__meta a { color: var(--navy); font-size: 12px; font-weight: 800; }
  .reader-comment-list__meta time { color: var(--muted); font-size: 11.5px; }
  .reader-comment-list p { margin-block: 9px; color: var(--ink-soft); line-height: 1.8; }

  .followed-topic-list article { min-height: 104px; border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 18px; }
  .followed-topic-list h2 { font-size: 18px; }
  .followed-topic-list p { max-width: 68ch; margin-block-start: 4px; color: var(--ink-soft); font-size: 12px; }

  .reader-notification-list > li { min-height: 96px; border-block-end: 1px solid var(--border); display: grid; grid-template-columns: 42px minmax(0, 1fr) 40px; align-items: center; gap: 14px; padding: 16px; }
  .reader-notification-list > li.is-unread { border-inline-start: 3px solid var(--navy); background: var(--navy-soft); }
  .reader-notification-list__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); color: var(--navy); }
  .reader-notification-list__icon svg { width: 19px; }
  .reader-notification-list a { min-width: 0; }
  .reader-notification-list a strong { display: block; font-size: 13px; }
  .reader-notification-list a p { margin-block: 3px; color: var(--ink-soft); font-size: 12px; }
  .reader-notification-list a time { color: var(--muted); font-size: 11.5px; }
  .reader-notification-list form { margin: 0; }
  .reader-notification-list .icon-button { width: 34px; min-height: 34px; }

  .profile-empty { min-height: 310px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 34px; text-align: center; }
  .profile-empty > svg { width: 38px; height: 38px; color: var(--muted); }
  .profile-empty h2 { font-size: 21px; }
  .profile-empty p { max-width: 48ch; color: var(--muted); }
  .profile-empty .button { margin-block-start: 5px; }

  @keyframes breaking-in {
    from { opacity: 0; translate: 0 -8px; }
    to { opacity: 1; translate: 0; }
  }
}

@layer responsive {
  @media (max-width: 1024px) {
    .reader-profile-hero__inner { grid-template-columns: 116px minmax(0, 1fr); }
    .profile-stat-strip { grid-column: 1 / -1; width: 100%; }
    .reader-profile-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  }

  @media (max-width: 768px) {
    .header-main__tools--end .notification-link { display: inline-flex; }
    .reader-profile-layout { grid-template-columns: 1fr; padding-block-start: 20px; }
    .profile-tabs { position: static; display: flex; gap: 4px; overflow-x: auto; border-block-start: 0; padding-block: 4px; scrollbar-width: none; }
    .profile-tabs a { flex: 0 0 auto; min-height: 40px; border: 1px solid var(--border); border-radius: var(--radius-control); display: inline-flex; padding-inline: 11px; }
    .profile-tabs a.is-active { padding-inline: 11px; }
    .profile-story-row { grid-template-columns: 150px minmax(0, 1fr) 38px; gap: 14px; }
    .profile-story-row__media { width: 150px; }
  }

  @media (max-width: 640px) {
    .header-main { grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr); }
    .header-main__tools { min-width: 0; }
    .header-main__tools--end { gap: 3px; }
    .header-main__tools--end .icon-button,
    .header-main__tools--end .profile-trigger { width: 36px; min-height: 36px; }
    .header-main__tools--end .profile-trigger { padding: 0; border: 0; justify-content: center; }
    .header-main__tools--end .profile-trigger > svg { display: none; }
    .header-main__tools--end .avatar--small { width: 34px; height: 34px; }
    .profile-menu-panel { position: fixed; inset-block-start: 58px; inset-inline: 10px; width: auto; max-height: calc(100dvh - 76px); }
    .header-login { min-width: 36px !important; width: 36px !important; min-height: 36px; }
    .notification-dot { inset-block-start: -5px; inset-inline-end: -5px; }
    .reader-profile-hero__inner { min-height: 0; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; padding-block: 25px; }
    .profile-avatar-form { width: 88px; min-height: 112px; }
    .avatar--profile { width: 82px; height: 82px; font-size: 26px; }
    .profile-avatar-form__choose { inset-block-start: 56px; width: 31px; height: 31px; }
    .profile-avatar-form .form-message { inset-inline-start: 0; width: min(270px, calc(100vw - 32px)); }
    .reader-profile-hero__copy h1 { font-size: 27px; }
    .reader-profile-hero__copy p { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .reader-profile-hero__copy small { display: none; }
    .profile-stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .profile-stat-strip > div { min-height: 64px; padding-inline: 8px; text-align: center; }
    .profile-stat-strip dd { font-size: 20px; }
    .reader-profile-layout { width: calc(100% - 32px); padding-block-end: 92px; }
    .profile-tabs {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-auto-rows: minmax(44px, auto);
      gap: 5px;
      padding-block: 0 4px;
      overflow: visible;
    }
    .profile-tabs a {
      width: 100%;
      min-width: 0;
      min-height: 44px;
      display: grid;
      grid-template-columns: 16px minmax(0, 1fr) auto;
      justify-content: stretch;
      gap: 3px;
      padding: 5px 6px;
      font-size: 11.5px;
      line-height: 1.25;
      text-align: center;
      white-space: nowrap;
    }
    .profile-tabs a.is-active { padding: 5px 6px; }
    .profile-tabs a span { min-width: 0; }
    .profile-tabs a svg { width: 16px; height: 16px; }
    .profile-tabs strong { min-width: 18px; width: 18px; height: 18px; font-size: 8px; }
    .profile-panel__header { min-height: 59px; }
    .profile-panel__header h2 { font-size: 22px; }
    .profile-panel__header > a { display: none; }
    .profile-overview-grid { grid-template-columns: 1fr; }
    .profile-overview-grid > a:nth-child(odd) { border-inline-end: 0; }
    .profile-story-row { min-height: 119px; grid-template-columns: 38% minmax(0, 1fr); gap: 12px; }
    .profile-story-row__media { width: 100%; min-height: 100px; }
    .profile-story-row__copy h2 { font-size: 15px; }
    .profile-story-row__copy p,
    .profile-story-row__copy .story-meta,
    .profile-story-row__open { display: none; }
    .reader-comment-list__meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .followed-topic-list article { align-items: flex-start; }
    .reader-notification-list > li { grid-template-columns: 36px minmax(0, 1fr); padding-inline: 8px; }
    .reader-notification-list__icon { width: 34px; height: 34px; }
    .reader-notification-list form { grid-column: 2; }
  }

  @media (max-width: 410px) {
    .brand-mark { display: none; }
    .profile-trigger { border: 0; }
  }
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: fallback;
  src: url("../fonts/noto-naskh-arabic-arabic-var.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: fallback;
  src: url("../fonts/noto-naskh-arabic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer reset, tokens, base, layout, components, utilities, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: light; scroll-behavior: smooth; }
  html[data-theme="dark"] { color-scheme: dark; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, textarea, select { font: inherit; }
  button, [role="button"] { touch-action: manipulation; }
  a { color: inherit; text-decoration: none; }
  table { border-collapse: collapse; border-spacing: 0; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    --page: #f7f8fa;
    --surface: #ffffff;
    --surface-subtle: #f2f4f7;
    --surface-emphasis: #e9eef5;
    --ink: #111827;
    --ink-soft: #4b5563;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-strong: #cfd5dd;
    --navy: #1e3a5f;
    --navy-strong: #142b48;
    --navy-soft: #edf2f7;
    --danger: #c62828;
    --danger-soft: #fdf0f0;
    --success: #157347;
    --success-soft: #eaf6ef;
    --warning: #9a6700;
    --warning-soft: #fff8df;
    --focus: #2869ad;
    --overlay: rgb(10 19 31 / 62%);
    --shadow-float: 0 16px 40px rgb(17 24 39 / 10%);
    --shadow-hover: 0 8px 22px rgb(17 24 39 / 8%);
    --font-ui: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    --font-editorial: "Noto Naskh Arabic", "Traditional Arabic", serif;
    --font-reading: var(--font-editorial);
    --container: 1320px;
    --reading: 720px;
    --sidebar: 320px;
    --radius-control: 8px;
    --radius-media: 6px;
    --radius-modal: 12px;
    --header-utility-height: 34px;
    --header-main-height: 72px;
    --header-nav-height: 48px;
    --mobile-nav-height: 64px;
    --ease: 180ms cubic-bezier(.2, .7, .2, 1);
  }

  html[data-theme="dark"] {
    --page: #0c121a;
    --surface: #121b26;
    --surface-subtle: #172230;
    --surface-emphasis: #1d2c3d;
    --ink: #f4f7fb;
    --ink-soft: #c5ced8;
    --muted: #98a5b4;
    --border: #2a394a;
    --border-strong: #3b4b5e;
    --navy: #5b86b5;
    --navy-strong: #79a1cb;
    --navy-soft: #16283a;
    --danger: #ef6b6b;
    --danger-soft: #341d21;
    --success: #68c799;
    --success-soft: #173127;
    --warning: #e3bb57;
    --warning-soft: #342d19;
    --focus: #82b6ed;
    --overlay: rgb(0 0 0 / 74%);
    --shadow-float: 0 18px 48px rgb(0 0 0 / 35%);
    --shadow-hover: 0 10px 28px rgb(0 0 0 / 28%);
  }
}

@layer base {
  html { background: var(--page); }
  body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.65;
    text-align: start;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  body.is-locked { overflow: hidden; }
  ::selection { background: color-mix(in srgb, var(--navy) 22%, transparent); }
  :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus) 52%, transparent);
    outline-offset: 3px;
    border-radius: 3px;
  }
  button, select { color: inherit; }
  button { cursor: pointer; }
  button:disabled, input:disabled, textarea:disabled, select:disabled {
    cursor: not-allowed;
    opacity: .56;
  }
  input, textarea, select {
    min-width: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
  }
  input, select { min-height: 46px; padding: 0 13px; }
  textarea { width: 100%; min-height: 120px; padding: 12px 13px; resize: vertical; }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
  hr { height: 1px; margin: 32px 0; border: 0; background: var(--border); }
  h1, h2, h3, h4 {
    font-family: var(--font-editorial);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: normal;
    text-wrap: balance;
  }
  strong { font-family: inherit; }
  p { text-wrap: pretty; }
  address { font-style: normal; }
  noscript {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--warning-soft);
    color: var(--ink);
    text-align: center;
  }
}

@layer layout {
  .container, .shell {
    width: min(calc(100% - 64px), var(--container));
    margin-inline: auto;
  }
  .site-shell { min-height: 100vh; display: flex; flex-direction: column; }
  .site-main { flex: 1; }
  .section { padding-block: 64px; }
  .section + .section { border-top: 1px solid var(--border); }
  .section--compact { padding-block: 40px; }
  .section--navy { border: 0; background: var(--navy-strong); color: #fff; }
  .stack { display: flex; flex-direction: column; gap: 24px; }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .grid-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    gap: 40px;
    align-items: start;
    padding-block: 32px 56px;
  }
  .content-sidebar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    gap: 48px;
    align-items: start;
  }
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--reading)) var(--sidebar);
    justify-content: center;
    gap: 56px;
    align-items: start;
    padding-block: 48px 72px;
  }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 1000;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    translate: 0 -150%;
    border-radius: 6px;
    background: var(--ink);
    color: var(--surface);
    padding: 10px 14px;
    font-weight: 700;
  }
  .skip-link:focus { translate: 0; }

  .site-header {
    position: relative;
    z-index: 70;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .topbar { border-bottom: 1px solid var(--border); background: var(--surface-subtle); }
  .topbar .container {
    min-height: var(--header-utility-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
  }
  .header-main {
    min-height: var(--header-main-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    transition: min-height var(--ease);
  }
  .header-main > .brand {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
    justify-self: center;
  }
  .brand, .site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: normal;
    white-space: nowrap;
  }
  .brand img, .site-logo img { width: 42px; height: 42px; object-fit: contain; }
  .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 900;
  }
  .site-nav { min-width: 0; }
  .site-nav ul, .nav-strip ul {
    display: flex;
    align-items: center;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav ul { gap: 28px; }
  .site-nav a {
    position: relative;
    display: block;
    padding-block: 24px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 17px;
    height: 2px;
    scale: 0 1;
    background: var(--navy);
    transform-origin: center;
    transition: scale var(--ease);
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { scale: 1; }
  .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .nav-strip {
    max-height: var(--header-nav-height);
    border-top: 1px solid var(--border);
    background: var(--surface);
    opacity: 1;
    transition: max-height var(--ease), opacity var(--ease);
  }
  .nav-strip ul { min-height: var(--header-nav-height); gap: 30px; }
  .nav-strip a {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .nav-strip a:hover, .nav-strip a[aria-current="page"] { color: var(--navy); }
  .mobile-menu-button { display: none; }

  .icon-button, .button, .primary-button, .secondary-button, .danger-button, .text-button {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    background: transparent;
    color: inherit;
    font-weight: 750;
    line-height: 1;
    transition: color var(--ease), background var(--ease), border-color var(--ease), translate var(--ease);
  }
  .icon-button { width: 42px; padding: 0; border-color: var(--border); background: var(--surface); }
  .icon-button svg, .button svg, .primary-button svg, .secondary-button svg, .danger-button svg { width: 19px; height: 19px; }
  .icon-button:hover { border-color: var(--border-strong); background: var(--surface-subtle); color: var(--navy); }
  .primary-button { border-color: var(--navy); background: var(--navy); color: #fff; }
  .primary-button:hover { border-color: var(--navy-strong); background: var(--navy-strong); translate: 0 -1px; }
  html[data-theme="dark"] .primary-button { color: #08111c; }
  .secondary-button, .button { border-color: var(--border-strong); background: var(--surface); }
  .secondary-button:hover, .button:hover { border-color: var(--navy); color: var(--navy); }
  .danger-button { border-color: var(--danger); background: var(--danger); color: #fff; }
  .danger-button:hover { filter: brightness(.92); }
  .text-button { min-height: 36px; padding-inline: 5px; color: var(--navy); }
  .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
  [aria-pressed="true"].icon-button, [aria-pressed="true"].button,
  .icon-button.is-active, .button.is-active {
    border-color: var(--navy);
    background: var(--navy-soft);
    color: var(--navy);
  }
  .is-loading { position: relative; pointer-events: none; }
  .is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }
  .is-loading > :not(.sr-only) { opacity: .28; }

  .badge, .status, .story-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: normal;
  }
  .status {
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    color: var(--ink-soft);
  }
  .status--success { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: var(--success-soft); color: var(--success); }
  .status--warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); background: var(--warning-soft); color: var(--warning); }
  .status--danger, .badge--breaking { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

  .breaking-bar { background: var(--danger); color: #fff; }
  .breaking-bar .container, .breaking-inner {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
  }
  .breaking-label { font-size: 12px; font-weight: 900; letter-spacing: normal; }
  .breaking-bar a { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .breaking-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .breaking-bar time { font-size: 12px; opacity: .8; }
  .breaking-dismiss { width: 32px; min-height: 32px; border: 0; background: transparent; color: inherit; font-size: 22px; }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 1.8s ease-in-out infinite; }

  .section-heading {
    min-height: 45px;
    margin-block-end: 24px;
    border-block-end: 1px solid var(--border-strong);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }
  .section-heading h1, .section-heading h2 { font-size: clamp(22px, 2.2vw, 27px); }
  .section-heading h1::after, .section-heading h2::after {
    content: "";
    width: 64px;
    height: 3px;
    display: block;
    margin-block-start: 12px;
    background: var(--navy);
  }
  .section-heading a { color: var(--navy); font-size: 13px; font-weight: 800; }

  .hero-story { min-width: 0; }
  .hero-story > a, .hero-story__link {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
    gap: 30px;
    align-items: center;
  }
  .hero-media, .story-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-media);
    background: var(--surface-emphasis);
  }
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-media img, .story-media img, .story-card > a > img, .story-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 420ms cubic-bezier(.2, .65, .25, 1);
  }
  .hero-story:hover img, .story-card:hover img, .story-row:hover img { scale: 1.025; }
  .hero-copy h1, .hero-copy h2 {
    max-width: 17ch;
    margin-block: 14px 16px;
    font-size: clamp(32px, 3.35vw, 42px);
    line-height: 1.3;
    letter-spacing: normal;
  }
  .hero-copy h1 a:hover, .hero-copy h2 a:hover { color: var(--navy); }
  .hero-copy > p { max-width: 52ch; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
  .story-meta {
    margin-block-start: 17px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 12px;
  }
  .story-meta > * + * { position: relative; }
  .story-meta > * + *::before {
    content: "";
    position: absolute;
    inset-inline-start: -8px;
    inset-block-start: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
  }

  .sidebar-panel {
    padding-block: 2px 24px;
    border-block-end: 1px solid var(--border);
  }
  .sidebar-panel + .sidebar-panel { padding-block-start: 24px; }
  .sidebar-panel h2 { margin-block-end: 17px; font-size: 18px; }
  .sidebar-panel h2::before {
    content: "";
    width: 3px;
    height: 18px;
    display: inline-block;
    margin-inline-end: 9px;
    vertical-align: -3px;
    background: var(--navy);
  }
  .numbered-list { list-style: none; counter-reset: popular; }
  .numbered-list li {
    counter-increment: popular;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 11px;
    padding-block: 13px;
    border-block-start: 1px solid var(--border);
  }
  .numbered-list li::before { content: counter(popular, decimal-leading-zero); color: var(--navy); font-size: 13px; font-weight: 900; }
  .numbered-list a { font-size: 14px; font-weight: 750; line-height: 1.55; }
  .numbered-list a:hover { color: var(--navy); }

  .story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .story-card {
    position: relative;
    min-width: 0;
    border-block-end: 1px solid var(--border);
    padding-block-end: 21px;
    transition: translate var(--ease), box-shadow var(--ease);
  }
  .story-card .story-media, .story-card > a > img { width: 100%; aspect-ratio: 16 / 9; margin-block-end: 17px; border-radius: var(--radius-media); object-fit: cover; }
  .story-card h2, .story-card h3 { margin-block: 8px 9px; font-size: 19px; line-height: 1.52; }
  .story-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
  .story-card:hover { translate: 0 -2px; }
  .story-card h2 a:hover, .story-card h3 a:hover { color: var(--navy); }
  .story-card [data-save] { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; opacity: 0; }
  .story-card:hover [data-save], .story-card [data-save]:focus-visible, .story-card [data-save][aria-pressed="true"] { opacity: 1; }

  .story-list { list-style: none; }
  .story-row {
    position: relative;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding-block: 22px;
    border-block-end: 1px solid var(--border);
  }
  .story-row:first-child { border-block-start: 1px solid var(--border); }
  .story-row__media, .story-row > img, .story-row > a:first-child {
    width: 210px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-media);
    background: var(--surface-emphasis);
    object-fit: cover;
  }
  .story-row > a:first-child img { width: 100%; height: 100%; object-fit: cover; }
  .story-row h2, .story-row h3 { margin-block: 7px 8px; font-size: 20px; }
  .story-row p { max-width: 70ch; color: var(--ink-soft); font-size: 14px; }
  .story-row h2 a:hover, .story-row h3 a:hover { color: var(--navy); }
  .story-row__actions { align-self: start; display: flex; gap: 6px; }

  .topic-band { padding-block: 56px; background: var(--navy-strong); color: #fff; }
  .topic-band .section-heading { border-color: rgb(255 255 255 / 24%); }
  .topic-band .section-heading h2::after { background: #fff; }
  .topic-grid, .topic-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgb(255 255 255 / 22%);
  }
  .topic-card { min-height: 220px; padding: 26px; background: var(--navy-strong); }
  .topic-card__number { color: rgb(255 255 255 / 55%); font-size: 14px; font-weight: 900; }
  .topic-card h3 { max-width: 22ch; margin-block: 30px 10px; font-size: 21px; }
  .topic-card p { color: rgb(255 255 255 / 72%); font-size: 14px; }
  .topic-card footer { margin-block-start: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .topic-card .secondary-button { border-color: rgb(255 255 255 / 35%); background: transparent; color: #fff; }

  .tabs, [role="tablist"], .saved-toolbar, .filter-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    border-block-end: 1px solid var(--border);
    scrollbar-width: none;
  }
  [data-tab], [role="tab"] {
    position: relative;
    min-height: 45px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
  }
  [data-tab][aria-selected="true"], [role="tab"][aria-selected="true"] { color: var(--navy); }
  [data-tab][aria-selected="true"]::after, [role="tab"][aria-selected="true"]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    height: 2px;
    background: var(--navy);
  }
  [data-tab-panel] { padding-block-start: 20px; }

  .newsletter, .newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 32px;
    align-items: center;
    padding: 30px 32px;
    border-inline-start: 4px solid var(--navy);
    background: var(--surface);
  }
  .newsletter h2 { font-size: 22px; }
  .newsletter p { margin-block-start: 5px; color: var(--ink-soft); }
  .newsletter form, .newsletter-form form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

  .site-footer { margin-block-start: 56px; border-block-start: 1px solid var(--border); background: var(--surface); }
  .footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 48px; padding-block: 52px 44px; }
  .footer-grid h2, .footer-grid h3 { margin-block-end: 14px; font-size: 15px; }
  .footer-grid p { max-width: 44ch; color: var(--ink-soft); font-size: 14px; }
  .footer-grid ul { list-style: none; display: grid; gap: 9px; }
  .footer-grid a { color: var(--ink-soft); font-size: 14px; }
  .footer-grid a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  .footer-bottom { min-height: 62px; border-block-start: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }

  .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block-end: 26px; color: var(--muted); font-size: 12px; }
  .breadcrumbs > svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--border-strong); }
  .breadcrumbs a:hover { color: var(--navy); }
  .article-page { min-width: 0; }
  .article-header { margin-block-end: 28px; }
  .article-header h1 {
    margin-block: 13px 17px;
    font-size: clamp(34px, 4vw, 42px);
    line-height: 1.32;
    letter-spacing: normal;
  }
  .article-deck { max-width: 60ch; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
  .byline { margin-block-start: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .byline img, .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-emphasis); }
  .byline__name { font-weight: 800; }
  .byline__meta { color: var(--muted); font-size: 12px; }
  .article-lead { margin-block: 30px 34px; }
  .article-lead img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-media); object-fit: cover; }
  figcaption, .media-caption { margin-block-start: 9px; color: var(--muted); font-size: 12px; }
  .article-body {
    color: var(--ink);
    font-family: var(--font-reading);
    font-size: 19px;
    line-height: 1.9;
  }
  .article-body > * + * { margin-block-start: 24px; }
  .article-body h2 { margin-block-start: 42px; font-family: var(--font-reading); font-size: 29px; }
  .article-body h3 { margin-block-start: 34px; font-family: var(--font-reading); font-size: 24px; }
  .article-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  .article-body ul, .article-body ol { padding-inline-start: 24px; }
  .article-body li + li { margin-block-start: 8px; }
  .article-body blockquote {
    margin-inline: 0;
    padding: 10px 24px 10px 0;
    border-inline-start: 4px solid var(--navy);
    color: var(--navy-strong);
    font-family: var(--font-reading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.65;
  }
  html[data-theme="dark"] .article-body blockquote { color: var(--navy); }
  .article-body table { width: 100%; min-width: 560px; font-family: var(--font-ui); font-size: 14px; }
  .article-body th, .article-body td { padding: 12px; border: 1px solid var(--border); text-align: start; }
  .table-scroll { overflow-x: auto; }
  .article-box, .source-box, .correction-box, .author-box {
    margin-block: 34px;
    padding: 22px 24px;
    border-inline-start: 3px solid var(--navy);
    background: var(--navy-soft);
  }
  .correction-box { border-color: var(--warning); background: var(--warning-soft); }
  .article-box h2, .source-box h2, .correction-box h2, .author-box h2 { margin-block-end: 9px; font-size: 17px; }
  .article-box p, .source-box p, .correction-box p, .author-box p { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
  .article-tags { margin-block: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
  .article-tags a { min-height: 34px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 5px; color: var(--ink-soft); font-size: 12px; }
  .article-tags a:hover { border-color: var(--navy); color: var(--navy); }
  .article-sidebar { position: sticky; inset-block-start: 150px; }
  .article-actions {
    position: fixed;
    z-index: 35;
    inset-inline-start: max(24px, calc((100vw - 1180px) / 2));
    inset-block-start: 34%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .article-actions .icon-button { position: relative; }
  .article-actions [data-count] { position: absolute; inset-inline-end: -7px; inset-block-start: -7px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 11.5px; }

  .comments { margin-block-start: 56px; padding-block-start: 34px; border-block-start: 2px solid var(--ink); }
  .comments__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .comments__heading h2 { font-size: 23px; }
  .comment-composer { margin-block: 24px; padding: 18px; border: 1px solid var(--border); background: var(--surface); }
  .comment-composer footer { margin-block-start: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .comment-composer [data-char-count] { color: var(--muted); font-size: 12px; }
  .comment-list { list-style: none; }
  .comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding-block: 24px;
    border-block-end: 1px solid var(--border);
  }
  .comment__header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .comment__header time { color: var(--muted); font-size: 12px; }
  .comment__body { margin-block: 8px 12px; color: var(--ink-soft); line-height: 1.75; }
  .comment__actions { display: flex; flex-wrap: wrap; gap: 14px; }
  .comment__actions button { min-height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
  .comment__actions button:hover { color: var(--navy); }
  .comment--reply { margin-inline-start: 32px; border-inline-start: 2px solid var(--border); padding-inline-start: 18px; }
  .comment--pinned { padding-inline: 14px; background: var(--navy-soft); }
  [data-reply-form] { margin-block-start: 14px; }

  .page-header { padding-block: 48px 28px; border-block-end: 1px solid var(--border); }
  .page-header h1 { font-size: clamp(30px, 3.6vw, 38px); }
  .page-header p { max-width: 70ch; margin-block-start: 9px; color: var(--ink-soft); }
  .listing-page, .saved-layout, .topic-page, .info-page { padding-block: 40px 72px; }
  .filter-bar {
    margin-block-end: 22px;
    padding: 14px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    background: var(--surface);
  }
  .filter-bar label, .field { display: grid; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
  .filter-bar .search-input { flex: 1 1 260px; }
  .search-input { position: relative; }
  .search-input input { width: 100%; padding-inline-start: 42px; }
  .search-input svg { position: absolute; z-index: 1; inset-inline-start: 13px; inset-block-start: 50%; width: 19px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
  .pagination { margin-block-start: 32px; display: flex; align-items: center; justify-content: center; gap: 7px; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 5px; display: grid; place-items: center; background: var(--surface); font-size: 13px; }
  .pagination [aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }

  .topic-hero { padding-block: 54px; background: var(--navy-strong); color: #fff; }
  .topic-hero .container { max-width: 920px; }
  .topic-hero h1 { margin-block: 12px; font-size: clamp(34px, 4.5vw, 46px); }
  .topic-hero p { max-width: 68ch; color: rgb(255 255 255 / 74%); font-size: 17px; }
  .topic-hero footer { margin-block-start: 23px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
  .topic-timeline { position: relative; }
  .topic-timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 92px; width: 1px; background: var(--border-strong); }
  .topic-timeline article { position: relative; display: grid; grid-template-columns: 72px 18px minmax(0, 1fr); gap: 16px; padding-block-end: 34px; }
  .timeline-date { color: var(--muted); font-size: 12px; }
  .timeline-dot { z-index: 1; width: 13px; height: 13px; border: 3px solid var(--navy); border-radius: 50%; background: var(--page); }
  .topic-timeline h2, .topic-timeline h3 { margin-block: 5px 7px; font-size: 19px; }
  .topic-timeline p { color: var(--ink-soft); font-size: 14px; }

  .saved-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; }
  .folder-nav { position: sticky; inset-block-start: 140px; }
  .folder-nav ul { list-style: none; display: grid; gap: 3px; }
  .folder-nav a, .folder-nav button { width: 100%; min-height: 42px; border: 0; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: transparent; color: var(--ink-soft); text-align: start; }
  .folder-nav a:hover, .folder-nav a[aria-current="page"], .folder-nav button:hover { background: var(--navy-soft); color: var(--navy); }
  .folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .folder-card { min-height: 150px; padding: 20px; border: 1px solid var(--border); background: var(--surface); }
  .folder-card h3 { margin-block: 25px 4px; font-size: 17px; }
  .folder-card p { color: var(--muted); font-size: 12px; }

  dialog.modal, .modal, .auth-modal {
    width: min(480px, calc(100% - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-modal);
    overflow: auto;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-float);
  }
  dialog.modal::backdrop, .auth-modal::backdrop { background: var(--overlay); }
  .modal:not(dialog), .auth-modal:not(dialog) {
    position: fixed;
    z-index: 100;
    inset: 0;
    width: auto;
    max-height: none;
    border-radius: 0;
    display: none;
    place-items: center;
    padding: 16px;
    background: var(--overlay);
  }
  .modal.is-open:not(dialog), .auth-modal.is-open:not(dialog) { display: grid; }
  .modal:not(dialog) > .modal__surface, .auth-modal:not(dialog) > .modal__surface { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--radius-modal); background: var(--surface); box-shadow: var(--shadow-float); }
  .modal__header, .modal__body, .modal__footer { padding: 20px 24px; }
  .modal__header { border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .modal__header h2 { font-size: 20px; }
  .modal__body { display: grid; gap: 14px; }
  .modal__footer { border-block-start: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

  .drawer, .search-drawer, .mobile-drawer {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: none;
    background: var(--overlay);
  }
  .drawer.is-open, .search-drawer.is-open, .mobile-drawer.is-open { display: block; }
  .drawer__surface, .mobile-drawer__surface {
    width: min(390px, 90vw);
    height: 100%;
    margin-inline-start: 0;
    margin-inline-end: auto;
    padding: 22px;
    overflow-y: auto;
    background: var(--surface);
    box-shadow: var(--shadow-float);
    animation: drawer-in var(--ease) both;
  }
  .drawer__header { min-height: 50px; margin-block-end: 18px; border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .drawer nav ul { list-style: none; }
  .drawer nav a { display: block; padding-block: 12px; border-block-end: 1px solid var(--border); font-weight: 750; }
  .search-drawer__surface {
    width: 100%;
    max-height: min(680px, 86dvh);
    padding-block: 28px 36px;
    overflow-y: auto;
    background: var(--surface);
    box-shadow: var(--shadow-float);
    animation: search-in var(--ease) both;
  }
  .search-drawer__inner { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
  .search-drawer form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .search-drawer input { width: 100%; min-height: 54px; font-size: 18px; }
  .search-suggestions { margin-block-start: 24px; }
  .search-suggestions h3 { margin-block-end: 8px; color: var(--muted); font-size: 12px; }
  .search-suggestions a { display: block; padding-block: 10px; border-block-end: 1px solid var(--border); }

  [data-menu] { position: relative; }
  [data-menu-panel], .menu-panel {
    position: absolute;
    z-index: 80;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    width: max-content;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface);
    box-shadow: var(--shadow-float);
  }
  [data-menu-panel] a, [data-menu-panel] button, .menu-panel a, .menu-panel button {
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    background: transparent;
    color: var(--ink-soft);
    text-align: start;
  }
  [data-menu-panel] a:hover, [data-menu-panel] button:hover, .menu-panel a:hover, .menu-panel button:hover { background: var(--surface-subtle); color: var(--navy); }
  [data-menu-panel] .danger, .menu-panel .danger { color: var(--danger); }

  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .field--full { grid-column: 1 / -1; }
  .field label, label.field { color: var(--ink); font-size: 13px; font-weight: 800; }
  .field small { color: var(--muted); font-weight: 400; }
  .field-error, [data-error-for] { color: var(--danger); font-size: 12px; font-weight: 700; }
  [aria-invalid="true"] { border-color: var(--danger); }
  .form-message { padding: 10px 12px; border-inline-start: 3px solid var(--navy); background: var(--navy-soft); font-size: 13px; }
  .form-message.is-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
  .form-message.is-success { border-color: var(--success); background: var(--success-soft); color: var(--success); }

  .empty-state, .error-state {
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 32px;
    text-align: center;
  }
  .empty-state svg, .error-state svg { width: 40px; height: 40px; color: var(--muted); }
  .empty-state h2, .error-state h2 { font-size: 21px; }
  .empty-state p, .error-state p { max-width: 52ch; color: var(--ink-soft); }

  [data-toast-region], .toast-region {
    position: fixed;
    z-index: 140;
    inset-inline-start: 22px;
    inset-block-end: 22px;
    width: min(380px, calc(100% - 32px));
    display: grid;
    gap: 8px;
    pointer-events: none;
  }
  .toast {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 7px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow-float);
    pointer-events: auto;
    animation: toast-in var(--ease) both;
  }
  .toast.is-error { background: #7f1d1d; }
  .toast.is-success { background: #123b2a; }
  .toast button { min-height: 30px; border: 0; background: transparent; color: #fff; font-weight: 800; text-decoration: underline; }
  .toast.is-leaving { animation: toast-out var(--ease) both; }

  .mobile-nav, .mobile-bottom-nav { display: none; }

  @keyframes spin { to { rotate: 1turn; } }
  @keyframes live-pulse { 50% { opacity: .4; scale: .72; } }
  @keyframes drawer-in { from { translate: 100% 0; } }
  @keyframes search-in { from { translate: 0 -14px; opacity: 0; } }
  @keyframes toast-in { from { translate: -12px 0; opacity: 0; } }
  @keyframes toast-out { to { translate: -12px 0; opacity: 0; } }
}

@layer utilities {
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .muted { color: var(--muted); }
  .ink-soft { color: var(--ink-soft); }
  .text-navy { color: var(--navy); }
  .text-danger { color: var(--danger); }
  .rule-top { border-block-start: 1px solid var(--border); }
  .rule-bottom { border-block-end: 1px solid var(--border); }
  .align-start { align-items: flex-start; }
  .push-inline-end { margin-inline-start: auto; }
  .js [data-js-only] { display: revert; }
  .no-js [data-js-only] { display: none !important; }
}

@layer responsive {
  @media (max-width: 1180px) {
    .site-nav ul { gap: 18px; }
    .header-main { gap: 22px; }
    .article-actions { position: sticky; inset: auto; margin-block-end: 20px; flex-direction: row; }
  }

  @media (max-width: 1024px) {
    .container, .shell { width: min(calc(100% - 48px), var(--container)); }
    .site-nav, .nav-strip { display: none; }
    .header-main { grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); min-height: 64px; }
    .mobile-menu-button { display: inline-flex; }
    .brand, .site-logo { justify-self: center; }
    .grid-home { grid-template-columns: 1fr; gap: 36px; }
    .grid-home > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .content-sidebar-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .topic-grid, .topic-rail { overflow-x: auto; grid-template-columns: repeat(3, minmax(310px, 1fr)); scroll-snap-type: inline mandatory; }
    .topic-card { scroll-snap-align: start; }
    .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
    .footer-grid > :last-child { grid-column: 2; }
  }

  @media (max-width: 768px) {
    .section { padding-block: 46px; }
    .topbar { display: none; }
    .header-actions > :not([data-search-open], [data-theme-toggle], .account-button) { display: none; }
    .hero-story > a, .hero-story__link { grid-template-columns: 1fr; gap: 20px; }
    .hero-media { aspect-ratio: 16 / 9; }
    .hero-copy h1, .hero-copy h2 { max-width: 22ch; font-size: clamp(28px, 7vw, 38px); }
    .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-row { grid-template-columns: 180px minmax(0, 1fr); }
    .story-row__media, .story-row > img, .story-row > a:first-child { width: 180px; }
    .story-row__actions { display: none; }
    .newsletter, .newsletter-form { grid-template-columns: 1fr; padding: 24px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: auto; }
    .saved-layout { grid-template-columns: 1fr; gap: 24px; }
    .folder-nav { position: static; overflow-x: auto; }
    .folder-nav ul { display: flex; }
    .folder-nav a, .folder-nav button { width: auto; white-space: nowrap; }
    .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
  }

  @media (max-width: 640px) {
    body { padding-block-end: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); overflow-x: clip; }
    .container, .shell { width: calc(100% - 32px); }
    .header-main { min-height: 58px; gap: 8px; }
    .brand, .site-logo { font-size: 20px; }
    .brand img, .site-logo img, .brand-mark { width: 32px; height: 32px; }
    .header-actions { gap: 4px; }
    .header-actions .icon-button, .mobile-menu-button { width: 38px; min-height: 38px; border-color: transparent; padding: 0; }
    .account-button { display: none !important; }
    .breaking-bar .container, .breaking-inner { min-height: 40px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
    .breaking-bar time, .breaking-bar .live-dot { display: none; }
    .breaking-label { font-size: 11.5px; }
    .breaking-bar a { font-size: 12px; }
    .grid-home { width: 100%; padding-block-start: 16px; }
    .grid-home > .hero-story, .grid-home > main { width: 100%; }
    .hero-copy { padding-inline: 16px; }
    .hero-copy h1, .hero-copy h2 { font-size: 28px; }
    .hero-copy > p { font-size: 15px; }
    .grid-home > aside { width: calc(100% - 32px); margin-inline: auto; grid-template-columns: 1fr; }
    .section-heading { min-height: 42px; }
    .section-heading h1, .section-heading h2 { font-size: 22px; }
    .story-grid { grid-template-columns: 1fr; gap: 19px; }
    .story-card { display: grid; grid-template-columns: 41% minmax(0, 1fr); gap: 13px; padding-block-end: 17px; }
    .story-card .story-media, .story-card > a > img { min-height: 128px; margin: 0; }
    .story-card h2, .story-card h3 { margin-block: 6px 0; font-size: 16px; }
    .story-card p, .story-card .story-meta { display: none; }
    .story-card [data-save] { display: none; }
    .story-row { grid-template-columns: 38% minmax(0, 1fr); gap: 13px; padding-block: 17px; }
    .story-row__media, .story-row > img, .story-row > a:first-child { width: 100%; min-height: 112px; }
    .story-row h2, .story-row h3 { font-size: 16px; line-height: 1.5; }
    .story-row p { display: none; }
    .topic-band { padding-block: 42px; }
    .topic-grid, .topic-rail { grid-template-columns: repeat(3, 82vw); }
    .newsletter, .newsletter-form { border-inline-start-width: 3px; padding: 21px 17px; }
    .newsletter form, .newsletter-form form { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { min-height: 82px; align-items: flex-start; justify-content: center; flex-direction: column; }
    .article-layout { width: calc(100% - 32px); padding-block: 28px 64px; }
    .article-header h1 { font-size: 29px; }
    .article-deck { font-size: 16px; }
    .article-body { font-size: 17px; line-height: 1.85; }
    .article-body h2 { font-size: 24px; }
    .article-body blockquote { font-size: 20px; }
    .article-sidebar { grid-template-columns: 1fr; }
    .article-actions {
      position: fixed;
      z-index: 48;
      inset-inline: 0;
      inset-block-start: auto;
      inset-block-end: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
      height: 54px;
      margin: 0;
      padding: 5px 16px;
      border-block-start: 1px solid var(--border);
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      background: var(--surface);
      transition: translate var(--ease);
    }
    .article-actions.is-hidden { translate: 0 110%; }
    .article-actions .icon-button { width: 100%; border: 0; background: transparent; }
    .comments { margin-block-start: 44px; }
    .comment { grid-template-columns: 34px minmax(0, 1fr); }
    .comment .avatar { width: 34px; height: 34px; }
    .comment--reply { margin-inline-start: 12px; padding-inline-start: 11px; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar label, .filter-bar .field, .filter-bar select, .filter-bar input { width: 100%; }
    .listing-page, .saved-layout, .topic-page, .info-page { padding-block: 28px 70px; }
    .topic-timeline::before { inset-inline-start: 69px; }
    .topic-timeline article { grid-template-columns: 56px 14px minmax(0, 1fr); gap: 9px; }
    .folder-grid { grid-template-columns: 1fr; }
    .modal__header, .modal__body, .modal__footer { padding: 17px; }
    dialog.modal, .modal, .auth-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
    [data-toast-region], .toast-region { inset-inline: 16px; inset-block-end: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom)); width: auto; }
    .mobile-nav, .mobile-bottom-nav {
      position: fixed;
      z-index: 50;
      inset-inline: 0;
      inset-block-end: 0;
      width: 100%;
      max-width: 100vw;
      min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
      padding-block-end: env(safe-area-inset-bottom);
      padding-left: max(4px, env(safe-area-inset-left));
      padding-right: max(4px, env(safe-area-inset-right));
      border-block-start: 1px solid var(--border);
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      background: var(--surface);
      box-shadow: 0 -8px 22px rgb(17 24 39 / 6%);
      isolation: isolate;
    }
    .mobile-nav a, .mobile-nav button, .mobile-bottom-nav a, .mobile-bottom-nav button {
      position: relative;
      min-width: 0;
      min-height: var(--mobile-nav-height);
      border: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      padding: 6px 2px 4px;
      background: transparent;
      color: var(--muted);
      font-size: 11.5px;
      line-height: 1.1;
      text-align: center;
      transition: color var(--ease), background var(--ease);
    }
    .mobile-nav a > span, .mobile-nav button > span,
    .mobile-bottom-nav a > span, .mobile-bottom-nav button > span {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mobile-nav svg, .mobile-bottom-nav svg { width: 21px; height: 21px; flex: 0 0 auto; }
    .mobile-nav a:hover, .mobile-nav button:hover,
    .mobile-bottom-nav a:hover, .mobile-bottom-nav button:hover { background: var(--surface-subtle); color: var(--navy); }
    .mobile-nav [aria-current="page"], .mobile-nav [aria-pressed="true"], .mobile-nav .is-active,
    .mobile-bottom-nav [aria-current="page"], .mobile-bottom-nav [aria-pressed="true"], .mobile-bottom-nav .is-active {
      color: var(--navy);
      font-weight: 800;
    }
    .mobile-nav [aria-current="page"]::before, .mobile-nav [aria-pressed="true"]::before, .mobile-nav .is-active::before,
    .mobile-bottom-nav [aria-current="page"]::before, .mobile-bottom-nav [aria-pressed="true"]::before, .mobile-bottom-nav .is-active::before {
      content: "";
      position: absolute;
      inset-block-start: -1px;
      inset-inline: 0;
      width: 24px;
      height: 2px;
      margin-inline: auto;
      background: var(--navy);
    }
    .mobile-nav a:focus-visible, .mobile-nav button:focus-visible,
    .mobile-bottom-nav a:focus-visible, .mobile-bottom-nav button:focus-visible { outline-offset: -4px; }
    .mobile-nav [data-badge], .mobile-bottom-nav [data-badge] {
      position: absolute;
      inset-block-start: 6px;
      inset-inline-start: calc(50% - 19px);
      min-width: 17px;
      height: 17px;
      border: 2px solid var(--surface);
      border-radius: 9px;
      display: grid;
      place-items: center;
      background: var(--danger);
      color: #fff;
      font-size: 8px;
      line-height: 1;
    }
  }

  @media (hover: none) {
    .story-card [data-save] { opacity: 1; }
    .story-card:hover, .primary-button:hover { translate: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }

  @media print {
    .site-header, .breaking-bar, .site-footer, .article-actions, .comments, .mobile-nav, .mobile-bottom-nav, [data-js-only] { display: none !important; }
    body { padding: 0; background: #fff; color: #000; }
    .article-layout { display: block; width: 100%; padding: 0; }
    .article-page { max-width: 760px; margin-inline: auto; }
    .article-body { font-size: 12pt; }
    a { color: #000; }
  }
}

/* Rendered PHP template contract. These selectors intentionally stay semantic and
   keep the public templates useful without a client-side component runtime. */
@layer components {
  .utility-bar { border-block-end: 1px solid var(--border); background: var(--surface-subtle); }
  .utility-bar__inner { min-height: var(--header-utility-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .today-line, .utility-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
  .utility-links a:hover { color: var(--navy); }
  .utility-links .icon-button { width: 28px; min-height: 28px; border: 0; background: transparent; }
  .utility-links .icon-button svg { width: 15px; height: 15px; }
  .header-main__tools { min-width: 0; display: flex; align-items: center; gap: 7px; }
  .header-main__tools--start { grid-column: 1; justify-content: flex-start; }
  .header-main__tools--end { grid-column: 3; justify-content: flex-end; }
  .menu-button { display: none; }
  .brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { margin-block-start: 5px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: normal; }
  .brand-mark {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 5px;
  }
  .brand-mark > span {
    position: absolute;
    display: block;
    rotate: 0deg;
    background: transparent;
    color: inherit;
  }
  .brand-mark > span:nth-child(1) {
    inset: 16%;
    border: 2px solid currentColor;
    border-radius: 2px;
  }
  .brand-mark > span:nth-child(2) {
    inset: 31%;
    border: 1px solid currentColor;
    border-radius: 1px;
  }
  .brand-mark > span:nth-child(3) {
    width: 16%;
    height: 16%;
    inset: 42%;
    border-radius: 1px;
    background: currentColor;
  }
  .brand-mark--large { width: 54px; height: 54px; border-width: 3px; border-radius: 7px; }
  .primary-nav { min-width: 0; flex: 1; display: flex; align-items: center; gap: 25px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav .nav-home { width: 30px; min-width: 30px; display: inline-grid; place-items: center; }
  .primary-nav .nav-home svg { width: 17px; height: 17px; }
  .primary-nav a { position: relative; flex: 0 0 auto; color: var(--ink-soft); font-size: 13px; font-weight: 750; white-space: nowrap; }
  .primary-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -15px; height: 2px; scale: 0 1; background: var(--navy); transition: scale var(--ease); }
  .primary-nav a:hover, .primary-nav a.is-active, .primary-nav a[aria-current="page"] { color: var(--navy); }
  .primary-nav a:hover::after, .primary-nav a.is-active::after, .primary-nav a[aria-current="page"]::after { scale: 1; }
  .nav-strip__inner { min-height: var(--header-nav-height); display: flex; align-items: center; gap: 28px; }
  .header-search { flex: 0 0 230px; height: 34px; border-inline-start: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) 32px; padding-inline-start: 15px; }
  .header-search input { width: 100%; min-height: 34px; border: 0; border-radius: 0; padding: 0; background: transparent; font-size: 12px; }
  .header-search button { border: 0; display: grid; place-items: center; background: transparent; color: var(--navy); }
  .header-search svg { width: 17px; height: 17px; }
  .profile-menu { position: relative; }
  .profile-trigger { min-height: 42px; border: 1px solid var(--border); border-radius: var(--radius-control); display: flex; align-items: center; gap: 8px; padding: 0 9px; background: var(--surface); }
  .profile-trigger svg { width: 15px; height: 15px; }
  .profile-trigger__name { max-width: 92px; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .notification-link { position: relative; }
  .notification-dot { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border: 2px solid var(--surface); border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 10.5px; }

  .button--primary, .button--accent { border-color: var(--navy); background: var(--navy); color: #fff; }
  .button--primary:hover, .button--accent:hover { border-color: var(--navy-strong); background: var(--navy-strong); color: #fff; translate: 0 -1px; }
  html[data-theme="dark"] .button--primary, html[data-theme="dark"] .button--accent { color: #08111c; }
  .button--outline { border-color: var(--border-strong); background: var(--surface); }
  .button--outline:hover { border-color: var(--navy); color: var(--navy); }
  .button--quiet { border-color: transparent; background: transparent; color: var(--ink-soft); }
  .button--quiet:hover { background: var(--surface-subtle); color: var(--navy); }
  .button--quiet[aria-pressed="true"], .button--quiet.is-active { background: var(--navy-soft); color: var(--navy); }
  .button--light { border-color: #fff; background: #fff; color: #142b48; }
  .button--light:hover { background: #edf2f7; color: #142b48; }
  .button--ghost-light { border-color: rgb(255 255 255 / 42%); color: #fff; }
  .button--ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / 9%); }
  .button--full { width: 100%; }
  .button--small { min-height: 34px; padding-inline: 11px; font-size: 12px; }
  .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 800; }
  .text-link svg { width: 16px; }
  .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .eyebrow, .section-label { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: 11px; font-weight: 900; letter-spacing: normal; }
  .section-label:hover { text-decoration: underline; text-underline-offset: 3px; }

  .breaking-bar__inner { min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .breaking-bar__inner > strong { padding-inline-end: 14px; border-inline-end: 1px solid rgb(255 255 255 / 35%); font-size: 12px; letter-spacing: normal; }
  .breaking-bar__inner .icon-button { width: 30px; min-height: 30px; border: 0; background: transparent; color: #fff; }

  .newsroom-intro { min-height: 138px; border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 48px; }
  .newsroom-intro__heading h1 { margin-block-start: 5px; font-size: clamp(27px, 3vw, 36px); }
  .newsroom-intro__note { max-width: 44ch; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
  .lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: 40px; align-items: stretch; padding-block: 34px 50px; }
  .lead-story { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(285px, .85fr); gap: 28px; align-items: center; }
  .lead-story__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-media); background: var(--surface-emphasis); }
  .lead-story__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 420ms cubic-bezier(.2, .65, .25, 1); }
  .lead-story:hover .lead-story__media img { scale: 1.025; }
  .lead-story__label { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; padding: 5px 8px; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 800; }
  .lead-story__body :is(h1, h2) { max-width: 18ch; margin-block: 13px 15px; font-size: clamp(32px, 3.35vw, 44px); line-height: 1.38; letter-spacing: normal; }
  .lead-story__body :is(h1, h2) a:hover { color: var(--navy); }
  .lead-story__body > p { max-width: 49ch; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
  .lead-story__actions { margin-block-start: 23px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .lead-story__actions form { margin: 0; }
  .story__meta { margin-block-start: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: var(--muted); font-size: 11px; }
  .story__meta > * + * { position: relative; }
  .story__meta > * + *::before { content: ""; position: absolute; inset-inline-start: -8px; inset-block-start: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
  .now-rail { min-width: 0; border-block-start: 3px solid var(--navy); }
  .now-rail__heading { min-height: 58px; border-block-end: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .now-rail__heading > div { display: flex; align-items: center; gap: 8px; }
  .now-rail__heading h2 { font-size: 17px; }
  .now-rail__heading a { color: var(--navy); font-size: 11px; font-weight: 800; }
  .now-rail .live-dot { background: var(--danger); color: var(--danger); }
  .now-list { list-style: none; }
  .now-list li { min-height: 82px; border-block-end: 1px solid var(--border); display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding-block: 13px; }
  .now-list li > span { color: var(--navy); font-size: 11px; font-weight: 900; }
  .now-list a { display: block; font-size: 14px; font-weight: 750; line-height: 1.5; }
  .now-list a:hover { color: var(--navy); }
  .now-list time { display: block; margin-block-start: 5px; color: var(--muted); font-size: 11.5px; }

  .supporting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; padding-block: 42px 58px; border-block-start: 1px solid var(--border); }
  .story { position: relative; min-width: 0; }
  .story__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-media); background: var(--surface-emphasis); }
  .story__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 420ms cubic-bezier(.2, .65, .25, 1); }
  .story:hover .story__media img { scale: 1.025; }
  .story__kicker { margin-block-start: 14px; display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: 11px; font-weight: 850; }
  .story__kicker > span { color: var(--muted); font-weight: 650; }
  .story__title { margin-block: 7px 8px; font-size: 19px; line-height: 1.52; }
  .story__title a:hover { color: var(--navy); }
  .story__summary { color: var(--ink-soft); font-size: 14px; line-height: 1.72; }
  .story__save { position: absolute; z-index: 2; inset-block-start: 10px; inset-inline-end: 10px; opacity: 0; transition: opacity var(--ease); }
  .story:hover .story__save, .story__save:focus-within, .story__save:has([aria-pressed="true"]) { opacity: 1; }
  .story--standard { padding-block-end: 20px; border-block-end: 1px solid var(--border); }
  .story--standard .story__media { aspect-ratio: 3 / 2; }
  .story--row { min-height: 178px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 44px; gap: 22px; align-items: center; padding-block: 20px; border-block-end: 1px solid var(--border); }
  .story--row:first-child { border-block-start: 1px solid var(--border); }
  .story--row .story__media { width: 220px; aspect-ratio: 3 / 2; }
  .story--row .story__kicker { margin-block-start: 0; }
  .story--row .story__title { font-size: 20px; }
  .story--row .story__save { position: static; opacity: 1; justify-self: end; }
  .story--compact { padding-block: 12px; border-block-end: 1px solid var(--border); }
  .story--compact .story__kicker { margin: 0; }
  .story--media .story__media { aspect-ratio: 16 / 10; }
  .media-badge { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 800; }
  .media-badge svg { width: 15px; height: 15px; }

  .latest-section, .media-section { padding-block: 62px; }
  .latest-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }
  .editor-note { position: static; padding: 25px 0; border-block: 1px solid var(--border-strong); }
  .editor-note blockquote { margin-block: 13px 18px; color: var(--ink); font-size: 20px; font-weight: 750; line-height: 1.7; }
  .load-more-wrap { margin-block-start: 25px; display: flex; justify-content: center; }
  .topic-band__inner { min-height: 440px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 58px; align-items: center; }
  .topic-band__copy .eyebrow { color: rgb(255 255 255 / 62%); }
  .topic-band__copy h2 { max-width: 16ch; margin-block: 12px 15px; font-size: clamp(30px, 4vw, 43px); }
  .topic-band__copy p { max-width: 50ch; color: rgb(255 255 255 / 74%); line-height: 1.8; }
  .topic-band__copy .button { margin-block-start: 24px; }
  .topic-band__inner > img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-media); object-fit: cover; }
  .topic-band__graphic { min-height: 280px; border-block: 1px solid rgb(255 255 255 / 32%); display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; color: rgb(255 255 255 / 88%); font-size: clamp(30px, 5vw, 60px); font-weight: 800; }
  .topic-band__graphic > * + * { border-inline-start: 1px solid rgb(255 255 255 / 24%); }
  .topic-band__graphic span { width: 100%; text-align: center; }
  .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
  .community-callout { margin-block: 12px 70px; min-height: 170px; border-block: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .community-callout h2 { margin-block: 6px; font-size: 24px; }
  .community-callout p { color: var(--ink-soft); }
  .community-callout__actions { display: flex; flex-wrap: wrap; gap: 8px; }

  .footer-newsletter { min-height: 158px; border-block-end: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr); gap: 40px; align-items: center; }
  .footer-newsletter h2 { margin-block: 5px; font-size: 23px; }
  .footer-newsletter p { color: var(--ink-soft); font-size: 13px; }
  .footer-newsletter .newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0; border: 0; background: transparent; }
  .footer-newsletter .newsletter-form .form-status { grid-column: 1 / -1; }
  .footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-brand .brand { margin-block-end: 15px; }

  .search-drawer { inset-block-start: 0; height: auto; }
  .search-drawer__inner { position: relative; min-height: 180px; display: flex; align-items: center; justify-content: center; }
  .search-drawer__inner > form { width: min(720px, calc(100% - 70px)); display: grid; gap: 8px; }
  .search-drawer__inner > form > label { font-size: 19px; font-weight: 800; }
  .search-drawer__field { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
  .search-drawer__field > svg { width: 20px; color: var(--navy); }
  .search-drawer__field input { min-height: 52px; font-size: 16px; }
  .search-drawer__inner > .icon-button { position: absolute; inset-block-start: 22px; inset-inline-end: 0; }

  .mobile-drawer__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; }
  .mobile-drawer__panel { position: relative; width: min(390px, 90vw); max-width: 100%; height: 100%; margin-inline-start: 0; margin-inline-end: auto; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); box-shadow: var(--shadow-float); animation: drawer-in var(--ease) both; }
  .mobile-drawer__header { min-height: 58px; margin-block-end: 18px; border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
  .mobile-search { position: relative; margin-block-end: 16px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 5px; }
  .mobile-search > svg { width: 17px; color: var(--muted); }
  .mobile-search input { width: 100%; min-height: 42px; }
  .mobile-search button { min-height: 38px; border: 0; background: transparent; color: var(--navy); font-weight: 800; }
  .mobile-links { margin-block-end: 22px; }
  .mobile-links a { min-height: 46px; border-block-end: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-weight: 750; }
  .mobile-links a:hover { color: var(--navy); }
  .mobile-links svg { width: 18px; height: 18px; }

  .auth-modal .modal__surface, .small-modal .modal__surface { position: relative; padding: 26px; }
  .modal__close { position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-end: 12px; }
  .auth-modal__intro { padding-inline-end: 54px; }
  .auth-modal__intro h2 { margin-block: 9px 7px; font-size: 24px; }
  .auth-modal__intro > p:last-child { color: var(--ink-soft); font-size: 13px; }
  .auth-modal__forms { margin-block-start: 23px; }
  .segmented-control { margin-block-end: 19px; display: grid; grid-template-columns: repeat(2, 1fr); border-block-end: 1px solid var(--border); }
  .segmented-control [role="tab"] { min-height: 43px; }
  .auth-modal form { display: grid; gap: 13px; }
  .check-field { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 12px; }
  .check-field input { width: 16px; min-height: 16px; margin-block-start: 3px; accent-color: var(--navy); }
  .form-status { min-height: 0; color: var(--ink-soft); font-size: 12px; }
  .form-status:empty { display: none; }
  [data-field-error] { color: var(--danger); }
  .small-modal .modal-icon { width: 42px; height: 42px; margin-block-end: 15px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
  .small-modal .modal-icon svg { width: 21px; }
  .small-modal h2 { font-size: 22px; }
  .small-modal > .modal__surface > p { margin-block: 7px 18px; color: var(--ink-soft); }

  .article-header { max-width: 1060px; padding-block: 48px 30px; }
  .article-header h1 { max-width: 24ch; }
  .article-byline { margin-block-start: 23px; border-block: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-block: 14px; }
  .author-chip { display: flex; align-items: center; gap: 10px; }
  .author-chip > div { display: flex; flex-direction: column; line-height: 1.35; }
  .author-chip > div span { color: var(--muted); font-size: 11.5px; }
  .author-chip > div a { font-size: 12px; font-weight: 800; }
  .article-time { display: grid; gap: 2px; color: var(--muted); font-size: 11.5px; }
  .article-meta-inline { margin-inline-start: auto; display: flex; gap: 14px; color: var(--muted); font-size: 11px; }
  .article-meta-inline span { display: inline-flex; align-items: center; gap: 5px; }
  .article-meta-inline svg { width: 15px; }
  .article-action-bar { margin-block-start: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .article-action-bar form { margin: 0; }
  .article-hero-media { margin-block-end: 44px; }
  .article-hero-media img { width: 100%; max-height: 740px; aspect-ratio: 16 / 9; border-radius: var(--radius-media); object-fit: cover; }
  .article-hero-media figcaption { display: flex; justify-content: space-between; gap: 18px; }
  .article-content-layout { display: grid; grid-template-columns: 190px minmax(0, var(--reading)); gap: 48px; justify-content: center; align-items: start; }
  .article-side-tools { position: sticky; inset-block-start: 150px; }
  .key-points { border-block-start: 3px solid var(--navy); padding-block: 16px; }
  .key-points h2 { margin-block-end: 13px; font-size: 16px; }
  .key-points ul { list-style: none; display: grid; gap: 11px; }
  .key-points li { display: grid; grid-template-columns: 16px 1fr; gap: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
  .key-points svg { width: 15px; color: var(--success); }
  .correction-link { margin-block-start: 16px; border-block-start: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding-block-start: 14px; color: var(--muted); font-size: 11px; }
  .correction-link:hover { color: var(--danger); }
  .correction-link svg { width: 15px; }
  .article-body .article-sources { margin-block: 35px; padding: 21px 23px; border-inline-start: 3px solid var(--navy); background: var(--navy-soft); }
  .article-sources h2 { margin: 0 0 10px; font-size: 17px; }
  .article-sources ul { margin: 0; padding-inline-start: 18px; font-family: var(--font-ui); font-size: 13px; }
  .article-sources svg { display: inline; width: 13px; }
  .author-box { display: grid; grid-template-columns: 58px 1fr; gap: 14px; }
  .avatar--small { width: 32px; height: 32px; }
  .avatar--large { width: 58px; height: 58px; }
  .avatar { display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: 12px; font-weight: 900; }
  .author-box h2 { margin-block: 3px; }
  .author-box a { display: inline-flex; margin-block-start: 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
  .comments-section { margin-block-start: 64px; padding-block: 48px 64px; border-block-start: 1px solid var(--border-strong); background: var(--surface); }
  .comments-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: center; gap: 54px; align-items: start; }
  .comment-form { margin-block: 20px 8px; padding: 19px; border: 1px solid var(--border); background: var(--page); }
  .comment-form > label { display: block; margin-block-end: 8px; font-size: 13px; font-weight: 800; }
  .comment-form__footer { margin-block-start: 9px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11.5px; }
  .comments-section .comment { display: block; padding-block: 0; }
  .comments-section .comment > article { padding-block: 22px; border-block-end: 1px solid var(--border); }
  .comments-section .comment article > header { display: flex; align-items: center; gap: 10px; }
  .comments-section .comment article > header > div { display: flex; flex-direction: column; }
  .comments-section .comment article > header strong { font-size: 12px; }
  .comments-section .comment article > header time { color: var(--muted); font-size: 11.5px; }
  .comments-section .comment article > p { margin-block: 11px; color: var(--ink-soft); line-height: 1.75; }
  .comment__actions form { display: inline; }
  .reply-form { margin-block-start: 13px; display: grid; gap: 7px; }
  .discussion-note { position: sticky; inset-block-start: 146px; padding: 21px; border-block-start: 3px solid var(--navy); background: var(--page); }
  .discussion-note > svg { width: 24px; color: var(--navy); }
  .discussion-note h2 { margin-block: 12px 7px; font-size: 17px; }
  .discussion-note p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
  .comments-empty { padding-block: 30px; color: var(--muted); text-align: center; }
  .related-section { padding-block: 60px; }

  .listing-hero, .saved-hero { border-block-end: 1px solid var(--border); background: var(--surface); }
  .listing-hero__inner, .saved-hero__inner { min-height: 184px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
  .listing-hero h1, .saved-hero h1 { margin-block: 7px; font-size: clamp(30px, 4vw, 40px); }
  .listing-hero p, .saved-hero p { max-width: 66ch; color: var(--ink-soft); }
  .category-subnav { min-height: 54px; border-block-end: 1px solid var(--border); display: flex; align-items: center; gap: 25px; overflow-x: auto; }
  .category-subnav a { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 750; }
  .category-subnav a:hover, .category-subnav a.is-active { color: var(--navy); }
  .listing-tools { padding-block: 25px; }
  .listing-search { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .listing-search > svg { width: 18px; color: var(--muted); }
  .listing-search input { width: 100%; min-height: 48px; }
  .filter-bar { margin: 0; }
  .filter-bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .filter-bar__label { color: var(--muted); font-size: 11px; font-weight: 800; }
  .filter-bar__sort { margin-inline-start: auto; }
  .listing-content { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 48px; align-items: start; padding-block: 34px 72px; }
  .results-summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .results-summary h2 { font-size: 17px; }
  .results-summary span { color: var(--muted); font-size: 11px; }
  .story-stream { margin-block-start: 4px; }
  .listing-sidebar { position: sticky; inset-block-start: 145px; }
  .sidebar-panel__heading { margin-block-end: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sidebar-panel__heading h2 { margin: 0; }
  .topic-promo { padding: 19px; border-inline-start: 3px solid var(--navy); background: var(--navy-soft); }
  .topic-promo h2 { margin-block: 6px; }
  .topic-promo p { color: var(--ink-soft); font-size: 12px; }

  .saved-hero__inner { color: #fff; }
  .saved-hero { border: 0; background: var(--navy-strong); }
  .saved-hero .eyebrow, .saved-hero p { color: rgb(255 255 255 / 70%); }
  .saved-layout { padding-block: 38px 74px; }
  .folder-nav__heading { min-height: 42px; border-block-end: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .folder-nav__heading h2 { font-size: 15px; }
  .folder-add { width: 30px; min-height: 30px; border: 1px solid var(--border); border-radius: 5px; display: grid; place-items: center; background: var(--surface); color: var(--navy); }
  .saved-toolbar { margin-block-end: 20px; justify-content: space-between; overflow: visible; }
  .saved-tabs { margin: 0; border: 0; }
  .saved-search { min-width: 260px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 5px; }
  .saved-search > svg { width: 17px; color: var(--muted); }
  .saved-search input { min-height: 38px; }
  .saved-search button { border: 0; background: transparent; color: var(--navy); font-size: 11px; font-weight: 800; }
  .saved-item { min-height: 178px; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 21px; align-items: center; padding-block: 21px; border-block-end: 1px solid var(--border); }
  .saved-item__image { width: 210px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-media); }
  .saved-item__image img { width: 100%; height: 100%; object-fit: cover; }
  .saved-item__content h3 { margin-block: 6px; font-size: 19px; }
  .saved-item__content p { color: var(--ink-soft); font-size: 13px; }
  .saved-item__tools { align-self: start; display: flex; gap: 6px; }
  .saved-item__tools select { max-width: 145px; min-height: 36px; font-size: 11px; }
  .auth-gate { min-height: 520px; display: grid; place-items: center; align-content: center; gap: 11px; text-align: center; }
  .auth-gate__icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
  .auth-gate__icon svg { width: 27px; }
  .auth-gate h2 { font-size: 24px; }
  .auth-gate p { max-width: 48ch; color: var(--ink-soft); }

  .topic-hero__inner { max-width: var(--container); display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; align-items: center; }
  .topic-hero .breadcrumbs { margin-block-end: 25px; }
  .breadcrumbs--light, .breadcrumbs--light a { color: rgb(255 255 255 / 62%); }
  .topic-index { margin-block-start: 24px; color: rgb(255 255 255 / 54%); font-size: 13px; font-weight: 900; }
  .topic-hero__copy h1 { max-width: 16ch; margin-block: 5px 13px; }
  .topic-hero__lead { max-width: 60ch; }
  .topic-hero__actions { margin-block-start: 23px; display: flex; flex-wrap: wrap; gap: 8px; }
  .topic-stats { margin-block-start: 34px; border-block-start: 1px solid rgb(255 255 255 / 22%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-stats div { padding-block: 17px; }
  .topic-stats div + div { padding-inline-start: 20px; border-inline-start: 1px solid rgb(255 255 255 / 22%); }
  .topic-stats dt { color: rgb(255 255 255 / 55%); font-size: 11.5px; }
  .topic-stats dd { margin-block-start: 3px; font-size: 17px; font-weight: 800; }
  .topic-hero__visual { position: relative; min-height: 310px; display: grid; place-content: center; text-align: center; }
  .topic-hero__visual strong, .topic-hero__visual em { position: relative; z-index: 1; display: block; font-size: 37px; font-style: normal; line-height: 1.28; }
  .topic-hero__visual em { color: rgb(255 255 255 / 55%); }
  .topic-orbit { position: absolute; inset: 18%; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; }
  .topic-orbit--two { inset: 4%; }
  .topic-highlights { padding-block: 55px; }
  .topic-highlights dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border-strong); }
  .topic-highlights dl > div { padding: 21px; }
  .topic-highlights dl > div + div { border-inline-start: 1px solid var(--border); }
  .topic-highlights dt { color: var(--muted); font-size: 11px; }
  .topic-highlights dd { margin-block: 5px; font-size: 26px; font-weight: 850; }
  .topic-highlights small { color: var(--ink-soft); }
  .topic-stories { padding-block: 24px 70px; }
  .topic-timeline::before { inset-inline-start: 35px; }
  .topic-timeline .timeline-entry { display: grid; grid-template-columns: 70px 100px minmax(0, 1fr) 210px; gap: 20px; align-items: center; min-height: 188px; padding-block: 24px; border-block-end: 1px solid var(--border); }
  .timeline-entry__marker { z-index: 1; width: 34px; height: 34px; border: 2px solid var(--navy); border-radius: 50%; display: grid; place-items: center; background: var(--page); color: var(--navy); font-size: 11.5px; font-weight: 900; }
  .timeline-entry > time { color: var(--muted); font-size: 11px; }
  .timeline-entry__content h3 { margin-block: 6px; font-size: 20px; }
  .timeline-entry__content p { color: var(--ink-soft); font-size: 13px; }
  .timeline-entry__image { width: 210px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-media); }
  .timeline-entry__image img { width: 100%; height: 100%; object-fit: cover; }
  .topic-follow-callout { padding-block: 38px; border-block-start: 1px solid var(--border); background: var(--surface); }
  .topic-follow-callout .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .topic-follow-callout h2 { margin-block: 5px; font-size: 23px; }
  .topic-follow-callout p { color: var(--ink-soft); }

  .pagination .is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
  .pagination__pages { display: flex; gap: 6px; }
  .pagination__direction { padding-inline: 12px !important; }
  .pagination__direction.is-disabled { opacity: .45; }
  .empty-state__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
  .empty-state__icon svg { width: 25px; }
}

@layer responsive {
  @media (max-width: 1024px) {
    .menu-button { display: inline-flex; }
    .header-main__tools { min-width: 92px; }
    .lead-layout { grid-template-columns: 1fr; }
    .now-rail { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
    .now-rail__heading { align-self: stretch; align-content: center; flex-direction: column; align-items: flex-start; justify-content: center; border-block-end: 0; }
    .now-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .now-list li:nth-last-child(1) { display: none; }
    .article-content-layout { grid-template-columns: 150px minmax(0, var(--reading)); gap: 32px; }
    .comments-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 34px; }
    .listing-content { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
    .topic-hero__inner { grid-template-columns: minmax(0, 1fr) 250px; }
    .topic-timeline .timeline-entry { grid-template-columns: 55px 80px minmax(0, 1fr) 180px; gap: 14px; }
    .timeline-entry__image { width: 180px; }
  }

  @media (max-width: 768px) {
    .header-main__tools { min-width: 76px; }
    .header-main__tools--end .notification-link, .profile-trigger__name { display: none; }
    .lead-story { grid-template-columns: 1fr; }
    .lead-story__media { aspect-ratio: 16 / 9; }
    .supporting-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supporting-grid .story:last-child, .media-grid .story:last-child { grid-column: 1 / -1; }
    .latest-layout { grid-template-columns: 1fr; }
    .editor-note { position: static; }
    .topic-band__inner { min-height: 0; grid-template-columns: 1fr; padding-block: 48px; }
    .topic-band__inner > img, .topic-band__graphic { order: -1; }
    .community-callout { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 32px; }
    .footer-newsletter { grid-template-columns: 1fr; padding-block: 28px; }
    .article-content-layout { grid-template-columns: 1fr; }
    .article-side-tools { position: static; order: 2; }
    .comments-layout { grid-template-columns: 1fr; }
    .discussion-note { position: static; }
    .listing-content { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .saved-toolbar { align-items: stretch; flex-direction: column; }
    .saved-search { width: 100%; }
    .topic-hero__inner { grid-template-columns: 1fr; }
    .topic-hero__visual { display: none; }
    .topic-timeline .timeline-entry { grid-template-columns: 44px 75px minmax(0, 1fr); }
    .topic-timeline::before { inset-inline-start: 22px; }
    .timeline-entry__image { display: none; }
  }

  @media (max-width: 640px) {
    .utility-bar { display: none; }
    .header-main__tools { min-width: 44px; }
    .header-main__tools--start .search-button { display: none; }
    .header-main__tools--end .header-login { min-width: 40px; width: 40px; padding: 0; }
    .header-main__tools--end .header-login span { display: none; }
    .brand-copy strong { font-size: 20px; }
    .brand-copy small { display: none; }
    .newsroom-intro { min-height: 118px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
    .newsroom-intro__heading h1 { font-size: 26px; }
    .newsroom-intro__note { font-size: 12px; }
    .lead-layout { width: 100%; padding-block-start: 16px; gap: 28px; }
    .lead-story__body { padding-inline: 16px; }
    .lead-story__body :is(h1, h2) { font-size: 28px; }
    .lead-story__body > p { font-size: 14px; }
    .lead-story__actions { align-items: stretch; flex-direction: column; }
    .lead-story__actions .button { width: 100%; }
    .now-rail { width: calc(100% - 32px); margin-inline: auto; grid-template-columns: 1fr; gap: 0; }
    .now-rail__heading { min-height: 50px; flex-direction: row; align-items: center; justify-content: space-between; }
    .now-list { grid-template-columns: 1fr; }
    .now-list li:nth-last-child(1), .now-list li:nth-last-child(2) { display: none; }
    .supporting-grid, .media-grid { grid-template-columns: 1fr; gap: 18px; }
    .supporting-grid .story:last-child, .media-grid .story:last-child { grid-column: auto; }
    .story--standard, .story--media { min-height: 126px; display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 13px; }
    .story--standard .story__media, .story--media .story__media { min-height: 126px; aspect-ratio: auto; }
    .story__title { font-size: 15px; }
    .story__summary, .story--standard .story__meta, .story--media .story__meta { display: none; }
    .story__save { display: none; }
    .story--row { min-height: 133px; grid-template-columns: 38% minmax(0, 1fr); gap: 13px; }
    .story--row .story__media { width: 100%; min-height: 106px; }
    .story--row .story__title { font-size: 15px; }
    .story--row .story__save { display: none; }
    .latest-section, .media-section { padding-block: 44px; }
    .topic-band__inner { gap: 28px; }
    .topic-band__graphic { min-height: 190px; }
    .topic-band__copy h2 { font-size: 29px; }
    .community-callout { margin-block-end: 42px; }
    .community-callout__actions { width: 100%; }
    .community-callout__actions .button { flex: 1; }
    .footer-newsletter .newsletter-form { grid-template-columns: 1fr; }
    .search-drawer__inner { min-height: 210px; }
    .search-drawer__inner > form { width: 100%; padding-block-start: 32px; }
    .search-drawer__field { grid-template-columns: 22px minmax(0, 1fr); }
    .search-drawer__field .button { grid-column: 1 / -1; }
    .auth-modal .modal__surface, .small-modal .modal__surface { padding: 20px 17px; }
    .auth-modal__intro { padding-inline-end: 42px; }
    .article-header { padding-block-start: 28px; }
    .article-header h1 { font-size: 29px; }
    .article-byline { align-items: flex-start; flex-direction: column; }
    .article-meta-inline { margin-inline-start: 0; }
    .article-action-bar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .article-action-bar form, .article-action-bar .button { width: 100%; }
    .article-hero-media { width: 100%; }
    .article-hero-media img { border-radius: 0; }
    .article-hero-media figcaption { padding-inline: 16px; }
    .article-content-layout { width: calc(100% - 32px); }
    .comments-section { padding-block: 38px 60px; }
    .comment-form { padding: 14px; }
    .listing-hero__inner, .saved-hero__inner { min-height: 150px; }
    .listing-hero h1, .saved-hero h1 { font-size: 29px; }
    .listing-search { grid-template-columns: 20px minmax(0, 1fr); }
    .listing-search .button { grid-column: 1 / -1; }
    .listing-sidebar { grid-template-columns: 1fr; }
    .saved-item { min-height: 130px; grid-template-columns: 38% minmax(0, 1fr); gap: 13px; }
    .saved-item__image { width: 100%; min-height: 110px; }
    .saved-item__content h3 { font-size: 15px; }
    .saved-item__content p, .saved-item__tools { display: none; }
    .topic-hero { padding-block: 40px; }
    .topic-stats { gap: 8px; }
    .topic-stats div + div { padding-inline-start: 8px; }
    .topic-highlights dl { grid-template-columns: 1fr; }
    .topic-highlights dl > div + div { border-inline-start: 0; border-block-start: 1px solid var(--border); }
    .topic-timeline .timeline-entry { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
    .topic-timeline::before { inset-inline-start: 18px; }
    .timeline-entry > time { grid-column: 2; grid-row: 1; }
    .timeline-entry__content { grid-column: 2; }
    .topic-follow-callout .container { align-items: stretch; flex-direction: column; }
  }
}

/* =====================================================================
   Binary finishing pass (Oct 2026)
   Styles for page sections that had none, consistent sizing for icons,
   and sticky side columns that stick right under the top of the screen.
   ===================================================================== */
@layer base {
  .icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
}

@layer components {
  /* ---- Side columns: stick just below the top edge (the header is not sticky) */
  .listing-sidebar, .article-side-tools, .discussion-note, .folder-nav { inset-block-start: 24px; }
  .editor-note { position: sticky; inset-block-start: 24px; }

  /* ---- Article without "key points": no empty side column */
  .article-content-layout:not(:has(.key-points)) { grid-template-columns: minmax(0, var(--reading)); }
  .article-content-layout:not(:has(.key-points)) .article-side-tools { order: 2; position: static; }
  .article-content-layout:not(:has(.key-points)) .correction-link { margin-block-start: 0; }

  /* ---- Most read (listing sidebar) */
  .popular-panel ol { list-style: none; margin: 0; padding: 0; display: grid; }
  .popular-panel li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding-block: 12px; border-block-end: 1px solid var(--border); }
  .popular-panel li:first-child { padding-block-start: 4px; }
  .popular-panel li:last-child { border-block-end: 0; }
  .popular-panel li > span { color: var(--navy); font-family: var(--font-editorial); font-size: 20px; font-weight: 700; line-height: 1.2; }
  .popular-panel li a { color: var(--ink); font-family: var(--font-editorial); font-size: 15px; font-weight: 700; line-height: 1.55; }
  .popular-panel li a:hover { color: var(--navy); }
  .listing-sidebar { display: grid; gap: 24px; }
  .listing-sidebar .sidebar-panel + .sidebar-panel { padding-block-start: 0; }

  /* ---- Sign in / create account page */
  .standalone-auth-page { padding-block: 48px 72px; }
  .standalone-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; max-width: 1040px; }
  .standalone-auth__intro { display: grid; gap: 12px; align-content: start; }
  .standalone-auth__intro .brand-mark--large { margin-block-end: 6px; }
  .standalone-auth__intro h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.3; }
  .standalone-auth__intro p { max-width: 42ch; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
  .standalone-auth__intro > a { display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin-block-start: 6px; color: var(--navy); font-size: 13px; font-weight: 800; }
  .standalone-auth__intro > a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .standalone-auth__form { border: 1px solid var(--border); border-radius: var(--radius-modal); background: var(--surface); padding: 30px; box-shadow: var(--shadow-hover); }
  .standalone-auth__form form { display: grid; gap: 15px; }
  .auth-switch { margin: 0; color: var(--ink-soft); font-size: 13px; text-align: center; }
  .auth-switch a { color: var(--navy); font-weight: 800; }

  /* ---- Error pages (404 / 403 / error) */
  .error-page { padding-block: 72px 96px; }
  .error-page__inner { max-width: 640px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; }
  .error-page__code { display: flex; align-items: center; gap: 14px; color: var(--navy); font-family: var(--font-editorial); font-size: 92px; font-weight: 700; line-height: 1; }
  .error-page__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
  .error-page__icon svg { width: 28px; height: 28px; }
  .error-page--403 .error-page__icon { background: var(--danger-soft); color: var(--danger); }
  .error-page h1 { font-size: clamp(28px, 4vw, 38px); }
  .error-page__inner > * { max-width: 100%; }
  .error-page p { max-width: min(52ch, 100%); color: var(--ink-soft); }
  .saved-hero .button { white-space: nowrap; }
  .error-search { width: min(100%, 520px); min-height: 50px; margin-block: 10px 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 0; padding-inline-start: 14px; background: var(--surface); }
  .error-search > svg { color: var(--muted); }
  .error-search input { flex: 1; min-width: 0; min-height: 38px; border: 0; background: transparent; outline: 0; }
  .error-page__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }

  /* ---- Info pages: hero */
  .info-page { padding-block: 0 72px; }
  .info-hero { border-block-end: 1px solid var(--border); background: var(--surface); }
  .info-hero__inner { padding-block: 34px 40px; display: grid; gap: 8px; }
  .info-hero__inner .breadcrumbs { margin-block-end: 10px; }
  .info-hero h1 { font-size: clamp(30px, 4vw, 40px); }
  .info-hero p { max-width: 66ch; color: var(--ink-soft); }

  /* ---- Info pages: about / policy / corrections / privacy */
  .prose-layout { display: grid; grid-template-columns: 220px minmax(0, var(--reading)); gap: 56px; justify-content: center; align-items: start; padding-block-start: 44px; }
  .prose-nav { position: sticky; inset-block-start: 24px; display: grid; gap: 2px; padding-block-start: 14px; border-block-start: 3px solid var(--navy); }
  .prose-nav h2 { margin-block-end: 8px; font-size: 15px; }
  .prose-nav a { min-height: 40px; border-radius: 6px; display: flex; align-items: center; padding-inline: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
  .prose-nav a:hover, .prose-nav a.is-active { background: var(--navy-soft); color: var(--navy); }
  .prose-content { display: grid; gap: 34px; }
  .prose-content section { display: grid; gap: 12px; }
  .prose-content h2 { font-size: 24px; line-height: 1.4; }
  .prose-content p, .prose-content li { color: var(--ink-soft); font-family: var(--font-reading); font-size: 18px; line-height: 1.9; }
  .prose-content ul { display: grid; gap: 8px; padding-inline-start: 22px; }
  .prose-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 24px; border-inline-start: 3px solid var(--navy); background: var(--navy-soft); }
  .prose-callout .eyebrow { flex-basis: 100%; }
  .prose-callout h2 { margin: 0; font-size: 21px; }

  /* ---- Contact */
  .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; padding-block-start: 44px; }
  .contact-copy { display: grid; gap: 10px; }
  .contact-copy h2, .contact-form-panel h2 { font-size: 24px; }
  .contact-methods { margin: 8px 0 0; display: grid; }
  .contact-methods > div { display: grid; gap: 4px; padding-block: 18px; border-block-end: 1px solid var(--border); }
  .contact-methods > div:first-child { border-block-start: 1px solid var(--border); }
  .contact-methods dt { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; font-weight: 800; }
  .contact-methods dt svg { color: var(--navy); }
  .contact-methods dd { margin: 0; color: var(--ink-soft); font-size: 14px; }
  .contact-methods a { justify-self: start; color: var(--navy); font-size: 14px; font-weight: 800; direction: ltr; }
  .contact-methods a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .contact-form-panel { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-modal); background: var(--surface); padding: 28px; }
  .contact-form-panel form { display: grid; gap: 15px; margin-block-start: 10px; }
  .contact-form-panel .button { justify-self: start; }
  .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  /* ---- Announcements */
  .announcements-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block-start: 44px; }
  .announcements-main { display: grid; gap: 18px; }
  .announcement-list { display: grid; border-block-start: 1px solid var(--border); }
  .announcement-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-block: 20px; border-block-end: 1px solid var(--border); }
  .announcement-item__date { min-height: 72px; border-radius: var(--radius-control); display: grid; place-content: center; text-align: center; background: var(--navy-soft); color: var(--navy); }
  .announcement-item__date strong { font-size: 24px; line-height: 1; }
  .announcement-item__date span { font-size: 11px; font-weight: 800; }
  .announcement-item h3 { margin-block: 4px; font-size: 18px; }
  .announcement-item p { color: var(--ink-soft); font-size: 14px; }
  .submission-panel { position: sticky; inset-block-start: 24px; display: grid; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-modal); background: var(--surface); padding: 26px; }
  .submission-panel h2 { font-size: 21px; }
  .submission-panel > p { color: var(--ink-soft); font-size: 13px; }
  .submission-panel form { display: grid; gap: 14px; margin-block-start: 8px; }

  /* ---- Saved */
  .saved-main { display: grid; gap: 16px; min-width: 0; }
  .saved-list { display: grid; }
  .folder-nav a svg, .folder-nav button svg { width: 18px; height: 18px; }
  .folder-nav a span { flex: 1; padding-inline: 9px; }
  .folder-add { width: 100%; min-height: 42px; margin-block-start: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 800; }
  .folder-add svg { width: 16px; height: 16px; }

  /* ---- Small leftovers */
  .section-heading--compact { margin-block-end: 18px; }
  .section-heading--compact h2 { font-size: 22px; }
  .comments-main { min-width: 0; }
  .listing-main { min-width: 0; display: grid; gap: 6px; }
  .button--danger { border-color: var(--danger); background: var(--danger); color: #fff; }
  .button--danger:hover { background: #a61f1f; }
  .weather-note { display: inline-flex; align-items: center; gap: 5px; }
  .footer-credit a { color: var(--ink); font-weight: 800; }
  .footer-credit a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
}

@layer responsive {
  @media (max-width: 1100px) {
    .announcements-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  }
  @media (max-width: 900px) {
    .standalone-auth { grid-template-columns: 1fr; gap: 28px; }
    .standalone-auth__intro { text-align: center; justify-items: center; }
    .standalone-auth__intro > a { justify-self: center; }
    .prose-layout { grid-template-columns: 1fr; gap: 24px; padding-block-start: 28px; }
    .prose-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-block: 0; border: 0; scrollbar-width: none; }
    .prose-nav::-webkit-scrollbar { display: none; }
    .prose-nav h2 { display: none; }
    .prose-nav a { flex: 0 0 auto; min-height: 38px; border: 1px solid var(--border); border-radius: 999px; padding-inline: 14px; background: var(--surface); }
    .contact-layout, .announcements-layout { grid-template-columns: 1fr; gap: 28px; padding-block-start: 28px; }
    .submission-panel { position: static; }
    .editor-note { position: static; }
  }
  @media (max-width: 640px) {
    .standalone-auth-page { padding-block: 28px 56px; }
    .standalone-auth__form, .contact-form-panel, .submission-panel { padding: 20px 16px; }
    .error-page { padding-block: 48px 72px; }
    .error-page__code { font-size: 68px; }
    .prose-content p, .prose-content li { font-size: 17px; line-height: 1.85; }
    .field-grid { grid-template-columns: 1fr; }
    .announcement-item { grid-template-columns: 58px minmax(0, 1fr); }
    .announcement-item > .button { grid-column: 2; justify-self: start; }
    .announcement-item__date { min-height: 58px; }
    .info-hero__inner { padding-block: 24px 28px; }
  }
}

/* =====================================================================
   Binary QA pass 2 (Oct 2026)
   Unlayered on purpose: these fixes must win over the layered rules,
   including the layered responsive ones, so each has its own breakpoints.
   ===================================================================== */

/* ---- Article: one reading column when there is no side column, at every width */
.article-content-layout:not(:has(.key-points)) { grid-template-columns: minmax(0, var(--reading)); justify-content: center; }
.article-content-layout:not(:has(.key-points)) .author-box { width: 100%; }

/* ---- Article tool bar: one row, never a 2x2 block */
@media (max-width: 640px) {
  .article-action-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .article-action-bar form { width: 100%; }
  .article-action-bar .button { width: 100%; min-height: 56px; padding: 6px 2px; flex-direction: column; gap: 3px; font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
  .article-action-bar .button [data-count] { display: none; }
}

/* ---- Home: lead story buttons side by side on phones */
@media (max-width: 640px) {
  .lead-story__actions { flex-direction: row; align-items: center; gap: 8px; }
  .lead-story__actions .button { width: auto; }
  .lead-story__actions > .button--primary { flex: 1 1 auto; }
  .lead-story__actions form .button { min-height: 44px; padding-inline: 12px; }
}

/* ---- Section headings: the side link never breaks over two lines */
.section-heading a { white-space: nowrap; flex-shrink: 0; }

/* ---- Home: latest stories + side note */
.latest-section { padding-block-start: 40px; }
.editor-note { display: grid; gap: 22px; }
.editor-note__quote { display: grid; justify-items: start; }
.editor-note__sections { display: grid; gap: 12px; padding-block-start: 20px; border-block-start: 1px solid var(--border); }
.editor-note__sections > div { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-note__sections a { min-height: 36px; display: inline-flex; align-items: center; padding-inline: 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 750; }
.editor-note__sections a:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 1024px) {
  .latest-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .editor-note { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .editor-note__sections { padding-block-start: 0; border-block-start: 0; }
}
@media (max-width: 640px) {
  .editor-note { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .editor-note__sections { padding-block-start: 18px; border-block-start: 1px solid var(--border); }
}

/* ---- Newsletter strip: no big hole between the text and the field on phones */
@media (max-width: 768px) {
  .footer-newsletter { min-height: 0; gap: 16px; padding-block: 32px; }
}

/* ---- Listing / search hero */
.listing-hero__inner, .saved-hero__inner { padding-block: 30px 34px; }
.listing-search { flex: 0 1 480px; display: grid; gap: 8px; }
.listing-search > label { color: var(--muted); font-size: 12px; font-weight: 800; }
.listing-search > div { position: relative; display: flex; align-items: center; gap: 8px; }
.listing-search > div > span { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; display: grid; color: var(--muted); pointer-events: none; }
.listing-search > div > input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding-inline-start: 44px; }
.listing-search > div > .button { flex: 0 0 auto; min-height: 48px; padding-inline: 20px; white-space: nowrap; }
@media (max-width: 768px) {
  .listing-hero__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .listing-search { flex: 1 1 auto; width: 100%; }
}

/* ---- Filter bar: one tidy row on computers, a compact grid on phones */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 14px 16px; }
.filter-bar__group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filter-bar__label { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.filter-bar label { display: grid; gap: 6px; }
.filter-bar select { min-height: 42px; min-width: 150px; }
.filter-bar__sort { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filter-bar__sort .button { min-height: 42px; }
.filter-bar__sort > a { min-height: 42px; display: inline-flex; align-items: center; color: var(--navy); font-size: 13px; font-weight: 800; }
@media (max-width: 768px) {
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; flex-direction: initial; }
  .filter-bar__label { display: none; }
  .filter-bar__group, .filter-bar__sort { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; align-items: end; }
  .filter-bar label, .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar__sort .button { width: 100%; }
}

/* ---- Section links under listing heroes: real pills, easy to tap */
.category-subnav { gap: 8px; min-height: 64px; scrollbar-width: none; }
.category-subnav::-webkit-scrollbar { display: none; }
.category-subnav a { min-height: 38px; display: inline-flex; align-items: center; padding-inline: 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; }
.category-subnav a.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---- Sidebar panel headings: label above the title */
.sidebar-panel__heading { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; }

/* ---- Topic page */
.topic-hero .eyebrow { color: rgb(255 255 255 / 72%); }
.button--ghost-light { background: transparent; color: #fff; }
.topic-timeline .timeline-entry > .timeline-entry__image { grid-column: 3; grid-row: 1; }
.topic-timeline .timeline-entry > .timeline-entry__content { grid-column: 4; grid-row: 1; }
.topic-timeline .timeline-entry { grid-template-columns: 70px 100px 210px minmax(0, 1fr); }
@media (max-width: 1024px) {
  .topic-timeline .timeline-entry { grid-template-columns: 55px 80px 180px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .topic-timeline .timeline-entry { grid-template-columns: 44px 75px minmax(0, 1fr); }
  .topic-timeline .timeline-entry > .timeline-entry__content { grid-column: 3; }
}
@media (max-width: 640px) {
  .topic-timeline .timeline-entry { grid-template-columns: 36px minmax(0, 1fr); }
  .topic-timeline .timeline-entry > .timeline-entry__content { grid-column: 2; grid-row: auto; }
}

/* ---- Saved page search: icon inside the field, real button */
.saved-search { display: flex; align-items: center; gap: 8px; position: relative; min-width: 300px; }
.saved-search > svg, .saved-search > span:has(svg) { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.saved-search input { flex: 1 1 auto; min-width: 0; min-height: 42px; padding-inline-start: 38px; }
.saved-search button { min-height: 42px; padding-inline: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--navy); font-size: 13px; font-weight: 800; }
@media (max-width: 768px) {
  .saved-search { min-width: 0; width: 100%; }
}

/* ---- Profile: big avatar with the camera badge on its corner */
.avatar.avatar--profile { width: 104px; height: 104px; font-size: 34px; }
.profile-avatar-form__choose { inset-block-start: 72px; inset-inline-end: 4px; }
@media (max-width: 768px) {
  .avatar.avatar--profile { width: 82px; height: 82px; font-size: 26px; }
  .profile-avatar-form__choose { inset-block-start: 54px; inset-inline-end: 2px; }
}

/* ---- Comments: bigger tap targets on the small actions */
.comment__actions button { min-height: 36px; padding-inline: 6px; }
.comment-form .button, .comment-form__footer .button { font-size: 13px; min-height: 40px; }

/* ---- Footer links: easier to tap on touch screens */
@media (hover: none) {
  .footer-grid nav a { min-height: 34px; display: inline-flex; align-items: center; }
}
.saved-main { grid-template-columns: minmax(0, 1fr); }
.saved-search input { width: auto; }
.field small, .field > small { font-size: 12px; line-height: 1.6; }
.saved-toolbar { flex-wrap: wrap; gap: 12px 20px; }
.saved-toolbar .saved-search { flex: 1 1 280px; max-width: 440px; }
@media (max-width: 768px) { .saved-toolbar .saved-search { max-width: none; } }
.listing-search { grid-template-columns: minmax(0, 1fr); }
.listing-page { padding-block-start: 0; }
.listing-page > .listing-tools { padding-block-start: 22px; }
.topic-page { padding-block-start: 0; }
/* Saved list on phones: keep "move to folder" and "remove" reachable */
@media (max-width: 640px) {
  .saved-item { row-gap: 10px; }
  .saved-item .saved-item__tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .saved-item__tools form:has(select) { flex: 1 1 auto; }
  .saved-item__tools select { width: 100%; max-width: none; min-height: 40px; font-size: 13px; }
  .saved-item__tools .icon-button { width: 40px; height: 40px; }
}
/* Drawer search: icon inside the field, a real button */
.mobile-search { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mobile-search > svg { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; pointer-events: none; }
.mobile-search input { padding-inline-start: 38px; }
.mobile-search button { min-height: 42px; padding-inline: 16px; border-radius: var(--radius-control); background: var(--navy); color: #fff; }
@media (max-width: 768px) { .saved-toolbar .saved-search { flex: 0 0 auto; } }
/* Tablets: give the story list the full width, sidebar panels go below it */
@media (max-width: 1024px) {
  .listing-content { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .listing-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
}
@media (max-width: 640px) {
  .listing-sidebar { grid-template-columns: minmax(0, 1fr); }
}
/* Photo stories: a picture-first gallery */
.listing-page--photos .story-stream { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.listing-page--photos .story-stream .story { border: 0; padding: 0; }
@media (max-width: 640px) {
  .listing-page--photos .story-stream { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .listing-page--photos .story--standard { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 10px; }
  .listing-page--photos .story--standard .story__media { aspect-ratio: 16 / 10; min-height: 0; }
  .listing-page--photos .story__summary { display: none; }
}

/* ---- QA pass 3: spacing before the footer, balanced footer columns, phone tabs */
.site-footer { margin-block-start: 0; }
.footer-newsletter { min-height: 0; padding-block: 40px; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
}
@media (max-width: 400px) {
  .footer-grid { gap: 24px 14px; }
  .footer-grid a { font-size: 13px; }
}
@media (max-width: 768px) {
  .topic-band__inner { padding-block: 36px 40px; }
}
@media (max-width: 640px) {
  /* the bottom bar already has Notifications; keeps the tab grid even (3 + 3) */
  .profile-tabs a[href$="/notifications"] { display: none; }
}
.field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label-row a { color: var(--navy); font-size: 12px; font-weight: 800; }
.field__label-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* account settings */
.account-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.account-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-modal); background: var(--surface); }
.account-card h3 { margin: 0; font-size: 18px; }
.account-card > p { margin: -8px 0 4px; color: var(--muted); font-size: 13px; }
.account-card input[readonly] { background: var(--surface-subtle); color: var(--ink-soft); }
.account-card > .button { margin-block-start: auto; align-self: flex-start; }
@media (max-width: 900px) { .account-settings { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .account-card { padding: 18px 16px; } .account-card > .button { align-self: stretch; } }
/* no doubled bottom padding before the footer */
.listing-page > .listing-content { padding-block-end: 0; }
.related-section .supporting-grid { padding-block-end: 0; }
.reader-profile-layout, .saved-layout { padding-block-end: 56px; }
@media (max-width: 640px) { .reader-profile-layout, .saved-layout { padding-block-end: 72px; } }

/* =====================================================================
   Glass selection (Oct 2026)
   The chosen item in every menu or tab group gets a soft glass pill
   instead of an underline or a line. Between pages the pill slides to
   its new place (cross-page view transitions); inside the sign-in box
   it slides between the two tabs.
   ===================================================================== */
:root {
  --glass-fill: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(255 255 255 / 64%));
  --glass-tint: rgb(30 58 95 / 7%);
  --glass-ring: rgb(20 43 72 / 11%);
  --glass-shadow: 0 8px 20px -10px rgb(20 43 72 / 38%), 0 2px 6px rgb(20 43 72 / 8%);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 -1px 0 rgb(20 43 72 / 6%);
  --glass-blend: multiply;
}
html[data-theme="dark"] {
  --glass-fill: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 7%));
  --glass-tint: rgb(140 180 230 / 8%);
  --glass-ring: rgb(255 255 255 / 13%);
  --glass-shadow: 0 10px 24px -12px rgb(0 0 0 / 70%), 0 2px 6px rgb(0 0 0 / 30%);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 22%), inset 0 -1px 0 rgb(0 0 0 / 25%);
  --glass-blend: screen;
}

.glass-pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(var(--glass-tint), var(--glass-tint)), var(--glass-fill);
  box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-ring), var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  pointer-events: none;
}

/* items that can hold a pill */
.primary-nav a, .mobile-bottom-nav > a, .mobile-bottom-nav > button, .profile-tabs a, .saved-tabs a,
.folder-nav a, .category-subnav a, .prose-nav a, .pagination__pages a, .auth-modal [role="tab"] {
  position: relative;
  isolation: isolate;
}

/* no more underlines / lines for the chosen item */
.primary-nav a::after, .primary-nav a.is-active::after, .primary-nav a[aria-current="page"]::after { content: none; }
.mobile-bottom-nav [aria-current="page"]::before, .mobile-bottom-nav [aria-pressed="true"]::before, .mobile-bottom-nav .is-active::before,
.mobile-nav [aria-current="page"]::before, .mobile-nav .is-active::before { content: none; }
[data-tab][aria-selected="true"]::after, [role="tab"][aria-selected="true"]::after { content: none; }

/* header sections */
.primary-nav { gap: 4px; padding-block: 6px; }
.primary-nav a { min-height: 34px; display: inline-flex; align-items: center; padding-inline: 12px; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
.primary-nav .nav-home { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
.primary-nav a:hover:not(.is-active) { background: var(--surface-subtle); }

/* phone bottom bar */
.mobile-bottom-nav > a, .mobile-bottom-nav > button { border-radius: 18px; }
.mobile-bottom-nav .glass-pill { inset: 4px 2px; border-radius: 16px; }

/* profile tabs, folders, info pages: rounded rectangles */
.profile-tabs a.is-active, .folder-nav a.is-active, .folder-nav a[aria-current="page"], .prose-nav a.is-active { background: transparent; }
.profile-tabs .glass-pill, .folder-nav .glass-pill, .prose-nav .glass-pill { border-radius: 12px; }
.profile-tabs a, .folder-nav a, .prose-nav a { border-radius: 12px; }
.profile-tabs a.is-active { padding-inline-start: 12px; }

/* saved view tabs: a small segmented control */
.saved-tabs { gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-subtle); border-block-end: 1px solid var(--border); }
.saved-tabs a { min-height: 36px; display: inline-flex; align-items: center; padding-inline: 14px; border-radius: 999px; color: var(--ink-soft); }
.saved-tabs a.is-active, .saved-tabs a[aria-selected="true"] { color: var(--navy); }

/* section pills under listing heroes */
.category-subnav a.is-active { border-color: transparent; background: transparent; color: var(--navy); }

/* pagination */
.pagination [aria-current="page"], .pagination .is-current { border-color: transparent; background: transparent; color: var(--navy); font-weight: 800; }

/* sign-in box tabs */
.auth-modal [role="tablist"] { gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-subtle); border: 1px solid var(--border); }
.auth-modal [role="tab"] { min-height: 40px; flex: 1 1 0; border-radius: 999px; }

/* sliding between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.glass-pill--main { view-transition-name: pill-main; }
.glass-pill--bottom { view-transition-name: pill-bottom; }
.glass-pill--profile { view-transition-name: pill-profile; }
.glass-pill--savedtabs { view-transition-name: pill-savedtabs; }
.glass-pill--folder { view-transition-name: pill-folder; }
.glass-pill--subnav { view-transition-name: pill-subnav; }
.glass-pill--prose { view-transition-name: pill-prose; }
.glass-pill--page { view-transition-name: pill-page; }
.glass-pill--tabs { view-transition-name: pill-tabs; }
.glass-pill--admin { view-transition-name: pill-admin; }
::view-transition-group(pill-main), ::view-transition-group(pill-bottom), ::view-transition-group(pill-profile),
::view-transition-group(pill-savedtabs), ::view-transition-group(pill-folder), ::view-transition-group(pill-subnav),
::view-transition-group(pill-prose), ::view-transition-group(pill-page), ::view-transition-group(pill-tabs), ::view-transition-group(pill-admin) {
  animation-duration: .42s;
  animation-timing-function: cubic-bezier(.3, 1.25, .5, 1);
  mix-blend-mode: var(--glass-blend);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation: none !important; }
}

/* ---- Glass pill v2: a clear glass capsule (not a raised button), never clipped */
:root {
  --glass-fill: linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(255 255 255 / 30%));
  --glass-tint: rgb(30 58 95 / 9%);
  --glass-ring: rgb(30 58 95 / 14%);
  --glass-shadow: 0 1px 2px rgb(20 43 72 / 8%), 0 4px 12px -6px rgb(20 43 72 / 22%);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 0 0 1px rgb(255 255 255 / 35%);
}
html[data-theme="dark"] {
  --glass-fill: linear-gradient(180deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 5%));
  --glass-tint: rgb(140 180 230 / 10%);
  --glass-ring: rgb(255 255 255 / 14%);
  --glass-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 14px -8px rgb(0 0 0 / 60%);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 18%);
}
/* the menu scrolls sideways, which used to cut the pill's edge: give it room */
.primary-nav { padding: 6px 6px; margin-inline: -6px; }
.primary-nav .nav-home { width: auto; min-width: 44px; padding-inline: 12px; }

/* =====================================================================
   QA pass 4 (Oct 2026)
   - glass v3: a "lens" capsule with a light-catching rim and a soft
     highlight on top (a different recipe from the earlier projects)
   - calm, non-bouncing slide between pages; the header stays still
   - boxes that used to stick to the screen now sit in the page flow
   ===================================================================== */
:root {
  --lens-body: radial-gradient(130% 160% at 50% -30%, rgb(255 255 255 / 92%), rgb(255 255 255 / 45%) 55%, rgb(255 255 255 / 22%));
  --lens-tint: rgb(30 58 95 / 7%);
  --lens-rim: linear-gradient(140deg, rgb(255 255 255 / 100%), rgb(30 58 95 / 22%) 42%, rgb(30 58 95 / 10%) 60%, rgb(255 255 255 / 85%));
  --lens-depth: inset 0 -8px 14px -10px rgb(30 58 95 / 35%), 0 1px 1px rgb(20 43 72 / 6%), 0 8px 18px -12px rgb(20 43 72 / 45%);
  --lens-shine: linear-gradient(180deg, rgb(255 255 255 / 85%), rgb(255 255 255 / 0%));
}
html[data-theme="dark"] {
  --lens-body: radial-gradient(130% 160% at 50% -30%, rgb(255 255 255 / 22%), rgb(255 255 255 / 8%) 55%, rgb(255 255 255 / 4%));
  --lens-tint: rgb(120 165 225 / 12%);
  --lens-rim: linear-gradient(140deg, rgb(255 255 255 / 45%), rgb(255 255 255 / 6%) 45%, rgb(255 255 255 / 4%) 60%, rgb(255 255 255 / 30%));
  --lens-depth: inset 0 -8px 14px -10px rgb(0 0 0 / 55%), 0 8px 18px -12px rgb(0 0 0 / 70%);
  --lens-shine: linear-gradient(180deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 0%));
}
.glass-pill {
  background: linear-gradient(var(--lens-tint), var(--lens-tint)), var(--lens-body);
  box-shadow: var(--lens-depth);
  -webkit-backdrop-filter: blur(10px) saturate(190%);
  backdrop-filter: blur(10px) saturate(190%);
}
/* light-catching rim */
.glass-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--lens-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* soft highlight on the top half */
.glass-pill::after {
  content: "";
  position: absolute;
  inset: 2px 14% 52% 14%;
  border-radius: 999px;
  background: var(--lens-shine);
  opacity: .75;
  pointer-events: none;
}

/* calm slide between pages: no bounce, the header never moves */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: 140ms ease-out both rabita-fade-out; }
::view-transition-new(root) { animation: 200ms ease-out both rabita-fade-in; }
@keyframes rabita-fade-out { to { opacity: 0; } }
@keyframes rabita-fade-in { from { opacity: 0; } }
::view-transition-group(pill-main), ::view-transition-group(pill-bottom), ::view-transition-group(pill-profile),
::view-transition-group(pill-savedtabs), ::view-transition-group(pill-folder), ::view-transition-group(pill-subnav),
::view-transition-group(pill-prose), ::view-transition-group(pill-page), ::view-transition-group(pill-tabs), ::view-transition-group(pill-admin) {
  animation-duration: .38s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  mix-blend-mode: normal;
  z-index: 2;
}
/* while sliding, show the pill only (its label is drawn by the page underneath) */
::view-transition-old(pill-main), ::view-transition-new(pill-main),
::view-transition-old(pill-bottom), ::view-transition-new(pill-bottom),
::view-transition-old(pill-subnav), ::view-transition-new(pill-subnav),
::view-transition-old(pill-profile), ::view-transition-new(pill-profile),
::view-transition-old(pill-admin), ::view-transition-new(pill-admin) {
  animation-duration: .38s;
  height: 100%;
}

/* ---- About the author: a clean card, not a box with a thick side bar */
.author-box {
  margin-block: 40px 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-inline-start: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.author-box .avatar { flex: 0 0 56px; width: 56px; height: 56px; font-size: 20px; background: var(--navy-soft); color: var(--navy); }
.author-box > div { min-width: 0; display: grid; gap: 4px; }
.author-box h2 { margin: 0; font-size: 18px; }
.author-box p { margin: 0; }
.author-box a { margin-block-start: 6px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---- Home: "our approach" + sections become one band above the latest stories */
.latest-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.editor-note {
  position: static;
  order: -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.editor-note blockquote { margin-block: 8px 10px; font-size: 19px; }
.editor-note__sections { padding: 0 0 0 0; border: 0; padding-inline-start: 26px; border-inline-start: 1px solid var(--border); }
@media (max-width: 768px) {
  .editor-note { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .editor-note__sections { padding-inline-start: 0; border-inline-start: 0; padding-block-start: 16px; border-block-start: 1px solid var(--border); }
}

/* ---- Article comments: one column, the discussion note sits above the form */
.comments-layout { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 18px; }
.discussion-note {
  position: static;
  order: -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-block-start: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.discussion-note > svg { grid-row: span 2; }
.discussion-note h2 { margin: 0; font-size: 15px; }
.discussion-note p { margin: 0; }

/* ---- Listing pages: stories use the full width, extras sit below them */
.listing-content { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.listing-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.listing-sidebar .sidebar-panel { height: 100%; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
@media (max-width: 640px) {
  .listing-sidebar { grid-template-columns: minmax(0, 1fr); }
}
/* listing extras: most-read in two columns, the topic promo as a slim band */
.listing-sidebar { grid-template-columns: minmax(0, 1fr); }
.listing-sidebar .sidebar-panel { height: auto; }
.listing-sidebar .popular-panel ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.listing-sidebar .popular-panel li:first-child { padding-block-start: 12px; }
.listing-sidebar .topic-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.listing-sidebar .topic-promo > * { margin: 0; }
@media (max-width: 768px) { .listing-sidebar .popular-panel ol { grid-template-columns: minmax(0, 1fr); } }
/* the "skip to content" link stays hidden until it gets keyboard focus */
.skip-link:not(:focus):not(:focus-visible) { opacity: 0; pointer-events: none; translate: 0 -200%; }
@media (min-width: 769px) { .listing-sidebar .popular-panel li:nth-child(n+5) { display: none; } }
.listing-page--photos .story-stream { align-items: start; }

/* =====================================================================
   Glass v4 (Oct 2026) — replaces the page-transition morph.
   - No cross-page view transitions any more: pages swap in place, the
     header never moves, nothing stretches.
   - The chosen item has a clear frosted-glass capsule. When you pick
     another item, the capsule glides to it inside the menu first.
   ===================================================================== */
@view-transition { navigation: none; }
.site-header, .glass-pill { view-transition-name: none !important; }

:root {
  --g4-fill: linear-gradient(180deg, rgb(255 255 255 / 82%) 0%, rgb(244 247 251 / 66%) 100%);
  --g4-edge: rgb(30 58 95 / 15%);
  --g4-lift: 0 1px 2px rgb(20 43 72 / 7%), 0 6px 16px -10px rgb(20 43 72 / 28%);
  --g4-light: inset 0 1px 0 rgb(255 255 255 / 100%), inset 0 0 0 1px rgb(255 255 255 / 55%);
  --g4-ease: cubic-bezier(.22, .8, .24, 1);
}
html[data-theme="dark"] {
  --g4-fill: linear-gradient(180deg, rgb(255 255 255 / 13%) 0%, rgb(255 255 255 / 6%) 100%);
  --g4-edge: rgb(255 255 255 / 12%);
  --g4-lift: 0 1px 2px rgb(0 0 0 / 35%), 0 8px 18px -10px rgb(0 0 0 / 60%);
  --g4-light: inset 0 1px 0 rgb(255 255 255 / 14%);
}
.glass-pill {
  background: var(--g4-fill);
  box-shadow: var(--g4-light), 0 0 0 1px var(--g4-edge), var(--g4-lift);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition: opacity .15s ease;
}
.glass-pill::before, .glass-pill::after { content: none !important; }

/* the gliding copy */
.glass-pill--ghost {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transition: left .3s var(--g4-ease), top .3s var(--g4-ease), width .3s var(--g4-ease), height .3s var(--g4-ease);
  will-change: left, top, width, height;
}
.primary-nav > a, .mobile-bottom-nav > a, .mobile-bottom-nav > button, .category-subnav > a, .profile-tabs > a,
.saved-tabs > a, .folder-nav a, .prose-nav > a, .pagination__pages > a, [role="tablist"] > [role="tab"] {
  position: relative;
  z-index: 1;
  transition: color .25s ease;
}
.is-leaving { color: var(--ink-soft) !important; }
.is-arriving { color: var(--navy) !important; }
.is-arriving { background-color: transparent !important; border-color: transparent !important; }
.mobile-bottom-nav .is-leaving { font-weight: 600 !important; }
.mobile-bottom-nav .is-arriving { font-weight: 800; }
/* the section pills under listing heroes repeat the header menu on computers: show them only when the header menu is folded away */
@media (min-width: 1025px) { .category-subnav { display: none; } }
.listing-page > .listing-content { padding-block-start: 22px; }

/* thin loading line at the top while the next page is on its way */
.page-progress {
  position: fixed;
  z-index: 2000;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--navy) 30%, color-mix(in srgb, var(--navy) 60%, #6fa8ff) 70%, transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .2s ease;
}
.page-progress.is-loading { opacity: 1; animation: page-progress 1s linear infinite; }
@keyframes page-progress { from { background-position: 100% 0; } to { background-position: -100% 0; } }
#main-content:focus { outline: none; }
