/* Merged critical CSS — one less render-blocking request chain */

/* --- reset.css --- */
:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*:focus {
  outline: none;
}

/* --- theme.css --- */
:root {
  --bg: #fdfcf8;
  --bg-muted: #f5f5f0;
  --ink: #121212;
  --ink-muted: #555555;
  --border: #e0e0e0;
  --brand: #8b0000;
  --brand-2: #c9a227;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1008px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --font-serif: "Tiempos Headline", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: geometricPrecision;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 56px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/textures/paper-noise.svg");
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.main,
.masthead,
.site-footer,
.site-nav,
.search-modal {
  position: relative;
  z-index: 1;
}

body[data-theme="sepia"] {
  --bg: #fbf4e6;
  --bg-muted: #f2e6d2;
  --ink: #1e1b16;
  --ink-muted: #5b5246;
  --border: #e3d3bf;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f12;
  --bg-muted: #151720;
  --ink: #f2f2f2;
  --ink-muted: #c3c3c3;
  --border: #2a2f3a;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-6);
  top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 150ms ease;
  z-index: 5;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.card__summary{
  /* 超出三行省略号 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media print {
  body::before {
    display: none;
  }
  .site-nav,
  .masthead__top,
  .search-modal,
  .ad-block,
  .reading-tools,
  .to-top,
  .toolbar,
  .browse__side {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
}

/* --- grid.css --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

/* --- typography.css --- */
body {
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 56px;
  line-height: 1.15;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
}

p {
  color: var(--ink);
}

.link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.link:hover {
  text-decoration-color: rgba(139, 0, 0, 0.9);
}

.meta {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 600;
}

.caption {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: var(--space-3);
}

.help {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

/* --- components.css --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  transition: filter 140ms ease, transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--subscribe {
  height: 38px;
  padding: 0 var(--space-4);
}

.btn--small {
  height: 36px;
  padding: 0 var(--space-4);
  font-size: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.icon-btn:hover {
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}

.icon-btn:focus-visible,
.btn:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.chip:focus-visible,
.nav__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.masthead {
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-6);
  font-size: 14px;
  color: var(--ink-muted);
}

.masthead__top-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.masthead__dot {
  opacity: 0.6;
}

.masthead__weather-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.masthead__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.masthead__link {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: rgba(85, 85, 85, 0.35);
  text-underline-offset: 3px;
}

.masthead__link:hover {
  color: var(--brand);
  text-decoration-color: rgba(139, 0, 0, 0.7);
}

.masthead__center {
  padding: var(--space-6) var(--space-6) var(--space-5);
  text-align: center;
}

.masthead__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 32px;
  line-height: 1.1;
}
.masthead__logo-img {
  height: 28px;
  width: auto;
  max-width: 120px;
  max-height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.masthead__logo-img[hidden] {
  display: none;
}

.masthead__logo:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .masthead__top {
    padding: var(--space-2) var(--space-4);
  }
}

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  background: var(--bg);
}

[data-header-spacer] {
  display: block;
  width: 100%;
}

html {
  scroll-padding-top: var(--site-header-h, 0px);
}

.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(253, 252, 248, 0.9);
  backdrop-filter: blur(10px);
}

body[data-theme="dark"] .site-nav {
  background: rgba(14, 15, 18, 0.85);
}

.site-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 56px;
  padding: 0 var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
}

.site-nav__menu-btn {
  display: none;
}

.site-nav__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.site-nav__home-mark {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.site-nav__links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  position: relative;
}

@media (min-width: 1025px) {
  .site-nav-menus.site-nav-menus--pending {
    visibility: hidden;
  }
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav.is-measuring {
  overflow: visible;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--space-2);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--brand);
}

.nav__link.is-active {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.site-nav-more {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav-more[hidden] {
  display: none !important;
}

.site-nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 56px;
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-nav-more-btn i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.site-nav-more.is-open .site-nav-more-btn,
.site-nav-more-btn:hover,
.site-nav-more-btn:focus-visible {
  color: var(--brand);
}

.site-nav-more.has-active .site-nav-more-btn {
  color: var(--brand);
}

.site-nav-more.is-open .site-nav-more-btn i {
  transform: rotate(180deg);
}

.site-nav-more-panel {
  position: absolute;
  top: calc(100% - 0.5rem);
  right: 0;
  z-index: 70;
  min-width: 12rem;
  max-width: min(18rem, 70vw);
  max-height: min(60vh, 22rem);
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #fdfcf8;
  box-shadow: var(--shadow);
}

.site-nav-more-panel[hidden] {
  display: none !important;
}

.site-nav-more-panel .nav-menu-item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.35rem;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-more-panel .nav-menu-item:hover,
.site-nav-more-panel .nav-menu-item:focus-visible {
  background: rgba(139, 0, 0, 0.08);
  color: var(--brand);
}

.site-nav-more-panel .nav-menu-item.is-active,
.site-nav-more-panel .nav-menu-item.active {
  color: var(--brand);
  background: rgba(139, 0, 0, 0.1);
}

.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-6);
}

.nav__item {
  position: relative;
  flex: 0 0 auto;
}

.nav__item.is-overflow {
  display: none !important;
}

.nav__item:hover .mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.mega__title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.mega__link {
  display: block;
  padding: var(--space-2) 0;
  font-weight: 700;
}

.mega__link:hover {
  color: var(--brand);
}

.mega__note {
  color: var(--ink-muted);
  max-width: 46ch;
}

.drawer {
  display: none;
}

.drawer.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 92vw);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.drawer__title {
  font-family: var(--font-serif);
  font-weight: 800;
}

.drawer__nav {
  display: grid;
  gap: var(--space-2);
}

.drawer__link {
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.drawer__link:hover {
  border-color: rgba(139, 0, 0, 0.35);
  background: var(--bg-muted);
}

.drawer__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.search-modal {
  display: none;
}

.search-modal.is-open {
  display: block;
}

.search-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.search-modal__panel {
  position: fixed;
  inset: var(--space-10) auto auto 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 768px) {
  .search-modal__panel {
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    transform: none;
    left: 0;
  }
}

.search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.search-modal__title {
  font-family: var(--font-serif);
  font-weight: 800;
}

.search-modal__form {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-6);
}

.search-input {
  flex: 1;
  height: 56px;
  padding: 0 var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}

.search-modal__body {
  padding: 0 var(--space-6) var(--space-6);
  display: grid;
  gap: var(--space-6);
}

.search-modal__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  color: var(--brand);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
}

.chip:hover {
  border-color: rgba(139, 0, 0, 0.4);
  background: rgba(139, 0, 0, 0.06);
}

.ad-block {
  margin: var(--space-10) auto;
  max-width: var(--container);
  padding: 0 var(--space-6);
}

.ad-block--top {
  margin-top: var(--space-6);
}

.ad-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.ad-slot {
  border: 1px dashed rgba(85, 85, 85, 0.4);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 90px;
}

.ad-slot--tall {
  min-height: 600px;
}

/* Nested CMS ad wrappers: only strip when already inside a padded parent */
.container .n5-ad-slot .container,
.container .n5-ad-slot .ad-container,
.article .n5-ad-slot .container,
.article .n5-ad-slot .ad-container,
.legal .n5-ad-slot .container,
.legal .n5-ad-slot .ad-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Sparse home (≤2 modules): clear fixed header (body already has 56px) */
.page-home--sparse .main {
  margin-top: calc(var(--site-header-h, 120px) - 56px);
}
.page-home--sparse .main > .section:first-of-type {
  padding-top: var(--space-5);
}

.hero {
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
  margin-top: calc(var(--site-header-h, 120px) - 56px);
}

.page-home .hero > .n5-ad-slot:first-child,
.page-home--sparse .main > .n5-ad-slot:first-child {
  margin-bottom: 1.25rem;
}

/* Mobile home: tighter tagline + first ad under single-row header */
@media (max-width: 1024px) {
  body.page-home {
    padding-top: var(--site-header-h, 52px);
  }

  

  

  

  .page-home .hero {
    margin-top: 0;
    padding-top: 0.4rem;
  }

  

  .page-home--sparse .main {
    margin-top: 0;
  }

  .page-home--sparse .main > .section:first-of-type {
    padding-top: 0.5rem;
  }

  .page-home .hero > .n5-ad-slot:first-child,
  .page-home--sparse .main > .n5-ad-slot:first-child {
    margin-bottom: 0.85rem;
  }
}

/* PC home: one header offset only — sit first ad closer under nav */
@media (min-width: 1025px) {
  body.page-home {
    padding-top: var(--site-header-h, 120px);
  }

  .page-home .hero {
    margin-top: 0;
    padding-top: 0.5rem;
  }

  .page-home .hero > .n5-ad-slot:first-child {
    margin-bottom: 1.25rem;
  }

  .page-home--sparse .main {
    margin-top: 0;
  }

  .page-home--sparse .main > .n5-ad-slot:first-child {
    margin-bottom: 1.25rem;
  }

  .page-home--sparse .main > .section:first-of-type {
    padding-top: 0.5rem;
  }

  

  
}

.hero__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.aside-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.headline-list {
  display: grid;
  gap: var(--space-3);
}

.headline-list a {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.headline-list a:hover {
  color: var(--brand);
}

.hero-lead {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-lead__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-lead__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-muted);
}

.hero-lead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-lead__kicker {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
}

.hero-lead__body {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.hero-lead__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.1;
  /* 超出两行省略号 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .hero-lead__title {
    font-size: 32px;
  }
}

.hero-lead:hover .hero-lead__title {
  color: var(--brand);
}

.hero-lead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 14px;
}

.hero-lead__deck {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
  /* 超出两行省略号 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(253, 252, 248, 0.8);
}

@media (max-width: 1024px) {
  .feature-card {
    grid-template-columns: 1fr;
  }
}

.feature-card__media {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.feature-card__content {
  padding: var(--space-8);
  display: grid;
  gap: var(--space-4);
  align-content: center;
}

.feature-card__badge {
  display: inline-flex;
  justify-self: start;
  height: 28px;
  align-items: center;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
}

.feature-card__deck {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-card__meta {
  color: var(--ink-muted);
  font-weight: 900;
  font-size: 14px;
}

@media (max-width: 768px) {
  .feature-card__content {
    padding: var(--space-4);
    gap: var(--space-2);
  }

  .feature-card__title {
    font-size: 22px;
    line-height: 1.25;
  }

  .feature-card__deck {
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

.search-strip {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.search-strip__inner {
  display: grid;
  gap: var(--space-4);
}

.search-strip__form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 768px) {
  .search-strip__form {
    grid-template-columns: 1fr auto;
  }
  .search-strip__advanced {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.search-strip__input {
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0 var(--space-5);
  background: var(--bg);
}

.search-strip__advanced {
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: rgba(85, 85, 85, 0.35);
  text-underline-offset: 3px;
}

.search-strip__advanced:hover {
  color: var(--brand);
  text-decoration-color: rgba(139, 0, 0, 0.7);
}

.search-strip__topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.section {
  /* longhand only — do not use padding shorthand or it zeros
     .container horizontal gutters (ads would look narrower than sections) */
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section__head--plain {
  grid-template-columns: 1fr auto;
}

.section__rule {
  height: 1px;
  background: var(--border);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 800;
}

.section__more {
  font-weight: 800;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.section__more:hover {
  text-decoration-color: rgba(139, 0, 0, 0.9);
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

body[data-theme="dark"] .article-card {
  background: rgba(14, 15, 18, 0.8);
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.article-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card__media {
  position: relative;
  display: block;
  background: var(--bg-muted);
}

.article-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.article-card__kicker {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
}

.article-card__body {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 700;
}
.article-card__title{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink);
}

.article-card:hover .article-card__title {
  color: var(--brand);
}

.article-card__excerpt {
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-card__byline {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.page-head {
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
  margin-top: calc(var(--site-header-h, 120px) - 56px);
}

.page-head__kicker {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--brand);
  font-weight: 900;
}

.page-head__title {
  margin-top: var(--space-2);
}

.page-head__subtitle {
  margin-top: var(--space-3);
  max-width: 70ch;
  color: var(--ink-muted);
}

.toolbar {
  position: sticky;
  top: var(--site-header-h, 56px);
  z-index: 3;
  background: rgba(253, 252, 248, 0.82);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.toolbar--static {
  position: static;
  top: auto;
}

body[data-theme="dark"] .toolbar {
  background: rgba(14, 15, 18, 0.78);
}

.toolbar__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-6);
}

@media (max-width: 1024px) {
  .toolbar__inner {
    grid-template-columns: 1fr;
    padding: var(--space-3) var(--space-4);
  }
}

.toolbar__search {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.toolbar__controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.input {
  height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.input--date {
  padding-left: var(--space-10);
}

.select {
  position: relative;
  display: inline-flex;
}

.select__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented__btn {
  height: 44px;
  padding: 0 var(--space-4);
  border: 0;
  background: var(--bg);
  font-weight: 800;
  font-size: 14px;
}

.segmented__btn.is-active {
  background: rgba(139, 0, 0, 0.08);
  color: var(--brand);
}

.browse {
  padding-top: var(--space-8);
  padding-bottom: var(--space-5);
}

.browse__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .browse__grid {
    grid-template-columns: 1fr;
  }
}

.browse__meta {
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.result-count {
  font-weight: 900;
}

.browse__hint {
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
}

.browse__list {
  display: grid;
  gap: var(--space-6);
}

.browse__list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .browse__list--grid {
    grid-template-columns: 1fr;
  }
}

.page-categories .browse__grid {
  grid-template-columns: 1fr;
}

.page-categories .browse__list--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .page-categories .browse__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-categories .browse__list--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .site-nav__inner {
    justify-content: space-between;
  }
  .site-nav__menu-btn {
    display: inline-flex;
  }
  .site-nav__links {
    display: none;
  }
  .site-nav__actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: var(--space-2);
  }
  .site-nav__actions .btn--subscribe {
    display: none;
  }

  /* Single-row header: menu | logo | search */
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 52px;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .masthead {
    grid-column: 1;
    grid-row: 1;
    z-index: 0;
    border-bottom: none;
    background: transparent;
    pointer-events: none;
  }

  .masthead__center {
    padding: 0 3.25rem;
    text-align: center;
  }

  .masthead__logo {
    pointer-events: auto;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    max-width: 100%;
    gap: 0.35rem;
  }

  .masthead__logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(58vw, 14rem);
  }

  .masthead__logo-img {
    height: 22px;
    max-height: 22px;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
  }

  .site-nav__inner {
    height: 52px;
    padding: 0 0.75rem;
    max-width: none;
  }

  .site-nav__actions .n1-nav-signin,
  .site-nav__actions .n1-nav-user {
    display: none !important;
  }

  .site-nav__menu-btn,
  .site-nav__actions .icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 680px) {
  .n1-nav-user-name {
    max-width: 5rem;
  }
  .n1-nav-logout span {
    display: none;
  }
}

.article-card--featured .article-card__img {
  height: 320px;
}

.article-card--row .article-card__link {
  display: grid;
  grid-template-columns: 220px 1fr;
}

@media (max-width: 680px) {
  .article-card--row .article-card__link {
    grid-template-columns: 1fr;
  }
  .article-card--row .article-card__img {
    height: 240px;
  }
}

.article-card--row .article-card__img {
  height: 160px;
}

.article-card--row .article-card__body {
  padding: var(--space-5);
}

.date-sep {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 900;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.compact-row {
  display: grid;
  grid-template-columns: 110px 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
}

.compact-row:hover {
  border-color: rgba(139, 0, 0, 0.25);
  background: var(--bg-muted);
}

.compact-row__time,
.compact-row__section {
  font-weight: 900;
  color: var(--ink-muted);
  font-size: 14px;
}

.compact-row__title {
  font-family: var(--font-serif);
  font-weight: 900;
}

@media (max-width: 680px) {
  .compact-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.empty {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.empty__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
}

.empty__text {
  color: var(--ink-muted);
  font-weight: 700;
}

.sticky {
  position: sticky;
  top: calc(56px + 72px);
  display: grid;
  gap: var(--space-6);
}

.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}

.side-card__title {
  font-family: var(--font-serif);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.ranked {
  display: grid;
  gap: var(--space-3);
  counter-reset: r;
}

.ranked li {
  counter-increment: r;
}

.ranked a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.ranked a::before {
  content: counter(r);
  font-weight: 900;
  color: var(--brand);
}

.ranked a:hover {
  color: var(--brand);
}

.pagination {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-8);
}

.article {
  max-width: 1000px;
  width: 100%;
  margin: calc(var(--site-header-h, 120px) - 56px) auto 0;
  padding: var(--space-12) var(--space-6) var(--space-6);
  box-sizing: border-box;
  overflow-x: hidden;
}

.article > .n5-ad-slot {
  margin-bottom: 1rem;
}

.article__head {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  text-decoration-color: rgba(139, 0, 0, 0.9);
}

.article__kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  letter-spacing: 0.02em;
  font-size: 12px;
  font-weight: 900;
}

.article__title {
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .article__title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
}

.article__deck {
  margin-top: var(--space-4);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 800px;
}

.article__meta {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.byline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(201, 162, 39, 0.25));
  border: 1px solid var(--border);
}

.byline__name {
  font-weight: 900;
}

.byline__role {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.share {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.article__media {
  margin-top: var(--space-8);
}

.article__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article__body {
  margin: var(--space-10) auto 0;
  max-width: 680px;
  width: 100%;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  overflow-x: hidden;
}

.article__body p {
  margin-top: 1.5em;
}

.article__body p:first-child::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.95;
  padding-right: 12px;
  color: var(--brand);
}

.article__body h2 {
  margin-top: 2em;
  color: var(--brand);
  font-size: 24px;
}

.article__body blockquote {
  margin: 2em 0;
  padding: var(--space-6);
  background: rgba(245, 245, 240, 0.65);
  border-left: 3px solid var(--brand);
}

.article__body blockquote p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
}

/* CMS content often ships fixed width/height attrs & inline styles */
.article__body img,
.article__body video,
.article__body iframe,
.article__body embed,
.article__body object,
.article__body figure,
.article__body svg {
  max-width: 100% !important;
  height: auto !important;
}

.article__body img {
  width: auto !important;
  margin: 2em 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.article__body iframe {
  width: 100% !important;
}

.article__body table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article__body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article__body div,
.article__body p,
.article__body section,
.article__body figure,
.article__body span {
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.page-detail,
  html:has(body.page-detail) {
    overflow-x: clip;
  }

  .page-detail {
    overflow-x: clip;
  }

  .page-detail .main,
  .page-detail .article {
    overflow-x: clip;
  }

  .page-detail .article {
    padding: 0.5rem var(--space-4) var(--space-4);
  }

  .page-detail .article > .n5-ad-slot {
    margin-bottom: 0.75rem !important;
  }

  .page-detail .article__kicker {
    height: 24px;
    font-size: 11px;
  }

  .page-detail .article__title {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .page-detail .article__deck {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .page-detail .article__meta {
    margin-top: 0.75rem;
    gap: var(--space-3);
  }

  .page-detail .article__head {
    padding-bottom: var(--space-4);
  }

  .page-detail .article__media {
    margin-top: var(--space-4);
  }

  .article {
    padding: var(--space-8) var(--space-4) var(--space-4);
    overflow-x: hidden;
  }

  .article__deck {
    font-size: 18px;
  }

  .article__body p:first-child::first-letter {
    font-size: 42px;
  }

  .article__body blockquote {
    padding: var(--space-4);
  }
}

.related {
  margin-top: var(--space-8);
}

.related__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: var(--space-4);
  color: var(--brand);
}

@media (max-width: 768px) {
  .page-detail .related {
    margin-top: 1rem;
  }

  .page-detail .related + .related {
    margin-top: 1.25rem;
  }

  .page-detail .related__title {
    margin-bottom: 0.65rem;
    font-size: 1rem;
  }

  .page-detail .article > .n5-ad-slot {
    margin-top: 0.75rem;
  }
}

.feedback {
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-4);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.feedback__actions {
  display: flex;
  gap: var(--space-3);
}

.feedback__msg {
  color: var(--ink-muted);
  font-weight: 700;
}

.next__link {
  font-weight: 900;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.next__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .next__grid {
    grid-template-columns: 1fr;
  }
  .page-head{
    margin-top: calc(var(--site-header-h, 56px) - 56px);
    padding-top: 0.5rem;
  }
  .section{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.next__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  background: rgba(253, 252, 248, 0.8);
}

.next__card:hover {
  background: var(--bg-muted);
  border-color: rgba(139, 0, 0, 0.25);
}

.next__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 900;
}

.next__title {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-weight: 900;
}

.reading-tools {
  position: fixed;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-40%);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 4;
}

@media (max-width: 1024px) {
  .reading-tools {
    display: none;
  }
}

.reading-tools__row {
  display: flex;
  gap: var(--space-2);
}

.tool {
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 900;
  font-size: 14px;
}

.tool:hover {
  background: var(--bg-muted);
}

.tool.is-active {
  border-color: rgba(139, 0, 0, 0.35);
  background: rgba(139, 0, 0, 0.06);
  color: var(--brand);
}

.tool--wide {
  flex: 1;
}

.reading-tools__meta {
  justify-content: center;
  color: var(--ink-muted);
  font-weight: 900;
}

.progress {
  position: sticky;
  top: 56px;
  height: 3px;
  background: transparent;
  z-index: 5;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  padding: var(--space-6);
}

.card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-muted);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card__text {
  margin-top: var(--space-3);
  color: var(--ink-muted);
}

.card__note {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: 14px;
}

.contact {
  padding-bottom: var(--space-12);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

.contact__info {
  display: grid;
  gap: var(--space-6);
}

.form {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-2);
}

.label {
  font-weight: 900;
}

.textarea {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  resize: vertical;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
}

.form__actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.form__status {
  font-weight: 800;
  color: var(--ink-muted);
}

.accordion {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.accordion__q {
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 900;
}

.accordion__q:hover {
  background: var(--bg-muted);
}

.accordion__a {
  padding: var(--space-4);
  border-left: 3px solid var(--brand);
  color: var(--ink-muted);
}

.legal {
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
  max-width: 920px;
  margin-top: calc(var(--site-header-h, 120px) - 56px);
}

.legal__head {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}

.legal__title {
  font-family: var(--font-serif);
  font-weight: 900;
}

.legal__meta {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 14px;
}

.legal__section {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

.legal__section h2 {
  color: var(--brand);
  font-size: 24px;
  margin-bottom: var(--space-3);
}

.legal__section p {
  color: var(--ink);
}

.legal__section p + p {
  margin-top: 1em;
}

.legal__section ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: var(--space-3);
  color: var(--ink);
}

.legal__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .legal__layout {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: calc(56px + var(--space-6));
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.toc__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.toc__link:hover {
  background: var(--bg-muted);
  color: var(--brand);
}

.privacy-center {
  margin-top: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.8);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.privacy-row {
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.privacy-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.privacy-row__title {
  font-weight: 900;
}

.privacy-row__desc {
  margin-top: var(--space-1);
  color: var(--ink-muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.switch {
  display: inline-flex;
  align-items: center;
}

.switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  background: rgba(85, 85, 85, 0.25);
  border-radius: 999px;
  position: relative;
  outline: none;
  border: 1px solid var(--border);
}

.switch input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 160ms ease;
}

.switch input:checked {
  background: rgba(139, 0, 0, 0.35);
}

.switch input:checked::after {
  transform: translate(20px, -50%);
}

.privacy-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.tldr {
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(201, 162, 39, 0.08);
  font-weight: 900;
}

.tldr__panel {
  padding: var(--space-4);
}

.tldr__panel ul {
  list-style: disc;
  padding-left: 20px;
}

.site-footer {
  margin-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.site-footer__rule {
  height: 3px;
  background: var(--brand);
}

.site-footer__top {
  padding-top: var(--space-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-family: var(--font-serif);
  font-weight: 900;
  margin-bottom: var(--space-3);
}

.footer-text {
  color: var(--ink-muted);
  max-width: 50ch;
}

.footer-link {
  display: block;
  padding: var(--space-2) 0;
  font-weight: 800;
  color: var(--ink);
}

.footer-link:hover {
  color: var(--brand);
}

.footer-badges {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.footer-quote {
  margin-top: var(--space-10);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
}

.footer-bottom {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-weight: 800;
}

.footer-bottom__right {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom__link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.5);
  text-underline-offset: 3px;
}

.to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(139, 0, 0, 0.55);
  background: rgba(253, 252, 248, 0.92);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  cursor: pointer;
  color: var(--brand);
}

.to-top.is-visible {
  display: inline-flex;
}

@media (max-width: 768px) {
  .to-top {
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

.to-top:hover {
  background: rgba(139, 0, 0, 0.06);
}

body[data-font-size="sm"] .article__body {
  font-size: 17px;
}

body[data-font-size="md"] .article__body {
  font-size: 18px;
}

body[data-font-size="lg"] .article__body {
  font-size: 19px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: var(--space-4);
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

body[data-theme="dark"] .cookie-banner__inner {
  background: rgba(14, 15, 18, 0.88);
}

.cookie-banner__title {
  font-family: var(--font-serif);
  font-weight: 900;
}

.cookie-banner__text {
  color: var(--ink-muted);
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* content-link-marker */
.article__body a {
  color: #8b0000;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 1px;
  text-decoration-thickness: 1px;
  background-image: linear-gradient(transparent 50%, #fad6c6 50%);
  background-repeat: no-repeat;
  padding: 0 0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: pointer;
}
.article__body a:hover {
  color: #6b0606;
  background-image: linear-gradient(transparent 50%, #f6c0ac 50%);
}
/* /content-link-marker */

/* detail-content-images */
.article__body figure,
.article__body picture {
  display: block;
  max-width: 100%;
  margin: 1.25rem auto;
  text-align: center;
}
.article__body img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  background: #f4f4f4;
  object-fit: contain;
}
.article__body figure img,
.article__body picture img {
  margin-top: 0;
  margin-bottom: 0;
}
.article__body img.detail-img-broken {
  object-fit: fill;
}

/* Mobile article content collapse */
.description-toggle-btn {
    display: none;
}

@media (max-width: 768px) {
    .description-collapse-section {
        display: flex;
        flex-direction: column;
    }

    .description-collapse-section .description-text-wrap {
        position: relative;
        overflow: hidden;
        transition: max-height 0.35s ease;
        width: 100%;
    }

    .description-collapse-section .description-text-wrap.is-collapsed {
        max-height: 180px;
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    }

    .description-collapse-section .description-text-wrap.is-expanded {
        max-height: 8000px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .description-collapse-section .description-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 0.5rem;
        padding: 10px 14px;
        border: 1px solid currentColor;
        border-radius: 0.75rem;
        background: transparent;
        color: inherit;
        font-family: inherit;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        cursor: pointer;
    }

    .description-collapse-section .description-toggle-btn::after {
        content: '';
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
    }

    .description-collapse-section .description-toggle-btn[aria-expanded='true']::after {
        transform: rotate(-135deg) translateY(1px);
    }

    .description-collapse-section .description-toggle-btn[hidden] {
        display: none !important;
    }
}

@media (max-width: 767px) {
  .page-categories .page-head {
    padding-top: 0.35rem;
    padding-bottom: 0.65rem;
  }

  .page-categories .page-head__subtitle {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  

  

  .page-categories .toolbar__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .page-categories .toolbar__search {
    gap: 0.5rem;
  }

  .page-categories .toolbar__search .input,
  .page-categories .toolbar__search .btn {
    height: 38px;
  }

  .page-categories .browse {
    padding-top: 0.85rem;
    padding-bottom: 1rem;
  }

  .page-categories .browse__meta {
    margin-bottom: 0.65rem;
  }

  .page-categories .browse__list {
    gap: var(--space-4);
  }
}

