﻿:root {
  --bg: #f5efe3;
  --paper: #fffdf8;
  --ink: #1f2a2a;
  --muted: #5f6e67;
  --line: #d8cebf;
  --accent: #0c6c61;
  --accent-dark: #0a4f47;
  --sun: #d6a24a;
  --shadow: 0 18px 50px rgba(31, 42, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 162, 74, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f1e7 0%, #f2eadc 100%);
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 231, 0.82);
  border-bottom: 1px solid rgba(216, 206, 191, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: grid;
  gap: 0.15rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  text-align: center;
}

.brand-kicker,
.eyebrow,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 800;
}

.brand-name,
h1,
h2,
h3 {
  font-family: "Newsreader", serif;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-button {
  display: none;
}

.nav-overlay {
  display: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.page-shell {
  padding-bottom: 4rem;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid,
.content-with-rail,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.7fr 1fr;
  align-items: stretch;
}

.hero-copy-column {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 0.96;
  margin: 0.3rem 0 1rem;
  max-width: 12ch;
}

.hero-copy,
.lead,
.article-content,
.footer-copy,
.article-card p,
.list-copy,
.collection-description {
  color: var(--muted);
  line-height: 1.75;
}

.hero-panel,
.article-card,
.rail-card,
.article-layout {
  background: var(--paper);
  border: 1px solid rgba(216, 206, 191, 0.85);
  box-shadow: var(--shadow);
}

.hero-panel,
.rail-card {
  border-radius: 28px;
  padding: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: var(--accent);
  color: #f8f3eb;
}

.button-secondary {
  border: 1px solid var(--line);
}



.homepage-collections {
  margin-top: 2.5rem;
}

.collection-block {
  padding: 0 0 2rem;
  border-bottom: 1px solid rgba(216, 206, 191, 0.95);
}

.collection-block + .collection-block {
  margin-top: 2rem;
}

.article-grid-section {
  margin-top: 2.2rem;
}

.collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.collection-head h2,
.list-header h1,
.article-header h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.05;
  margin: 0.4rem 0 0;
}

.collection-description {
  max-width: 760px;
  margin: 0.9rem 0 1.4rem;
}

.collection-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  padding: 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 108, 97, 0.24);
  box-shadow: 0 24px 55px rgba(31, 42, 42, 0.15);
}

.article-card h3 {
  font-size: 1.7rem;
  margin: 0.35rem 0 0.7rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  color: var(--accent-dark);
  font-weight: 800;
}

.list-header {
  margin-top: 4.5rem;
  padding: 0 0 2.2rem;
}

.list-copy {
  max-width: 760px;
  margin-top: 1.2rem;
}

.article-layout {
  border-radius: 32px;
  padding: 2rem;
  margin-top: 2rem;
}

.article-header {
  max-width: none;
}

.content-with-rail {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  margin-top: 2rem;
  align-items: start;
}

.article-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}

.article-content h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.article-content ul,
.article-content ol {
  color: var(--muted);
  line-height: 1.85;
  padding-left: 1.35rem;
}

.article-content li + li {
  margin-top: 0.95rem;
}

.article-content strong {
  color: var(--ink);
}

.article-content > p {
  margin: 0.9rem 0 0;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 140px;
  margin-top: 1rem;
  border: 1px dashed rgba(12, 108, 97, 0.4);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 108, 97, 0.08), rgba(214, 162, 74, 0.12));
  text-align: center;
  color: var(--accent-dark);
}

.ad-slot-rail {
  min-height: 280px;
}

.site-footer {
  padding: 2rem 0 3rem;
}

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

