/* news_tgn_0018 — CENTERPIECE RIVER (The Washington Post inspired)
   Centered wordmark + tagline mast + centerpiece lead / Latest river + horizontal bands.
   HTML uses n18-piece / n18-lead / n18-river / n18-band / n18-desk-piece. */
:root {
  --n18-paper: #ffffff;
  --n18-soft: #f5f5f5;
  --n18-ink: #000000;
  --n18-muted: #444444;
  --n18-accent: #cf202f;
  --n18-link: #2a64a6;
  --n18-deep: #a8001a;
  --n18-panel: #ffffff;
  --n18-rule: #000000;
  --n18-line: #cccccc;
  --n18-font-display: "Libre Bodoni", Georgia, "Times New Roman", serif;
  --n18-font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --n18-font-ui: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --n18-max: 1180px;
  --navbar-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--n18-font-body);
  color: var(--n18-ink);
  background: var(--n18-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

.n18-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.n18-container,
.container {
  width: min(100% - 2rem, var(--n18-max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.n18-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  margin: 1rem 0;
  width: 100%;
}

.n18-ad-slot .container,
.n18-ad-slot .ad-container,
.container .n18-ad-slot .container,
.container .n18-ad-slot .ad-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* —— WaPo mast: centered wordmark + nav under —— */
.n18-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--n18-panel);
}

.n18-mast.is-scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.n18-mast__rules {
  width: min(100% - 2rem, var(--n18-max));
  max-width: 100%;
  margin: 0 auto;
  height: 4px;
  border-top: 1px solid var(--n18-rule);
  border-bottom: 2px solid var(--n18-rule);
  background: transparent;
  box-sizing: border-box;
}

.n18-mast__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  grid-template-areas:
    "left brand actions"
    "menu menu menu";
  align-items: center;
  gap: 0.15rem 0.65rem;
  padding: 0.4rem 0 0.1rem;
  min-width: 0;
}

.n18-mast__left {
  grid-area: left;
  align-self: center;
  min-width: 0;
  overflow: hidden;
}

.n18-mast__date {
  font-family: var(--n18-font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--n18-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n18-mast__brandblock {
  grid-area: brand;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
}

.n18-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--n18-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--n18-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.n18-nav-logo {
  height: 22px;
  width: auto;
  max-width: 72px;
  max-height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.n18-nav-logo[hidden] { display: none; }

.n18-nav-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--n18-font-display);
  font-size: inherit;
  letter-spacing: 0.01em;
}

.n18-mast__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  align-self: center;
  min-height: 34px;
  min-width: 0;
  flex-shrink: 0;
}

.n18-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.05rem;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: max-content;
}

.n18-menu a,
.n18-nav-link {
  position: relative;
  font-family: var(--n18-font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n18-ink);
  padding: 0.28rem 0;
}

.n18-menu a::after,
.n18-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--n18-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.n18-menu a:hover,
.n18-nav-link:hover { color: var(--n18-accent); }
.n18-menu a:hover::after,
.n18-menu a.is-active::after,
.n18-nav-link:hover::after,
.n18-nav-link.is-active::after { transform: scaleX(1); }
.n18-menu a.is-active,
.n18-nav-link.is-active { color: var(--n18-accent); }

.n18-nav-menus {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  grid-area: menu;
  border-top: 1px solid var(--n18-line);
  padding-top: 0.05rem;
  margin-top: 0.1rem;
}

@media (min-width: 900px) {
  .n18-nav-menus {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .n18-nav-menus.n18-nav-menus--pending { visibility: hidden; }
}

.n18-menu.is-measuring { overflow: visible; }
.n18-menu > li.is-overflow { display: none !important; }
.n18-menu > li { flex: 0 0 auto; white-space: nowrap; }

.n18-nav-more {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}
.n18-nav-more[hidden] { display: none !important; }

.n18-nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n18-muted);
  white-space: nowrap;
  cursor: pointer;
}
.n18-nav-more-btn i { font-size: 0.65rem; transition: transform 0.2s ease; }
.n18-nav-more.is-open .n18-nav-more-btn,
.n18-nav-more-btn:hover,
.n18-nav-more-btn:focus-visible { color: var(--n18-accent); }
.n18-nav-more.has-active .n18-nav-more-btn { color: var(--n18-ink); }
.n18-nav-more.is-open .n18-nav-more-btn i { transform: rotate(180deg); }

