:root {
  --forest-950: #0b241d;
  --forest-900: #12382e;
  --forest-800: #174b3b;
  --forest-700: #246149;
  --forest-100: #e9f2ed;
  --cream: #f7f5ee;
  --cream-dark: #ede9dc;
  --gold: #e3a629;
  --gold-soft: #fff4d3;
  --ink: #17221e;
  --muted: #63716b;
  --line: #dfe5e1;
  --white: #fff;
  --shadow-sm: 0 8px 30px rgba(13, 43, 34, .07);
  --shadow-lg: 0 24px 70px rgba(7, 31, 24, .16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--forest-950); font-weight: 760; line-height: 1.16; letter-spacing: -.035em; }
p { margin: 0 0 1.25em; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-container { width: min(calc(100% - 40px), 850px); }
.section-space { padding-block: 92px; }
.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 16px; border-radius: 8px; color: var(--white); background: var(--forest-950); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(223, 229, 225, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; min-width: 240px; align-items: center; gap: 12px; }
.brand-mark { display: flex; width: 50px; height: 50px; flex: 0 0 auto; align-items: center; justify-content: center; transition: transform .2s ease; }
.brand-mark:hover { transform: scale(1.06); }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 8px rgba(23, 75, 59, .15)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.site-title { max-width: 280px; overflow: hidden; color: var(--forest-950); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav .menu { display: flex; margin: 0; padding: 0; align-items: center; gap: 28px; list-style: none; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 27px 0; color: #304139; font-size: 14px; font-weight: 680; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-category-ancestor > a { color: var(--forest-700); }
.primary-nav .sub-menu { position: absolute; top: calc(100% - 7px); left: -18px; visibility: hidden; min-width: 230px; margin: 0; padding: 10px; transform: translateY(8px); border: 1px solid var(--line); border-radius: 14px; opacity: 0; background: var(--white); box-shadow: var(--shadow-sm); list-style: none; transition: .2s ease; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { visibility: visible; transform: none; opacity: 1; }
.primary-nav .sub-menu a { padding: 9px 10px; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--forest-100); }
.header-search { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest-900); background: transparent; font-size: 23px; line-height: 1; cursor: pointer; padding: 0; transition: all .2s ease; }
.header-search:hover, .header-search.is-active { border-color: var(--forest-700); background: var(--forest-100); color: var(--forest-900); }
.header-search .search-icon-close { display: none; }
.header-search.is-active .search-icon-open { display: none; }
.header-search.is-active .search-icon-close { display: block; }
.header-search svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Header Search Dropdown */
.header-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; padding: 14px 0; background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 14px 32px rgba(17, 56, 44, .09); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; z-index: 999; }
.header-search-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search-input-wrap { display: flex; align-items: center; gap: 12px; background: #f4f7f5; border: 1.5px solid #d9e3de; border-radius: 14px; padding: 6px 8px 6px 16px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.header-search-input-wrap:focus-within { background: var(--white); border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(23, 75, 59, .1); }
.header-search-icon { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--forest-700); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.header-search-field { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--forest-950); font-family: inherit; min-width: 0; }
.header-search-field::placeholder { color: #7b8e85; }
.header-search-submit { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--forest-800); color: var(--white); font-size: 14px; font-weight: 750; cursor: pointer; white-space: nowrap; transition: background .2s ease; }
.header-search-submit:hover { background: var(--forest-950); }
.header-search-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 50%; background: transparent; color: #6a7e75; cursor: pointer; transition: background .2s ease, color .2s ease; }
.header-search-close:hover { background: #e2ebe6; color: var(--forest-950); }
.header-search-close svg { width: 18px; height: 18px; }

/* Mobile Drawer Search */
.mobile-nav-search { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 10px; background: var(--forest-100); cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 21px; height: 2px; margin: 4px 0; background: var(--forest-900); transition: .2s ease; }

/* Shared */
.button { display: inline-flex; min-height: 48px; padding: 11px 20px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--forest-800); box-shadow: 0 10px 25px rgba(23, 75, 59, .2); }
.button-primary:hover { background: var(--forest-950); box-shadow: 0 13px 30px rgba(23, 75, 59, .28); }
.button-ghost { border-color: #cad5cf; color: var(--forest-900); background: rgba(255, 255, 255, .55); }
.button-light { color: var(--forest-950); background: var(--white); }
.section-kicker { display: block; margin-bottom: 12px; color: var(--forest-700); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-kicker.light { color: #b8dfce; }
.section-heading { display: flex; margin-bottom: 38px; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-heading h2 { max-width: 690px; margin: 0; font-size: clamp(28px, 4vw, 43px); }
.section-heading > p { max-width: 390px; margin: 0 0 4px; color: var(--muted); }
.text-link { color: var(--forest-700); font-size: 14px; font-weight: 750; white-space: nowrap; }
.text-link:hover { color: var(--forest-950); }

/* Home */
.home-hero { position: relative; overflow: hidden; padding-block: 72px 82px; background: var(--cream); }
.home-hero::before { position: absolute; top: -160px; right: -90px; width: 470px; height: 470px; border: 1px solid rgba(23, 75, 59, .12); border-radius: 50%; content: ""; }
.home-hero::after { position: absolute; right: 24%; bottom: -240px; width: 430px; height: 430px; border-radius: 50%; background: rgba(227, 166, 41, .12); content: ""; filter: blur(4px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: center; gap: clamp(48px, 7vw, 92px); }
.hero-badge { display: inline-flex; margin-bottom: 22px; align-items: center; gap: 9px; color: var(--forest-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.hero-copy h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); line-height: 1.01; }
.hero-copy > p { max-width: 610px; margin-bottom: 30px; color: #4e5e57; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; margin-top: 42px; gap: 30px; }
.hero-stats > div { display: flex; min-width: 92px; flex-direction: column; }
.hero-stats strong { color: var(--forest-900); font-size: 24px; line-height: 1; }
.hero-stats span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.hero-feature { position: relative; display: block; transform: rotate(1.2deg); transition: transform .35s ease; }
.hero-feature:hover { transform: rotate(0) translateY(-5px); }
.hero-feature::before { position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--radius-lg); background: var(--forest-800); content: ""; }
.hero-feature-image { overflow: hidden; aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--forest-100); box-shadow: var(--shadow-lg); }
.hero-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-caption { position: absolute; right: 20px; bottom: 20px; left: 20px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 16px; color: var(--white); background: rgba(10, 35, 28, .78); backdrop-filter: blur(12px); }
.hero-feature-caption span { display: block; margin-bottom: 6px; color: #cce7da; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-feature-caption strong { display: -webkit-box; overflow: hidden; font-size: 17px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-categories { background: var(--white); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; display: flex; min-height: 205px; padding: 24px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: .25s ease; }
.category-card:hover { transform: translateY(-5px); border-color: #b9c9c1; background: var(--forest-100); box-shadow: var(--shadow-sm); }
.category-number { color: #9ba9a2; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.category-card strong { max-width: 190px; margin-top: auto; color: var(--forest-950); font-size: 19px; line-height: 1.3; }
.category-card small { margin-top: 7px; color: var(--muted); }
.category-card i { position: absolute; top: 20px; right: 20px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--forest-700); background: var(--forest-100); font-style: normal; }
.category-card:hover i { color: var(--white); background: var(--forest-700); }
.latest-posts { background: #fafbf9; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 3/2; background: var(--forest-100); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(23, 75, 59, .28); background: linear-gradient(135deg, var(--forest-100), var(--cream)); font-size: 28px; font-weight: 900; letter-spacing: .16em; }
.post-card-body { padding: 22px 23px 20px; }
.post-category { display: inline-block; margin-bottom: 12px; color: var(--forest-700); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { margin-bottom: 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.post-card h2 a:hover { color: var(--forest-700); }
.post-card-body > p { display: -webkit-box; overflow: hidden; min-height: 48px; margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-meta { display: flex; padding-top: 15px; justify-content: space-between; border-top: 1px solid #edf0ee; color: #7c8983; font-size: 11px; font-weight: 600; }
.home-callout { padding-top: 0; background: #fafbf9; }
.callout-inner { display: flex; padding: clamp(34px, 5vw, 62px); align-items: center; justify-content: space-between; gap: 50px; border-radius: var(--radius-lg); background: var(--forest-950); }
.callout-inner h2 { max-width: 760px; margin: 0; color: var(--white); font-size: clamp(26px, 4vw, 42px); }

/* Archives */
.archive-main { min-height: 65vh; background: #fafbf9; }
.archive-header { max-width: 790px; margin-bottom: 48px; }
.archive-header h1 { margin-bottom: 14px; font-size: clamp(38px, 6vw, 64px); }
.archive-description { max-width: 650px; color: var(--muted); font-size: 17px; }
.archive-description p { margin-bottom: 0; }
.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; padding-inline: 12px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { border-color: var(--forest-800); color: var(--white); background: var(--forest-800); }
.empty-state { padding: 60px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; background: var(--white); }

/* Article */
.single-main { padding-top: 34px; }
.article-breadcrumbs { display: flex; margin-bottom: 48px; flex-wrap: wrap; gap: 8px; color: #77847e; font-size: 12px; }
.article-breadcrumbs a:hover { color: var(--forest-700); }
.article-header { max-width: 940px; text-align: center; }
.article-header h1 { margin: 0 auto 20px; font-size: clamp(38px, 6vw, 66px); }
.article-meta { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 13px; }
.article-meta span + span { position: relative; }
.article-meta span + span::before { position: absolute; top: 50%; left: -13px; width: 3px; height: 3px; transform: translateY(-50%); border-radius: 50%; background: #a8b3ae; content: ""; }
.article-cover { overflow: hidden; max-width: 1040px; margin-top: 42px; aspect-ratio: 16/8.5; border-radius: var(--radius-lg); background: var(--forest-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; padding-block: 64px 96px; grid-template-columns: minmax(0, 780px) minmax(260px, 320px); justify-content: space-between; gap: 70px; }
.article-content { min-width: 0; }
.editor-rating { display: grid; margin-bottom: 24px; padding: 20px 22px; grid-template-columns: 1fr auto; align-items: center; gap: 14px 20px; border: 1px solid #eedca8; border-radius: 16px; background: var(--gold-soft); }
.editor-rating > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.editor-rating strong { color: #7e5804; font-size: 22px; }
.rating-eyebrow { color: #7e5804; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.rating-stars { color: #d9cfb7; font-size: 22px; letter-spacing: 2px; }
.rating-stars .is-filled { color: var(--gold); }
.editor-rating p { grid-column: 1/-1; margin: -4px 0 0; color: #735f30; font-size: 13px; }
.article-toc { margin-bottom: 36px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.article-toc summary { display: flex; padding: 18px 20px; align-items: center; justify-content: space-between; color: var(--forest-900); cursor: pointer; font-weight: 800; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::before { display: inline-grid; width: 28px; height: 28px; margin-right: 11px; place-items: center; border-radius: 8px; color: var(--white); background: var(--forest-700); content: "+"; }
.article-toc[open] summary::before { content: "−"; }
.article-toc summary span { margin-right: auto; }
.article-toc summary small { color: var(--muted); font-size: 11px; font-weight: 600; }
.article-toc nav { padding: 0 20px 18px 58px; border-top: 1px solid var(--line); }
.article-toc ol { margin: 15px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { position: relative; padding: 5px 0; counter-increment: toc; }
.article-toc li::before { position: absolute; left: -28px; color: #9ba7a2; content: counter(toc, decimal-leading-zero); font-size: 10px; font-weight: 800; }
.article-toc .toc-level-3 { margin-left: 18px; font-size: 14px; }
.article-toc a { color: #42524b; }
.article-toc a:hover { color: var(--forest-700); }
.entry-content { color: #293832; font-size: 17px; line-height: 1.78; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 105px; }
.entry-content h2 { margin-top: 2.15em; font-size: clamp(27px, 4vw, 35px); }
.entry-content h3 { margin-top: 1.8em; font-size: 23px; }
.entry-content h4 { margin-top: 1.6em; font-size: 19px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.35em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { color: var(--forest-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.entry-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; color: var(--forest-900); background: var(--cream); font-size: 18px; }
.entry-content table { width: 100%; border-spacing: 0; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--forest-100); }
.entry-content iframe { max-width: 100%; }
.article-tags { display: flex; margin-top: 40px; padding-top: 24px; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.article-tags span { margin-right: 5px; color: var(--muted); font-weight: 750; }
.article-tags a { padding: 5px 10px; border-radius: 7px; background: var(--forest-100); }
.post-navigation { display: grid; margin-top: 32px; padding: 24px 0; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-navigation a { color: var(--forest-950); font-weight: 730; line-height: 1.35; }
.article-sidebar { min-width: 0; }
.sidebar-panel { position: sticky; top: 105px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fbfcfb; }
.sidebar-panel h2 { margin-bottom: 20px; font-size: 23px; }
.popular-list { margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.popular-list li { position: relative; min-height: 64px; padding: 14px 0 14px 42px; border-top: 1px solid var(--line); counter-increment: popular; }
.popular-list li::before { position: absolute; top: 11px; left: 0; color: #b8c1bd; content: counter(popular, decimal-leading-zero); font-size: 16px; font-weight: 850; }
.popular-list a { display: block; color: var(--forest-950); font-size: 14px; font-weight: 730; line-height: 1.4; }
.popular-list a:hover { color: var(--forest-700); }
.popular-list span { display: block; margin-top: 6px; color: #87938e; font-size: 10px; }
.related-posts { background: #fafbf9; }

/* Pages, search, error */
.page-main { min-height: 65vh; }
.page-content > header h1 { margin-bottom: 38px; font-size: clamp(38px, 6vw, 60px); }
.page-cover { overflow: hidden; margin-bottom: 35px; border-radius: var(--radius-md); }
.search-form { display: flex; max-width: 600px; margin-top: 25px; gap: 8px; }
.search-form input { width: 100%; min-height: 48px; padding: 10px 15px; border: 1px solid #cdd7d2; border-radius: 10px; background: var(--white); }
.search-form button { min-width: 78px; border: 0; border-radius: 10px; color: var(--white); background: var(--forest-800); font-weight: 750; cursor: pointer; }
.error-main { min-height: 68vh; background: var(--cream); }
.error-state { max-width: 780px; margin-inline: auto; }
.error-state > span { color: var(--gold); font-size: clamp(70px, 15vw, 140px); font-weight: 900; line-height: 1; }
.error-state h1 { margin-top: 14px; font-size: clamp(31px, 5vw, 48px); }
.error-state p { max-width: 590px; margin-inline: auto; color: var(--muted); }
.error-state .search-form { margin: 28px auto 18px; }

/* Footer */
.site-footer { padding-top: 68px; color: #bfcec7; background: var(--forest-950); }
.footer-grid { display: grid; padding-bottom: 55px; grid-template-columns: 1.45fr 1fr 1fr; gap: 70px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--white); font-size: 21px; font-weight: 820; text-decoration: none; }
.footer-brand-logo { width: 36px; height: 36px; object-fit: contain; flex: 0 0 36px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25)); }
.footer-contact-info { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: #cfded6; }
.footer-contact-icon { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; fill: var(--gold); }
.footer-contact-item strong { color: var(--white); font-weight: 700; margin-right: 4px; }
.footer-contact-item a { color: var(--gold); text-decoration: none; font-weight: 700; }
.footer-contact-item a:hover { color: var(--white); text-decoration: underline; }
.footer-grid p { max-width: 430px; color: #aebfb7; font-size: 14px; }
.footer-grid h2 { margin-bottom: 17px; color: var(--white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a, .footer-search-link { color: #b8c8c0; font-size: 13px; }
.footer-links a:hover, .footer-search-link:hover { color: var(--white); }
.footer-bottom { display: flex; padding-block: 20px; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255, 255, 255, .1); color: #84978e; font-size: 11px; }

@media (max-width: 1050px) {
  .primary-nav .menu { gap: 18px; }
  .primary-nav .menu a { font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { gap: 38px; grid-template-columns: minmax(0, 1fr) 285px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section-space { padding-block: 68px; }
  .menu-toggle { display: block; margin-left: auto; }
  .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); }
  .primary-nav { position: fixed; top: 76px; right: 0; bottom: 0; left: 0; display: block; visibility: hidden; padding: 18px 20px 40px; transform: translateY(-8px); opacity: 0; background: var(--white); transition: .2s ease; }
  .primary-nav.is-open { visibility: visible; transform: none; opacity: 1; }
  .primary-nav .menu { display: block; }
  .primary-nav .menu a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav .sub-menu { position: static; visibility: visible; padding: 0 0 0 18px; transform: none; border: 0; opacity: 1; box-shadow: none; }
  .header-search { margin-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 61px); }
  .hero-feature { width: min(100%, 570px); margin-inline: auto; }
  .hero-feature-image { aspect-ratio: 4/3; }
  .post-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: 2; }
  .sidebar-panel { position: static; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 45px; }
  .footer-grid > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 580px) {
  .site-branding { min-width: 0; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy span { display: none; }
  .site-title { max-width: 240px; font-size: 14.5px; }
  .home-hero { padding-block: 50px 65px; }
  .hero-copy > p { font-size: 16px; }
  .hero-stats { gap: 14px; justify-content: space-between; }
  .hero-stats > div { min-width: 0; }
  .hero-stats strong { font-size: 20px; }
  .category-grid, .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading .text-link { display: block; margin-top: 15px; }
  .callout-inner { display: block; }
  .callout-inner .button { margin-top: 25px; }
  .article-breadcrumbs { margin-bottom: 32px; }
  .article-header { text-align: left; }
  .article-header h1 { font-size: 38px; }
  .article-meta { justify-content: flex-start; gap: 17px; font-size: 11px; }
  .article-meta span + span::before { left: -10px; }
  .article-cover { width: 100%; margin-top: 30px; border-radius: 0; }
  .article-layout { padding-top: 42px; }
  .editor-rating { grid-template-columns: 1fr; }
  .rating-stars { grid-row: 2; }
  .article-toc summary small { display: none; }
  .article-toc nav { padding-left: 48px; }
  .entry-content { font-size: 16px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation > div:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .article-sidebar, .article-toc, .post-navigation, .related-posts, .editor-rating { display: none !important; }
  .article-layout { display: block; padding: 0; }
  .entry-content { color: #000; font-size: 12pt; }
}


/* Refined navigation */
.site-header {
  box-shadow: 0 1px 0 rgba(12, 49, 38, .03);
}
.header-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

@media (min-width: 821px) {
  .header-inner {
    width: min(calc(100% - 32px), 1280px);
    min-height: 82px;
    gap: 24px;
  }
  .site-branding {
    min-width: 270px;
  }
  .primary-nav {
    gap: 7px;
    padding: 5px;
    border: 1px solid #e1e9e4;
    border-radius: 16px;
    background: #f4f7f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  .primary-nav .menu {
    gap: 2px;
  }
  .primary-nav .menu a {
    position: relative;
    padding: 10px 13px;
    border-radius: 11px;
    color: #41534b;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .primary-nav .menu > li > a:hover {
    transform: translateY(-1px);
    color: var(--forest-900);
    background: var(--white);
    box-shadow: 0 5px 16px rgba(15, 55, 43, .08);
  }
  .primary-nav .menu > .is-current > a,
  .primary-nav .menu > .current-menu-item > a,
  .primary-nav .menu > .current-category-ancestor > a,
  .primary-nav .menu > .current-post-ancestor > a {
    color: var(--white);
    background: var(--forest-800);
    box-shadow: 0 7px 17px rgba(23, 75, 59, .2);
  }
  .primary-nav .sub-menu {
    top: calc(100% + 12px);
    left: 0;
    padding: 8px;
    border-color: #dfe7e2;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(10, 42, 32, .13);
  }
  .primary-nav .sub-menu::before {
    position: absolute;
    top: -13px;
    right: 0;
    left: 0;
    height: 13px;
    content: "";
  }
  .primary-nav .sub-menu a {
    padding: 10px 11px;
    color: #41534b;
    white-space: normal;
  }
  .header-search {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 11px;
    color: var(--forest-900);
    background: var(--gold-soft);
  }
  .header-search:hover {
    color: var(--white);
    background: var(--forest-800);
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }
  .primary-nav {
    top: 72px;
    padding: 25px 15px 40px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(12, 49, 38, .12);
  }
  .primary-nav::before {
    display: block;
    margin: 0 5px 13px;
    color: #7b8b83;
    content: "Danh mục";
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .primary-nav .menu li {
    margin-bottom: 7px;
  }
  .primary-nav .menu a {
    padding: 13px 15px;
    border: 1px solid #e1e8e4;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(19, 57, 45, .04);
    font-size: 15px;
  }
  .primary-nav .menu a:hover {
    border-color: #bfd0c7;
    color: var(--forest-800);
    background: var(--forest-100);
  }
  .primary-nav .menu > .is-current > a,
  .primary-nav .menu > .current-menu-item > a,
  .primary-nav .menu > .current-category-ancestor > a,
  .primary-nav .menu > .current-post-ancestor > a {
    border-color: var(--forest-800);
    color: var(--white);
    background: var(--forest-800);
    box-shadow: 0 8px 22px rgba(23, 75, 59, .18);
  }
  .primary-nav .sub-menu {
    padding: 5px 0 0 16px;
    background: transparent;
  }
  .mobile-nav-search {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 16px;
  }
  .mobile-nav-search input {
    width: 100%;
    height: 46px;
    padding: 10px 50px 10px 16px;
    border: 1px solid #dce4e0;
    border-radius: 12px;
    background: var(--white);
    font-size: 14px;
    color: var(--forest-950);
    outline: 0;
    box-shadow: 0 2px 8px rgba(19, 57, 45, .04);
  }
  .mobile-nav-search input:focus {
    border-color: var(--forest-700);
    box-shadow: 0 0 0 3px rgba(23, 75, 59, .12);
  }
  .mobile-nav-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--forest-800);
    color: var(--white);
    cursor: pointer;
  }
  .mobile-nav-search button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
  }
  .primary-nav .header-search {
    display: none;
  }
  .menu-toggle {
    border: 1px solid #dce6e0;
    background: #f3f7f5;
  }
}