body {
  font-family: "Work Sans", sans-serif;
  background-color: #f7f9ff;
  color: #181c20;
}

.font-headline,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Be Vietnam Pro", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.editorial-shadow {
  box-shadow: 0 20px 40px rgba(24, 28, 32, 0.06);
}

.text-balance {
  text-wrap: balance;
}

.editorial-dropcap::first-letter {
  float: left;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  padding-right: 12px;
  color: #154212;
}

.site-main a {
  color: #154212;
}

.site-main a:hover,
.site-main a:focus {
  color: #2d5a27;
}

.site-main img {
  height: auto;
  max-width: 100%;
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.entry-content blockquote {
  border-left: 4px solid #a1d494;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f1f4fa;
}

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

.entry-content th,
.entry-content td {
  border: 1px solid rgba(114, 121, 110, 0.2);
  padding: 0.75rem;
}

.entry-footer {
  margin-top: 1.25rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: #42493e;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.sticky .entry-title::before {
  content: "Featured";
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #002201;
  background: #bcf0ae;
  border-radius: 999px;
}

.pagination,
.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: #ebeef4;
  color: #154212;
  text-decoration: none;
  font-weight: 600;
}

.page-numbers.current {
  background: #154212;
  color: #ffffff;
}

.widget {
  background: #f1f4fa;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.widget-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: #154212;
  margin-bottom: 0.75rem;
}

.widget ul {
  padding-left: 1.25rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(114, 121, 110, 0.3);
  border-radius: 0.5rem;
  padding: 0 0.875rem;
  background: #ffffff;
}

.search-submit,
button,
input[type="submit"] {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0 1rem;
  color: #ffffff;
  background: #154212;
  font-weight: 700;
}

.menu-primary-container ul,
.menu-footer-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-primary-container {
  font-family: "Be Vietnam Pro", sans-serif;
}

.menu-primary-container a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-primary-container a:hover {
  color: #154212;
}