.n18-nav-more-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  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: 1px solid var(--n18-line);
  background: var(--n18-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.n18-nav-more-panel[hidden] { display: none !important; }
.n18-nav-more-panel .nav-menu-item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--n18-muted);
  text-decoration: none;
}
.n18-nav-more-panel .nav-menu-item:hover,
.n18-nav-more-panel .nav-menu-item:focus-visible {
  background: var(--n18-soft);
  color: var(--n18-accent);
}
.n18-nav-more-panel .nav-menu-item.is-active {
  color: var(--n18-ink);
  background: var(--n18-soft);
}

.n1-nav-signin {
  font-family: var(--n18-font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n18-ink);
  border: 1px solid var(--n18-ink);
  background: transparent;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  text-decoration: none;
  white-space: nowrap;
}
.n1-nav-signin:hover {
  background: var(--n18-ink);
  color: #ffffff;
  border-color: var(--n18-ink);
}

.n1-nav-user { display: none; align-items: center; gap: 0.35rem; }
.n1-nav-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  text-decoration: none;
  color: var(--n18-ink);
}
.n1-nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--n18-soft); color: var(--n18-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; overflow: hidden;
  border: 1px solid var(--n18-line);
}
.n1-nav-user-name {
  font-size: 0.75rem; font-weight: 600;
  max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.n1-nav-user-divider { width: 1px; height: 16px; background: var(--n18-line); }
.n1-nav-logout {
  border: 0; background: transparent; color: var(--n18-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 34px; padding: 0.25rem 0.35rem; font-size: 0.72rem;
}
.n1-nav-logout:hover { color: var(--n18-accent); }

.n18-icon-btn {
  border: 1px solid var(--n18-line);
  background: transparent;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--n18-ink);
}
.n18-icon-btn:hover {
  border-color: var(--n18-ink);
  color: var(--n18-ink);
}

@media (max-width: 719px) {
  .n18-mast__left { display: none; }
  .n18-mast__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "menu menu";
    padding: 0.35rem 0 0.05rem;
    gap: 0.15rem 0.45rem;
  }
  .n18-mast__brandblock {
    justify-self: stretch;
    text-align: left;
    max-width: 100%;
  }
  .n18-brand {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  }
  .n18-nav-logo { max-width: 56px; height: 18px; max-height: 18px; }
  .n1-nav-signin { padding: 0.25rem 0.45rem; font-size: 0.62rem; min-height: 30px; }
  .n18-icon-btn { width: 30px; height: 30px; flex-shrink: 0; }
}

