﻿/* news_ads_tgn_0026 — FOLIO (Semafor inspired)
   Pale paper + centered serif mast + folio packages. Site-wide tokens match homepage. */
:root {
  --n19-paper: #f8f5d7;
  --n19-soft: #eee9c8;
  --n19-ink: #222119;
  --n19-strong: #181810;
  --n19-muted: #625f4b;
  --n19-soft-text: #736e59;
  --n19-accent: #b64724;
  --n19-deep: #94391c;
  --n19-link: #1b42a3;
  --n19-flag: #2c4e81;
  --n19-panel: #f8f5d7;
  --n19-rule: #222119;
  --n19-line: #ccc6a6;
  --n19-font: "Source Sans 3", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --n19-font-display: Georgia, "Times New Roman", serif;
  --n19-font-body: var(--n19-font);
  --n19-max: 1200px;
  --navbar-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--n19-font-body);
  color: var(--n19-ink);
  background: var(--n19-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@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;
}

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

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

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

/* —— Slim mast —— */
.n19-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--n19-panel);
  border-bottom: 1px solid var(--n19-ink);
}

.n19-mast.is-scrolled {
  box-shadow: none;
}

.n19-mast__rule {
  display: none;
}

/* Mobile-first compact mast — tall folio stack only from 768px up.
   Avoids locking a ~170px desktop height into --navbar-h on phones. */
.n19-mast__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand actions"
    "menu menu";
  align-items: center;
  gap: 0.1rem 0.35rem;
  padding: 0.25rem 0 0;
  min-height: 0;
}

.n19-mast__brandblock {
  grid-area: brand;
  justify-self: stretch;
  width: 100%;
  text-align: left;
  min-width: 0;
  padding: 0;
}

.n19-brand {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--n19-font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 4vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--n19-strong);
  max-width: 100%;
}

.n19-nav-logo {
  height: 16px;
  width: auto;
  max-width: 48px;
  max-height: 16px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

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

.n19-nav-brand-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  text-transform: none;
  letter-spacing: inherit;
  font-size: inherit;
}

.n19-mast__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

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

.n19-menu a {
  position: relative;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--n19-ink);
  padding: 0.2rem 0 0.35rem;
}

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

.n19-menu a:hover {
  color: var(--n19-accent);
}

.n19-menu a:hover::after,
.n19-menu a.is-active::after {
  transform: scaleX(1);
}

.n19-menu a.is-active {
  color: var(--n19-accent);
}

.n19-nav-menus {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 1.05rem;
  min-width: 0;
  height: auto;
  min-height: 0;
  grid-area: menu;
  width: 100%;
  margin: 0;
  padding-block: 0.15rem 0.25rem;
  border-top: 1px dashed var(--n19-line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.n19-nav-menus::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .n19-mast__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "actions"
      "brand"
      "menu";
    gap: 0.45rem;
    padding: 0.7rem 0 0;
  }

  .n19-mast__brandblock {
    text-align: center;
    padding: 0.35rem 0 0.65rem;
  }

  .n19-brand {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: -0.055em;
  }

  .n19-nav-logo {
    height: 42px;
    max-width: 140px;
    max-height: 54px;
  }

  .n19-nav-brand-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .n19-nav-menus {
    display: none;
    justify-content: center;
    min-height: 42px;
    padding-block: 0.6rem;
    overflow: visible;
  }

  .n19-menu {
    gap: 1.5rem;
  }

  .n19-menu a {
    font-size: 0.85rem;
  }
}

@media (min-width: 900px) {
  .n19-nav-menus {
    display: flex;
  }
  .n19-nav-menus.n19-nav-menus--pending {
    visibility: hidden;
  }
}

.n19-menu.is-measuring {
  overflow: visible;
}

.n19-menu > li.is-overflow {
  display: none !important;
}

.n19-menu > li {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

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

.n19-nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n19-muted);
  white-space: nowrap;
  cursor: pointer;
}

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

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

.n19-nav-more.has-active .n19-nav-more-btn {
  color: var(--n19-ink);
}

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