.footer-title {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.desktop-ad-card {
  display: block !important;
}

@media (max-width: 960px) {
  .hero-grid,
  .collection-grid,
  .article-grid,
  .recommended-grid,
  .content-with-rail,
  .article-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .collection-head {
    align-items: start;
  }

  .nav-button {
    position: relative;
    z-index: 45;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    width: 52px;
    height: 52px;
    padding: 0.9rem;
    margin-left: auto;
    border: 1px solid rgba(216, 206, 191, 0.95);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: none;
    background: rgba(31, 42, 42, 0.2);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    background:
      radial-gradient(circle at top left, rgba(214, 162, 74, 0.2), transparent 30%),
      linear-gradient(180deg, #f7f1e7 0%, #f2eadc 100%);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .main-nav a {
    width: min(100%, 420px);
    padding: 1.15rem 0;
    text-align: center;
    font-family: "Newsreader", serif;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.05;
    border-bottom: 1px solid rgba(216, 206, 191, 0.95);
  }

  .main-nav a:first-child {
    border-top: 1px solid rgba(216, 206, 191, 0.95);
  }

  .nav-toggle:checked ~ .nav-overlay {
    display: block;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked + .nav-button span:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
  }

  .nav-toggle:checked + .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-button span:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
  }

  .collection-head {
    flex-direction: column;
  }

  .article-layout {
    padding: 1.25rem;
  }

  .hero {
    padding-top: 2rem;
  }
}




.recommended-section {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid rgba(216, 206, 191, 0.85);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.recommended-head {
  margin-bottom: 1.4rem;
}

.recommended-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  margin: 0.35rem 0 0;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-content details {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.article-content summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ink);
}

.article-content summary::-webkit-details-marker {
  display: none;
}

.article-content details summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.article-content details[open] summary::after {
  content: "-";
}

.article-content details p {
  margin: 0.9rem 0 0;
}



.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.reading-time svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.article-divider {
  width: 100%;
  height: 1px;
  margin-top: 1.75rem;
  background: rgba(216, 206, 191, 0.95);
}




.article-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 206, 191, 0.95);
}

.article-note p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

.mobile-ad-card {
  display: none !important;
}

.ad-slot-mobile {
  min-height: 160px;
}
@media (max-width: 960px) {
  .mobile-ad-card {
    display: block !important;
    margin-top: 1.5rem;
  }

  .desktop-ad-card {
    display: none !important;
  }

  .recommended-section {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .recommended-head {
    margin-bottom: 1rem;
  }

  .recommended-head h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .recommended-grid {
    gap: 1rem;
  }
}


@media (max-width: 720px) {
  .recommended-section {
    padding: 1rem;
    border-radius: 20px;
  }

  .recommended-grid {
    gap: 0.85rem;
  }

  .recommended-grid .article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  padding: 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

  .recommended-grid .article-card h3 {
    font-size: 1.28rem;
    line-height: 1.15;
    margin: 0.3rem 0 0.55rem;
  }

  .recommended-grid .article-card p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .recommended-grid .meta-row {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .recommended-head h2 {
    line-height: 1.12;
  }
}

@media (max-width: 960px) {
  .recommended-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .recommended-grid {
    grid-template-columns: 1fr !important;
  }

  .recommended-grid .article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  padding: 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
}

.article-card p {
  flex: 1 1 auto;
}

.article-card .meta-row {
  margin-top: auto;
  padding-top: 0.65rem;
}

.article-card p {
  flex: initial;
}

.article-card-excerpt {
  flex: 1 1 auto;
}

.article-card .eyebrow {
  flex: 0 0 auto;
}

.article-card .meta-row {
  margin-top: auto;
}


.hero-ad-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-ad-slot {
  min-height: 260px;
  margin-top: 0.9rem;
}


.hero-panel {
  align-self: start;
}


/* Home hero ad: final override */
.hero-grid {
  align-items: start;
}

.hero-panel.hero-ad-panel {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 380px;
  padding: 1.15rem;
}

.hero-panel.hero-ad-panel .panel-label {
  margin-bottom: 0.4rem;
}

.hero-panel.hero-ad-panel .hero-ad-slot {
  min-height: 110px;
  margin-top: 0.35rem;
}

@media (max-width: 960px) {
  .hero-panel.hero-ad-panel {
    max-width: none;
    padding: 1rem;
  }

  .hero-panel.hero-ad-panel .hero-ad-slot {
    min-height: 96px;
  }
}

.article-card {
  min-height: 340px;
}

.article-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .article-card {
    min-height: 0;
  }
}


.article-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.article-media {
  margin: 0;
  position: sticky;
  top: 96px;
}

.article-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(216, 206, 191, 0.85);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .article-main {
    grid-template-columns: 1fr;
  }

  .article-media {
    position: static;
  }

  .article-media img {
    aspect-ratio: 16 / 10;
  }
}
/* Article header image layout */
.article-header-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.article-header-copy {
  min-width: 0;
}

.article-header-media {
  margin: 0;
  width: 340px;
  height: 100%;
}

.article-header-media img {
  display: block;
  width: 340px;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(216, 206, 191, 0.85);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .article-header-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .article-header-media,
  .article-header-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-width: none;
    max-height: 260px;
  }
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.article-layout {
  margin-top: 0;
}

.article-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}
}


