:root {
  --pine: #00261e;
  --forest: #133c33;
  --teal: #006a60;
  --mist: #f9f7f2;
  --sand: #ebe4d8;
  --stone: #c8c0b2;
  --orange: #f26a2e;
  --ink: #1d2624;
  --muted: #61706c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 38, 30, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body.trail-site {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(0, 106, 96, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f5ef 0%, #f9f7f2 45%, #efe6d8 100%);
  line-height: 1.65;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-ribbon {
  background: linear-gradient(90deg, var(--pine), #10352e 70%);
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-ribbon__inner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
}

.top-ribbon__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-ribbon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.top-ribbon__links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.trail-header__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(249, 247, 242, 0.92);
  border-bottom: 1px solid rgba(19, 60, 51, 0.08);
}

.trail-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.trail-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--pine);
  min-width: 0;
}

.trail-brand__crest {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Newsreader", serif;
  font-size: 1.25rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--forest));
  box-shadow: 0 14px 30px rgba(0, 38, 30, 0.22);
}

.trail-brand__copy {
  display: flex;
  flex-direction: column;
}

.trail-brand__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.trail-brand__name {
  font-family: "Newsreader", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.trail-nav {
  flex: 1;
}

.trail-nav__list,
.mobile-nav-list,
.mobile-nav-links,
.trail-list,
.site-footer__links,
.breadcrumbs-list,
.content-list,
.toc-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trail-nav__list {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.trail-nav__list a,
.trail-header__utility,
.trail-header__cta,
.section-heading__link,
.story-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trail-nav__list a {
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.trail-nav__list a:hover {
  border-color: rgba(0, 106, 96, 0.24);
}

.trail-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.trail-header__utility {
  color: var(--forest);
}

.trail-header__cta,
.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #dd5821);
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 26px rgba(242, 106, 46, 0.24);
}

.trail-header__cta:hover,
.button--primary:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
  margin-left: auto;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav-list li + li,
.mobile-nav-links a + a,
.trail-list li + li,
.site-footer__links li + li {
  margin-top: 10px;
}

.mobile-nav-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(19, 60, 51, 0.1);
  display: grid;
}

.hero {
  padding: 34px 0 10px;
}

.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero__media {
  min-height: 480px;
}

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

.hero__content {
  padding: 56px 48px;
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(0, 38, 30, 0.96), rgba(19, 60, 51, 0.86)),
    radial-gradient(circle at top, rgba(0, 106, 96, 0.24), transparent 34%);
}

.hero__eyebrow,
.section-kicker,
.section-heading__eyebrow,
.trail-panel__eyebrow,
.site-footer__eyebrow,
.story-card__kicker {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero__title,
.page-intro__title,
.article-title,
.site-footer__mark,
.trail-panel__title,
.section-heading h2,
.story-card__title,
.content-heading,
.article-links__item,
.toc-box__title {
  font-family: "Newsreader", serif;
}

.hero__title,
.page-intro__title,
.article-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__copy,
.page-intro__copy,
.article-deck,
.article-summary,
.trail-panel__copy,
.story-card__excerpt,
.site-footer__copy,
.hero-copy p {
  color: var(--muted);
}

.hero__copy {
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions,
.button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button--ghost {
  color: var(--white);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button--ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section-block,
.listing-shell,
.content-shell,
.legal-shell,
.article-layout,
.article-hero {
  padding: 48px 0 72px;
}

.home-layout,
.editorial-layout,
.detail-hero__grid,
.article-layout__grid {
  display: grid;
  gap: 28px;
}

.home-layout,
.editorial-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  color: var(--pine);
}

.story-grid,
.category-grid,
.article-links__grid {
  display: grid;
  gap: 22px;
}

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

.story-card,
.trail-panel,
.legal-card,
.article-layout__content,
.toc-box,
.content-block--table,
.embed-frame,
.quote-block,
.teaser-card {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 60, 51, 0.08);
  box-shadow: 0 18px 40px rgba(0, 38, 30, 0.06);
}

.story-card {
  overflow: hidden;
}

.story-card--wide {
  grid-column: 1 / -1;
}

.story-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover .story-card__image img {
  transform: scale(1.05);
}

.story-card__body {
  padding: 20px 20px 22px;
}

.story-card__title,
.story-card__title a {
  margin: 0;
  color: var(--pine);
  font-size: 1.65rem;
  line-height: 1.05;
}

.story-card__title a:hover {
  color: var(--orange);
}

.story-card__excerpt {
  margin: 12px 0 18px;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.image-band img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.archive-sidebar,
.home-aside {
  display: grid;
  gap: 18px;
}

.trail-panel {
  padding: 22px;
}

.trail-panel--dark {
  background: linear-gradient(180deg, var(--forest), var(--pine));
  color: var(--white);
}

.trail-panel__title {
  margin: 0 0 10px;
  font-size: 1.7rem;
  color: inherit;
}

.trail-list li + li {
  border-top: 1px solid rgba(19, 60, 51, 0.08);
  padding-top: 10px;
}

.trail-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  font-weight: 600;
}

.trail-panel--dark .trail-list li + li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.page-intro {
  padding: 36px 0 10px;
}

.page-intro__title {
  color: var(--pine);
}

.page-intro__copy,
.article-deck,
.article-summary {
  max-width: 760px;
}

.breadcrumbs-wrap {
  padding-top: 18px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs-list li:not(:last-child)::after {
  content: "/";
  color: rgba(97, 112, 108, 0.6);
}

.detail-hero__grid,
.article-layout__grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.detail-hero__copy,
.article-layout__content,
.legal-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 60, 51, 0.08);
  box-shadow: var(--shadow);
}

