:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3eee8;
  --surface-tint: #eef6f3;
  --ink: #25211f;
  --muted: #716660;
  --line: #e8ddd5;
  --line-strong: #d8c8bd;
  --teal: #227c70;
  --coral: #d96c5f;
  --gold: #b98b3c;
  --radius: 8px;
  --content: 1180px;
  --shadow: 0 18px 46px rgba(37, 33, 31, 0.11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(37, 33, 31, 0.05);
}
.topbar {
  background: var(--surface-tint);
  color: #315c54;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 12px;
}
.header-inner,
.hero,
.section,
.page-hero,
.article-layout,
.page,
.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 18px;
}
.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
}
.nav a,
.nav summary {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}
.nav a:hover,
.nav summary:hover,
.nav-submenu[open] summary {
  border-color: var(--teal);
  color: var(--teal);
}
.nav-submenu {
  position: relative;
  flex: 0 0 auto;
}
.nav-submenu summary {
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.nav-submenu summary::-webkit-details-marker {
  display: none;
}
.nav-submenu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-submenu[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.submenu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  width: min(620px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}
.submenu-panel a {
  min-height: 0;
  display: block;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
}
.submenu-panel a:hover {
  border-color: var(--line);
  background: var(--surface-tint);
}
.submenu-panel span {
  display: block;
  font-weight: 800;
}
.submenu-panel small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}
.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.site-search input,
.search-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}
.site-search button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}
.site-search button:hover { background: var(--ink); }
.hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 24px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 33, 31, 0.82), rgba(37, 33, 31, 0.48) 52%, rgba(37, 33, 31, 0.08));
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.12;
}
.hero h1 {
  max-width: 720px;
  margin: 10px 0 16px;
  color: #fff;
  font-size: 4.8rem;
}
.hero p,
.page-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero .kicker,
.hero p { color: #fffaf7; }
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}
.button:hover { background: var(--coral); color: #fff; }
.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.hero .button.secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .button.secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--teal);
}
.section { padding: 38px 0; }
.section-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2,
.page-hero h1 {
  margin: 4px 0 0;
  font-size: 2.65rem;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.topic-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(37, 33, 31, 0.04);
}
.topic-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: var(--ink);
}
.topic-card:hover,
.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(37, 33, 31, 0.08);
}
.topic-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; }
.topic-card span { color: var(--muted); font-size: 0.94rem; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
.card-body {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 15px;
}
.eyebrow,
.article-meta {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.article-card h3 {
  margin: 8px 0 8px;
  font-size: 1.24rem;
}
.article-card h3 a {
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.page-hero {
  padding: 46px 0 20px;
  border-bottom: 1px solid var(--line);
}
.listing-meta,
.search-count {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}
.pagination {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 32px;
}
.pagination-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.pagination a:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.pagination .pager-number[aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.pagination .pager-step {
  min-width: 104px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination .pager-step:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.pagination .pager-disabled {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}
.pagination .pager-gap {
  min-width: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
}
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}
.article-layout,
.page {
  padding: 44px 0 58px;
}
.article {
  max-width: 800px;
  margin: 0 auto;
}
.article h1 {
  margin: 12px 0 14px;
  font-size: 3.45rem;
}
.lead {
  color: var(--muted);
  font-size: 1.12rem;
}
.article-hero {
  width: 100%;
  margin: 26px 0 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.article-body h2 {
  margin: 34px 0 10px;
  font-size: 1.75rem;
}
.article-body h3 {
  margin: 20px 0 8px;
  font-size: 1.25rem;
}
.article-body p,
.article-body ul,
.article-body ol { margin: 0 0 18px; }
.article-body ul,
.article-body ol { padding-left: 22px; }
.article-body .note,
.article-body .checklist,
.article-body .faq {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfb;
}
.article-body .checklist li + li { margin-top: 8px; }
.related { padding-top: 10px; }
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 30px 0;
}
.footer-inner p { margin: 4px 0 0; color: #e8ddd5; }
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.footer-inner a { color: var(--bg); }
@media (max-width: 940px) {
  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 0;
    gap: 10px;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 4px;
  }
  .nav-submenu[open] {
    flex-basis: 100%;
  }
  .submenu-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(37, 33, 31, 0.05);
  }
  .site-search { width: 100%; }
  .hero {
    min-height: 430px;
    padding: 34px;
  }
  .hero h1 { font-size: 3.55rem; }
  .section-heading,
  .footer-inner {
    align-items: flex-start;
  }
  .topic-grid,
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-inner,
  .hero,
  .section,
  .page-hero,
  .article-layout,
  .page,
  .footer-inner {
    width: min(var(--content), calc(100% - 20px));
  }
  .brand { font-size: 1.7rem; }
  .topbar { font-size: 0.78rem; }
  .hero {
    min-height: 410px;
    margin-top: 12px;
    padding: 24px;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(37, 33, 31, 0.2), rgba(37, 33, 31, 0.84));
  }
  .hero h1 { font-size: 2.65rem; }
  .hero p,
  .page-hero p,
  .lead { font-size: 1rem; }
  .section { padding: 30px 0; }
  .section-heading {
    display: block;
  }
  .section-heading h2,
  .page-hero h1 { font-size: 2rem; }
  .article h1 { font-size: 2.35rem; }
  .search-panel { grid-template-columns: 1fr; }
  .topic-grid,
  .article-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .submenu-panel { grid-template-columns: 1fr; }
  .card-body { min-height: auto; }
  .pagination-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .pagination .pager-number,
  .pagination .pager-gap {
    min-width: 0;
  }
  .pagination .pager-step {
    min-width: 0;
  }
  .footer-inner nav { justify-content: flex-start; }
}