.toc-card {
  padding: 1rem;
}

.article-toc nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc ul ul {
  display: none;
}

.article-toc li + li {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(216, 206, 191, 0.85);
}

.article-toc a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 700;
  font-size: 0.94rem;
}
.toc-card .panel-label {
  font-size: 0.7rem;
}
/* Article rail final override */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.article-side {
  position: static !important;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.desktop-ad-card {
  position: static !important;
  top: auto !important;
}

.toc-card {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.article-toc nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc ul ul {
  display: none;
}

.article-toc li + li {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(216, 206, 191, 0.85);
}

.article-toc a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 140ms ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--accent-dark);
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-side {
    display: none;
  }
}

/* Sticky TOC hard override */
.article-shell,
.article-layout,
.article-side,
.toc-card {
  overflow: visible !important;
}

.article-side {
  display: block !important;
  position: static !important;
  align-self: start;
}

.toc-card {
  position: sticky !important;
  top: 96px;
  z-index: 2;
  align-self: start;
  height: fit-content;
  margin-bottom: 1rem;
}

.desktop-ad-card {
  position: static !important;
  top: auto !important;
}

@media (max-width: 960px) {
  .article-side {
    display: none !important;
  }
}

/* Article rail split-grid override */
.article-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  align-items: start;
}

.article-layout {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.article-side {
  display: contents !important;
}

.toc-card {
  grid-column: 2;
  grid-row: 1;
  position: sticky !important;
  top: 96px;
  z-index: 2;
  align-self: start;
  height: fit-content;
  margin: 0;
}

.desktop-ad-card {
  grid-column: 2;
  grid-row: 2;
  position: static !important;
  top: auto !important;
  align-self: start;
  margin: 0;
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
  }

  .article-layout {
    grid-column: auto;
    grid-row: auto;
  }

  .toc-card,
  .desktop-ad-card {
    display: none !important;
  }
}

/* Article rail final layout */
.article-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.article-layout {
  grid-column: 1;
  grid-row: auto;
}

.article-side {
  grid-column: 2;
  display: grid !important;
  gap: 1rem;
  align-self: start;
}

.toc-card {
  position: sticky !important;
  top: 96px;
  z-index: 2;
  margin: 0;
}

.desktop-ad-card {
  position: static !important;
  top: auto !important;
  margin: 0;
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr !important;
  }

  .article-side {
    display: none !important;
  }
}

/* Sticky TOC parent-height fix */
.article-shell {
  align-items: stretch !important;
}

.article-layout {
  align-self: start;
}

.article-side {
  align-self: stretch !important;
  height: 100%;
}

.toc-card {
  align-self: start;
}

/* Right rail top alignment fix */
.article-side {
  align-content: start !important;
  justify-content: start !important;
}

.desktop-ad-card {
  align-self: start !important;
  justify-self: stretch;
}

/* Anchor offset for sticky header */
.article-content h2,
.article-content h3,
.article-content details {
  scroll-margin-top: 120px;
}

/* Unified label styling */
.article-header .eyebrow,
.panel-label,
.recommended-head .eyebrow,
.article-card .eyebrow {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  line-height: 1 !important;
}

/* TOC accordion */
.toc-card {
  padding: 0.4rem 0.4rem 0.6rem !important;
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.toc-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 253, 248, 0.9);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toc-toggle-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toc-card.is-open .toc-toggle-icon {
  transform: rotate(180deg);
  border-color: rgba(12, 108, 97, 0.28);
  background: rgba(12, 108, 97, 0.08);
}

.toc-card .article-toc {
  padding: 0.25rem 0.55rem 0.15rem;
}

/* TOC accordion animation and fixed width */
.article-side,
.toc-card,
.desktop-ad-card {
  width: 100%;
}

.toc-card {
  overflow: hidden !important;
}

.toc-card .article-toc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease, padding-top 180ms ease;
  padding-top: 0;
}

.toc-card.is-open .article-toc {
  padding-top: 0.25rem;
}

/* TOC toggle label alignment */
.toc-toggle {
  padding: 0.45rem 0.55rem 0.45rem 0.6rem;
}

.toc-toggle .panel-label {
  flex: 1 1 auto;
  display: block;
  margin: 0;
  font-weight: 800 !important;
  text-align: left;
}

.toc-toggle-icon {
  flex: 0 0 auto;
}

/* TOC toggle visual centering */
.toc-toggle {
  min-height: 52px;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  font: inherit;
  font-weight: 400;
  line-height: 1;
}