.n19-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-radius: 0;
  border: 1px solid var(--n19-line);
  background: var(--n19-panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.n19-nav-more-panel .nav-menu-item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--n19-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.n19-nav-more-panel .nav-menu-item:hover,
.n19-nav-more-panel .nav-menu-item:focus-visible {
  background: var(--n19-soft);
  color: var(--n19-accent);
}

.n19-nav-more-panel .nav-menu-item.is-active {
  color: var(--n19-accent);
  background: var(--n19-soft);
}

.n1-nav-signin {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n19-ink);
  border: 1px solid var(--n19-line);
  background: transparent;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.n1-nav-signin:hover {
  border-color: var(--n19-accent);
  color: var(--n19-accent);
}

.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: 36px;
}

.n1-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--n19-soft);
  color: var(--n19-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
}

.n1-nav-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n1-nav-user-divider {
  width: 1px;
  height: 18px;
  background: var(--n19-line);
}

.n1-nav-logout {
  border: 0;
  background: transparent;
  color: var(--n19-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
}

.n1-nav-logout:hover {
  color: var(--n19-accent);
}

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

.n19-icon-btn:hover {
  border-color: var(--n19-accent);
  color: var(--n19-accent);
}

/* —— Section chrome —— */
.n19-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--n19-line);
}

.n19-section-head__label,
.n19-section-head h2 {
  margin: 0;
  font-family: var(--n19-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n19-strong);
  position: relative;
  padding-bottom: 0.35rem;
}

.n19-section-head__label::after,
.n19-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 2.5rem;
  height: 3px;
  background: var(--n19-accent);
}

.n19-view-all {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n19-accent);
  white-space: nowrap;
}

.n19-view-all:hover {
  color: var(--n19-deep);
}

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

.n19-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--n19-soft-text);
}

.n19-meta .cat {
  color: var(--n19-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.n19-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 .n19-link-title,
.n19-link-title:hover {
  color: var(--n19-accent);
  background-size: 100% 1.5px;
}

/* —— Wire pack: lead | stack | Latest —— */
.n19-wire {
  padding: 0.75rem 0 1.75rem;
}

.n19-wire__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.n19-wire__lead:not(:has(a)),
.n19-wire__stack:not(:has(a)),
.n19-wire__latest:not(:has(.n19-latest__list li)),
.n19-wire__more:not(:has(.n19-wire__more-list li)) {
  display: none;
}

.n19-lead {
  display: block;
}

.n19-lead__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n19-soft);
  margin: 0 0 0.85rem;
}

.n19-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n19-lead__title {
  margin: 0;
  font-family: var(--n19-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--n19-strong);
}

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

.n19-wire__stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--n19-line);
}

.n19-wire__stack > article {
  display: contents;
}

.n19-stack-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--n19-line);
}

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

.n19-stack-item__dek {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--n19-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n19-stack-item__media {
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--n19-soft);
  flex-shrink: 0;
}

.n19-stack-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .n19-stack-item__media {
    width: 120px;
  }
}

.n19-wire__latest {
  border: 1px solid var(--n19-line);
  background: var(--n19-soft);
  padding: 0.85rem 1rem 0.5rem;
}

.n19-latest__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n19-strong);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--n19-accent);
}

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

.n19-latest__list > li > article {
  display: contents;
}

.n19-latest-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0;
}

.n19-latest-item__time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--n19-accent);
  white-space: nowrap;
  line-height: 1.35;
}

.n19-latest-item__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--n19-strong);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n19-wire__more {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--n19-line);
}

.n19-wire__more-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.n19-wire__more-list {
  display: grid;
  gap: 0;
}

.n19-wire__more-list > li > article {
  display: contents;
}

.n19-more-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--n19-line);
}

.n19-more-item__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n19-more-item__media {
  width: 100px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--n19-soft);
}

.n19-more-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .n19-wire__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 1.5rem 1.75rem;
  }

  .n19-wire__stack {
    border-top: 0;
    border-left: 1px solid var(--n19-line);
    padding-left: 1.25rem;
  }

  .n19-wire__stack > article:first-child .n19-stack-item {
    padding-top: 0;
  }

  .n19-wire__more-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .n19-stack-item__media,
  .n19-more-item__media {
    display: none;
  }
  .n19-stack-item,
  .n19-more-item {
    grid-template-columns: 1fr;
  }
}

/* —— Picture grids (Reuters Pictures / Last Read) —— */
.n19-pics {
  padding: 0.5rem 0 2rem;
}

.n19-pics__grid {
  display: grid;
  gap: 1.5rem 1.25rem;
}

.n19-pics__grid > article {
  display: contents;
}