.detail-hero__figure,
.article-main-image,
.media-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #d8ddd9;
}

.detail-hero__figure img,
.article-main-image img,
.media-frame img {
  width: 100%;
  height: auto;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-stack--compact {
  margin-top: 22px;
}

.content-heading {
  margin: 0;
  color: var(--pine);
  font-size: 2rem;
  line-height: 1.08;
}

.content-heading--level-3 {
  font-size: 1.55rem;
}

.content-block--paragraph p,
.content-block--fallback,
.quote-block p,
.teaser-card p,
.content-list li,
.dense-table td,
.dense-table th {
  margin: 0;
  color: var(--ink);
}

.content-list {
  display: grid;
  gap: 10px;
}

.content-list li {
  padding-left: 20px;
  position: relative;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.content-block--image figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-panel,
.embed-frame,
.quote-block,
.teaser-card,
.toc-box {
  padding: 20px;
}

.table-scroll {
  overflow-x: auto;
}

.dense-table {
  width: 100%;
  border-collapse: collapse;
}

.dense-table th,
.dense-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(19, 60, 51, 0.08);
  text-align: left;
}

.quote-block {
  border-left: 4px solid var(--orange);
}

.quote-block footer {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.code-block {
  padding: 20px;
  overflow-x: auto;
  background: #0d1d19;
  color: #eaf1ee;
  border-radius: 18px;
}

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

.gallery-card__body {
  padding: 12px 4px 0;
}

.gallery-card__body h3,
.teaser-card__title {
  margin: 0;
  color: var(--pine);
  font-family: "Newsreader", serif;
  font-size: 1.35rem;
}

.content-separator {
  border: 0;
  border-top: 1px solid rgba(19, 60, 51, 0.1);
}

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

.article-links__item {
  display: block;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(0, 106, 96, 0.06);
  color: var(--pine);
  font-size: 1.3rem;
  border: 1px solid rgba(0, 106, 96, 0.08);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc-box__title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--pine);
}

.toc-box ul {
  display: grid;
  gap: 10px;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, #0d2e26, #001c16 80%),
    radial-gradient(circle at top, rgba(242, 106, 46, 0.16), transparent 28%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.site-footer__mark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 2rem;
}

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

.site-footer__columns h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 1080px) {
  .trail-nav,
  .trail-header__actions {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero__shell,
  .home-layout,
  .editorial-layout,
  .detail-hero__grid,
  .article-layout__grid,
  .site-footer__grid,
  .site-footer__columns {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 36px 28px;
  }
}

@media (max-width: 820px) {
  .top-ribbon__inner,
  .section-heading,
  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-grid,
  .story-grid--home,
  .gallery-grid,
  .category-grid,
  .article-links__grid,
  .image-band {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero__media {
    min-height: 300px;
  }
}
