:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f7f8f4;
  --brand: #006b3f;
  --brand-dark: #004d2e;
  --green: #007a3d;
  --gold: #f6c316;
  --blue: #1d4ed8;
  --shadow: 0 14px 35px rgba(15, 23, 42, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(246, 195, 22, .08), transparent 240px),
    var(--soft);
  color: var(--ink);
  line-height: 1.5;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--ink);
  color: #fff;
}

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(0, 107, 63, .12);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  transition: box-shadow .18s ease, padding .18s ease;
}

.top-strip {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: .85rem;
  color: #475569;
}

.top-strip nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-strip a:hover,
.site-footer a:hover,
.category-nav a:hover {
  color: var(--green);
}

.brand-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px 4px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 430px);
  gap: 24px;
  align-items: center;
}

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

.brand img {
  width: min(245px, 52vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  transition: width .18s ease, max-height .18s ease;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(0, 107, 63, .18);
  background: #fff;
  min-height: 46px;
  border-radius: 999px;
  overflow: hidden;
  transition: opacity .18s ease, transform .18s ease;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 107, 63, .18);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.search-form input {
  border: 0;
  background: transparent;
  padding: 0 14px;
  min-width: 0;
}

.search-form input:focus {
  outline: 2px solid #fecaca;
  outline-offset: -2px;
}

.search-form button,
.button,
.page-button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 18px;
  min-height: 44px;
  font-weight: 700;
  border-radius: 999px;
}

.button.secondary,
.page-button.secondary {
  background: #e2e8f0;
  color: var(--ink);
}

.button.primary:hover,
.search-form button:hover,
.page-button:hover {
  background: var(--brand-dark);
}

.category-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  transition: padding .18s ease;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 8px 0;
  font-size: .92rem;
  font-weight: 700;
  background: transparent;
  color: #334155;
}

.site-header.is-compact {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 80;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.site-header.is-compact .top-strip {
  display: none;
}

.site-header.is-compact .header-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header.is-compact .brand-row {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 0 0 auto;
}

.site-header.is-compact .brand img {
  width: 116px;
  max-height: 38px;
}

.site-header.is-compact .search-form {
  display: none;
}

.site-header.is-compact .category-nav {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}

.site-header.is-compact .category-nav a {
  padding: 10px 0;
  font-size: .9rem;
}

.category-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.category-nav a:hover::after,
.category-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 54px;
}

.news-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 107, 63, .14);
  background: #fff;
  min-height: 46px;
  border-radius: 8px;
  overflow: hidden;
}

.news-ticker strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-size: .86rem;
}

.news-ticker div {
  display: flex;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 14px;
}

.news-ticker a {
  min-width: 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr);
  gap: 22px;
  margin-bottom: 34px;
}

.lead-card,
.article-card,
.side-panel,
.privacy-box,
.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.lead-card {
  display: grid;
  grid-template-rows: minmax(260px, 390px) auto;
}

.lead-card .cover,
.article-card .cover,
.article-cover {
  background: #e2e8f0;
  overflow: hidden;
}

.lead-card img,
.article-card img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-body {
  padding: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
}

.lead-card h1 {
  margin: 10px 0 10px;
  font-size: 2.35rem;
  line-height: 1.05;
}

.lead-card p,
.article-card p,
.page-lead p,
.privacy-box p {
  color: #475569;
}

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

.rail-list {
  display: grid;
  gap: 14px;
}

.rail-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  min-height: 92px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rail-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rail-item img {
  width: 116px;
  height: 86px;
  object-fit: cover;
  background: #e2e8f0;
}

.rail-item h3 {
  margin: 4px 0 6px;
  font-size: 1.03rem;
  line-height: 1.18;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 16px;
  border-bottom: 1px solid rgba(0, 107, 63, .20);
}

.section-title h2 {
  margin: 0;
  padding-bottom: 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 58px;
  height: 3px;
  background: var(--gold);
}

.section-title a {
  color: var(--brand);
  font-weight: 800;
  padding-bottom: 10px;
  font-size: .9rem;
}

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

.article-card {
  display: grid;
  grid-template-rows: 174px auto;
  min-width: 0;
}

.article-card.compact {
  grid-template-rows: 136px auto;
}

.article-card-body {
  padding: 15px;
}

.article-card h3 {
  margin: 8px 0 8px;
  font-size: 1.14rem;
  line-height: 1.2;
}

.article-card p {
  margin: 0 0 12px;
}

.category-block {
  margin-top: 34px;
}

.side-panel {
  padding: 18px;
  margin-bottom: 22px;
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 14px;
}

.rank-list {
  counter-reset: rank;
  display: grid;
  gap: 13px;
}

.rank-list a {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.rank-list a::before {
  content: counter(rank);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.rank-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-lead {
  margin-bottom: 24px;
}

.page-lead h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.article-page {
  max-width: 850px;
  margin: 0 auto;
}

.article-page h1 {
  font-size: 2.65rem;
  line-height: 1.05;
  margin: 10px 0 12px;
}

.article-summary {
  font-size: 1.18rem;
  color: #475569;
  margin: 0 0 16px;
}

.article-cover {
  margin: 24px 0 10px;
  aspect-ratio: 16 / 9;
}

.caption {
  color: var(--muted);
  font-size: .86rem;
}

.article-content {
  margin-top: 24px;
  font-size: 1.08rem;
}

.article-content::after {
  content: "";
  display: block;
  clear: both;
}

.article-content p,
.article-content > div {
  margin: 0 0 1.18em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.45em 0 .6em;
  line-height: 1.2;
}

.article-content h2 {
  font-size: 1.65rem;
}

.article-content h3 {
  font-size: 1.35rem;
}

.article-content h4 {
  font-size: 1.16rem;
}

.article-content blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  background: #fff;
  color: #334155;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.18em;
  padding-left: 24px;
}

.article-content a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
}