/* —— Section chrome —— */
.n18-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1.5px solid var(--n18-rule);
  min-width: 0;
}
.n18-section-head--quiet {
  border-bottom-color: var(--n18-line);
}
.n18-section-head h2 {
  margin: 0;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.n18-view-all {
  flex-shrink: 0;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--n18-link);
  white-space: nowrap;
}
.n18-view-all:hover { color: #173e6e; }

.n18-flag {
  margin: 0 0 0.4rem;
  font-family: var(--n18-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n18-accent);
}

.n18-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.45rem;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  color: var(--n18-muted);
}
.n18-meta .cat {
  color: var(--n18-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.n18-link-title {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.28s ease, color 0.2s ease;
}
a:hover .n18-link-title,
.n18-link-title:hover {
  color: var(--n18-link);
  background-size: 100% 1.5px;
}

/* —— Shared hero include (common/index_hero_0001) —— */
.index-hero {
  margin: 0.5rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.index-hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--n18-font-display);
  font-size: clamp(1.15rem, 4.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--n18-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.index-hero-content {
  margin-top: 0.35rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  line-height: 1.45;
  color: var(--n18-muted);
}
.index-hero-content:empty { display: none; }

/* —— Centerpiece + Latest river —— */
.n18-piece {
  padding: 0.65rem 0 1.5rem;
}

.n18-piece__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

.n18-piece__center:not(:has(article)),
.n18-piece__river:not(:has(article)),
.n18-piece__more:not(:has(article)) {
  display: none;
}

.n18-lead {
  display: block;
  padding: 0 0 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.n18-lead__title {
  margin: 0 0 0.85rem;
  font-family: var(--n18-font-display);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 18ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n18-lead__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--n18-soft);
  margin: 0 0 0.85rem;
}
.n18-lead__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.n18-lead__dek {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 40rem;
  color: var(--n18-ink);
}

.n18-piece__river {
  border-top: 1px solid var(--n18-line);
  padding-top: 0.85rem;
}

.n18-river__label {
  margin: 0 0 0.55rem;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n18-ink);
}

.n18-river__list > li + li {
  border-top: 1px solid var(--n18-line);
}

.n18-river__list > li > article { display: contents; }

.n18-river-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  min-width: 0;
}

.n18-river-item__body { min-width: 0; }

.n18-river-item__title {
  margin: 0;
  font-family: var(--n18-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n18-river-item__dek {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--n18-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n18-river-item__media {
  width: 88px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--n18-soft);
  flex-shrink: 0;
}
.n18-river-item__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.n18-river-item--wide .n18-river-item__title {
  -webkit-line-clamp: 2;
}

.n18-piece__more {
  margin-top: 1rem;
  border-top: 1.5px solid var(--n18-rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.n18-piece__more > article { display: contents; }
.n18-piece__more .n18-river-item {
  border-bottom: 1px solid var(--n18-line);
}

@media (min-width: 640px) {
  .n18-river-item__media { width: 110px; }
}

@media (min-width: 900px) {
  .n18-piece__grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
  }
  .n18-piece__river {
    border-top: 0;
    border-left: 1px solid var(--n18-line);
    padding-top: 0;
    padding-left: 1.35rem;
  }
  .n18-piece__more {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .n18-piece__more > article:nth-child(2n+1) .n18-river-item {
    padding-right: 0.5rem;
  }
}

/* —— Horizontal band (secondary modules) —— */
.n18-band {
  padding: 0.35rem 0 1.75rem;
}


.n18-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  min-width: 0;
}

.n18-band__lead:not(:has(article)),
.n18-band__rail:not(:has(article)),
.n18-band__more:not(:has(article)) {
  display: none;
}

.n18-band-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  min-width: 0;
}

.n18-band-lead__media {
  overflow: hidden;
  background: var(--n18-soft);
  aspect-ratio: 16 / 9;
}
.n18-band-lead__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.n18-band-lead__copy {
  min-width: 0;
}

.n18-band-lead__title {
  margin: 0;
  font-family: var(--n18-font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.n18-band-lead__dek {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--n18-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n18-band__rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.n18-band__rail .n18-river-item {
  border-top: 1px solid var(--n18-line);
}
.n18-band__rail article:first-child .n18-river-item { border-top: 0; padding-top: 0; }
.n18-band__rail article:last-child .n18-river-item { padding-bottom: 0; }

.n18-band__more {
  margin-top: 1rem;
  border-top: 1px solid var(--n18-rule);
  display: grid;
  grid-template-columns: 1fr;
}
.n18-band__more > article { display: contents; }
.n18-band__more .n18-river-item {
  border-bottom: 1px solid var(--n18-line);
}

@media (min-width: 768px) {
  .n18-band-lead {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .n18-band__more {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .n18-band__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
  }
  .n18-band-lead {
    grid-template-columns: 1fr;
  }
  .n18-band__rail {
    border-left: 1px solid var(--n18-line);
    padding-left: 1.25rem;
  }
  .n18-band__rail .n18-river-item {
    padding: 0.55rem 0;
  }
  .n18-band__rail article:first-child .n18-river-item { padding-top: 0; }
  .n18-band__rail article:last-child .n18-river-item { padding-bottom: 0; }
  .n18-band__rail .n18-river-item__media {
    width: 120px;
  }
  .n18-band:not(:has(.n18-band__rail article)) .n18-band__grid {
    grid-template-columns: 1fr;
  }
  .n18-band:not(:has(.n18-band__rail article)) .n18-band__rail {
    display: none;
  }
}

/* —— Newsletter —— */
.n18-news {
  padding: 2.25rem 0;
  background: var(--n18-ink);
  color: #ffffff;
}
.n18-news__inner { display: grid; gap: 1.25rem; }
.n18-news__title {
  margin: 0 0 0.45rem;
  font-family: var(--n18-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.n18-news__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32rem;
  font-family: var(--n18-font-ui);
}
.n18-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.n18-news__form input[type="email"] {
  flex: 1 1 12rem;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  padding: 0.5rem 0.85rem;
}
.n18-news__form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.n18-news__form button {
  min-height: 44px;
  border: 0;
  background: var(--n18-accent);
  color: #fff;
  font-family: var(--n18-font-ui);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.n18-news__form button:hover { background: var(--n18-deep); }
.n18-news__form .newsletter-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.85rem;
  color: #ffe5e7;
}
@media (min-width: 768px) {
  .n18-news__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

/* —— Footer —— */
.n18-footer {
  padding: 2.5rem 0 2rem;
  background: var(--n18-paper);
  border-top: 3px solid var(--n18-rule);
}
.n18-footer__grid { display: grid; gap: 1.75rem; }
.n18-footer__brand {
  display: inline-block;
  font-family: var(--n18-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.n18-footer__social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.n18-footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--n18-line); color: var(--n18-ink);
}
.n18-footer__social a:hover {
  border-color: var(--n18-accent); color: var(--n18-accent);
}
.n18-footer__links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.n18-footer__links a {
  font-size: 0.88rem; color: var(--n18-muted);
}
.n18-footer__links a:hover { color: var(--n18-link); }
.n18-footer__copy {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--n18-line);
  font-size: 0.8rem;
  color: var(--n18-muted);
}
@media (min-width: 768px) {
  .n18-footer__grid { grid-template-columns: 1.4fr 1fr; }
}

/* —— Detail —— */
.n18-article { padding: 1.5rem 0 2.5rem; }
.n18-article__measure {
  max-width: 42rem;
  margin-inline: auto;
}
.n18-article__cat {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n18-accent);
}
.n18-article__title {
  margin: 0 0 0.75rem;
  font-family: var(--n18-font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.n18-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  font-family: var(--n18-font-ui);
  font-size: 0.85rem;
  color: var(--n18-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--n18-rule);
}
.n18-share { display: flex; gap: 0.55rem; margin-bottom: 1.25rem; }
.n18-share a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--n18-line);
}
.n18-share a:hover {
  border-color: var(--n18-accent); color: var(--n18-accent);
}
.n18-article__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n18-soft);
  margin: 0 0 1.75rem;
  max-width: 100%;
}
.n18-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.n18-article__body {
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.75;
}
.n18-article__body p { margin: 0 0 1.1rem; }
.n18-article__body img { margin: 1.25rem 0; }
.n18-article__body a { color: var(--n18-link); }
.n18-related {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--n18-rule);
}
.n18-related h2 {
  margin: 0 0 1.15rem;
  font-family: var(--n18-font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.n18-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.n18-related__grid > article { display: contents; }
.n18-related__grid .n18-river-item {
  border-bottom: 1px solid var(--n18-line);
}
@media (min-width: 768px) {
  .n18-related__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* —— Category desk: centerpiece + Latest river (mirrors homepage piece) —— */
.n18-desk { padding: 1.25rem 0 3rem; }
.n18-desk-mast {
  margin: 0 0 1.15rem;
  padding: 0.35rem 0 1.05rem;
  border-bottom: 3px solid var(--n18-ink);
  text-align: center;
}
.n18-desk-mast__kicker {
  margin: 0 0 0.4rem;
  font-family: var(--n18-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n18-accent);
}
.n18-desk-mast__title {
  margin: 0;
  font-family: var(--n18-font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.n18-desk-mast__desc {
  margin: 0.65rem auto 0;
  max-width: 36rem;
  color: var(--n18-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.n18-desk-piece { margin-top: 0.85rem; }
.n18-desk-piece__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.n18-desk-piece__center:not(:has(article)),
.n18-desk-piece__river:not(:has(li)),
.n18-desk-piece__more:not(:has(article)) {
  display: none;
}
.n18-desk-piece__center .n18-lead__title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  max-width: none;
}
.n18-desk-piece__river {
  border-top: 1px solid var(--n18-line);
  padding-top: 0.85rem;
}
.n18-desk-piece__more {
  margin-top: 1.15rem;
  border-top: 1.5px solid var(--n18-rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.n18-desk-piece__more > article { display: contents; }
.n18-desk-piece__more .n18-river-item {
  border-bottom: 1px solid var(--n18-line);
}

.n18-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--n18-muted);
}
.n18-empty h2 {
  font-family: var(--n18-font-display);
  color: var(--n18-ink);
}
.n18-empty--desk {
  padding: 2rem 0 1rem;
  text-align: left;
  border-top: 1px solid var(--n18-line);
}

@media (min-width: 900px) {
  .n18-desk-piece__grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
  }
  .n18-desk-piece__river {
    border-top: 0;
    border-left: 1px solid var(--n18-line);
    padding-top: 0;
    padding-left: 1.35rem;
  }
  .n18-desk-piece__more {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .n18-desk-piece__more > article:nth-child(2n+1) .n18-river-item {
    padding-right: 0.5rem;
  }
}

.n18-page { padding: 1.5rem 0 2.5rem; }
.n18-page__title {
  margin: 0 0 0.45rem;
  font-family: var(--n18-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}
.n18-page__desc {
  margin: 0 0 1.15rem;
  color: var(--n18-muted);
  max-width: 40rem;
}

/* —— Category drawer —— */
.n18-desk .n18-cat-btn {
  display: flex;
  margin-inline: auto;
}
.n18-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--n18-line);
  background: var(--n18-panel);
  color: var(--n18-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.n18-cat-btn i { color: var(--n18-accent); }
.n18-cat-btn:hover {
  border-color: var(--n18-accent);
  color: var(--n18-deep);
}
.n18-cat-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.n18-cat-overlay.is-open { opacity: 1; visibility: visible; }
.n18-cat-drawer {
  position: fixed; top: 0; right: 0; z-index: 1201;
  width: min(100%, 20rem); height: 100%;
  display: flex; flex-direction: column;
  background: var(--n18-panel);
  border-left: 1px solid var(--n18-line);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.n18-cat-drawer.is-open { transform: translateX(0); }
.n18-cat-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--n18-line);
}
.n18-cat-drawer__head h2 {
  margin: 0;
  font-family: var(--n18-font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.n18-cat-drawer__close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--n18-line);
  background: var(--n18-soft);
  color: var(--n18-ink);
  cursor: pointer;
}
.n18-cat-drawer__list {
  flex: 1; overflow-y: auto;
  margin: 0; padding: 0.5rem 0.85rem 1.25rem;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.n18-cat-drawer__link {
  display: flex; align-items: center;
  min-height: 44px; padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--n18-line);
  color: var(--n18-ink); font-weight: 600;
}
.n18-cat-drawer__link:hover,
.n18-cat-drawer__link.is-active {
  color: var(--n18-deep);
  background: rgba(207, 32, 47, 0.06);
}
.n18-cat-drawer__link.is-active {
  border-left: 3px solid var(--n18-accent);
  padding-left: calc(0.75rem - 3px);
}
body.n18-cat-drawer-open { overflow: hidden; }

/* —— Motion —— */
[data-n18-tile].is-pending {
  opacity: 0;
  transform: translateY(14px);
}
[data-n18-tile].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.n18-lead.is-pending .n18-lead__title {
  opacity: 0;
  transform: translateY(10px);
}
.n18-lead.is-in .n18-lead__title {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-n18-tile].is-pending,
  [data-n18-tile].is-in,
  .n18-lead.is-pending .n18-lead__title,
  .n18-lead.is-in .n18-lead__title,
  .n18-link-title {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    background-size: 0 1.5px;
  }
}

/* —— Mobile nav / search / back-to-top —— */
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--n18-panel);
  border-top: 1px solid var(--n18-line);
  display: none;
}
.mobile-nav-menu {
  display: flex; justify-content: space-around; align-items: stretch;
  margin: 0;
  padding: 0.2rem 0 calc(0.2rem + env(safe-area-inset-bottom, 0));
  list-style: none;
}
.mobile-nav-user-pair { display: contents; }
.mobile-nav-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; min-width: 0; flex: 1 1 0; min-height: 52px;
  font-size: 0.65rem; font-weight: 600;
  color: var(--n18-muted); background: transparent; border: 0;
  cursor: pointer; padding: 0.25rem;
}
.mobile-nav-link i { font-size: 1.05rem; }
.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.is-active { color: var(--n18-accent); }
@media (max-width: 899px) {
  .mobile-nav { display: block; }
}

.search-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.search-overlay.active { display: flex; }
.search-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: #fff; font-size: 2rem; cursor: pointer;
}
.search-form { width: min(100%, 36rem); }
.search-input-wrapper {
  display: flex; gap: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 0.5rem;
}
.search-input {
  flex: 1; border: 0; background: transparent; color: #fff;
  font-size: 1.35rem; min-height: 48px; outline: none;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.search-submit {
  border: 0; background: transparent; color: #fff;
  width: 48px; height: 48px; cursor: pointer; font-size: 1.2rem;
}

.n18-back-to-top.back-to-top {
  right: 1rem !important;
  bottom: 5.5rem !important;
  z-index: 55 !important;
  width: 44px !important; height: 44px !important;
  border: 1px solid var(--n18-line) !important;
  border-radius: 0 !important;
  background: var(--n18-ink) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  opacity: 0; visibility: hidden;
  display: grid !important; place-items: center;
  cursor: pointer;
  backdrop-filter: none !important;
  font-size: inherit !important;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease !important;
}
.n18-back-to-top.back-to-top.show {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
}
.n18-back-to-top.back-to-top:not(.show) { transform: none !important; }
.n18-back-to-top.back-to-top:hover {
  background: var(--n18-accent) !important;
  color: #fff !important;
  transform: none !important;
}
.n18-back-to-top.back-to-top:active { transform: none !important; }
.n18-back-to-top.back-to-top::before { display: none !important; animation: none !important; }
@media (min-width: 900px) {
  .n18-back-to-top.back-to-top { bottom: 1.5rem !important; }
}
body.cookie-banner-visible .n18-back-to-top.back-to-top {
  bottom: calc(0.75rem + var(--cookie-banner-h, 140px)) !important;
  z-index: 10001 !important;
}
@media (min-width: 900px) {
  body.cookie-banner-visible .n18-back-to-top.back-to-top {
    bottom: calc(1rem + var(--cookie-banner-h, 140px)) !important;
  }
}

/* —— Legal —— */
.n18-legal,
.legal-content {
  width: min(100% - 2rem, 42rem);
  margin: 2rem auto 3rem;
  line-height: 1.7;
}
.n18-legal h1,
.legal-content h1 {
  font-family: var(--n18-font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.n18-legal a,
.legal-content a { color: var(--n18-link); }

.detail-favorite-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 36px;
  border: 1px solid var(--n18-line);
  background: transparent; color: var(--n18-ink);
  padding: 0.3rem 0.7rem; cursor: pointer;
  font-size: 0.8rem; font-weight: 600;
}
.detail-favorite-btn:hover {
  border-color: var(--n18-accent); color: var(--n18-accent);
}
.detail-favorite-btn__icon { width: 16px; height: 16px; }
.detail-favorite-btn[aria-pressed="true"] {
  border-color: var(--n18-accent); color: var(--n18-accent);
}

/* layout=centerpiece mast=classic */

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

/* detail-content-images */
.n18-article__body figure,
.n18-article__body picture {
  display: block;
  max-width: 100%;
  margin: 1.25rem auto;
  text-align: center;
}
.n18-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;
}
.n18-article__body figure img,
.n18-article__body picture img {
  margin-top: 0;
  margin-bottom: 0;
}
.n18-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;
    }
}

/* Mobile spacing: section title + list/ad rhythm */
@media (max-width: 899px) {
  /* List → ad: keep a modest gap, not zero */
  .n18-piece {
    padding-bottom: 0.35rem;
  }

  .n18-piece__more > article:last-child .n18-river-item {
    padding-bottom: 0.35rem;
  }

  .n18-ad-slot {
    min-height: 0;
    margin: 0.65rem 0;
  }

  /* Module title: balanced top/bottom; cut the 1.75rem bottom pad */
  .n18-band {
    padding: 0.55rem 0 0.65rem;
  }

  .n18-section-head {
    margin: 0 0 0.55rem;
    padding-bottom: 0.2rem;
  }

  .n18-lead__title {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    line-height: 1.14;
    max-width: none;
  }

  .n18-desk-piece__center .n18-lead__title {
    font-size: clamp(1.3rem, 5vw, 1.55rem);
  }

  .n18-band-lead__title {
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  }

  .n18-article__title {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }
}