.toc-toggle .panel-label {
  display: flex;
  align-items: center;
  min-height: 2rem;
  font-weight: 800 !important;
  line-height: 1;
}

.toc-toggle-icon {
  width: 2rem;
  height: 2rem;
  align-self: center;
}

/* TOC collapsed height refinement */
.toc-card {
  padding: 0.3rem 0.4rem 0.35rem !important;
}

.toc-toggle {
  min-height: 46px;
  padding: 0.2rem 0.5rem 0.2rem 0.65rem;
}

.toc-toggle .panel-label {
  min-height: 1.6rem;
}

/* TOC open bottom breathing room */
.toc-card.is-open .article-toc {
  padding-bottom: 0.45rem;
}

/* TOC open bottom spacing hard fix */
.toc-card.is-open .article-toc {
  padding-bottom: 0.9rem !important;
}

.toc-card.is-open .article-toc nav > ul {
  margin-bottom: 0 !important;
}

.toc-card.is-open .article-toc li:last-child {
  padding-bottom: 0.15rem;
}

/* More space before article divider */
.article-divider {
  margin-top: 2rem !important;
}

/* Stronger spacing before article divider */
.article-header-grid {
  margin-bottom: 3rem !important;
}

.article-divider {
  margin-top: 0 !important;
}

/* FAQ motion */
.article-content details {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.article-content details[open] {
  border-color: rgba(12, 108, 97, 0.22);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 32px rgba(31, 42, 42, 0.06);
}

.article-content summary {
  position: relative;
  transition: color 160ms ease;
}

.article-content details summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
  font-size: 1.1rem;
  transition: transform 180ms ease, color 180ms ease;
}

.article-content details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.article-content details > *:not(summary) {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.article-content details[open] > *:not(summary) {
  opacity: 1;
  transform: translateY(0);
}

.article-content details[open] summary {
  margin-bottom: 0.75rem;
}

/* Main nav hover */
.main-nav a {
  position: relative;
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background: rgba(12, 108, 97, 0.55);
  transform: scaleX(0.3);
  transform-origin: center;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

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

/* FAQ enhanced hover and animation */
.article-content details {
  overflow: hidden;
}

.article-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.article-content summary:hover,
.article-content summary:focus-visible {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.article-content details summary::after {
  content: "+";
  float: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(12, 108, 97, 0.06);
  transition: transform 220ms ease, background 180ms ease, color 180ms ease;
}

.article-content details:hover summary::after,
.article-content details:focus-within summary::after {
  background: rgba(12, 108, 97, 0.12);
}

.article-content details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.article-content .faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
  will-change: max-height, opacity, transform;
}

.article-content .faq-answer > *:first-child {
  margin-top: 0.1rem;
}

/* Article tables */
.article-content table {
  width: 100%;
  margin: 1.4rem 0 1.8rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 28px rgba(31, 42, 42, 0.05);
  font-size: 0.98rem;
}

.article-content thead th {
  background: rgba(12, 108, 97, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.article-content th,
.article-content td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid rgba(216, 206, 191, 0.85);
  border-bottom: 1px solid rgba(216, 206, 191, 0.85);
}

.article-content tr > *:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child > * {
  border-bottom: 0;
}

.article-content tbody tr:nth-child(even) {
  background: rgba(247, 241, 231, 0.55);
}

@media (max-width: 720px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 16px;
  }

  .article-content th,
  .article-content td {
    min-width: 170px;
    white-space: normal;
  }

  .article-content th:first-child,
  .article-content td:first-child {
    min-width: 180px;
  }
}

/* Mobile table without page overflow */
@media (max-width: 720px) {
  .article-content table {
    display: table;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    table-layout: fixed;
  }

  .article-content thead {
    display: table-header-group;
  }

  .article-content thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.75rem 0.75rem 0;
  }

  .article-content thead th:first-child {
    display: none;
  }

  .article-content thead th {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(216, 206, 191, 0.85);
    border-radius: 14px;
    background: rgba(12, 108, 97, 0.08);
  }

  .article-content tbody {
    display: block;
    padding: 0.75rem;
  }

  .article-content tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(216, 206, 191, 0.85);
    background: transparent;
  }

  .article-content tbody tr:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .article-content tbody td {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(216, 206, 191, 0.85);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.92);
  }

  .article-content tbody td:first-child {
    grid-column: 1 / -1;
    font-weight: 800;
    color: var(--ink);
    background: rgba(247, 241, 231, 0.72);
  }
}