.site-footer--editorial .menu-footer-container a {
  display: inline-block;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer--editorial .menu-footer-container a:hover {
  color: #154212;
  transform: translateX(4px);
}

.site-header .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search .site-header .menu-primary-container a,
.error404 .site-header .menu-primary-container a {
  color: rgba(236, 253, 245, 0.8);
}

.search .site-header .menu-primary-container a:hover,
.error404 .site-header .menu-primary-container a:hover {
  color: #ecfdf5;
}

.search .site-header a[aria-label="Search"]:hover,
.error404 .site-header a[aria-label="Search"]:hover {
  background: rgba(255, 255, 255, 0.08);
}

.current-menu-item > a,
.current_page_item > a {
  color: #154212 !important;
  font-weight: 700;
}

.search .current-menu-item > a,
.search .current_page_item > a,
.error404 .current-menu-item > a,
.error404 .current_page_item > a {
  color: #ecfdf5 !important;
}

@media (max-width: 767px) {
  .site-brand-text {
    font-size: 1.25rem;
  }
}

.site-footer--editorial {
  background: #f1f5f9;
  width: 100%;
  font-family: "Work Sans", sans-serif;
  font-size: 0.875rem;
  margin-top: 5rem;
}

.site-footer--compact {
  background: #e5e7eb;
  width: 100%;
  font-family: "Work Sans", sans-serif;
  font-size: 0.875rem;
  margin-top: 5rem;
}

.site-footer--compact a {
  color: #6b7280;
  text-decoration: none;
}

.site-footer--compact a:hover {
  color: #154212;
}

.tpl-front .site-main > section:first-child {
  min-height: 870px;
}

.tpl-front .site-main > section:first-child h1 {
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tpl-front .site-main > section:nth-child(2),
.tpl-front .site-main > section:nth-child(3),
.tpl-front .site-main > section:nth-child(4) {
  padding-top: 96px;
  padding-bottom: 96px;
}

.tpl-single .site-main {
  max-width: 1280px;
}

.tpl-single .entry-title {
  font-size: 68px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tpl-single .entry-content {
  font-size: 19px;
  line-height: 1.85;
}

.tpl-single aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.tpl-category .site-main,
.tpl-search .site-main {
  max-width: 1360px;
}

.tpl-category header h1,
.tpl-search header h1 {
  font-size: 78px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.tpl-category .site-main > .grid,
.tpl-search .site-main > div.flex {
  gap: 48px;
}

/* ── Legal content typography ───────────────────────────────── */
.legal-content > * + * {
  margin-top: 1.75rem;
}

.legal-content h2 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #154212;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(194, 201, 187, 0.3);
  scroll-margin-top: 7rem;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #154212;
  margin-top: 2rem;
}

.legal-content p {
  color: #42493e;
  line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.75rem;
  color: #42493e;
  line-height: 1.85;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-content a {
  color: #154212;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #2d5a27;
}

.legal-content blockquote {
  border-left: 4px solid #154212;
  padding: 1rem 1.5rem;
  background: rgba(188, 240, 174, 0.15);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #42493e;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-content th {
  background: #154212;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-content td {
  border: 1px solid rgba(194, 201, 187, 0.4);
  padding: 0.75rem 1rem;
  color: #42493e;
}

.legal-content tr:nth-child(even) td {
  background: rgba(241, 244, 250, 0.6);
}

/* ── Editorial prose (single posts, page content) ───────────── */
.editorial-content > * + * {
  margin-top: 1.75rem;
}

.editorial-content h2 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: #154212;
  letter-spacing: -0.02em;
  margin-top: 3rem;
}

.editorial-content h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #154212;
  margin-top: 2.25rem;
}

.editorial-content p {
  line-height: 1.85;
}

.editorial-content ul,
.editorial-content ol {
  padding-left: 1.75rem;
  line-height: 1.85;
}

.editorial-content ul {
  list-style-type: disc;
}

.editorial-content ol {
  list-style-type: decimal;
}

.editorial-content li + li {
  margin-top: 0.5rem;
}

.editorial-content blockquote {
  border-left: 4px solid #a1d494;
  padding: 1rem 1.5rem;
  background: rgba(188, 240, 174, 0.12);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #42493e;
}

.editorial-content img {
  border-radius: 0.75rem;
}

.editorial-content strong {
  color: #154212;
  font-weight: 700;
}

.tpl-404 .site-main {
  max-width: 1440px;
}

.tpl-404 .site-main section:first-child h1 {
  font-size: 128px;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.tpl-404 .site-main section:first-child {
  margin-bottom: 120px;
}

.tpl-page .site-main section {
  padding-top: 0;
}

@media (max-width: 1279px) {
  .tpl-front .site-main > section:first-child {
    min-height: 760px;
  }

  .tpl-front .site-main > section:first-child h1 {
    font-size: 58px;
  }

  .tpl-single .entry-title {
    font-size: 52px;
  }

  .tpl-category header h1,
  .tpl-search header h1 {
    font-size: 58px;
  }

  .tpl-404 .site-main section:first-child h1 {
    font-size: 96px;
  }
}

@media (max-width: 1023px) {
  .site-header nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .tpl-front .site-main > section:first-child {
    min-height: 700px;
  }

  .tpl-front .site-main > section:first-child h1 {
    font-size: 46px;
  }

  .tpl-front .site-main > section:nth-child(2),
  .tpl-front .site-main > section:nth-child(3),
  .tpl-front .site-main > section:nth-child(4) {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .tpl-single .site-main {
    padding-top: 92px;
  }

  .tpl-single .entry-title {
    font-size: 44px;
  }

  .tpl-single .entry-content {
    font-size: 18px;
    line-height: 1.75;
  }

  .tpl-single aside {
    position: static;
  }

  .tpl-category header h1,
  .tpl-search header h1 {
    font-size: 44px;
    line-height: 1.1;
  }

  .tpl-404 .site-main section:first-child h1 {
    font-size: 74px;
    line-height: 0.96;
  }
}

@media (max-width: 767px) {
  .site-header nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tpl-front .site-main {
    padding-top: 72px;
  }

  .tpl-front .site-main > section:first-child {
    min-height: 620px;
  }

  .tpl-front .site-main > section:first-child .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tpl-front .site-main > section:first-child h1 {
    font-size: 48px;
    line-height: 1.04;
  }

  .tpl-front .site-main > section:first-child p {
    font-size: 16px;
    line-height: 1.65;
  }

  .tpl-front .site-main > section:nth-child(2),
  .tpl-front .site-main > section:nth-child(3),
  .tpl-front .site-main > section:nth-child(4),
  .tpl-front .site-main > section:nth-child(5) {
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .tpl-single .site-main,
  .tpl-category .site-main,
  .tpl-search .site-main,
  .tpl-404 .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tpl-single .entry-title {
    font-size: 38px;
    line-height: 1.08;
  }

  .tpl-single .entry-content {
    font-size: 17px;
    line-height: 1.72;
  }

  .tpl-category header h1,
  .tpl-search header h1 {
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .tpl-404 .site-main section:first-child h1 {
    font-size: 66px;
    line-height: 0.95;
  }

  .site-footer--editorial {
    margin-top: 56px;
  }

  .site-footer--editorial > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer--compact > div {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Final pass: per-template visual parity */
.tpl-front .site-header nav,
.tpl-single .site-header nav,
.tpl-category .site-header nav {
  max-width: 1920px;
}

.tpl-front .menu-primary-container a,
.tpl-single .menu-primary-container a,
.tpl-category .menu-primary-container a {
  font-size: 13px;
  font-weight: 500;
}

.tpl-front .site-main > section:nth-child(2) .md\:col-span-8,
.tpl-front .site-main > section:nth-child(2) .md\:col-span-4 {
  min-height: 400px;
}

.tpl-front .site-main > section:nth-child(2) .md\:col-span-12 {
  min-height: 300px;
}

.tpl-front .site-main > section:nth-child(3) article h3 {
  font-size: 34px;
  line-height: 1.16;
}

.tpl-front .site-main > section:nth-child(4) h2 {
  max-width: 660px;
}

.tpl-single .site-main {
  padding-top: 124px;
}

.tpl-single .site-main .lg\:col-span-8 {
  max-width: 860px;
}

.tpl-single .site-main .lg\:col-span-4 {
  max-width: 340px;
}

.tpl-single .site-main .entry-title + div.relative {
  margin-bottom: 44px;
}

.tpl-single .site-main .bg-surface-container-low.p-8.rounded-xl.mb-12 {
  margin-bottom: 48px;
}

.tpl-single .site-main section.mt-24 {
  margin-top: 84px;
}

.tpl-category .site-main,
.tpl-search .site-main {
  padding-top: 112px;
  padding-bottom: 108px;
}

.tpl-category .site-main > .grid,
.tpl-search .site-main > div.flex {
  align-items: start;
}

.tpl-category .site-main article .aspect-\[16\/10\],
.tpl-search .site-main article .aspect-video {
  border-radius: 12px;
}

.tpl-search .site-main .md\:col-span-2 .font-headline.text-3xl {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tpl-search .site-main .sticky.top-32,
.tpl-category .site-main .space-y-12 {
  top: 96px;
}

.tpl-404 .site-main {
  padding-top: 96px;
  padding-bottom: 56px;
}

.tpl-404 .site-main section#guides {
  padding-top: 64px;
}

.tpl-page .site-header nav {
  padding-top: 12px;
  padding-bottom: 12px;
}

.tpl-page .site-main .entry-title {
  letter-spacing: -0.02em;
}

.tpl-front .site-footer--editorial {
  background: #e6eaef;
}

.tpl-single .site-footer--editorial {
  background: #e8edf1;
}

.tpl-category .site-footer--editorial {
  background: #dde3e9;
}

.tpl-page .site-footer--editorial {
  background: #e3e8ed;
}

@media (max-width: 1023px) {
  .tpl-search .site-main .md\:col-span-2 .font-headline.text-3xl {
    font-size: 40px;
  }

  .tpl-single .site-main {
    padding-top: 104px;
  }
}

@media (max-width: 767px) {
  .tpl-front .menu-primary-container a,
  .tpl-single .menu-primary-container a,
  .tpl-category .menu-primary-container a {
    font-size: 12px;
  }

  .tpl-front .site-main > section:nth-child(2) .md\:col-span-8,
  .tpl-front .site-main > section:nth-child(2) .md\:col-span-4,
  .tpl-front .site-main > section:nth-child(2) .md\:col-span-12 {
    min-height: auto;
  }

  .tpl-front .site-main > section:nth-child(3) article h3 {
    font-size: 32px;
    line-height: 1.14;
  }

  .tpl-single .site-main {
    padding-top: 96px;
  }

  .tpl-single .site-main .entry-title {
    font-size: 58px;
    line-height: 0.98;
  }

  .tpl-category .site-main,
  .tpl-search .site-main {
    padding-top: 92px;
  }

  .tpl-category .site-main header h1,
  .tpl-search .site-main header h1 {
    font-size: 64px;
    line-height: 0.98;
  }

  .tpl-404 .site-main section:first-child h1 {
    font-size: 84px;
    line-height: 0.9;
  }
}