.n19-pic {
  display: block;
  min-width: 0;
}

.n19-pic__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n19-soft);
  margin: 0 0 0.65rem;
}

.n19-pic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n19-pic__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--n19-soft-text);
  line-height: 1.3;
}

.n19-pic__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--n19-strong);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n19-pic .n19-meta {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--n19-soft-text);
}

.n19-pics--tight .n19-pic__title {
  font-size: 0.95rem;
  -webkit-line-clamp: 4;
}

@media (min-width: 640px) {
  .n19-pics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .n19-pics__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .n19-pics--tight .n19-pics__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

/* Legacy section aliases (detail related may still use columns) */
.n19-section {
  padding: 0.5rem 0 2rem;
}

.n19-rail-item {
  display: block;
  padding: 0.85rem 0;
}

.n19-rail-item__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Legacy aliases kept for detail related / older pages */
.n19-columns {
  padding: 0.5rem 0 2rem;
}

.n19-columns__grid {
  display: grid;
  gap: 0;
}

.n19-columns__grid > article {
  display: contents;
}

.n19-col {
  display: block;
  padding: 1.1rem 0 1.2rem;
  border-bottom: 1px solid var(--n19-line);
}

.n19-col__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n19-col__dek {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--n19-muted);
}

.n19-col__media {
  margin-top: 0.7rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n19-soft);
}

.n19-col__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .n19-columns__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.75rem;
  }
}

/* —— Newsletter —— */
.n19-news {
  padding: 2.25rem 0;
  background: #0d0d0d;
  color: #ffffff;
}

.n19-news__inner {
  display: grid;
  gap: 1.25rem;
}

.n19-news__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.n19-news__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32rem;
}

.n19-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.n19-news__form input[type="email"] {
  flex: 1 1 12rem;
  min-height: 44px;
  border: 1px solid var(--n19-ink);
  background: #ffffff;
  color: var(--n19-ink);
  padding: 0.5rem 0.85rem;
  border-radius: 0;
}

.n19-news__form input[type="email"]::placeholder {
  color: var(--n19-soft-text);
}

.n19-news__form button {
  min-height: 44px;
  border: 0;
  background: var(--n19-ink);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-radius: 0;
}

.n19-news__form button:hover {
  background: var(--n19-accent);
  color: #ffffff;
}

.n19-news__form .newsletter-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--n19-muted);
}

@media (min-width: 768px) {
  .n19-news__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

/* —— Footer —— */
.n19-footer {
  padding: 2.5rem 0 2rem;
  background: var(--n19-paper);
  border-top: 1px solid var(--n19-line);
}

.n19-footer__grid {
  display: grid;
  gap: 1.75rem;
}

.n19-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.n19-footer__brand::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--n19-accent);
  flex-shrink: 0;
}

.n19-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.n19-footer__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--n19-line);
  color: var(--n19-ink);
}

.n19-footer__social a:hover {
  border-color: var(--n19-accent);
  color: var(--n19-accent);
}

.n19-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.n19-footer__links a {
  font-size: 0.88rem;
  color: var(--n19-muted);
}

.n19-footer__links a:hover {
  color: var(--n19-accent);
}

.n19-footer__copy {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--n19-line);
  font-size: 0.8rem;
  color: var(--n19-soft-text);
}

@media (min-width: 768px) {
  .n19-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* —— Detail: consistent article measure and rich text typography —— */
.n19-article {
  padding: 2.5rem 0 3.5rem;
}

.n19-article > .n19-container {
  max-width: 1040px;
}

.n19-article__header,
.n19-article__reader,
.n19-article__measure {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.n19-article__header {
  margin-bottom: 2rem;
}

.n19-article__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--n19-flag);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.n19-article__cat::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--n19-flag);
}

.n19-article__title {
  margin: 0;
  color: var(--n19-strong);
  font-family: var(--n19-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.n19-article__summary {
  margin: 1.25rem 0 0;
  color: var(--n19-muted);
  font-family: var(--n19-font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.n19-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  margin: 1.5rem 0 0;
  color: var(--n19-soft-text);
  font-size: 0.8rem;
  line-height: 1.6;
}

.n19-article__byline {
  color: var(--n19-ink);
  font-weight: 700;
}

.n19-article__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-variant-numeric: tabular-nums;
}

.n19-article__dates:empty {
  display: none;
}

.n19-article__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--n19-line);
}