/* Mobile table edge-to-edge cells */
@media (max-width: 720px) {
  .article-content thead tr,
  .article-content tbody tr {
    gap: 0;
  }

  .article-content thead th,
  .article-content tbody td {
    border-radius: 0;
  }

  .article-content thead th:first-child,
  .article-content tbody td:first-child {
    border-radius: 0;
  }
}

/* Recommended section as simple separator */
.recommended-section {
  margin-top: 2.5rem;
  padding: 1.8rem 0 0;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(216, 206, 191, 0.95) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Recommended ad card */
.recommended-ad-card {
  justify-content: space-between;
}

.recommended-ad-slot {
  min-height: 170px;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .recommended-ad-slot {
    min-height: 120px;
  }
}

/* Homepage hero without top ad */
.hero-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

.hero-grid-single .hero-copy-column {
  max-width: 880px;
}

.homepage-ad-card {
  justify-content: space-between;
}

.footer-grid-nav {
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  align-items: start;
}

.footer-nav {
  display: grid;
  gap: 0.65rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--accent-dark);
}

@media (max-width: 960px) {
  .footer-grid-nav {
    grid-template-columns: 1fr;
  }
}

.article-shell-simple {
  display: block;
}

.article-layout-simple {
  max-width: 860px;
  margin: 0 auto;
}

.article-header-simple .article-divider {
  margin-top: 1.25rem;
}

.article-header-grid-simple {
  display: block;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-weight: 700;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
}

.form-row textarea {
  resize: vertical;
  min-height: 180px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(12, 108, 97, 0.65);
  box-shadow: 0 0 0 3px rgba(12, 108, 97, 0.12);
}

.article-card {
  overflow: hidden;
  padding: 0;
}

.article-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(216, 206, 191, 0.85);
  background: rgba(247, 241, 231, 0.65);
}

.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  padding: 1.35rem 1.4rem 1.4rem;
}

.article-card .article-card-excerpt {
  flex: 1;
}

.recommended-ad-card,
.collection-ad-card,
.homepage-ad-card {
  padding: 1.4rem;
}

.article-card-media {
  aspect-ratio: auto;
  height: 285px;
}

.article-card .meta-row {
  margin-top: auto;
  padding-top: 0.95rem;
}

.article-card-media {
  height: 285px;
}

@media (max-width: 960px) {
  .article-card-media {
    height: 245px;
  }
}

@media (max-width: 640px) {
  .article-card-media {
    height: 305px;
  }
}

.article-card .article-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.article-card {
  display: grid;
  grid-template-rows: 215px 1fr;
  min-height: 100%;
}

.article-card-body {
  min-height: 0;
  height: 100%;
}

.article-card .meta-row {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.hero-grid-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.hero-media-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-media-panel img {
  display: block;
  width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 960px) {
  .hero-grid-split {
    grid-template-columns: 1fr;
  }

  .hero-media-panel {
    display: none;
  }
}



.article-guide-note {
  max-width: 720px;
  margin: 0 0 2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 10px 24px rgba(27, 39, 51, 0.05);
}

.article-guide-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
}

.article-guide-note strong {
  color: inherit;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 90;
  pointer-events: none;
}

.cookie-banner__inner {
  width: min(980px, calc(100% - 2rem));
  padding: 1.2rem 1.25rem;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(31, 42, 42, 0.16);
  pointer-events: auto;
}

.cookie-banner__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.cookie-banner__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cookie-banner__text a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.cookie-banner__secondary {
  background: transparent;
  color: var(--accent-dark);
}

.cookie-banner__ghost {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner__ghost:hover,
.cookie-banner__ghost:focus-visible {
  color: var(--accent-dark);
}

.cookie-banner__preferences {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 206, 191, 0.85);
}