.article-content figure.article-image {
  margin: 24px auto;
  max-width: 100%;
}

.article-content figure.article-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.article-content figure.article-image figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.article-content figure.article-image.align-left {
  float: left;
  margin: 6px 22px 16px 0;
}

.article-content figure.article-image.align-right {
  float: right;
  margin: 6px 0 16px 22px;
}

.article-content figure.article-image.align-center {
  margin-left: auto;
  margin-right: auto;
}

.article-content figure.article-image.align-full {
  clear: both;
  width: 100%;
}

.article-content figure.article-image.size-small {
  max-width: 320px;
}

.article-content figure.article-image.size-medium {
  max-width: 540px;
}

.article-content figure.article-image.size-large {
  max-width: 760px;
}

.article-content figure.article-image.size-full {
  max-width: 100%;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.article-tags a {
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: #475569;
  background: #fff;
  border-radius: 999px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.share-row a,
.share-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  border-radius: 999px;
}

.ad-slot {
  margin: 24px 0;
  border: 1px solid rgba(0, 107, 63, .16);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.ad-slot.wide {
  min-height: 112px;
}

.ad-slot.feed,
.ad-slot.inline {
  min-height: 96px;
}

.ad-slot.sidebar {
  margin-top: 0;
  min-height: 250px;
}

.ad-creative {
  display: block;
  color: inherit;
  height: 100%;
}

.ad-label {
  display: block;
  padding: 7px 10px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ad-media {
  display: grid;
  place-items: center;
  background: #f8fafc;
  overflow: hidden;
  min-height: 0;
}

.ad-slot.wide .ad-media {
  height: clamp(86px, 10vw, 140px);
}

.ad-slot.feed .ad-media,
.ad-slot.inline .ad-media {
  height: clamp(78px, 12vw, 120px);
}

.ad-slot.sidebar .ad-media {
  height: 250px;
}

.ad-media img,
.ad-media video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.ad-cta {
  display: inline-flex;
  margin: 10px;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.ad-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 22px;
  text-align: center;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(0, 107, 63, .08), rgba(246, 195, 22, .14)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(15, 23, 42, .035) 12px 13px);
}

.ad-placeholder strong {
  color: var(--ink);
}

.privacy-box {
  padding: 24px;
  margin-bottom: 20px;
}

.privacy-box h2 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #475569;
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #003f27;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.site-footer p {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 20px;
  right: 20px;
  bottom: 18px;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  padding: 18px;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: #475569;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .brand-row,
  .layout-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    position: static;
  }
}

@media (max-width: 680px) {
  .top-strip,
  .brand-row,
  .site-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-strip {
    min-height: 28px;
    align-items: center;
    flex-direction: row;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 10px;
  }

  .top-strip nav {
    gap: 10px;
  }

  .brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 8px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand img {
    width: min(215px, 66vw);
    max-height: 62px;
  }

  .brand strong {
    font-size: 1.55rem;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 40px;
  }

  .search-form button {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .category-nav {
    display: none;
    margin: 0 14px 10px;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(0, 107, 63, .12);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    overflow: visible;
  }

  .site-header.menu-open .category-nav {
    display: grid;
  }

  .category-nav a {
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    white-space: nowrap;
  }

  .category-nav a::after {
    display: none;
  }

  .site-header.is-compact .header-main {
    display: block;
    padding: 6px 12px 0;
  }

  .site-header.is-compact .brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
    gap: 10px;
    width: 100%;
  }

  .site-header.is-compact .brand img {
    width: 112px;
    max-height: 38px;
  }

  .site-header.is-compact .category-nav {
    margin: 6px 0 8px;
    gap: 0 18px;
  }

  .site-header.is-compact .category-nav a {
    font-size: .9rem;
    padding: 10px 0;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .news-ticker {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 42px;
    padding: 5px 6px;
    border-radius: 999px;
  }

  .news-ticker strong {
    align-self: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: .78rem;
  }

  .news-ticker div {
    min-width: 0;
    padding-right: 6px;
  }

  .news-ticker a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ad-slot.wide .ad-media {
    height: 76px;
  }

  .ad-slot.feed .ad-media,
  .ad-slot.inline .ad-media {
    height: 72px;
  }

  .ad-slot.sidebar .ad-media {
    height: 180px;
  }

  .ad-slot.sidebar {
    min-height: 210px;
  }

  .lead-card {
    grid-template-rows: 228px auto;
  }

  .lead-card h1,
  .article-page h1 {
    font-size: 1.85rem;
  }

  .article-content figure.article-image.align-left,
  .article-content figure.article-image.align-right {
    float: none;
    margin: 20px auto;
  }

  .article-content figure.article-image.size-small,
  .article-content figure.article-image.size-medium,
  .article-content figure.article-image.size-large {
    max-width: 100%;
  }

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

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

  .rail-item img {
    width: 96px;
    height: 76px;
  }

  .article-card {
    grid-template-rows: 190px auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    width: 100%;
  }
}
