:root {
  color-scheme: light;
  --ink: #182322;
  --muted: #60706e;
  --line: #dbe4e1;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --teal: #0b7a75;
  --teal-dark: #095e5a;
  --red: #cf3f3f;
  --amber: #f0aa31;
  --blue: #2470b8;
  --green: #2f8d58;
  --shadow: 0 14px 34px rgba(20, 44, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f6f8f7;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  background: #0f2927;
  color: #dcece9;
  font-size: 13px;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.topbar a {
  color: #dcece9;
}

.topbar-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.masthead {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(11, 122, 117, 0.24);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.search {
  display: flex;
  width: min(480px, 100%);
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  overflow: hidden;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0 14px;
  min-width: 0;
  outline: none;
}

.search button,
.wide-button,
.article-action {
  border: 0;
  background: var(--teal);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
}

.search button:hover,
.wide-button:hover,
.article-action:hover {
  background: var(--teal-dark);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.nav-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.nav-pill {
  border: 1px solid transparent;
  background: transparent;
  min-height: 38px;
  padding: 0 14px;
  color: #304441;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-pill.is-active,
.nav-pill:hover {
  background: #e7f3f1;
  border-color: #b8d8d4;
  color: var(--teal-dark);
}

.news-strip {
  background: #fff7e5;
  border-bottom: 1px solid #f2d59b;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.strip-inner strong {
  color: #7b4b05;
  flex: 0 0 auto;
}

.ticker {
  color: #593b0d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 28px 0 18px;
}

.lead-story,
.headline-stack,
.rail-section,
.article-card,
.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 390px;
  overflow: hidden;
}

.lead-media {
  position: relative;
  min-height: 320px;
  background: #dce8e5;
}

.lead-media img,
.card-media img,
.article-hero img,
.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  background: #e7f3f1;
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.lead-copy h1 {
  margin: 14px 0 12px;
  font-size: 34px;
  line-height: 1.14;
}

.lead-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 22px;
  border-radius: 8px;
}

.headline-stack {
  padding: 18px;
  min-height: 390px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.section-title.compact h2 {
  font-size: 18px;
}

.side-headlines {
  display: grid;
  gap: 12px;
}

.mini-story {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mini-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-thumb {
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.mini-story h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 10px 0 40px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-card {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 178px;
  overflow: hidden;
}

.card-media {
  min-height: 178px;
  background: #e4ecea;
}

.card-copy {
  padding: 18px;
}

.card-copy h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.card-copy p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.55;
}

.rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.rail-section {
  padding: 18px;
}

.service-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.service-link:last-child {
  border-bottom: 0;
}

.service-link span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe7ad;
  color: #7b4b05;
  font-weight: 800;
}

.service-link strong {
  line-height: 1.35;
}

.metric-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.metric-box span {
  color: var(--muted);
}

.wide-button {
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

.wide-button.secondary {
  background: #263b3a;
}

.wide-button.secondary:hover {
  background: #152625;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--line);
  background: var(--soft);
  color: #314744;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
}

.article-view {
  padding: 28px 0 46px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.article-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.article-hero {
  aspect-ratio: 16 / 9;
  background: #dde9e7;
}

.article-body {
  padding: 26px;
}

.article-body h1 {
  font-size: 36px;
  line-height: 1.14;
  margin: 14px 0;
}

.article-body p {
  font-size: 17px;
  line-height: 1.78;
  color: #2b3937;
}

.article-body ul {
  line-height: 1.7;
  padding-left: 20px;
}

.back-button {
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 700;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-card {
  padding: 14px;
}

.related-card h3 {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.site-footer {
  background: #102927;
  color: #dcece9;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 24px;
}

.site-footer p {
  color: #b9cfcb;
  line-height: 1.6;
}

.site-footer a {
  display: block;
  color: #dcece9;
  margin-top: 10px;
}

.is-hidden {
  display: none !important;
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffe7ad;
  color: #593b0d;
  border: 1px solid #f2d59b;
  border-radius: 8px;
  padding: 12px;
  z-index: 50;
}

@media (max-width: 940px) {
  .masthead {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 0;
  }

  .brand {
    min-width: 0;
  }

  .search {
    width: 100%;
  }

  .lead-grid,
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
    gap: 4px;
  }

  .ticker {
    white-space: normal;
  }

  .lead-copy {
    padding: 20px;
  }

  .lead-copy h1,
  .article-body h1 {
    font-size: 28px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 16 / 9;
  }

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

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