.n19-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.n19-share__label {
  margin-right: 0.35rem;
  color: var(--n19-soft-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.n19-share a,
.n19-article__toolbar .detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  width: auto;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--n19-line);
  background: var(--n19-paper);
  color: var(--n19-ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 0;
}

.n19-share a:hover,
.n19-article__toolbar .detail-favorite-btn:hover {
  border-color: var(--n19-accent);
  background: var(--n19-soft);
  color: var(--n19-ink);
}

.n19-share a:focus-visible,
.n19-article__toolbar .detail-favorite-btn:focus-visible {
  outline: 2px solid var(--n19-accent);
  outline-offset: 3px;
}

.n19-article__toolbar .detail-favorite-btn__label {
  display: inline;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.n19-article__toolbar .detail-favorite-btn[aria-pressed="true"] {
  color: #a64d00;
  border-color: var(--n19-accent);
  background: #fff5e9;
}

.n19-article__cover {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.n19-article__cover img {
  display: block;
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: auto !important;
  object-fit: contain;
}

.n19-article__body {
  width: 100%;
  color: var(--n19-ink);
  font-size: 1.125rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.n19-article__body > * {
  max-width: 100%;
}

.n19-article__body > :first-child {
  margin-top: 0;
}

.n19-article__body p {
  margin: 0 0 1.35rem;
}

.n19-article__body h1,
.n19-article__body h2,
.n19-article__body h3,
.n19-article__body h4,
.n19-article__body h5,
.n19-article__body h6 {
  margin: 2rem 0 0.85rem;
  color: var(--n19-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.n19-article__body h1,
.n19-article__body h2 {
  font-size: 1.65rem;
}

.n19-article__body h3 {
  font-size: 1.3rem;
}

.n19-article__body h4,
.n19-article__body h5,
.n19-article__body h6 {
  font-size: 1.125rem;
}

.n19-article__body ul,
.n19-article__body ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.n19-article__body ul {
  list-style-type: disc;
}

.n19-article__body ol {
  list-style-type: decimal;
}

.n19-article__body li {
  margin: 0.45rem 0;
  padding-left: 0.2rem;
}

.n19-article__body li > ul,
.n19-article__body li > ol {
  margin: 0.5rem 0;
}

.n19-article__body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--n19-accent);
  background: var(--n19-soft);
  color: var(--n19-muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.n19-article__body blockquote > :last-child {
  margin-bottom: 0;
}

.n19-article__body figcaption,
.n19-article__body caption {
  color: var(--n19-soft-text);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.n19-article__body figcaption {
  margin-top: 0.6rem;
}

.n19-article__body table {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}

.n19-article__body th,
.n19-article__body td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--n19-line);
  text-align: left;
}

.n19-article__body th {
  background: var(--n19-soft);
  font-weight: 700;
}

.n19-article__body pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--n19-soft);
  border: 1px solid var(--n19-line);
  font-size: 0.875rem;
  line-height: 1.65;
}

.n19-article__body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.n19-article__body :not(pre) > code {
  padding: 0.15rem 0.3rem;
  background: var(--n19-soft);
}

.n19-article__body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--n19-line);
}

.n19-article__body iframe,
.n19-article__body video {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  aspect-ratio: 16 / 9;
  height: auto;
}

.n19-article__reader .n1-comments-section {
  margin-top: 3rem;
}

.n19-related {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--n19-ink);
}

.n19-related h2 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.n19-related .n19-columns__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.n19-related .n19-columns__grid > article {
  display: block;
  min-width: 0;
}

.n19-related .n19-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 0;
  border: 0;
}

.n19-related .n19-col:not(:has(.n19-col__media)) {
  padding: 1.25rem;
  background: var(--n19-soft);
  border-top: 3px solid var(--n19-accent);
}

.n19-related .n19-col__media {
  flex-shrink: 0;
  margin: 0;
}

.n19-related .n19-col__title {
  display: block;
  overflow: visible;
  font-size: 1.15rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.n19-related .n19-col__dek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.65rem;
  line-height: 1.6;
}

.n19-related .n19-flag {
  color: var(--n19-flag);
}

.n19-related .n19-col:hover .n19-link-title {
  color: var(--n19-strong);
  text-decoration: underline;
  text-decoration-color: var(--n19-accent);
  text-underline-offset: 0.15em;
}

