:root {
  --ink: #16241f;
  --muted: #617069;
  --paper: #f8f6ef;
  --white: #fffefb;
  --mint: #d9efe6;
  --teal: #155e50;
  --teal-dark: #0c463c;
  --lime: #d8ec86;
  --coral: #ef8c6c;
  --line: #d9ded7;
  --shadow: 0 18px 50px rgba(24, 44, 36, 0.1);
  --radius: 22px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: white; padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #db7a54; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,246,239,.93); border-bottom: 1px solid rgba(22,36,31,.1); backdrop-filter: blur(18px); }
.header-row { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3px; padding: 5px; border-radius: 11px; background: var(--teal); transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--lime); }
.brand-mark i { display: block; border-radius: 3px; background: var(--white); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .35; }
.desktop-search { flex: 1; max-width: 410px; margin-left: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 680; }
.main-nav a { position: relative; padding-block: 10px; }
.main-nav a:hover { color: var(--teal); }
.session-link span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: var(--ink); font-size: 11px; }
.menu-button { display: none; border: 0; background: var(--ink); color: white; padding: 9px 13px; border-radius: 10px; font-weight: 700; }

.instant-search { position: relative; z-index: 20; }
.search-control { position: relative; display: flex; align-items: center; background: var(--white); border: 1px solid rgba(22,36,31,.14); border-radius: 15px; box-shadow: 0 8px 26px rgba(15,64,53,.08); }
.search-control:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21,94,80,.12); }
.search-mark { display: grid; place-items: center; width: 45px; color: var(--teal); font-size: 25px; }
.search-control input { width: 100%; min-width: 0; height: 45px; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-control input::placeholder { color: #78847f; }
.clear-search { margin-right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.instant-search--hero .search-control { border: 0; border-radius: 20px; box-shadow: 0 20px 55px rgba(3,34,28,.25); }
.instant-search--hero .search-control input { height: 72px; font-size: 18px; padding-right: 18px; }
.instant-search--hero .search-mark { width: 64px; font-size: 32px; }
.search-popover { position: absolute; top: calc(100% + 8px); inset-inline: 0; overflow: hidden; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.search-popover a { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; border-bottom: 1px solid #e8ebe7; }
.search-popover a:last-child { border-bottom: 0; }
.search-popover a.active, .search-popover a:hover { background: var(--mint); }
.search-popover a > span:first-child { display: grid; }
.search-popover strong { font-size: 14px; }
.search-popover small { color: var(--muted); font-size: 11px; }
.search-empty { font-size: 13px; font-weight: 700; }

.hero { position: relative; overflow: hidden; min-height: 590px; background: var(--teal-dark); color: white; }
.hero::after { content: ""; position: absolute; inset: auto -10% -190px; height: 320px; border-radius: 50%; background: var(--paper); transform: rotate(-2deg); }
.hero-inner { position: relative; z-index: 2; padding: 86px 0 120px; }
.hero-copy { max-width: 780px; }
.eyebrow { display: inline-block; margin-bottom: 11px; color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow--light { color: var(--lime); }
.hero h1, .page-hero h1, .calculator-hero h1, .category-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.055em; line-height: .94; }
.hero h1 { max-width: 820px; font-size: clamp(64px, 8vw, 110px); }
.hero h1 em, .page-hero h1 em { color: var(--lime); font-weight: 400; }
.hero-copy > p { max-width: 650px; margin: 24px 0 34px; color: #d4e0db; font-size: 20px; }
.hero-search-wrap { max-width: 790px; }
.quick-searches { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-left: 12px; color: #c5d4ce; font-size: 12px; }
.quick-searches span { opacity: .7; }
.quick-searches a { border-bottom: 1px solid rgba(255,255,255,.35); }
.hero-proof { position: absolute; right: 0; bottom: 95px; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; color: #c9d8d2; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-proof span { display: grid; }
.hero-proof strong { color: white; font-family: var(--font-display); font-size: 24px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-orbit::before { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--coral); }
.hero-orbit--one { width: 520px; height: 520px; right: -130px; top: -160px; }
.hero-orbit--one::before { left: 73px; bottom: 78px; }
.hero-orbit--two { width: 340px; height: 340px; right: 15px; top: -70px; }
.hero-orbit--two::before { right: 50px; bottom: 35px; background: var(--lime); }

.category-ribbon { position: relative; z-index: 5; margin-top: -65px; }
.category-ribbon__inner { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.category-ribbon a { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 11px 5px; border-radius: 14px; text-align: center; transition: .2s ease; }
.category-ribbon a:hover { background: var(--paper); transform: translateY(-2px); }
.category-ribbon a > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; font-size: 11px; font-style: normal; font-weight: 900; }
.category-ribbon strong { overflow: hidden; max-width: 100%; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.category-ribbon small { color: var(--muted); font-size: 9px; }

.section { padding-block: 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 35px; }
.section-heading h2, .need-layout h2, .promise-section h2, .article-content h2, .new-panel h2, .seo-copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 4.2vw, 62px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.section-heading p { max-width: 540px; margin: 10px 0 0; color: var(--muted); }
.section-heading > a { flex: 0 0 auto; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-weight: 750; font-size: 13px; }
.section-heading--small { margin-bottom: 25px; }
.section-heading--small h2 { font-size: 46px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calculator-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.calculator-card:hover { transform: translateY(-4px); border-color: #9aaba2; box-shadow: 0 16px 38px rgba(21,52,42,.09); }
.calculator-card > a { min-height: 260px; display: flex; flex-direction: column; padding: 20px; }
.card-meta { display: flex; align-items: flex-start; justify-content: space-between; min-height: 29px; gap: 8px; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.card-badges em { padding: 3px 6px; border-radius: 99px; background: var(--mint); color: var(--teal-dark); font-size: 8px; font-style: normal; }
.calculator-card h3 { margin: 14px 0 8px; font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.calculator-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 10px; }
.card-action strong { color: var(--ink); font-size: 12px; }
.calculator-card--compact > a { min-height: 140px; }
.calculator-card--compact p { display: none; }

.need-section { overflow: hidden; background: var(--teal); color: white; }
.need-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-block: 100px; }
.need-layout > div:first-child { align-self: center; }
.need-layout h2 { font-size: clamp(48px, 5vw, 70px); }
.need-layout p { max-width: 440px; color: #d3e0db; font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 780; font-size: 13px; }
.button--primary { background: var(--teal); color: white; }
.button--primary:hover { background: var(--teal-dark); }
.button--secondary { border-color: #bdc8c2; background: var(--white); color: var(--ink); }
.button--text { background: transparent; color: var(--teal); }
.button--light { margin-top: 18px; background: var(--lime); color: var(--ink); }
.button--danger { border-color: #d7a698; background: #fff4f0; color: #8f3724; }
.need-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.24); border-left: 1px solid rgba(255,255,255,.24); }
.need-grid a { min-height: 124px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 22px; border-right: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); transition: background .2s ease; }
.need-grid a:hover { background: rgba(255,255,255,.09); }
.need-grid span { color: var(--lime); font-size: 10px; }
.need-grid strong { font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.need-grid i { color: var(--lime); font-style: normal; font-size: 22px; }

.split-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; }
.stacked-cards { border-top: 1px solid var(--line); }
.stacked-cards a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; padding: 19px 5px; border-bottom: 1px solid var(--line); }
.stacked-cards a:hover strong { color: var(--teal); }
.stacked-cards > a > span { color: var(--muted); font-size: 10px; }
.stacked-cards div { display: grid; }
.stacked-cards strong { font-family: var(--font-display); font-size: 21px; }
.stacked-cards small { color: var(--muted); }
.stacked-cards i { font-style: normal; }
.new-panel { padding: 30px; background: #efe9d9; border-radius: 24px; }
.new-panel__heading { margin-bottom: 18px; }
.new-panel h2 { font-size: 40px; }
.new-panel .calculator-card { margin-top: 10px; background: rgba(255,254,251,.82); }
.text-link { display: inline-block; margin-top: 22px; border-bottom: 1px solid currentColor; font-weight: 750; font-size: 13px; }

.promise-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; margin-bottom: 100px; padding: 65px; background: var(--ink); color: white; border-radius: 28px; }
.promise-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 50%; background: var(--coral); color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.promise-section h2 { font-size: 52px; }
.promise-list p { display: grid; margin: 0; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.promise-list p:first-child { padding-top: 0; }
.promise-list strong { color: var(--lime); font-size: 13px; }
.promise-list span { color: #c7d1cc; }

.page-main { padding-block: 70px 110px; }
.page-hero { max-width: 850px; margin-bottom: 58px; }
.page-hero--compact { margin-bottom: 35px; }
.page-hero h1 { color: var(--ink); font-size: clamp(58px, 7vw, 88px); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 18px; }
.page-hero h1 em { color: var(--teal); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-grid > a { min-height: 300px; display: flex; flex-direction: column; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; border-top: 5px solid var(--accent); transition: .2s ease; }
.category-grid > a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-grid > a > div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.category-grid i { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); border-radius: 12px; color: white; font-size: 11px; font-style: normal; font-weight: 800; }
.category-grid h2 { margin: 35px 0 10px; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.category-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.category-grid strong { margin-top: auto; padding-top: 20px; font-size: 12px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.category-hero { --accent: var(--teal); display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 40px; margin-bottom: 48px; padding: 45px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; border-left: 8px solid var(--accent); }
.category-code { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 30px; background: var(--accent); color: white; font-family: var(--font-display); font-size: 31px; }
.category-hero h1 { font-size: clamp(44px, 5vw, 66px); }
.category-hero p { max-width: 700px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.catalog-browser { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 34px; }
.filters { position: sticky; top: 105px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filter-heading h2 { margin: 0; font-family: var(--font-display); font-size: 25px; }
.filter-heading button { border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 750; }
.filters > label { display: grid; gap: 6px; margin-top: 14px; }
.filters label > span, .results-toolbar label > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.filters input, .filters select, .results-toolbar select { width: 100%; height: 43px; padding: 0 11px; border: 1px solid #ccd4cf; border-radius: 10px; background: white; color: var(--ink); font-size: 12px; }
.results-toolbar { min-height: 53px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.results-toolbar p { margin: 0; color: var(--muted); }
.results-toolbar p strong { color: var(--ink); font-family: var(--font-display); font-size: 28px; }
.results-toolbar label { display: flex; align-items: center; gap: 10px; }
.results-toolbar select { width: auto; }
.catalog-results .card-grid { grid-template-columns: repeat(3, 1fr); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 35px; }
.pagination button { min-width: 105px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 700; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: 12px; }
.empty-state { display: grid; justify-items: center; padding: 60px 25px; text-align: center; border: 1px dashed #aebbb4; border-radius: 20px; background: rgba(255,255,255,.45); }
.empty-state > span { color: var(--teal); font-family: var(--font-display); font-size: 38px; }
.empty-state h2, .empty-state h3 { margin: 8px 0; font-family: var(--font-display); font-size: 30px; }
.empty-state p { max-width: 500px; margin: 0 0 20px; color: var(--muted); }
.seo-copy { max-width: 800px; margin: 100px auto 0; }
.seo-copy h2 { font-size: 44px; }
.seo-copy h3 { margin-top: 35px; font-family: var(--font-display); font-size: 26px; }
.seo-copy > p { color: var(--muted); }
.seo-copy details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.seo-copy summary { cursor: pointer; font-weight: 750; }

.calculator-page { padding-block: 36px 110px; }
.calculator-hero { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; margin-bottom: 34px; }
.calculator-hero h1 { max-width: 900px; font-size: clamp(52px, 6vw, 78px); }
.calculator-hero > div > p { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.calculator-hero > aside { min-width: 150px; display: grid; justify-items: end; padding-bottom: 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.calculator-hero > aside strong { color: var(--ink); font-size: 12px; }
.calculator-hero > aside small { font-size: 9px; }
.calculator-panel { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.calculator-panel__top { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.calculator-panel__top h2 { margin: 0; font-family: var(--font-display); font-size: 32px; }
.favorite-button { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 11px; font-weight: 750; }
.favorite-button span { font-size: 19px; }
.favorite-button.is-favorite { border-color: var(--teal); background: var(--mint); color: var(--teal-dark); }
.calculator-workspace { display: grid; grid-template-columns: 1.25fr .75fr; gap: 35px; padding-top: 28px; }
.calculator-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { display: flex; justify-content: space-between; color: var(--ink); font-size: 12px; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 600; }
.field input { width: 100%; height: 53px; padding: 0 14px; border: 1px solid #bcc9c2; border-radius: 11px; background: #fcfdfb; color: var(--ink); font-size: 18px; font-weight: 680; }
.field input:focus { border-color: var(--teal); outline: 3px solid rgba(21,94,80,.1); }
.field > small { color: var(--muted); font-size: 9px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding-top: 5px; }
.result-card { min-height: 245px; display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 18px; background: var(--teal); color: white; }
.result-card > span { color: var(--lime); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.result-card > strong { margin: 9px 0 5px; font-family: var(--font-display); font-size: clamp(42px, 5vw, 66px); font-weight: 500; line-height: 1; overflow-wrap: anywhere; }
.result-card > p { margin: 8px 0 22px; color: #d2e1db; font-size: 12px; }
.result-card--error { background: #812e25; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions button { padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: transparent; color: white; font-size: 10px; font-weight: 750; }
.privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 10px; }
.privacy-note span { color: var(--teal); }
.calculator-content { display: grid; grid-template-columns: 1fr 260px; gap: 80px; max-width: 950px; margin: 95px auto; }
.article-content h2 { font-size: 52px; }
.article-content h3 { margin: 42px 0 10px; font-family: var(--font-display); font-size: 28px; }
.article-content p { color: var(--muted); }
.article-content a { color: var(--teal); text-decoration: underline; }
.formula-box { display: grid; gap: 9px; margin: 30px 0; padding: 25px; border-left: 5px solid var(--coral); background: #efe9da; border-radius: 0 14px 14px 0; }
.formula-box span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.formula-box strong { font-family: var(--font-display); font-size: 22px; }
.article-aside { display: grid; align-content: start; gap: 14px; }
.article-aside > div { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.article-aside span { color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-aside a { font-size: 12px; }
.article-aside p { margin: 0; color: var(--muted); font-size: 11px; }
.report-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.report-box div { display: grid; }
.report-box span { color: var(--muted); font-size: 10px; }
.report-box a { flex: 0 0 auto; font-size: 11px; }
.related-section { padding-top: 65px; border-top: 1px solid var(--line); }

.session-dashboard { display: grid; gap: 70px; }
.session-actions { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 24px; background: #efe9da; border-radius: 14px; }
.session-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.card-grid--compact { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--muted); }

.editorial-page { max-width: 1050px; }
.editorial-layout { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 80px; }
.editorial-layout > aside { position: sticky; top: 105px; padding: 20px; border-left: 4px solid var(--coral); background: #efe9da; border-radius: 0 12px 12px 0; }
.editorial-layout > aside span { color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.editorial-layout > aside p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.editorial-layout article section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.editorial-layout article h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 34px; line-height: 1.05; }
.editorial-layout article p { color: var(--muted); }
.not-found { position: relative; }
.not-found-code { position: absolute; right: 0; top: 10px; color: #e5e0d4; font-family: var(--font-display); font-size: clamp(110px, 20vw, 260px); line-height: 1; z-index: -1; }
.not-found-search { max-width: 720px; padding: 25px; background: var(--teal); border-radius: 22px; }
.not-found-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.not-found-categories a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 11px; font-weight: 750; }

.consent-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; max-width: 1020px; margin-inline: auto; padding: 22px; border: 1px solid #adc1b7; border-radius: 18px; background: var(--white); box-shadow: 0 20px 70px rgba(17,42,33,.24); }
.consent-banner h2 { margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1.1; }
.consent-banner p { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.consent-actions .button--text { grid-column: 1 / -1; min-height: 32px; }
.consent-details { padding: 9px; background: var(--paper); border-radius: 8px; }

.site-footer { padding-top: 65px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 65px; padding-bottom: 55px; }
.brand--footer small { color: #9dafaa; }
.brand--footer .brand-mark { box-shadow: 3px 3px 0 var(--coral); }
.footer-grid > div:first-child > p { max-width: 330px; margin: 22px 0 0; color: #aebdb7; font-size: 12px; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 10px; }
.footer-grid h2 { margin: 0 0 6px; color: var(--lime); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid a:not(.brand) { color: #d7dfdc; font-size: 12px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9dafaa; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1050px) {
  .desktop-search { display: none; }
  .header-row { justify-content: space-between; }
  .hero-proof { position: static; margin-top: 36px; justify-content: start; }
  .category-ribbon__inner { grid-template-columns: repeat(5, 1fr); }
  .card-grid, .card-grid--compact { grid-template-columns: repeat(3, 1fr); }
  .catalog-results .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section, .promise-section { gap: 45px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { backdrop-filter: none; }
  .header-row { min-height: 69px; }
  .brand small { display: none; }
  .brand-mark { width: 37px; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 68px; left: 14px; right: 14px; display: none; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav--open { display: grid; }
  .main-nav a { padding: 11px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 65px 0 115px; }
  .hero h1 { font-size: clamp(56px, 18vw, 80px); }
  .hero-copy > p { font-size: 16px; }
  .instant-search--hero .search-control input { height: 62px; font-size: 14px; }
  .quick-searches a:nth-of-type(n+3) { display: none; }
  .hero-proof { gap: 20px; }
  .hero-proof strong { font-size: 19px; }
  .category-ribbon { margin-top: -56px; overflow-x: auto; padding-bottom: 10px; }
  .category-ribbon__inner { width: 820px; grid-template-columns: repeat(10, 1fr); margin-left: 14px; }
  .section { padding-block: 70px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .section-heading h2, .need-layout h2 { font-size: 45px; }
  .card-grid, .catalog-results .card-grid, .card-grid--compact { grid-template-columns: 1fr; }
  .calculator-card > a { min-height: 220px; }
  .need-layout, .split-section, .promise-section { grid-template-columns: 1fr; gap: 40px; }
  .need-layout { padding-block: 70px; }
  .need-grid a { min-height: 100px; grid-template-columns: 25px 1fr auto; padding: 14px; }
  .need-grid strong { font-size: 19px; }
  .split-section { padding-top: 70px; }
  .promise-section { margin-bottom: 70px; padding: 30px; }
  .promise-section h2 { font-size: 43px; }
  .page-main { padding-block: 45px 80px; }
  .page-hero h1 { font-size: 54px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid > a { min-height: 260px; }
  .category-hero { grid-template-columns: 1fr; padding: 25px; }
  .category-code { width: 74px; height: 74px; border-radius: 19px; }
  .catalog-browser { grid-template-columns: 1fr; }
  .filters { position: static; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .results-toolbar label { justify-content: space-between; }
  .calculator-page { padding-top: 25px; }
  .calculator-hero { grid-template-columns: 1fr; gap: 15px; }
  .calculator-hero h1 { font-size: 50px; }
  .calculator-hero > aside { justify-items: start; }
  .calculator-panel { padding: 20px; }
  .calculator-panel__top { align-items: flex-start; flex-direction: column; }
  .calculator-workspace, .calculator-form, .calculator-content { grid-template-columns: 1fr; }
  .result-card { min-height: 210px; }
  .calculator-content { gap: 30px; margin-block: 70px; }
  .article-content h2 { font-size: 43px; }
  .article-aside { grid-row: 1; }
  .session-actions { align-items: stretch; flex-direction: column; }
  .editorial-layout { grid-template-columns: 1fr; gap: 35px; }
  .editorial-layout > aside { position: static; }
  .consent-banner { grid-template-columns: 1fr; gap: 15px; left: 10px; right: 10px; bottom: 10px; max-height: calc(100vh - 20px); overflow: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media print {
  .site-header, .site-footer, .consent-banner, .favorite-button, .form-actions, .result-actions, .article-aside, .related-section, .report-box { display: none !important; }
  body { background: white; color: black; }
  .calculator-panel { box-shadow: none; }
  .calculator-page { padding: 0; }
  a { text-decoration: none; }
}

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

/* FIGNIVO — design system v1 */
:root {
  --ink: #20202a;
  --muted: #676573;
  --paper: #fff9ef;
  --white: #ffffff;
  --mint: #d7fbea;
  --teal: #5f3dc4;
  --teal-dark: #3b2588;
  --lime: #d8ff5f;
  --coral: #ff6b6b;
  --yellow: #ffd43b;
  --blue-pop: #4dabf7;
  --line: #ded9cf;
  --shadow: 0 12px 0 rgba(32, 32, 42, .09);
  --shadow-soft: 0 20px 55px rgba(66, 48, 28, .1);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 42px;
  --radius-pill: 999px;
  --font-sans: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", Aptos, sans-serif;
  --container-wide: 1380px;
  --container-content: 920px;
  --header-height: 70px;
  --text-display: clamp(3.5rem, 5.6vw, 5.25rem);
  --text-h1: clamp(2.5rem, 4.3vw, 4rem);
  --text-h2: clamp(1.9rem, 3vw, 2.75rem);
  --text-h3: clamp(1.08rem, 1.5vw, 1.35rem);
  --text-body-large: clamp(1rem, 1.2vw, 1.125rem);
  --text-body: 1rem;
  --text-body-small: .875rem;
  --text-label: .75rem;
  --space-section: clamp(3.5rem, 5.2vw, 4.5rem);
  --space-card: clamp(1rem, 1.5vw, 1.375rem);
  --space-card-compact: .875rem;
  --space-grid: clamp(.75rem, 1.25vw, 1rem);
  --space-form: 1rem;
  --radius-card: 22px;
  --radius-panel: 26px;
}

body { background: var(--paper); }
:focus-visible { outline-color: #5f3dc4; outline-offset: 4px; }
.site-header { background: color-mix(in srgb, var(--paper) 93%, transparent); border-bottom-color: #e6decf; }
.brand strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -.04em; }
.brand-mark { border-radius: 14px; background: #5f3dc4; box-shadow: 4px 4px 0 #ffd43b; transform: rotate(-3deg); }
.brand-mark i:nth-child(1) { background: #d8ff5f; }
.brand-mark i:nth-child(2) { background: #4dabf7; opacity: 1; }
.brand-mark i:nth-child(3) { background: #ff8787; opacity: 1; }
.brand-mark i:nth-child(4) { background: white; }
.main-nav a:hover { color: #5f3dc4; }

.hero--calc-pop { min-height: 650px; margin: 18px; border: 2px solid #20202a; border-radius: 42px; background: #5f3dc4; box-shadow: 0 10px 0 #20202a; }
.hero--calc-pop::after { display: none; }
.hero--calc-pop .hero-inner { padding: 74px 0 82px; }
.hero--calc-pop h1 { max-width: 920px; font-family: var(--font-display); font-size: clamp(54px, 7.5vw, 104px); font-weight: 800; letter-spacing: -.065em; line-height: .94; }
.hero--calc-pop h1 em { color: #d8ff5f; font-style: normal; }
.hero--calc-pop .hero-copy > p { color: #f2edff; }
.hero--calc-pop .eyebrow--light { color: #d8ff5f; }
.hero-symbol { position: absolute; display: grid; place-items: center; border: 2px solid #20202a; color: #20202a; font-family: var(--font-display); font-weight: 900; line-height: 1; box-shadow: 6px 6px 0 #20202a; }
.hero-symbol--plus { width: 110px; height: 110px; right: 8%; top: 11%; border-radius: 50%; background: #ff8787; font-size: 72px; transform: rotate(8deg); }
.hero-symbol--equal { width: 96px; height: 72px; right: 20%; bottom: 23%; border-radius: 28px; background: #ffd43b; font-size: 55px; transform: rotate(-7deg); }
.instant-search--hero .search-control { border: 2px solid #20202a; border-radius: 24px; box-shadow: 7px 7px 0 #20202a; }
.instant-search--hero .search-control:focus-within { box-shadow: 7px 7px 0 #20202a, 0 0 0 5px #d8ff5f; }
.search-mark { color: #5f3dc4; }
.search-popover { border: 2px solid #20202a; border-radius: 20px; box-shadow: 8px 8px 0 #20202a; }
.search-popover a { justify-content: flex-start; }
.search-popover a > span:last-child { margin-left: auto; }
.search-popover a.active, .search-popover a:hover { background: #efe9ff; }
.search-result-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #efe9ff; color: #5f3dc4; }
.hero-mini-tools { position: absolute; right: 0; top: 55%; display: grid; gap: 9px; }
.hero-mini-tools span { display: flex; align-items: center; gap: 9px; max-width: 210px; padding: 10px 13px; border: 2px solid #20202a; border-radius: 16px; background: white; color: #20202a; box-shadow: 4px 4px 0 #20202a; font-size: 12px; font-weight: 800; }
.hero-mini-tools span:nth-child(2) { transform: translateX(-24px) rotate(-2deg); background: #d8ff5f; }
.hero-mini-tools span:nth-child(3) { transform: translateX(10px) rotate(2deg); background: #ffd43b; }
.hero-mini-tools span:nth-child(4) { transform: translateX(-14px); background: #ffd8df; }
.hero-proof { bottom: 4px; }

.section { padding-block: 84px; }
.section--tinted { background: #f1ebff; border-block: 1px solid #ded3fb; }
.section-heading h2, .need-layout h2, .promise-section h2, .article-content h2, .new-panel h2, .seo-copy h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; }
.eyebrow { color: #5f3dc4; }
.essential-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 18px; }
.essential-bento .calculator-card:first-child { grid-column: span 2; grid-row: span 2; }
.essential-bento .calculator-card:nth-child(2), .essential-bento .calculator-card:nth-child(3) { grid-column: span 2; }
.essential-bento .calculator-card:first-child > a { min-height: 100%; }

.calculator-card { position: relative; overflow: hidden; background: var(--accent-soft, white); border: 2px solid #20202a; border-radius: 25px; box-shadow: 5px 5px 0 #20202a; transition: transform .18s ease, box-shadow .18s ease; }
.calculator-card:hover { transform: translate(-2px, -3px); border-color: #20202a; box-shadow: 8px 9px 0 #20202a; }
.calculator-card > a { position: relative; z-index: 2; min-height: 280px; padding: 20px; }
.calculator-card--neutral { background: white; }
.calculator-card--saturated { background: color-mix(in srgb, var(--accent-soft) 65%, var(--accent) 35%); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calculator-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent, #5f3dc4); color: white; border: 2px solid #20202a; box-shadow: 3px 3px 0 #20202a; }
.calculator-icon--circle { border-radius: 50%; }
.calculator-icon--squircle { border-radius: 18px 12px 19px 14px; }
.calculator-icon--rounded-square { border-radius: 14px; }
.card-badges em { padding: 5px 9px; border: 1px solid #20202a; background: white; color: #20202a; font-size: 9px; letter-spacing: .04em; }
.card-copy h3, .calculator-card h3 { margin: 19px 0 9px; font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.calculator-card p { font-size: 13px; color: #555361; -webkit-line-clamp: 3; }
.card-action { padding-top: 20px; color: #5b5865; }
.card-action span { max-width: 62%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-action strong { color: var(--accent, #5f3dc4); font-weight: 850; }
.tile-decoration { position: absolute; z-index: 1; right: -22px; bottom: -28px; width: 92px; height: 92px; border: 15px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 50%; }
.calculator-card[data-decoration="spark"] .tile-decoration { width: 50px; height: 50px; right: 10px; bottom: 8px; border: 0; background: var(--accent); opacity: .13; clip-path: polygon(50% 0,60% 38%,100% 50%,60% 62%,50% 100%,40% 62%,0 50%,40% 38%); }
.calculator-card[data-decoration="wave"] .tile-decoration { width: 120px; height: 45px; border-width: 9px 0 0; border-radius: 50%; }
.calculator-card--compact > a { min-height: 145px; }
.calculator-card--compact .calculator-icon { width: 42px; height: 42px; }
.calculator-card--compact .card-copy h3 { margin-top: 11px; font-size: 18px; }
.calculator-card--compact .card-action span { display: none; }
.compact-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.category-pill-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-pill-grid a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; border: 2px solid #20202a; border-radius: 18px; background: var(--accent-soft); box-shadow: 3px 3px 0 #20202a; }
.category-pill-grid a:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 #20202a; }
.category-pill-grid a > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: white; }
.category-pill-grid small { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: white; font-weight: 800; }
.category-grid > a { background: var(--accent-soft); border: 2px solid #20202a; box-shadow: 5px 5px 0 #20202a; }
.category-grid > a i, .category-code { background: var(--accent); color: white; }
.category-hero { background: var(--accent-soft); border: 2px solid #20202a; box-shadow: 7px 7px 0 #20202a; }
.category-hero--compact { min-height: 240px; }
.subcategory-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 54px; }
.subcategory-pills a { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 7px 8px 7px 14px; border: 1px solid #bdb8ae; border-radius: 999px; background: white; font-size: 13px; font-weight: 750; }
.subcategory-pills a:hover { border-color: #20202a; background: var(--accent-soft, #efe9ff); }
.subcategory-pills span { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #f0ece5; font-size: 10px; }
.category-popular { margin-bottom: 70px; }

.need-section { background: #20202a; }
.need-grid a { border-color: #56545e; }
.need-grid a:hover { background: #5f3dc4; }
.button { border-radius: 999px; }
.button--primary { background: #5f3dc4; }
.button--primary:hover { background: #3b2588; }
.button--light { background: #d8ff5f; border: 2px solid #20202a; color: #20202a; box-shadow: 3px 3px 0 white; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.topic-panel { padding: 20px; border: 2px solid #20202a; border-radius: 30px; background: var(--accent-soft); box-shadow: 6px 6px 0 #20202a; }
.topic-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topic-panel > header > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: white; }
.topic-panel > header > div { flex: 1; display: flex; align-items: center; justify-content: space-between; margin-left: 12px; }
.topic-panel h3 { margin: 0; font-family: var(--font-display); font-size: 25px; }
.topic-panel > .calculator-card { margin-top: 10px; background: white; box-shadow: 3px 3px 0 #20202a; }

.calculator-page { --accent: #5f3dc4; --accent-soft: #efe9ff; }
.calculator-hero { grid-template-columns: auto minmax(0, 1fr) auto; background: var(--accent-soft); border: 2px solid #20202a; box-shadow: 7px 7px 0 #20202a; }
.calculator-hero > .calculator-icon { width: 72px; height: 72px; }
.calculator-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.calculator-trust span { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--accent) 55%, #20202a); border-radius: 999px; background: white; color: #34313c; font-size: 10px; font-weight: 800; }
.calculator-panel { border: 2px solid #20202a; border-radius: 30px; box-shadow: 7px 7px 0 #20202a; }
.field input, .filters input, .filters select, .results-toolbar select { border-radius: 14px; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.result-card { background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 22px; }
.result-card strong { color: var(--accent); }
.formula-box { background: var(--accent-soft); border-left-color: var(--accent); }

.mobile-filter-button { display: none; min-height: 46px; padding: 0 17px; border: 2px solid #20202a; border-radius: 999px; background: white; box-shadow: 3px 3px 0 #20202a; font-weight: 800; }
.mobile-filter-button span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 7px; border-radius: 50%; background: #5f3dc4; color: white; }
.filters { border: 2px solid #20202a; border-radius: 24px; box-shadow: 5px 5px 0 #20202a; }
.filters details { border-top: 1px solid #ded9cf; padding-top: 13px; }
.filters summary { font-weight: 800; cursor: pointer; }
.mobile-apply { display: none; width: 100%; margin-top: 12px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.active-filters span { padding: 4px 8px; border-radius: 999px; background: #efe9ff; color: #3b2588; font-size: 10px; font-weight: 750; }
.active-filters button { border: 0; background: transparent; color: #5f3dc4; font-size: 10px; font-weight: 800; }

.alphabet-nav { position: sticky; top: 88px; z-index: 10; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border: 2px solid #20202a; border-radius: 18px; background: white; box-shadow: 4px 4px 0 #20202a; }
.alphabet-nav a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 850; }
.alphabet-nav a:hover { background: #d8ff5f; }
.az-groups { margin-top: 45px; }
.az-groups section { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 28px 0; border-top: 1px solid #ded9cf; }
.az-groups h2 { margin: 0; font-family: var(--font-display); font-size: 48px; color: #5f3dc4; }
.az-groups ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.az-groups li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 11px; border-radius: 14px; background: white; }
.az-groups li a > span { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #efe9ff; color: #5f3dc4; }
.az-groups small { color: var(--muted); }

@media (max-width: 980px) {
  .hero-mini-tools, .hero-symbol--equal { display: none; }
  .hero-symbol--plus { right: 4%; top: 7%; width: 76px; height: 76px; font-size: 50px; }
  .hero-proof { position: static; margin-top: 35px; }
  .essential-bento { grid-template-columns: repeat(2, 1fr); }
  .essential-bento .calculator-card:first-child, .essential-bento .calculator-card:nth-child(2), .essential-bento .calculator-card:nth-child(3) { grid-column: auto; grid-row: auto; }
  .category-pill-grid { grid-template-columns: repeat(3, 1fr); }
  .compact-card-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-hero { grid-template-columns: auto 1fr; }
  .calculator-hero > aside { grid-column: 2; }
}

@media (max-width: 700px) {
  .hero--calc-pop { min-height: 0; margin: 8px; border-radius: 28px; box-shadow: 0 6px 0 #20202a; }
  .hero--calc-pop .hero-inner { padding: 55px 0 46px; }
  .hero--calc-pop h1 { font-size: clamp(45px, 14vw, 66px); }
  .hero-symbol { display: none; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-proof strong { font-size: 19px; }
  .section { padding-block: 62px; }
  .essential-bento, .category-pill-grid, .topic-grid, .compact-card-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .calculator-card > a { min-height: 240px; }
  .mobile-filter-button { display: inline-flex; align-items: center; margin-bottom: 18px; }
  .catalog-browser .filters { display: none; position: fixed; z-index: 80; inset: 70px 10px 10px; overflow: auto; background: var(--paper); }
  .catalog-browser .filters--open { display: block; }
  .mobile-apply { display: inline-flex; }
  .calculator-hero { grid-template-columns: 1fr; }
  .calculator-hero > aside { grid-column: auto; }
  .az-groups section { grid-template-columns: 1fr; }
  .az-groups ul { grid-template-columns: 1fr; }
  .alphabet-nav { top: 72px; }
}

@media print {
  .site-header, .site-footer, .consent-banner, .favorite-button, .form-actions, .result-actions, .related-section, .article-aside { display: none !important; }
  body { background: white; }
  .calculator-panel, .calculator-hero { box-shadow: none; break-inside: avoid; }
}

/* FIGNIVO — responsive density system v2 */
.container { width: min(var(--container-wide), calc(100% - clamp(32px, 4.5vw, 64px))); }
.container-wide { width: min(var(--container-wide), calc(100% - clamp(32px, 4.5vw, 64px))); margin-inline: auto; }
.container-content { width: min(var(--container-content), calc(100% - clamp(32px, 4.5vw, 64px))); margin-inline: auto; }

.header-row { min-height: var(--header-height); gap: clamp(18px, 2vw, 28px); }
.brand-mark { width: 39px; }
.brand strong { font-size: 18px; }
.main-nav { gap: clamp(14px, 1.6vw, 22px); font-size: 13px; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a { padding-inline: 10px; }
.desktop-search { max-width: 430px; }
.search-control input { height: 44px; }

.hero--calc-pop { z-index: 40; min-height: 0; margin: 14px; overflow: visible; isolation: isolate; border-radius: 34px; box-shadow: 0 7px 0 #20202a; }
.hero--calc-pop .hero-inner { min-height: 540px; padding: clamp(46px, 5vw, 64px) 0 clamp(52px, 5vw, 68px); }
.hero--calc-pop h1 { max-width: 850px; font-size: var(--text-display); line-height: .93; }
.hero--calc-pop .hero-copy { max-width: 720px; }
.hero--calc-pop .hero-search-wrap { position: relative; z-index: 100; }
.hero--calc-pop .instant-search--hero,
.hero--calc-pop .search-popover { z-index: 110; }
.hero-copy > p { max-width: 620px; margin: 18px 0 24px; font-size: var(--text-body-large); line-height: 1.5; }
.instant-search--hero .search-control { border-radius: 20px; box-shadow: 5px 5px 0 #20202a; }
.instant-search--hero .search-control input { height: 58px; font-size: 16px; }
.instant-search--hero .search-mark { width: 56px; font-size: 27px; }
.quick-searches { margin-top: 10px; font-size: 11px; }
.hero-proof { bottom: 18px; gap: 22px; }
.hero-proof strong { font-size: 21px; }
.hero-mini-tools { top: 45%; gap: 7px; }
.hero-mini-tools span { padding: 8px 11px; border-radius: 14px; }
.hero-symbol--plus { width: 88px; height: 88px; font-size: 58px; box-shadow: 5px 5px 0 #20202a; }
.hero-symbol--equal { width: 80px; height: 60px; font-size: 45px; }

.section { padding-block: var(--space-section); }
.section-heading { gap: 24px; margin-bottom: clamp(22px, 2.4vw, 30px); }
.section-heading h2,
.need-layout h2,
.promise-section h2,
.article-content h2,
.new-panel h2,
.seo-copy h2 { font-size: var(--text-h2); line-height: 1.03; }
.section-heading--small h2 { font-size: var(--text-h2); }
.section-heading p { margin-top: 7px; font-size: var(--text-body-small); }
.section-heading > a,
.text-link { min-height: 44px; display: inline-flex; align-items: center; padding-bottom: 0; }

.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }
.essential-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }
.essential-bento .calculator-card:first-child { grid-column: span 2; grid-row: auto; }
.essential-bento .calculator-card:nth-child(2),
.essential-bento .calculator-card:nth-child(3) { grid-column: span 2; }
.essential-bento .calculator-card:first-child > a { min-height: 222px; }
.calculator-card { border-radius: var(--radius-card); box-shadow: 4px 4px 0 #20202a; }
.calculator-card:hover { box-shadow: 6px 7px 0 #20202a; }
.calculator-card > a { min-height: 218px; padding: var(--space-card); }
.calculator-icon { width: 48px; height: 48px; }
.card-copy h3,
.calculator-card h3 { margin: 14px 0 7px; font-size: var(--text-h3); line-height: 1.08; }
.calculator-card p { font-size: .78rem; line-height: 1.42; -webkit-line-clamp: 2; }
.card-action { min-height: 34px; align-items: center; padding-top: 14px; }
.calculator-card--compact > a { min-height: 124px; padding: var(--space-card-compact); }
.calculator-card--compact .calculator-icon { width: 38px; height: 38px; }
.calculator-card--compact .card-copy h3 { margin-top: 9px; font-size: 1rem; }
.compact-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }

.category-pill-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-grid); }
.category-pill-grid a { min-height: 60px; padding: 8px 10px; border-radius: 16px; box-shadow: 3px 3px 0 #20202a; }
.category-pill-grid a > span { width: 36px; height: 36px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-grid); }
.category-grid > a { min-height: 230px; padding: var(--space-card); border-radius: var(--radius-card); box-shadow: 4px 4px 0 #20202a; }
.category-grid h2 { margin: 22px 0 8px; font-size: 1.55rem; }
.category-grid strong { padding-top: 14px; }

.need-layout { gap: clamp(40px, 5vw, 72px); padding-block: var(--space-section); }
.need-layout h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); }
.need-layout p { font-size: var(--text-body); }
.need-grid a { min-height: 100px; padding: 16px; }
.need-grid strong { font-size: 1.3rem; }
.topic-grid { gap: var(--space-grid); }
.topic-panel { padding: 16px; border-radius: var(--radius-panel); box-shadow: 4px 4px 0 #20202a; }
.topic-panel h3 { font-size: 1.3rem; }
.promise-section { gap: clamp(36px, 5vw, 68px); margin-bottom: var(--space-section); padding: clamp(30px, 4vw, 50px); border-radius: var(--radius-panel); }
.promise-mark { margin-bottom: 20px; }
.promise-list p { padding: 16px 0; }

.page-main { padding-block: clamp(38px, 5vw, 58px) clamp(70px, 7vw, 96px); }
.page-hero { max-width: 840px; margin-bottom: clamp(34px, 4vw, 46px); }
.page-hero--compact { margin-bottom: 30px; }
.page-hero h1 { font-size: var(--text-h1); line-height: .98; }
.page-hero p { max-width: 660px; font-size: var(--text-body-large); }
.breadcrumb { margin-bottom: 24px; }
.category-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 28px; margin-bottom: 34px; padding: clamp(22px, 2.5vw, 30px); border-radius: var(--radius-panel); box-shadow: 5px 5px 0 #20202a; }
.category-hero--compact { min-height: 0; }
.category-code { width: 82px; height: 82px; border-radius: 22px; font-size: 1.6rem; }
.category-hero h1 { font-size: var(--text-h1); line-height: 1; }
.category-hero p { margin-top: 10px; font-size: var(--text-body); }
.subcategory-pills { gap: 8px; margin: 24px 0 38px; }
.subcategory-pills a { min-height: 44px; }
.category-popular { margin-bottom: 50px; }

.catalog-browser { grid-template-columns: 242px minmax(0, 1fr); gap: 24px; }
.filters { top: calc(var(--header-height) + 18px); padding: 16px; border-radius: 20px; box-shadow: 4px 4px 0 #20202a; }
.filters > label { margin-top: 12px; }
.filter-heading button { min-height: 44px; padding-inline: 8px; }
.filters input,
.filters select,
.results-toolbar select { height: 44px; }
.results-toolbar { min-height: 48px; margin-bottom: 14px; }
.catalog-results .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pagination { margin-top: 28px; }
.pagination button { min-height: 44px; }
.seo-copy { margin-top: 72px; }

.calculator-page { padding-block: 28px 90px; }
.calculator-hero { grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-bottom: 26px; padding: 22px; border-radius: var(--radius-panel); box-shadow: 5px 5px 0 #20202a; }
.calculator-hero > .calculator-icon { width: 58px; height: 58px; }
.calculator-hero h1 { max-width: 920px; font-size: clamp(2.25rem, 4vw, 3.55rem); line-height: .98; }
.calculator-hero > div > p { margin-top: 10px; font-size: var(--text-body); }
.calculator-trust { margin-top: 12px; }
.calculator-panel { padding: 24px; border-radius: var(--radius-panel); box-shadow: 5px 5px 0 #20202a; }
.calculator-panel__top { padding-bottom: 16px; }
.calculator-panel__top h2 { font-size: 1.65rem; }
.favorite-button { min-height: 44px; }
.calculator-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 24px; padding-top: 22px; }
.calculator-form { gap: var(--space-form); }
.field { gap: 6px; }
.field input { height: 48px; font-size: 1rem; }
.form-actions .button { min-height: 44px; }
.result-card { min-height: 218px; padding: 24px; }
.result-card > strong { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.result-actions button { min-height: 44px; min-width: 44px; }
.privacy-note { margin-top: 16px; }
.calculator-content { grid-template-columns: minmax(0, 1fr) 240px; gap: 54px; max-width: var(--container-content); margin: 72px auto; }
.article-content h3 { margin: 34px 0 8px; font-size: 1.5rem; }
.formula-box { margin: 24px 0; padding: 20px; }
.article-aside a { min-height: 44px; display: flex; align-items: center; }
.related-section { padding-top: 50px; }

.editorial-page { max-width: 1040px; }
.editorial-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.editorial-layout article section { padding-bottom: 30px; margin-bottom: 30px; }
.editorial-layout article h2 { font-size: 1.85rem; }
.az-groups { margin-top: 34px; }
.az-groups section { grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 20px 0; }
.az-groups h2 { font-size: 2.5rem; }
.az-groups ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.az-groups li a { min-height: 58px; padding: 9px; }

.consent-banner { gap: 24px; max-width: 940px; padding: 16px; border-radius: 16px; }
.consent-banner h2 { font-size: 1.35rem; }
.consent-actions .button { min-height: 44px; }
.site-footer { padding-top: 48px; }
.footer-grid { gap: clamp(32px, 4vw, 54px); padding-bottom: 38px; }
.footer-grid a:not(.brand) { min-height: 32px; display: flex; align-items: center; }
.footer-bottom { padding-block: 16px; }

@media (min-width: 1600px) {
  .card-grid:not(.catalog-results .card-grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .catalog-results .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .az-groups ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --header-height: 64px; }
  .desktop-search { display: none; }
  .header-row { justify-content: space-between; }
  .hero--calc-pop .hero-inner { min-height: 500px; }
  .hero-mini-tools, .hero-symbol--equal { display: none; }
  .hero-proof { position: static; margin-top: 24px; }
  .card-grid,
  .catalog-results .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .essential-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .essential-bento .calculator-card:first-child,
  .essential-bento .calculator-card:nth-child(2),
  .essential-bento .calculator-card:nth-child(3) { grid-column: auto; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-pill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compact-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-hero { grid-template-columns: 58px minmax(0, 1fr); }
  .calculator-hero > aside { grid-column: 2; justify-items: start; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --text-h1: clamp(2.2rem, 9vw, 3rem);
    --text-h2: clamp(1.65rem, 7vw, 2.15rem);
    --space-section: clamp(2.75rem, 10vw, 3.5rem);
  }
  .container { width: min(var(--container-wide), calc(100% - 28px)); }
  .header-row { min-height: var(--header-height); }
  .brand-mark { width: 34px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .menu-button { min-width: 44px; min-height: 44px; display: block; padding: 0 13px; }
  .main-nav { position: absolute; top: var(--header-height); left: 14px; right: 14px; display: none; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav--open { display: grid; }
  .main-nav a { min-height: 44px; padding: 8px 11px; }
  .hero--calc-pop { margin: 7px; border-radius: 25px; box-shadow: 0 5px 0 #20202a; }
  .hero--calc-pop .hero-inner { min-height: 0; padding: 38px 0 34px; }
  .hero--calc-pop h1 { max-width: 650px; font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: .94; }
  .hero-copy > p { margin: 16px 0 20px; font-size: .96rem; }
  .instant-search--hero .search-control input { height: 52px; font-size: .875rem; }
  .instant-search--hero .search-mark { width: 48px; }
  .quick-searches { gap: 6px 12px; padding-left: 8px; }
  .quick-searches a { min-height: 32px; display: inline-flex; align-items: center; }
  .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .hero-proof strong { font-size: 1.1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .section-heading > a { margin-top: 4px; }
  .card-grid,
  .catalog-results .card-grid,
  .card-grid--compact,
  .essential-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-card > a { min-height: 196px; }
  .calculator-card--compact > a { min-height: 118px; }
  .category-pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-layout,
  .split-section,
  .promise-section,
  .topic-grid { grid-template-columns: 1fr; gap: 30px; }
  .need-grid a { min-height: 88px; }
  .page-main { padding-block: 34px 64px; }
  .category-hero { grid-template-columns: 68px minmax(0, 1fr); gap: 18px; }
  .category-code { width: 62px; height: 62px; border-radius: 17px; }
  .catalog-browser { grid-template-columns: 1fr; }
  .mobile-filter-button { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 14px; }
  .catalog-browser .filters { display: none; position: fixed; z-index: 80; inset: calc(var(--header-height) + 8px) 8px 8px; overflow: auto; background: var(--paper); }
  .catalog-browser .filters--open { display: block; }
  .mobile-apply { display: inline-flex; }
  .results-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .results-toolbar label { justify-content: space-between; }
  .calculator-page { padding-top: 22px; }
  .calculator-hero { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .calculator-hero > .calculator-icon { width: 50px; height: 50px; }
  .calculator-hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .calculator-hero > aside { grid-column: 1 / -1; }
  .calculator-panel { padding: 18px; }
  .calculator-panel__top { align-items: flex-start; flex-direction: column; }
  .calculator-workspace,
  .calculator-form,
  .calculator-content { grid-template-columns: 1fr; }
  .calculator-workspace { gap: 18px; }
  .result-card { min-height: 188px; padding: 20px; }
  .calculator-content { gap: 26px; margin-block: 56px; }
  .article-aside { grid-row: 1; }
  .editorial-layout { grid-template-columns: 1fr; gap: 28px; }
  .editorial-layout > aside { position: static; }
  .az-groups section { grid-template-columns: 1fr; }
  .consent-banner { grid-template-columns: 1fr; gap: 12px; left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - 16px); overflow: auto; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .card-grid,
  .catalog-results .card-grid,
  .card-grid--compact,
  .essential-bento,
  .compact-card-grid,
  .category-grid,
  .topic-grid { grid-template-columns: 1fr; }
  .calculator-card > a { min-height: 184px; }
  .calculator-card--compact > a { min-height: 112px; }
  .category-pill-grid { grid-template-columns: 1fr; }
  .category-pill-grid a { min-height: 56px; }
  .category-hero { grid-template-columns: 1fr; padding: 18px; }
  .category-code { width: 54px; height: 54px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .az-groups ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; }
  .brand strong { font-size: 15px; }
  .menu-button { padding-inline: 11px; }
  .hero--calc-pop h1 { font-size: clamp(2.25rem, 11.5vw, 2.75rem); }
  .hero-proof { font-size: 9px; }
  .quick-searches a:nth-of-type(n+3) { display: none; }
  .calculator-panel,
  .calculator-hero { padding: 15px; }
}
