:root {
  color-scheme: light;
  --ink: #262724;
  --ink-soft: #484a45;
  --muted: #777972;
  --muted-light: #92938c;
  --accent: #b65e3f;
  --accent-dark: #91472f;
  --bg: #f6f5f2;
  --paper: #fff;
  --paper-warm: #fbfaf8;
  --stone: #eeece7;
  --line: #e5e3dd;
  --line-strong: #d7d4cc;
  --charcoal: #292a27;
  --container: 1240px;
  --shadow: 0 20px 55px rgba(38, 39, 36, .08);
  --shadow-soft: 0 8px 24px rgba(38, 39, 36, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: #ead6cc; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(182, 94, 63, .55); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 56px)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header { position: relative; z-index: 40; border-bottom: 1px solid rgba(38, 39, 36, .08); background: rgba(246, 245, 242, .98); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 11px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--charcoal);
  color: #f7f4ef;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}
.brand-name { font-size: 17px; font-weight: 850; line-height: 1; letter-spacing: .13em; white-space: nowrap; }
.nav-band { position: relative; z-index: 45; background: var(--charcoal); }
.desktop-nav { position: relative; display: flex; align-items: stretch; min-height: 54px; }
.nav-item { position: relative; flex: 1 1 0; min-width: 0; }
.nav-item-row { display: flex; min-height: 54px; border-right: 1px solid rgba(255, 255, 255, .12); transition: background .16s ease; }
.nav-item:first-child .nav-item-row { border-left: 1px solid rgba(255, 255, 255, .12); }
.nav-parent { display: flex; flex: 1; min-width: 0; align-items: center; padding: 0 8px 0 14px; color: #f7f4ef; font-size: 12px; font-weight: 760; letter-spacing: .01em; line-height: 1.3; transition: color .16s ease; }
.nav-disclosure { display: grid; width: 32px; flex: none; place-items: center; margin-right: 5px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #d5d4cf; transition: background .16s ease, color .16s ease; }
.nav-item-row:hover, .nav-item[data-current="true"] .nav-item-row, .nav-item[data-open="true"] .nav-item-row { background: #3a3b37; }
.nav-item-row:hover .nav-parent, .nav-item:focus-within .nav-parent, .nav-item[data-current="true"] .nav-parent { color: #fff; }
.nav-item[data-current="true"] .nav-item-row { box-shadow: inset 0 -2px var(--accent); }
.nav-disclosure:hover, .nav-disclosure[aria-expanded="true"] { background: #444540; color: #fff; }
.nav-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.nav-item[data-open="true"] .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-submenu { position: absolute; z-index: 50; top: calc(100% - 1px); left: 0; display: grid; width: max(100%, 268px); max-width: 310px; grid-template-columns: minmax(0, 1fr); padding: 6px; border: 1px solid var(--line); border-top-color: #d9d5cc; border-radius: 0 0 11px 11px; background: var(--paper); box-shadow: 0 14px 30px rgba(22, 23, 21, .16); }
.nav-item:nth-of-type(n+4) .nav-submenu { right: 0; left: auto; }
.nav-submenu[hidden] { display: none; }
.nav-submenu-link { display: block; min-width: 0; min-height: 38px; padding: 8px 11px; border-radius: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 620; line-height: 1.3; transition: background .14s ease, color .14s ease; }
.nav-submenu-link:hover, .nav-submenu-link[aria-current="page"] { background: var(--paper-warm); color: var(--accent-dark); }
.nav-tool { display: flex; flex: none; align-items: center; min-height: 54px; margin-left: auto; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .12); color: #deded9; font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.nav-tool:hover, .nav-tool[aria-current="page"] { background: #3a3b37; color: #fff; }
.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease;
}
.search-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-search:hover { border-color: var(--line-strong); background: var(--paper); color: var(--accent-dark); }
.mobile-menu-toggle { display: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { display: none; }
.mobile-nav-group { min-width: 0; }
.mobile-nav-heading { margin: 0; font-size: 15px; font-weight: 780; line-height: 1.4; }
.mobile-nav-heading a { display: flex; align-items: center; min-height: 48px; }
.mobile-nav-heading a:hover, .mobile-nav-heading a[aria-current="page"] { color: var(--accent-dark); }
.mobile-nav-links { display: grid; align-content: start; }
.mobile-nav-accordion { border-top: 1px solid var(--line); }
.mobile-nav-accordion summary { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 2px; color: var(--ink-soft); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.4; list-style: none; }
.mobile-nav-accordion summary::-webkit-details-marker { display: none; }
.mobile-nav-accordion summary::after { width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.mobile-nav-accordion[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mobile-nav-accordion-content { display: grid; padding: 0 0 8px 11px; }
.mobile-nav-link { display: flex; min-width: 0; min-height: 44px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; font-weight: 620; line-height: 1.4; overflow-wrap: anywhere; }
.mobile-nav-link:hover, .mobile-nav-link[aria-current="page"] { color: var(--accent-dark); }
.mobile-nav-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 9px; }
.mobile-nav-tool { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.mobile-nav-tool:hover, .mobile-nav-tool[aria-current="page"] { border-color: #d1b09f; color: var(--accent-dark); }

@media (min-width: 1121px) and (max-width: 1280px) {
  .nav-parent { padding-left: 8px; font-size: 11px; }
  .nav-tool { padding-inline: 12px; }
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  min-height: 540px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #e4e1db;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.hero-copy { align-self: center; padding: 56px clamp(32px, 5vw, 64px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(43px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.04;
}
.hero-lead { max-width: 510px; margin: 20px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--charcoal); color: #fff; }
.button-dark:hover { background: var(--accent-dark); }
.button-light { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
.button-light:hover { border-color: var(--accent); background: var(--paper-warm); }
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 500px;
  min-height: 56px;
  margin-top: 28px;
  padding: 5px 5px 5px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-warm);
}
.hero-search input, .search-page-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.hero-search input::placeholder, .search-page-form input::placeholder { color: #999991; }
.hero-search button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
.hero-search button:hover { background: var(--accent-dark); }
.hero-search-hint { margin: 8px 0 0 3px; color: var(--muted-light); font-size: 11px; }
.hero-visual { position: relative; min-width: 0; min-height: 540px; margin: 0; background: var(--stone); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(35, 36, 33, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}
.photo-mark { width: 7px; height: 7px; border-radius: 50%; background: #df9878; }

.section { padding-block: 82px; }
.section-muted { background: #efeee9; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .faq-intro h2, .promo-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 43px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.section-lead { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.catalog-index { padding: 4px 0 46px; color: var(--muted); font-size: 14px; }
.catalog-index .eyebrow { margin-bottom: 7px; }
.catalog-index p:last-child { max-width: 700px; margin: 0; }
.section-more { display: flex; justify-content: flex-end; margin-top: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--ink); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.section[aria-labelledby="topics-title"] .category-grid, .catalog-section .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card {
  position: relative;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: #c8a595; box-shadow: var(--shadow-soft); }
.category-number { display: inline-grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: #f2e8e2; color: var(--accent-dark); font-size: 12px; font-weight: 850; }
.category-arrow { position: absolute; top: 20px; right: 20px; color: #92918a; font-size: 18px; transition: transform .16s ease, color .16s ease; }
.category-card:hover .category-arrow { transform: translate(2px, -2px); color: var(--accent); }
.category-card h3 { margin: 18px 0 5px; font-size: 18px; font-weight: 780; letter-spacing: -.035em; line-height: 1.25; }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.section-topics { padding-top: 36px; padding-bottom: 72px; }
.section-heading.compact h2 { font-size: clamp(25px, 2.7vw, 34px); }
.section-heading.compact .section-lead { margin-top: 9px; }
.section-topic-navigation { display: flex; flex-wrap: wrap; gap: 8px; }
.section-topic-chip { min-height: 40px; gap: 8px; }
.section-topic-count { color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
.section-empty-note { padding-bottom: 72px; color: var(--muted); font-size: 13px; }
.section-empty-note p { margin: 0; }
.group-categories { padding-top: 26px; padding-bottom: 22px; }
.group-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-category-link { position: relative; display: grid; min-height: 94px; align-content: center; gap: 5px; padding: 16px 44px 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.group-category-link:hover { border-color: #c8a595; box-shadow: var(--shadow-soft); }
.group-category-link strong { font-size: 14px; }
.group-category-link span:not(.group-category-arrow) { color: var(--muted); font-size: 12px; }
.group-category-arrow { position: absolute; top: 50%; right: 17px; color: var(--accent-dark); transform: translateY(-50%); }
.group-topic-section { padding-top: 45px; padding-bottom: 70px; }
.group-topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 24px; margin: 0; padding: 0; list-style: none; }
.group-topic-list li { min-width: 0; border-bottom: 1px solid var(--line); }
.group-topic-list a { display: flex; min-height: 45px; align-items: center; padding: 7px 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.4; transition: color .14s ease; }
.group-topic-list a:hover { color: var(--accent-dark); }
.topic-empty { padding-top: 5px; padding-bottom: 72px; }
.topic-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: min(var(--container), calc(100% - 48px)); margin: 0 auto; padding: 4px 0 24px; }
.topic-navigation-label { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 750; }
.topic-chip { display: inline-flex; min-height: 34px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; line-height: 1.3; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.topic-chip:hover, .topic-chip.is-current { border-color: #cba895; background: #f7eee8; color: var(--accent-dark); }
.topic-chip.is-current { font-weight: 750; }
.listing-section { padding-top: 28px; }
.article-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.pagination-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.pagination-link:hover { border-color: #cba895; color: var(--accent-dark); }
.pagination-link.is-disabled { color: #a7a59e; background: #f3f2ef; }
.pagination-status { color: var(--muted); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: #d3b4a5; box-shadow: var(--shadow-soft); }
.article-card-image { display: block; aspect-ratio: 1.58; overflow: hidden; background: var(--stone); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-card-image img { transform: scale(1.025); }
.article-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 19px; }
.article-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; width: 100%; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.article-card-meta span:first-child { color: var(--accent-dark); }
.article-card h3 { margin: 12px 0 8px; font-size: 19px; font-weight: 790; letter-spacing: -.035em; line-height: 1.28; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card-body > p { display: -webkit-box; min-height: 68px; margin: 0 0 18px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.62; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-card-body .text-link { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }

.calculators-promo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 42px; padding: 42px; overflow: hidden; border-radius: 20px; background: var(--charcoal); color: #f8f7f3; }
.promo-copy .eyebrow { color: #e1a187; }
.promo-copy h2 { font-size: clamp(31px, 4vw, 46px); }
.promo-copy > p:not(.eyebrow) { max-width: 440px; margin: 15px 0 22px; color: #c5c5be; font-size: 14px; line-height: 1.7; }
.promo-copy .button-light { border-color: #60615c; background: transparent; color: #fff; }
.promo-copy .button-light:hover { border-color: #d18a6b; background: #353632; }
.promo-list { display: grid; align-content: center; }
.promo-list a { display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 12px; min-height: 67px; border-bottom: 1px solid #4a4b46; }
.promo-list a:last-child { border-bottom: 0; }
.promo-list a > span:first-child { color: #ca9278; font-size: 11px; font-weight: 800; }
.promo-list strong { font-size: 15px; font-weight: 700; }
.promo-list a > span:last-child { color: #c2c2bb; font-size: 18px; text-align: right; }
.promo-list a:hover strong { color: #e1a187; }

.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; }
.faq-intro h2 { font-size: clamp(30px, 3.2vw, 39px); }
.faq-intro > p:last-child { max-width: 360px; margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { position: relative; padding: 17px 32px 17px 0; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 720; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 16px; right: 2px; color: var(--accent); content: "+"; font-size: 20px; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 680px; margin: -3px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.site-footer { padding: 45px 0 18px; background: var(--charcoal); color: #f6f4ef; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(150px, .7fr)); gap: 48px; padding-bottom: 34px; }
.brand-light .brand-mark { border: 1px solid #63645e; background: transparent; color: #f6f4ef; }
.footer-brand p { max-width: 280px; margin: 14px 0 0; color: #bcbdb6; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links h2 { margin: 4px 0 7px; color: #d5a18a; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: #d3d3cc; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 15px; border-top: 1px solid #4a4b46; color: #aeb0a9; font-size: 10px; }
.footer-bottom span:last-child { max-width: 650px; text-align: right; }

.breadcrumbs { padding-top: 24px; color: var(--muted); font-size: 11px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: #aaa9a2; content: "/"; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.page-intro { padding-top: 48px; padding-bottom: 18px; }
.page-intro .eyebrow { margin-bottom: 12px; }
.page-intro h1 { max-width: 900px; margin: 0; font-size: clamp(39px, 5vw, 62px); font-weight: 790; letter-spacing: -.065em; line-height: 1.08; }
.page-lead { max-width: 770px; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.catalog-section { padding-top: 28px; padding-bottom: 90px; }
.catalog-section .category-card { min-height: 188px; }
.category-content { padding-top: 24px; padding-bottom: 90px; }
.category-start { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.category-start h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; line-height: 1.2; }
.category-start > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.category-start ol { margin: 0; padding-left: 24px; color: var(--ink-soft); font-size: 14px; }
.category-start li { padding: 4px 0 10px 5px; }
.category-start li::marker { color: var(--accent); font-weight: 800; }
.category-articles { margin-top: 50px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading.compact h2 { font-size: 31px; }
.empty-note { padding: 26px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--paper); }
.empty-note p { margin: 5px 0 15px; color: var(--muted); font-size: 13px; }

.article-shell { padding-bottom: 24px; }
.article-head { max-width: 980px; margin: 40px auto 26px; }
.article-head .eyebrow { margin-bottom: 12px; }
.article-head h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); font-weight: 790; letter-spacing: -.065em; line-height: 1.08; }
.article-lead { margin: 17px 0 17px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #777870; font-size: 11px; font-weight: 700; }
.article-meta span + span::before { margin-right: 10px; color: #c2bfb7; content: "•"; }
.article-cover { display: block; width: min(100%, 980px); height: auto; aspect-ratio: auto; margin: 0 auto 22px; border-radius: 18px; background: var(--stone); object-fit: contain; }
.article-toc { max-width: 980px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.article-toc summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 17px; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 750; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after { color: var(--accent); content: "+"; font-size: 18px; font-weight: 500; }
.article-toc[open] summary::after { content: "−"; }
.article-toc summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 550; }
.article-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 6px 20px 18px 37px; color: var(--accent-dark); font-size: 12px; }
.article-toc a:hover { text-decoration: underline; }
.article-reading { max-width: 980px; margin: 32px auto 60px; }
.article-content { color: #41433f; font-size: 16px; line-height: 1.82; }
.article-content section { scroll-margin-top: 24px; }
.article-content h2 { margin: 38px 0 12px; color: var(--ink); font-size: 28px; font-weight: 770; letter-spacing: -.045em; line-height: 1.2; }
.article-content section:first-child h2 { margin-top: 0; }
.article-content p { margin: 0 0 17px; }
.article-content ul { margin: 0 0 22px; padding-left: 22px; }
.article-content li { margin: 0 0 8px; padding-left: 4px; }
.article-content li::marker { color: var(--accent); }
.article-figure { max-width: 100%; margin: 25px 0 28px; }
.article-figure img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-radius: 14px; background: var(--stone); object-fit: contain; }
.article-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px !important; }
.article-inline-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--accent-dark); font-size: 13px; font-weight: 750; }
.article-inline-links a:hover { border-color: #c8a595; background: var(--paper-warm); }
.article-sources { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-sources h2 { margin: 0 0 15px; font-size: 23px; }
.article-sources ol { display: grid; gap: 14px; margin: 0; padding-left: 22px; }
.article-sources li { padding-left: 4px; }
.article-sources a { color: var(--accent-dark); font-weight: 750; text-decoration: underline; text-decoration-color: #d9b7a7; text-underline-offset: 3px; }
.article-sources li > span, .article-sources small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.article-callout { display: flex; align-items: flex-start; gap: 13px; margin: 23px 0; padding: 17px 18px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #f1e8e2; color: #494640; }
.callout-mark { display: grid; width: 21px; height: 21px; flex: none; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.article-callout p { margin: 0; font-size: 14px; line-height: 1.6; }
.article-faq { margin-top: 44px; }
.article-faq h2 { margin-bottom: 16px; }
.source-note { margin-top: 28px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.related-section { padding-block: 65px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: start; gap: 14px; min-height: 165px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #c8a595; box-shadow: var(--shadow-soft); }
.tool-card .category-arrow { position: static; text-align: right; }
.tool-card h3 { margin: 2px 0 6px; font-size: 17px; letter-spacing: -.03em; line-height: 1.3; }
.tool-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.calculator-list { padding-top: 28px; padding-bottom: 35px; }
.calculator-note { margin-bottom: 80px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #efeee9; color: var(--ink-soft); font-size: 13px; }
.calculator-note p { margin: 4px 0 0; color: var(--muted); }
.calculator-page-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: 18px; padding-top: 24px; }
.calculator-panel, .formula-panel { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 13px; margin-bottom: 20px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.input-with-unit { display: flex; align-items: center; min-height: 46px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper-warm); }
.input-with-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(182, 94, 63, .12); }
.input-with-unit input { width: 100%; min-width: 0; height: 44px; padding: 0 11px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.input-with-unit span { flex: none; padding: 0 10px 0 2px; color: var(--muted); font-size: 10px; font-weight: 550; white-space: nowrap; }
.calculator-form > .button { min-width: 150px; }
.calc-result { margin-top: 18px; padding: 16px; border-radius: 10px; background: #f2e9e3; color: var(--ink); }
.calc-result strong { display: block; margin-bottom: 3px; font-size: 14px; }
.calc-result p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.calc-result .result-value { color: var(--accent-dark); font-size: 22px; font-weight: 850; letter-spacing: -.04em; }
.formula-panel { background: #efeee9; }
.formula-panel .eyebrow { margin-bottom: 8px; }
.formula-panel h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.04em; line-height: 1.25; }
.formula-panel p:not(.eyebrow) { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.calculator-page-layout + .calculator-note { margin-top: 22px; background: transparent; border: 0; padding-inline: 0; }

.search-page { padding-bottom: 90px; }
.search-page-form { display: flex; max-width: 740px; gap: 10px; margin-top: 24px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); }
.search-page-form input { padding: 0 12px; }
.search-status { min-height: 21px; margin: 16px 0 8px; color: var(--muted); font-size: 12px; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-result { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.search-result .eyebrow { margin-bottom: 7px; font-size: 9px; }
.search-result h2 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.03em; line-height: 1.3; }
.search-result h2 a:hover { color: var(--accent-dark); }
.search-result p { margin: 0; color: var(--muted); font-size: 12px; }
.error-page { min-height: 55vh; padding-top: 110px; padding-bottom: 90px; }
.error-page .button { margin-top: 24px; }

@media (max-width: 1120px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .header-inner { gap: 16px; }
  .nav-band, .header-search { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 750; }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { border-color: #d1b09f; color: var(--accent-dark); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 15px; height: 1.5px; border-radius: 2px; background: currentColor; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; transition: transform .16s ease, top .16s ease; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-nav:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0; padding-top: 8px; padding-bottom: 16px; border-top: 1px solid var(--line); }
  .mobile-nav-group { padding: 3px 0 8px; border-bottom: 1px solid var(--line); }
  .mobile-nav-tools { padding-top: 15px; }
  .mobile-nav-tools { gap: 9px; }
  .hero-section { min-height: 500px; }
  .hero-copy { padding-inline: 36px; }
  .hero-visual { min-height: 500px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section[aria-labelledby="topics-title"] .category-grid, .catalog-section .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 170px; }
  .footer-main { gap: 28px; }
}

@media (max-width: 900px) {
  .hero-section { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 36px; }
  .hero-visual { order: -1; min-height: 0; aspect-ratio: 1.9; }
  .article-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 20px; }
  .brand-name { font-size: 15px; }
  .mobile-nav:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav-tools { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-section { display: flex; flex-direction: column; min-height: 0; margin-top: 16px; border-radius: 17px; }
  .hero-copy { padding: 31px 26px 25px; }
  .hero h1 { max-width: 580px; font-size: clamp(38px, 8.5vw, 52px); letter-spacing: -.06em; }
  .hero-lead { max-width: 560px; margin: 14px 0 20px; font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 44px; padding-inline: 14px; font-size: 12px; }
  .hero-search { max-width: none; min-height: 52px; margin-top: 20px; }
  .hero-search button { min-height: 40px; padding-inline: 13px; }
  .hero-search-hint { font-size: 10px; }
  .hero-visual { width: 100%; min-height: 0; aspect-ratio: 1.48; }
  .hero-visual img { object-position: center 53%; }
  .hero-visual figcaption { right: 12px; bottom: 12px; min-height: 32px; padding-inline: 10px; font-size: 9px; }
  .section { padding-block: 58px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2, .faq-intro h2 { font-size: 31px; }
  .section-lead { font-size: 13px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 150px; padding: 15px; border-radius: 12px; }
  .group-topic-list { grid-template-columns: minmax(0, 1fr); }
  .group-category-list { grid-template-columns: minmax(0, 1fr); }
  .group-topic-list { gap: 0; }
  .category-number { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
  .category-arrow { top: 15px; right: 15px; font-size: 16px; }
  .category-card h3 { margin-top: 13px; font-size: 15px; }
  .category-card p { font-size: 11px; line-height: 1.5; }
  .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-card { display: grid; grid-template-columns: minmax(116px, .43fr) minmax(0, .57fr); min-height: 150px; border-radius: 12px; }
  .article-card-image { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .article-card-image img { height: 100%; object-fit: cover; }
  .article-card-body { padding: 13px; }
  .article-card-meta { gap: 4px; font-size: 8px; letter-spacing: .035em; }
  .article-card h3 { margin: 8px 0 6px; font-size: 14px; line-height: 1.26; }
  .article-card-body > p { display: none; }
  .article-card-body .text-link { padding-top: 7px; font-size: 10px; }
  .calculators-promo { grid-template-columns: 1fr; gap: 26px; padding: 25px; border-radius: 15px; }
  .promo-copy h2 { font-size: 34px; }
  .promo-copy > p:not(.eyebrow) { font-size: 13px; }
  .promo-list a { min-height: 58px; }
  .promo-list strong { font-size: 13px; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro > p:last-child { font-size: 13px; }
  .faq-item summary { font-size: 13px; }
  .faq-item p { font-size: 12px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom span:last-child { text-align: left; }
  .breadcrumbs { padding-top: 17px; font-size: 10px; }
  .page-intro { padding-top: 35px; }
  .page-intro h1 { font-size: clamp(35px, 8vw, 48px); }
  .page-lead { margin-top: 12px; font-size: 14px; line-height: 1.65; }
  .catalog-section { padding-top: 20px; padding-bottom: 58px; }
  .catalog-section .category-card { min-height: 150px; }
  .category-start { grid-template-columns: 1fr; gap: 14px; padding: 19px; }
  .category-start h2 { font-size: 21px; }
  .category-start ol { padding-left: 21px; font-size: 12px; }
  .category-articles { margin-top: 34px; }
  .section-heading.compact h2 { font-size: 27px; }
  .article-head { max-width: 100%; margin: 28px auto 19px; }
  .article-head h1 { font-size: clamp(35px, 8vw, 49px); }
  .article-lead { margin: 12px 0; font-size: 14px; line-height: 1.65; }
  .article-cover { height: auto; aspect-ratio: auto; margin-bottom: 14px; border-radius: 13px; object-fit: contain; }
  .article-toc { border-radius: 10px; }
  .article-toc summary { min-height: 47px; padding-inline: 13px; font-size: 12px; }
  .article-toc ol { grid-template-columns: 1fr; gap: 4px; padding: 2px 16px 14px 32px; font-size: 11px; }
  .article-reading { max-width: 100%; margin: 24px auto 45px; }
  .article-content { font-size: 14px; line-height: 1.75; }
  .article-content h2 { margin: 30px 0 10px; font-size: 23px; }
  .article-content p { margin-bottom: 14px; }
  .article-content ul { padding-left: 19px; }
  .article-callout { padding: 14px; }
  .article-callout p { font-size: 12px; }
  .article-figure { max-width: 100%; margin: 20px 0 23px; }
  .article-figure img { border-radius: 10px; }
  .article-figure figcaption { font-size: 11px; }
  .article-inline-links { gap: 7px; }
  .article-inline-links a { padding: 9px 10px; font-size: 11px; }
  .article-sources { margin-top: 32px; padding-top: 20px; }
  .article-sources h2 { font-size: 20px; }
  .article-sources li > span, .article-sources small { font-size: 11px; }
  .source-note { font-size: 11px; }
  .related-section { padding-block: 45px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { min-height: 118px; padding: 16px; }
  .tool-card h3 { font-size: 15px; }
  .tool-card p { font-size: 11px; }
  .calculator-list { padding-top: 18px; padding-bottom: 24px; }
  .calculator-note { margin-bottom: 50px; font-size: 12px; }
  .calculator-page-layout { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
  .calculator-panel, .formula-panel { padding: 18px; }
  .calculator-fields { gap: 13px 10px; }
  .form-field { font-size: 11px; }
  .input-with-unit span { font-size: 9px; }
  .search-results { grid-template-columns: 1fr; }
  .search-page-form { gap: 5px; }
}

@media (max-width: 520px) {
  .mobile-nav:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav-tools { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section[aria-labelledby="topics-title"] .category-grid, .catalog-section .category-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .hero-copy { padding: 25px 18px 21px; }
  .hero h1 { font-size: 37px; }
  .hero-search { padding-left: 10px; }
  .hero-search input { font-size: 12px; }
  .hero-search button { padding-inline: 10px; font-size: 11px; }
  .hero-visual { aspect-ratio: 1.38; }
  .category-card { min-height: 162px; padding: 13px; }
  .category-card h3 { font-size: 14px; }
  .category-card p { font-size: 10px; }
  .article-card { grid-template-columns: 105px minmax(0, 1fr); min-height: 138px; }
  .article-card-image { min-height: 138px; }
  .article-card-body { padding: 10px; }
  .article-card h3 { font-size: 13px; }
  .article-card-meta { font-size: 7px; }
  .article-card-body .text-link { font-size: 9px; }
  .footer-main { gap: 24px 14px; }
  .calculator-fields { grid-template-columns: 1fr; }
  .search-page-form .button { min-height: 43px; padding-inline: 12px; font-size: 12px; }
}

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

/* Responsive comparison tables within long-form articles */
.article-table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.article-comparison-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.article-comparison-table th, .article-comparison-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-comparison-table thead th { background: #ebe9e3; color: var(--ink); font-weight: 780; white-space: nowrap; }
.article-comparison-table tbody th { color: var(--ink); font-weight: 740; }
.article-comparison-table tbody tr:nth-child(even) { background: #f6f4ef; }
.article-comparison-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) {
  .article-table-scroll { margin: 17px 0 22px; border-radius: 9px; }
  .article-comparison-table { font-size: 12px; }
  .article-comparison-table th, .article-comparison-table td { padding: 10px 12px; }
}

/* Compact section landing pages */
.section-page-intro { padding-top: 30px; padding-bottom: 4px; }
.section-page-intro .eyebrow { margin-bottom: 6px; }
.section-page-intro h1 { font-size: clamp(38px, 4vw, 50px); }
.section-page-intro .page-lead { max-width: 1050px; margin-top: 8px; font-size: 15px; line-height: 1.5; }
.section-page-topics { padding-top: 10px; padding-bottom: 22px; }
.section-page-topics .section-heading { margin-bottom: 12px; }
.section-page-topics .section-heading .eyebrow { margin-bottom: 4px; }
.section-page-topics .section-heading h2 { font-size: clamp(24px, 2.2vw, 28px); }
.section-page-topics .section-heading .section-lead { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.section-page-topics .section-topic-navigation { gap: 6px; }
.section-page-topics .section-topic-chip { min-height: 34px; padding: 6px 10px; }
.section-page-topics + .listing-section { padding-top: 12px; }
@media (max-width: 700px) {
  .section-page-intro { padding-top: 22px; padding-bottom: 0; }
  .section-page-intro h1 { font-size: clamp(32px, 8vw, 42px); }
  .section-page-intro .page-lead { margin-top: 7px; font-size: 14px; line-height: 1.45; }
  .section-page-topics { padding-top: 14px; padding-bottom: 18px; }
  .section-page-topics .section-heading { margin-bottom: 10px; }
  .section-page-topics .section-heading .section-lead { font-size: 12px; }
  .section-page-topics .section-topic-chip { min-height: 32px; padding: 5px 9px; font-size: 10px; }
  .section-page-topics + .listing-section { padding-top: 10px; }
}

/* Text-only article cards use the full width on narrow screens. */
.article-card--text-only { grid-template-columns: minmax(0, 1fr); }