.n19-related .n19-col:focus-visible {
  outline: 2px solid var(--n19-accent);
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .n19-related .n19-columns__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .n19-container,
  .container {
    width: min(100% - 1.25rem, var(--n19-max));
  }

  .n19-ad-slot {
    min-height: 52px;
    margin: 0.55rem 0;
  }

  .n19-icon-btn {
    width: 28px;
    height: 28px;
  }

  .n19-article {
    padding: 0.35rem 0 1.75rem;
  }

  .n19-article__header {
    margin-bottom: 1rem;
  }

  .n19-article__title {
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  .n19-article__summary {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .n19-article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.85rem;
    font-size: 0.72rem;
  }

  .n19-share__label {
    flex-basis: 100%;
  }

  .n19-share a,
  .n19-article__toolbar .detail-favorite-btn {
    min-height: 40px;
  }

  .n19-article__cover {
    margin-bottom: 1.15rem;
  }

  .n19-article__body {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .n19-article__body p {
    margin-bottom: 1rem;
  }

  .n19-article__body h1,
  .n19-article__body h2 {
    font-size: 1.2rem;
    margin: 1.35rem 0 0.65rem;
  }

  .n19-article__body blockquote {
    padding: 0.75rem 0.9rem;
    font-size: 0.98rem;
    margin: 1.15rem 0;
  }

  .n19-related .n19-columns__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .n19-footer {
    padding: 1.5rem 0 1.25rem;
  }
}

/* —— Category desk —— */
.n19-desk,
.n19-page {
  padding: 1.25rem 0 2.5rem;
}

.n19-desk-mast {
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--n19-line);
}

.n19-desk-mast__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n19-flag);
}

.n19-desk-mast__title,
.n19-page__title {
  margin: 0;
  font-family: var(--n19-font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--n19-strong);
}

.n19-desk-mast__desc,
.n19-page__desc {
  margin: 0.55rem 0 0;
  color: var(--n19-muted);
  max-width: 40rem;
}

/* Category briefing: featured story followed by a readable news feed. */
.n19-category > .n19-container {
  max-width: 1160px;
}

.n19-category-mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0.5rem 0 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--n19-line);
}

.n19-category-mast .n19-desk-mast {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.n19-category-mast .tags-hero h1 {
  margin: 0;
  font-family: var(--n19-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.n19-category-mast .tags-hero-content {
  max-width: 44rem;
  color: var(--n19-muted);
}

.n19-category-mast .n19-cat-btn {
  flex-shrink: 0;
  margin: 0;
}

.n19-desk-wire__lead {
  margin-bottom: 2.5rem;
}

.n19-category-lead {
  display: grid;
  min-width: 0;
  background: var(--n19-soft);
  border-top: 1px solid var(--n19-ink);
  border-bottom: 1px dashed var(--n19-line);
}

.n19-category-lead--with-media {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.n19-category-lead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.n19-category-lead__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.n19-category-lead__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--n19-ink);
}

.n19-category-lead__label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--n19-flag);
}

.n19-category-lead__topic {
  color: var(--n19-flag);
}

.n19-category-lead__title {
  max-width: 30ch;
  margin: 0;
  color: var(--n19-strong);
  font-family: var(--n19-font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.n19-category-lead:hover .n19-category-lead__title {
  color: var(--n19-link);
}

.n19-category-lead:not(.n19-category-lead--with-media) .n19-category-lead__title {
  max-width: 46ch;
}

.n19-category-lead__summary {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--n19-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.n19-category-lead__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.n19-category-lead__footer .n19-meta {
  margin: 0;
  font-size: 0.8rem;
  gap: 0.4rem 0.85rem;
}

.n19-category-lead__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.n19-category-lead__cta > span {
  color: var(--n19-link);
  font-size: 1.1rem;
}

.n19-category-lead__media {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--n19-line);
}

.n19-category-lead__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.n19-category-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--n19-ink);
}

