:root {
  --paper: #fff;
  --paper-warm: #f7f6f3;
  --paper-muted: #efeee9;
  --ink: #151515;
  --ink-soft: #5e5e5a;
  --line: #d8d7d2;
  --line-dark: #252525;
  --accent: #b22222;
  --accent-dark: #861818;
  --orange: #f15a24;
  --green: #28763b;
  --blue: #315fa8;
  --serif-ne: "Noto Serif Devanagari", Georgia, serif;
  --sans-ne: "Noto Sans Devanagari", Inter, Arial, sans-serif;
  --sans-en: Inter, "Helvetica Neue", Arial, sans-serif;
  --serif-en: "Source Serif 4", Georgia, serif;
  --label-font: Inter, "Noto Sans Devanagari", Arial, sans-serif;
  --mono: var(--label-font);
  --wrap: min(1240px, calc(100% - 48px));
  --section-space: clamp(56px, 7vw, 96px);
  --radius: 16px;
  --shadow: 0 16px 48px rgba(20, 20, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 205px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-ne);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans-ne);
}

html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea {
  font-family: var(--sans-en);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-family: var(--serif-ne);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  font-family: var(--serif-en);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

html[lang="ne"] h1,
html[lang="ne"] h2,
html[lang="ne"] h3,
html[lang="ne"] strong,
html[lang="ne"] b {
  letter-spacing: 0;
}

html[lang="ne"] h1,
html[lang="ne"] h2 {
  line-height: 1.3;
}

html[lang="ne"] h3 {
  line-height: 1.4;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

/* The shared shell replaces these legacy nodes after startup. Keeping them
   hidden prevents an unstyled duplicate masthead from flashing first. */
.news-ticker,
.news-masthead,
.mobile-drawer,
.mobile-drawer-overlay,
.film-hero,
body > .footer {
  display: none;
}

main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

section[hidden],
.ad-mount[hidden] {
  display: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
}

.eyebrow,
.card-meta,
.meta,
.section-rule,
.card-open,
.lead-byline,
.story-card small,
.category-page-card > p,
.category-page-card > small,
.district-card small,
.timeline-card > div,
.public-ad small {
  font-family: var(--label-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow,
.card-meta,
.meta span,
.category-page-card > p,
.card-open {
  color: var(--accent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.section-heading .eyebrow,
.history-intro .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2,
.history-intro h2,
.nature h2,
.about h2 {
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading > p,
.history-intro > p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.section-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.media-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(178, 34, 34, 0.08), rgba(21, 21, 21, 0.03)),
    var(--paper-muted);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.media-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.media-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-link,
.card-open {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.text-link:hover,
.card-open:hover {
  color: var(--accent);
}

/* Advertising */
.ad-mount {
  margin-top: 28px;
  margin-bottom: 28px;
}

.ad-mount[data-ad-placement="header"] {
  order: 0;
}

.ad-mount[data-ad-placement="after-lead"] {
  order: 1;
}

.ad-mount[data-ad-placement="before-districts"] {
  order: 4;
}

.public-ad {
  position: relative;
  display: grid;
  min-height: 120px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ad-color, #f4f2ed) 35%, #fff);
}

.public-ad:before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent);
}

.public-ad-copy {
  position: relative;
  z-index: 1;
}

.public-ad small {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
}

.public-ad strong {
  display: block;
  font-family: var(--serif-ne);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.public-ad p {
  max-width: 750px;
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.public-ad > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.public-ad-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.12;
}

.public-ad.ad-format-card {
  min-height: 260px;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
}

.public-ad.ad-format-card .public-ad-image {
  opacity: 0.28;
}

.public-ad.ad-format-card .public-ad-copy,
.public-ad.ad-format-card > a {
  width: fit-content;
}

.public-ad.ad-format-compact {
  min-height: 82px;
  padding-block: 16px;
}

.public-ad.ad-format-compact p {
  display: none;
}

/* Quick editorial entry points */
.front-pulse {
  display: grid;
  order: 0;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
}

.front-pulse > a {
  display: grid;
  min-width: 0;
  min-height: 128px;
  align-content: center;
  gap: 4px;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.front-pulse > a:last-child {
  border-right: 0;
}

.front-pulse small {
  color: var(--accent);
  font: 700 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.front-pulse strong {
  font-family: var(--serif-ne);
  font-size: 1.3rem;
  line-height: 1.45;
}

.front-pulse span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.front-pulse a:hover {
  background: var(--paper-warm);
}

/* Lead package */
.lead-story {
  padding-top: var(--section-space);
  padding-bottom: 22px;
}

.front-lead-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.7fr) minmax(225px, 0.65fr);
  gap: 0;
  border-bottom: 1px solid var(--line-dark);
}

.front-lead-copy {
  min-width: 0;
  padding: 6px 28px 28px 0;
}

.front-lead-copy .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--ink-soft);
}

.front-lead-copy h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.2vw, 4.8rem);
}

.front-lead-copy > p:not(.meta, .lead-byline) {
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-family: var(--serif-ne);
  font-size: 1.05rem;
  line-height: 1.65;
}

.front-lead-copy .lead-byline {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.front-lead-media {
  min-width: 0;
  padding: 0 24px 28px;
  border-inline: 1px solid var(--line);
}

.lead-image {
  min-height: 500px;
  height: 100%;
  border-radius: 8px;
}

.front-support {
  min-width: 0;
}

.front-support > a {
  display: block;
}

.front-support-visual {
  padding: 0 0 28px 24px;
}

.front-support-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 8px;
}

.front-support .card-meta {
  margin-bottom: 9px;
}

.front-support h3 {
  margin-bottom: 11px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.front-support p:not(.card-meta) {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.front-support small {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.front-brief-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line-dark);
}

.front-brief-row .front-support {
  padding: 24px 30px 26px 0;
}

.front-brief-row .front-support + .front-support {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.front-brief-row .front-support p:not(.card-meta) {
  display: none;
}

/* Latest newsroom */
.latest {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.story-filters,
.district-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.story-filters::-webkit-scrollbar,
.district-filters::-webkit-scrollbar {
  display: none;
}

.story-filters a,
.story-filters button,
.district-filters button {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
}

.story-filters .active,
.district-filters .active,
.story-filters a:hover,
.district-filters button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.story-card {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.front-lead-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.story-save-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 0.72rem/1 var(--sans);
  cursor: pointer;
}

.story-save-button .tot-icon {
  width: 18px;
  height: 18px;
}

.story-save-button.is-compact {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  padding: 0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.story-save-button:hover,
.story-save-button.is-saved {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.front-support {
  position: relative;
}

.story-card:nth-child(3n) {
  border-right: 0;
}

.story-card:first-child {
  grid-column: span 8;
  padding-left: 0;
}

.story-card:nth-child(2) {
  grid-column: span 4;
  padding-right: 0;
  border-right: 0;
}

.story-card:first-child .story-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
  gap: 24px;
}

.story-card-link {
  height: 100%;
}

.story-image {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 8px;
}

.story-card:first-child .story-image {
  min-height: 380px;
  height: 100%;
  margin-bottom: 0;
}

.card-copy {
  min-width: 0;
}

.card-copy .card-meta {
  margin-bottom: 9px;
}

.card-copy h3 {
  margin-bottom: 11px;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.story-card:first-child h3 {
  font-size: clamp(2rem, 3.3vw, 3.3rem);
}

.card-copy > p:not(.card-meta, .card-taxonomy) {
  margin-bottom: 15px;
  color: var(--ink-soft);
}

.card-copy small {
  color: var(--ink-soft);
}

.card-taxonomy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font: 500 0.7rem/1.5 var(--mono);
}

.story-card:hover h3 {
  color: var(--accent);
}

/* Services: useful and compact, not another oversized story grid */
.service-hub {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.service-grid > a {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 4px 16px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.service-grid > a:last-child {
  border-right: 0;
}

.service-grid b {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--ink-soft);
  font: 600 0.76rem/1 var(--label-font);
}

.service-grid span {
  grid-column: 2;
  font-family: var(--serif-ne);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.service-grid small {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f5eaea;
  color: var(--accent);
}

.service-icon .tot-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

html[lang="en"] .service-grid span {
  font-family: var(--serif-en);
}

.service-grid a:hover {
  background: var(--ink);
  color: #fff;
}

.service-grid a:hover small {
  color: #ccc;
}

.service-grid a:hover .service-icon {
  background: #fff;
  color: var(--accent);
}

/* Places */
.places {
  background: var(--paper-warm);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.place-card {
  display: flex;
  min-width: 0;
  grid-column: span 4;
  flex-direction: column;
  padding: 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.place-card:first-child {
  grid-column: span 6;
}

.place-card:nth-child(2) {
  grid-column: span 6;
}

.place-card:nth-child(n + 3) {
  grid-column: span 6;
}

.place-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 9px;
}

.place-card .eyebrow {
  margin: 0 6px 7px;
}

.place-card h3 {
  margin: 0 6px 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
}

.place-card > p:not(.eyebrow) {
  margin: 0 6px 15px;
  color: var(--ink-soft);
}

.place-card .card-open {
  margin: auto 6px 0;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* District directory */
.districts {
  background: var(--paper);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.districts .section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
}

.national-directory-link {
  grid-column: 1 / -1;
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line);
}

.district-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.district-card > span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--ink-soft);
  font: 500 0.7rem/1 var(--mono);
}

.district-card .eyebrow {
  max-width: calc(100% - 50px);
  margin-bottom: 9px;
}

.district-card h3 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.district-card > p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.district-card small {
  margin-top: auto;
  color: var(--ink);
}

.district-card:hover {
  z-index: 1;
  background: var(--ink);
  color: #fff;
}

.district-card:hover p,
.district-card:hover span,
.district-card:hover small {
  color: #d9d9d6;
}

.district-news-directory {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.district-news-directory::-webkit-scrollbar {
  display: none;
}

.district-news-directory strong,
.district-news-directory a {
  flex: 0 0 auto;
}

.district-news-directory strong {
  margin-right: 8px;
  color: var(--accent);
  font-size: 0.8rem;
}

.district-news-directory a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
}

/* News desks */
.category-page-hub {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.category-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-page-card {
  display: flex;
  min-width: 0;
  min-height: 248px;
  flex-direction: column;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-page-card:nth-child(4n) {
  border-right: 1px solid var(--line);
}

.category-page-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font: 600 0.72rem/1.3 var(--label-font);
  text-transform: uppercase;
}

.category-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f5eaea;
  color: var(--accent);
}

.category-card-icon .tot-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.category-page-card > p {
  margin-bottom: 8px;
}

.category-page-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.category-page-card > strong {
  color: var(--ink-soft);
  font-family: var(--sans-ne);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.65;
}

html[lang="en"] .category-page-card > strong {
  font-family: var(--sans-en);
}

.category-page-card > small {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
}

.category-page-card > small i {
  font-size: 1.2rem;
  font-style: normal;
}

.category-page-card:hover {
  transform: translateY(-2px);
  border-color: #b9b8b2;
  background: #fff;
  box-shadow: var(--shadow);
}

/* History */
.history {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.history-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.history-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -25px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line);
}

.timeline-card {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-card > div {
  display: flex;
  min-height: 52px;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}

.timeline-card > div b {
  color: var(--ink-soft);
  font-family: var(--serif-en);
  font-size: 2.5rem;
  font-weight: 500;
}

.timeline-card > div span {
  max-width: 120px;
  color: var(--ink-soft);
  text-align: right;
}

.timeline-card .eyebrow {
  margin-bottom: 8px;
}

.timeline-card h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.timeline-card > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Nature and media */
.nature {
  background: var(--paper-warm);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.nature > .wrap > .eyebrow {
  margin-bottom: 8px;
}

.nature > .wrap > h2 {
  margin-bottom: 30px;
}

.nature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nature-image {
  aspect-ratio: 4 / 3;
}

.nature-copy {
  padding: 22px;
}

.nature-copy .eyebrow {
  margin-bottom: 7px;
}

.nature-copy h3 {
  margin-bottom: 9px;
  font-size: 1.65rem;
}

.nature-copy > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.watch {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  order: 9;
  width: var(--wrap);
  min-height: 360px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.watch > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.watch h2 {
  margin-bottom: 13px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.watch p {
  color: #bdbdb9;
}

.watch a {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid #555;
  border-radius: 8px;
}

.watch-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-left: 1px solid #494949;
}

.watch-frame:before,
.watch-frame:after {
  position: absolute;
  content: "";
  border: 1px solid #555;
  border-radius: 50%;
}

.watch-frame:before {
  width: 520px;
  height: 520px;
  top: -80px;
  left: 15%;
}

.watch-frame:after {
  width: 310px;
  height: 310px;
  right: -80px;
  bottom: -120px;
}

.watch-frame span {
  position: absolute;
  top: 30px;
  left: 30px;
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.watch-frame strong {
  position: absolute;
  left: 30px;
  bottom: 24px;
  font-family: var(--serif-en);
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line-dark);
}

.about .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.about > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.social-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
}

.empty-message {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
}

@media (max-width: 1080px) {
  :root {
    --wrap: min(100% - 36px, 980px);
  }

  .front-lead-grid {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.35fr);
  }

  .front-support-visual {
    grid-column: 1 / -1;
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }

  .front-support-visual > a {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .front-support-visual .front-support-image {
    margin-bottom: 0;
  }

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

  .category-page-card:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .category-page-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  :root {
    --wrap: calc(100% - 28px);
    --section-space: 50px;
  }

  html {
    scroll-padding-top: 155px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .section-heading,
  .history-intro,
  .about {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading h2,
  .history-intro h2,
  .nature h2,
  .about h2 {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .section-heading > p,
  .history-intro > p:last-child {
    font-size: 0.92rem;
  }

  .front-pulse {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .front-pulse > a {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .front-pulse > a:last-child {
    border-bottom: 0;
  }

  .front-lead-grid {
    display: flex;
    flex-direction: column;
  }

  .front-lead-media {
    order: -1;
    padding: 0 0 20px;
    border: 0;
  }

  .lead-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .front-lead-copy {
    padding: 0 0 26px;
  }

  .front-lead-copy h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 4rem);
  }

  .front-support-visual {
    padding: 22px 0;
  }

  .front-support-visual > a {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 15px;
  }

  .front-support-visual p:not(.card-meta) {
    display: none;
  }

  .front-brief-row {
    grid-template-columns: 1fr;
  }

  .front-brief-row .front-support,
  .front-brief-row .front-support + .front-support {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-grid {
    display: block;
  }

  .story-card,
  .story-card:first-child,
  .story-card:nth-child(2) {
    padding: 20px 0;
    border-right: 0;
  }

  .story-card:first-child .story-card-link {
    grid-template-columns: 1fr;
  }

  .story-card:first-child .story-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
  }

  .story-card:not(:first-child) .story-card-link {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 15px;
  }

  .story-card:not(:first-child) .story-image {
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
  }

  .story-card:not(:first-child) .card-copy > p:not(.card-meta, .card-taxonomy),
  .story-card:not(:first-child) .card-taxonomy {
    display: none;
  }

  .story-card:not(:first-child) h3 {
    font-size: 1.2rem;
  }

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

  .service-grid > a {
    min-height: 150px;
    border-bottom: 1px solid var(--line);
  }

  .service-grid > a:nth-child(2) {
    border-right: 0;
  }

  .place-grid,
  .nature-grid {
    grid-template-columns: 1fr;
  }

  .place-card,
  .place-card:first-child,
  .place-card:nth-child(2),
  .place-card:nth-child(n + 3) {
    grid-column: auto;
  }

  .district-grid,
  .category-page-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-page-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .category-page-card:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .watch {
    width: var(--wrap);
    grid-template-columns: 1fr;
  }

  .watch-frame {
    min-height: 260px;
    border-top: 1px solid #494949;
    border-left: 0;
  }

  .about .eyebrow {
    margin-bottom: 0;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 85;
    right: 10px;
    bottom: 8px;
    left: 10px;
    display: grid;
    min-height: 64px;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 4px 5px calc(4px + env(safe-area-inset-bottom));
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav > a {
    display: flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-radius: 16px;
    color: var(--ink-soft);
  }

  .mobile-bottom-nav .tot-icon {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-nav b {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.64rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav [aria-current="page"],
  .mobile-bottom-nav a:hover {
    color: var(--accent);
  }

  .mobile-home-button {
    color: #fff !important;
    background: var(--accent);
  }
}

@media (max-width: 520px) {
  :root {
    --wrap: calc(100% - 24px);
  }

  .public-ad {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 21px;
  }

  .public-ad > a {
    width: max-content;
  }

  .front-pulse {
    display: none;
  }

  .lead-story {
    padding-top: 30px;
  }

  .front-lead-copy > p:not(.meta, .lead-byline) {
    font-size: 1rem;
  }

  .story-card:not(:first-child) .story-card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid > a {
    min-height: 140px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 18px;
  }

  .service-grid span {
    font-size: 1.05rem;
  }

  .service-grid b {
    top: 14px;
    right: 14px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .service-icon .tot-icon {
    width: 21px;
    height: 21px;
  }

  .district-grid,
  .category-page-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .district-card {
    min-height: 190px;
  }

  .category-page-card,
  .category-page-card:nth-child(n) {
    min-height: 220px;
    border-right: 1px solid var(--line);
    padding: 20px;
  }

  .timeline-card {
    padding: 22px 18px;
  }

  .place-card {
    padding: 9px 9px 18px;
  }

  .watch > div:first-child {
    padding: 28px 22px;
  }

  .watch-frame {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .place-card,
  .district-card,
  .category-page-card,
  .story-card h3,
  .service-grid a {
    transition:
      color 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      transform 220ms ease,
      box-shadow 220ms ease;
  }
}

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

/* The homepage is an editorial front page, not a full directory.
   District and desk archives now live on dedicated dynamic pages. */
.home-page .districts,
.home-page .category-page-hub,
.home-page .ad-mount[data-ad-placement="before-districts"] {
  display: none !important;
}