.cookie-banner__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__option-title {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.cookie-banner__option-copy {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-banner__preferences-actions {
  display: flex;
  justify-content: flex-start;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch span {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(95, 110, 103, 0.26);
  transition: background 160ms ease;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 3px 10px rgba(31, 42, 42, 0.12);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + span {
  background: var(--accent);
}

.cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

@media (max-width: 720px) {
  .cookie-banner {
    bottom: 0.75rem;
  }

  .cookie-banner__inner {
    width: calc(100% - 1rem);
    padding: 1rem;
    border-radius: 20px;
  }

  .cookie-banner__actions,
  .cookie-banner__preferences-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cookie-banner__ghost {
    text-align: center;
  }

  .cookie-banner__option {
    align-items: flex-start;
  }
}

/* Cookie banner compact override */
.cookie-banner {
  bottom: 0.8rem;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) auto;
  gap: 0.9rem 1rem;
  align-items: center;
  width: min(960px, calc(100% - 1.5rem));
  padding: 0.95rem 1rem;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(31, 42, 42, 0.14);
}

.cookie-banner__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cookie-banner__text {
  font-size: 0.96rem;
  line-height: 1.5;
}

.cookie-banner__actions {
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0;
  white-space: nowrap;
}

.cookie-banner__actions .button {
  min-height: 42px;
  padding: 0.72rem 1rem;
  font-size: 0.94rem;
}

.cookie-banner__ghost {
  font-size: 0.92rem;
}

.cookie-banner__preferences {
  grid-column: 1 / -1;
  gap: 0.75rem;
  margin-top: 0.1rem;
  padding-top: 0.85rem;
}

.cookie-banner__option-copy {
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .cookie-banner {
    bottom: 0.6rem;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
    width: calc(100% - 0.75rem);
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 18px;
  }

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

.footer-cookie-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: var(--accent-dark);
}

/* Cookie banner simple bar */
.cookie-banner {
  left: 0;
  right: 0;
  bottom: 0.6rem;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: min(900px, calc(100% - 1rem));
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(31, 42, 42, 0.12);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-banner__text a {
  color: var(--accent-dark);
  font-weight: 700;
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
}

.cookie-banner__actions .button {
  min-height: 40px;
  padding: 0.68rem 0.95rem;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 0.75rem);
    padding: 0.8rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

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

/* Permanent hamburger navigation */
.nav-button {
  position: relative;
  z-index: 45;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  width: 52px;
  height: 52px;
  padding: 0.9rem;
  margin-left: auto;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
}

.nav-button span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: none;
  background: rgba(31, 42, 42, 0.2);
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 42;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(214, 162, 74, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f1e7 0%, #f2eadc 100%);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.main-nav a {
  width: min(100%, 460px);
  padding: 1.05rem 0;
  text-align: center;
  font-family: "Newsreader", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  border-bottom: 1px solid rgba(216, 206, 191, 0.95);
}

.main-nav a:first-child {
  border-top: 1px solid rgba(216, 206, 191, 0.95);
}

.nav-toggle:checked ~ .nav-overlay {
  display: block;
}

.nav-toggle:checked ~ .main-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle:checked + .nav-button span:nth-child(1) {
  transform: translateY(0.42rem) rotate(45deg);
}

.nav-toggle:checked + .nav-button span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-button span:nth-child(3) {
  transform: translateY(-0.42rem) rotate(-45deg);
}

/* Header search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.search-toggle,
.nav-button {
  position: relative;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0.9rem;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
}

.search-toggle {
  padding: 0;
}

.search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.header-search {
  position: relative;
  z-index: 39;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(216, 206, 191, 0.72);
}

.header-search-shell {
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(216, 206, 191, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(31, 42, 42, 0.1);
  padding: 0.95rem;
}

.header-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 1.2rem;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 20px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.header-search-input::placeholder {
  color: var(--muted);
}

.header-search-input:focus {
  outline: 2px solid rgba(12, 108, 97, 0.18);
  outline-offset: 0;
  border-color: rgba(12, 108, 97, 0.45);
}

.header-search-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(216, 206, 191, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
}

.header-search-close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.header-search-close span:first-child {
  transform: rotate(45deg);
}

.header-search-close span:last-child {
  transform: rotate(-45deg);
}

.header-search-status {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 0.2rem;
}

.header-search-results {
  display: grid;
  gap: 0.85rem;
}

.search-result-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(216, 206, 191, 0.85);
  border-radius: 20px;
  background: #fffdf8;
}

.search-result-meta {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

.search-result-title {
  font-family: "Newsreader", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.search-result-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .header-actions {
    gap: 0.55rem;
  }

  .header-search {
    padding-bottom: 0.8rem;
  }

  .header-search-shell {
    border-radius: 24px;
    padding: 0.75rem;
  }
}
/* Header search mode */
.header-search[hidden] {
  display: none !important;
}

.site-header.search-open .brand,
.site-header.search-open .header-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-search {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 46;
  padding: 1rem 0 1rem;
  border-top: 0;
}

.header-search-inner {
  display: grid;
  gap: 0.9rem;
}

.header-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 206, 191, 0.95);
  background: transparent;
  box-shadow: none;
}

.header-search-input {
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  box-shadow: none;
}

.header-search-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.header-search-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.header-search-close:hover,
.header-search-close:focus-visible {
  background: rgba(255, 253, 248, 0.6);
}

.header-search-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(216, 206, 191, 0.9);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 42px rgba(31, 42, 42, 0.12);
}

.header-search-status {
  padding: 0;
}

@media (max-width: 720px) {
  .header-search {
    padding: 0.85rem 0 0.85rem;
  }

  .header-search-form {
    gap: 0.7rem;
  }

  .header-search-panel {
    border-radius: 20px;
    padding: 0.9rem;
  }
}
/* Header search refinements */
.header-search-inner {
  gap: 30px;
}

.header-search-form {
  border-bottom: 0;
}

.header-search-input[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;
}

.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.header-search-panel {
  margin-top: 0;
}

.header-search-status {
  padding: 0;
}

.header-search[data-search-state="idle"] .header-search-status,
.header-search[data-search-state="empty"] .header-search-status,
.header-search[data-search-state="error"] .header-search-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.9rem 0.35rem;
  text-align: center;
}