.n19-category-feed__head h2 {
  margin: 0;
  font-family: var(--n19-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.n19-category-feed__head > span {
  color: var(--n19-soft-text);
  font-size: 0.8rem;
}

.n19-desk-wire__list > li {
  border-bottom: 1px solid var(--n19-line);
}

.n19-category-story {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.n19-category-story--with-media {
  grid-template-columns: 7.25rem minmax(0, 1fr) 10rem;
}

.n19-category-story--undated {
  grid-template-columns: minmax(0, 1fr);
}

.n19-category-story--undated.n19-category-story--with-media {
  grid-template-columns: minmax(0, 1fr) 10rem;
}

.n19-category-story__date {
  padding-top: 0.1rem;
  color: var(--n19-soft-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.n19-category-story__body {
  min-width: 0;
  max-width: 48rem;
}

.n19-category-story__topic {
  margin: 0 0 0.4rem;
  color: var(--n19-flag);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.n19-category-story__title {
  margin: 0;
  color: var(--n19-strong);
  font-family: var(--n19-font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.n19-category-story:hover .n19-category-story__title {
  color: var(--n19-link);
}

.n19-category-story__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.5rem 0 0;
  color: var(--n19-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.n19-category-story__author {
  margin: 0.65rem 0 0;
  color: var(--n19-soft-text);
  font-size: 0.75rem;
}

.n19-category-story__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--n19-soft);
}

.n19-category-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n19-category-lead:hover .n19-link-title,
.n19-category-story:hover .n19-link-title {
  color: var(--n19-strong);
  text-decoration: underline;
  text-decoration-color: var(--n19-accent);
  text-underline-offset: 0.15em;
}

.n19-category-lead:focus-visible,
.n19-category-story:focus-visible {
  outline: 2px solid var(--n19-accent);
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .n19-category-lead--with-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .n19-category-lead__media {
    order: -1;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .n19-category-lead__media img {
    min-height: 0;
  }

  .n19-category-story {
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 1rem;
  }

  .n19-category-story--with-media {
    grid-template-columns: 6.25rem minmax(0, 1fr) 8rem;
  }

  .n19-category-story--undated {
    grid-template-columns: minmax(0, 1fr);
  }

  .n19-category-story--undated.n19-category-story--with-media {
    grid-template-columns: minmax(0, 1fr) 8rem;
  }
}

@media (max-width: 599px) {
  .n19-category-mast {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.7rem;
    margin-bottom: 0.85rem;
  }

  .n19-category-mast .n19-desk-mast__title,
  .n19-category-mast h1 {
    font-size: 1.45rem;
  }

  .n19-desk,
  .n19-page {
    padding: 0.85rem 0 1.75rem;
  }

  .n19-desk-mast__title,
  .n19-page__title {
    font-size: 1.35rem;
  }

  .n19-desk-wire__lead {
    margin-bottom: 1.25rem;
  }

  .n19-category-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem 0.75rem;
    padding: 0.85rem 0;
  }

  .n19-category-story--with-media,
  .n19-category-story--undated.n19-category-story--with-media {
    grid-template-columns: minmax(0, 1fr) 4.75rem;
  }

  .n19-category-story__date {
    grid-column: 1 / -1;
    padding: 0;
    font-size: 0.68rem;
  }

  .n19-category-story__media {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.15rem;
  }

  .n19-category-story--undated .n19-category-story__media {
    grid-row: 1;
  }

  .n19-category-story__title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .n19-category-story__topic {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  .n19-category-story__summary {
    font-size: 0.8rem;
    margin-top: 0.35rem;
  }
}

/* —— Category button + drawer —— */
.n19-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(--n19-line);
  background: var(--n19-panel);
  color: var(--n19-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.n19-cat-btn i {
  color: var(--n19-accent);
}

.n19-cat-btn:hover {
  border-color: var(--n19-accent);
  color: var(--n19-deep);
}

.n19-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;
}

.n19-cat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.n19-cat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1201;
  width: min(100%, 20rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--n19-panel);
  border-left: 1px solid var(--n19-line);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

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

.n19-cat-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--n19-line);
}

.n19-cat-drawer__head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.n19-cat-drawer__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--n19-line);
  background: var(--n19-soft);
  color: var(--n19-ink);
  cursor: pointer;
}

.n19-cat-drawer__list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem 0.85rem 1.25rem;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.n19-cat-drawer__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--n19-line);
  color: var(--n19-ink);
  font-weight: 600;
}

.n19-cat-drawer__link:hover,
.n19-cat-drawer__link.is-active {
  color: var(--n19-deep);
  background: #fff2e0;
}

.n19-cat-drawer__link.is-active {
  border-left: 3px solid var(--n19-accent);
  padding-left: calc(0.75rem - 3px);
}

body.n19-cat-drawer-open {
  overflow: hidden;
}

.n19-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--n19-muted);
}