.header-search[data-search-state="results"] .header-search-status {
  text-align: left;
}

@media (max-width: 720px) {
  .header-search-inner {
    gap: 22px;
  }
}
/* Search overflow fixes */
html,
body {
  overflow-x: clip;
}

.main-nav {
  width: auto;
}

.header-search {
  overflow-x: clip;
}

.header-search-panel {
  max-height: min(62vh, calc(100dvh - 140px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-search-results {
  overflow: visible;
}

@media (max-width: 720px) {
  .header-search-panel {
    max-height: min(58vh, calc(100dvh - 128px));
  }
}
/* Search motion and mobile full-page */
body.search-open {
  overflow: hidden;
}

.header-search {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.header-search.is-visible,
.header-search.is-closing {
  pointer-events: auto;
}

.header-search.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header-search.is-closing {
  opacity: 0;
  transform: translateY(-10px);
}

.header-search-form {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.header-search-panel {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease 40ms, transform 220ms ease 40ms;
}

.header-search.is-visible .header-search-form,
.header-search.is-visible .header-search-panel {
  opacity: 1;
  transform: translateY(0);
}

.header-search.is-closing .header-search-form,
.header-search.is-closing .header-search-panel {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 720px) {
  .header-search {
    position: fixed;
    inset: 0;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.75rem;
    background:
      radial-gradient(circle at top left, rgba(214, 162, 74, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(247, 241, 231, 0.98) 0%, rgba(242, 234, 220, 0.98) 100%);
  }

  .header-search .container {
    width: 100%;
    margin: 0;
  }

  .header-search-inner {
    width: 100%;
    min-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top)));
    gap: 1rem;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .header-search-panel {
    height: 100%;
    max-height: none;
    min-height: 0;
    align-content: start;
  }
}
/* Search mobile edge-to-edge overlay */
@media (max-width: 720px) {
  .header-search {
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .header-search .container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-search-inner {
    min-height: 100dvh;
    gap: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .header-search-form {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 60px;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.85rem;
    background:
      radial-gradient(circle at top left, rgba(214, 162, 74, 0.14), transparent 30%),
      linear-gradient(180deg, rgba(247, 241, 231, 0.98) 0%, rgba(242, 234, 220, 0.98) 100%);
    backdrop-filter: blur(12px);
  }

  .header-search-panel {
    height: auto;
    min-height: calc(100dvh - 84px);
    max-height: none;
    overflow: visible;
    gap: 0.9rem;
    padding: 0.85rem 0.9rem calc(env(safe-area-inset-bottom) + 1rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-search-status {
    padding-inline: 0;
  }

  .search-result-card {
    border-radius: 18px;
  }
}
/* Search mobile results-only scroll */
@media (max-width: 720px) {
  .header-search {
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(214, 162, 74, 0.14), transparent 30%),
      linear-gradient(180deg, rgba(247, 241, 231, 0.98) 0%, rgba(242, 234, 220, 0.98) 100%);
  }

  .header-search-inner {
    height: 100dvh;
    min-height: 100dvh;
    gap: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .header-search-form {
    position: relative;
    top: auto;
    z-index: 2;
    min-height: 60px;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.85rem;
    background: transparent;
    backdrop-filter: none;
  }

  .header-search-panel {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding: 0.95rem 0.9rem calc(env(safe-area-inset-bottom) + 1rem);
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    box-shadow: none;
  }

  .header-search-status {
    padding-inline: 0;
  }
}
/* Search overlay detached from header */
.header-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

@media (max-width: 720px) {
  .header-search {
    inset: 0;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(214, 162, 74, 0.14), transparent 30%),
      linear-gradient(180deg, rgba(247, 241, 231, 0.98) 0%, rgba(242, 234, 220, 0.98) 100%);
  }

  .header-search .container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-search-inner {
    height: 100dvh;
    min-height: 100dvh;
    width: 100%;
    gap: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .header-search-form {
    position: relative;
    z-index: 2;
    min-height: 60px;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.85rem;
    background: transparent;
    backdrop-filter: none;
  }

  .header-search-panel {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding: 0.95rem 0.9rem calc(env(safe-area-inset-bottom) + 1rem);
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    box-shadow: none;
  }
}
/* Search mobile single-scroll final override */
@media (max-width: 720px) {
  .header-search {
    display: block;
    height: 100dvh;
  }

  .header-search-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .header-search-form {
    flex: 0 0 auto;
  }

  .header-search-panel {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
/* Search lock final */
html.search-open,
body.search-open {
  overflow: hidden !important;
  height: 100%;
}

@media (max-width: 720px) {
  .header-search,
  .header-search-inner {
    overflow: hidden !important;
  }

  .header-search-panel {
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}




@media (max-width: 640px) {
  .article-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    min-height: 0;
  }

  .article-card-media {
    height: auto;
    aspect-ratio: 1 / 1;
    border-bottom: 0;
    border-right: 1px solid rgba(216, 206, 191, 0.85);
  }

  .article-card-body {
    min-height: 0;
    padding: 1rem 1rem 1rem 1.05rem;
  }

  .article-card h3 {
    font-size: 1.35rem;
    margin: 0.25rem 0 0.45rem;
  }

  .article-card .article-card-excerpt {
    -webkit-line-clamp: 3;
  }

  .article-card .meta-row {
    gap: 0.65rem;
    padding-top: 0.7rem;
    font-size: 0.84rem;
  }
}

/* Article cards final layout override */
@media (min-width: 981px) {
  .article-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100%;
  }

  .article-card-media {
    height: 285px;
    aspect-ratio: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 206, 191, 0.85);
  }

  .article-card-body {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 980px) {
  .article-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    min-height: 0;
  }

  .article-card-media {
    height: auto;
    aspect-ratio: 1 / 1;
    border-bottom: 0;
    border-right: 1px solid rgba(216, 206, 191, 0.85);
  }

  .article-card-body {
    min-height: 0;
    height: auto;
    padding: 1rem 1rem 1rem 1.05rem;
  }

  .article-card h3 {
    font-size: 1.4rem;
    margin: 0.25rem 0 0.45rem;
  }

  .article-card .article-card-excerpt {
    -webkit-line-clamp: 3;
  }

  .article-card .meta-row {
    gap: 0.65rem;
    padding-top: 0.7rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 640px) {
  .article-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

/* Article cards responsive adjustment */
@media (min-width: 641px) and (max-width: 980px) {
  .article-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    min-height: 0;
  }

  .article-card-media {
    height: auto;
    aspect-ratio: 1 / 1;
    border-bottom: 0;
    border-right: 1px solid rgba(216, 206, 191, 0.85);
  }

  .article-card-body {
    min-height: 0;
    height: auto;
    padding: 1rem 1rem 1rem 1.05rem;
  }
}

@media (max-width: 640px) {
  .article-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100%;
  }

  .article-card-media {
    width: 100%;
    height: 305px;
    aspect-ratio: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 206, 191, 0.85);
  }

  .article-card-body {
    min-height: 0;
    height: auto;
    padding: 1rem 1rem 1rem 1.05rem;
  }

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




/* Header alignment final override */
.site-header .nav-wrap {
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 72px;
}

.site-header .brand {
  position: relative;
  left: auto;
  transform: none;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  text-align: left;
  min-height: 52px;
}

.site-header .brand-name {
  display: block;
  line-height: 1.05;
}

.site-header .header-actions {
  margin-left: auto;
  align-items: center;
}

@media (max-width: 720px) {
  .site-header .nav-wrap {
    align-items: center;
    min-height: 68px;
  }

  .site-header .brand {
    min-height: 52px;
  }
}