.n19-empty h2 {
  color: var(--n19-ink);
}

/* —— Motion —— */
[data-n19-tile].is-pending {
  opacity: 0;
  transform: translateY(12px);
}

[data-n19-tile].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.n19-lead.is-pending .n19-lead__title {
  opacity: 0;
  transform: translateY(8px);
}

.n19-lead.is-in .n19-lead__title {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-n19-tile].is-pending,
  [data-n19-tile].is-in,
  .n19-lead.is-pending .n19-lead__title,
  .n19-lead.is-in .n19-lead__title,
  .n19-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(--n19-panel);
  border-top: 1px solid var(--n19-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: 56px;
  min-height: 52px;
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--n19-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(--n19-accent);
}

@media (max-width: 899px) {
  .mobile-nav {
    display: block;
  }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(13, 13, 13, 0.92);
  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.45);
  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.45);
}

.search-submit {
  border: 0;
  background: transparent;
  color: #fff;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.2rem;
}

.n19-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(--n19-line) !important;
  border-radius: 0 !important;
  background: var(--n19-ink) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !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;
}

.n19-back-to-top.back-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.n19-back-to-top.back-to-top:not(.show) {
  transform: none !important;
}

.n19-back-to-top.back-to-top:hover {
  background: var(--n19-accent) !important;
  color: #000 !important;
  transform: none !important;
}

.n19-back-to-top.back-to-top:active {
  transform: none !important;
}

.n19-back-to-top.back-to-top::before {
  display: none !important;
  animation: none !important;
}

@media (min-width: 900px) {
  .n19-back-to-top.back-to-top {
    bottom: 1.5rem !important;
  }
}

body.cookie-banner-visible .n19-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 .n19-back-to-top.back-to-top {
    bottom: calc(1rem + var(--cookie-banner-h, 140px)) !important;
  }
}

/* —— Legal / static pages —— */
.n19-legal,
.legal-content {
  width: min(100% - 2rem, 42rem);
  margin: 2rem auto 3rem;
  line-height: 1.7;
}

.n19-legal h1,
.legal-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.n19-legal a,
.legal-content a {
  color: var(--n19-accent);
}

.detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  border: 1px solid var(--n19-line);
  background: transparent;
  color: var(--n19-ink);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
}

.detail-favorite-btn:hover {
  border-color: var(--n19-accent);
  color: var(--n19-accent);
}

.detail-favorite-btn__icon {
  width: 16px;
  height: 16px;
}

.detail-favorite-btn[aria-pressed="true"] {
  border-color: var(--n19-accent);
  color: var(--n19-accent);
}

/* content-link-marker */
.n19-article__body a {
  color: var(--n19-link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.n19-article__body a:hover {
  color: var(--n19-accent);
}

.n19-article__body a:focus-visible {
  outline: 2px solid var(--n19-accent);
  outline-offset: 3px;
}
/* /content-link-marker */

/* detail-content-images */
.n19-article__body figure,
.n19-article__body picture {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 1.5rem auto;
  margin-inline: auto !important;
  float: none !important;
  text-align: center;
}

.n19-article__body img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 1.5rem auto;
  margin-inline: auto !important;
  float: none !important;
  object-fit: contain;
}

.n19-article__body figure img,
.n19-article__body picture img {
  margin-top: 0;
  margin-bottom: 0;
}

.n19-article img.detail-img-broken {
  display: block !important;
  background: var(--n19-soft);
  aspect-ratio: var(--n19-image-ratio, 16 / 9) !important;
}

/* 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: fixed mast (not sticky).
 * iOS/Android visual-viewport chrome show/hide makes sticky recalculate and jitter.
 * Must come after base .n19-mast { position: sticky }.
 */
@media (max-width: 767px) {
  :root {
    --navbar-h: 52px;
  }

  .n19-mast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
  }

  .n19-mast.is-scrolled {
    box-shadow: none;
  }

  body.n19-body {
    padding-top: var(--navbar-h);
  }

  .n19-ad-slot {
    min-height: 52px;
    margin: 0.35rem 0;
  }

  body.n19-body > .n19-container:first-of-type > .n19-ad-slot:first-child {
    margin-top: 0.25rem;
  }

  .n19-article {
    padding: 0.35rem 0 1.75rem;
  }
}

