/* Ameya Market Research Services
   Brand colors from the logo: Ameya blue, signal orange and slate grey,
   with a deep navy for bands and soft blue and orange tints for backgrounds. */
:root {
  --ink: #1d2634;
  --muted: #535b67;
  --violet: #173e7e;
  --violet-2: #1f4e9c;
  --navy: #0f2a52;
  --eosin: #f7941d;
  --eosin-dk: #e07f0a;
  --on-accent: #0f2a52;
  --mist: #eef3fa;
  --warm: #fff5e8;
  --line: #dce3ee;
  --paper: #ffffff;
  --serif: "Poppins", "Segoe UI", Arial, sans-serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--violet-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #a85800; }
:focus-visible { outline: 3px solid var(--eosin); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; color: var(--violet); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem/1.2 var(--sans); padding: .78rem 1.3rem; border-radius: var(--r); border: 2px solid var(--eosin); background: var(--eosin); color: var(--on-accent); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--eosin-dk); border-color: var(--eosin-dk); color: var(--on-accent); }
.btn-line { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-line:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { background: var(--mist); color: var(--ink); border-color: var(--line); }
.btn-invert { background: #fff; color: var(--violet); border-color: #fff; }
.btn-invert:hover { background: var(--mist); color: var(--violet); border-color: var(--mist); }
.btn-small { padding: .5rem .9rem; font-size: .92rem; }
.btn-block { display: flex; width: 100%; margin-bottom: .6rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-2); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linkish:hover { color: #a85800; }

/* Top bar and header */
.topbar { background: var(--navy); color: #d6deea; font-size: .86rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1.2rem; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 104px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 80px; width: auto; }
.brand-light img { height: 64px; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .sub-toggle { display: block; padding: .55rem .7rem; font: 500 .98rem/1.2 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.sub-toggle::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.nav > ul > li > a:hover, .sub-toggle:hover, .nav a[aria-current="page"], .sub-toggle.is-current { color: var(--violet-2); box-shadow: inset 0 -3px 0 var(--eosin); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 28px rgba(15, 42, 82, .12); padding: .5rem; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; color: var(--ink); text-decoration: none; border-radius: 4px; font-size: .95rem; line-height: 1.3; }
.sub a:hover { background: var(--mist); color: var(--violet); }
.sub-wide { width: min(720px, 90vw); left: -12rem; }
.area-menu { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
.has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 1061px) { .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; } }
.nav-search input { width: 11rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: .92rem; }
.cart-link { font-weight: 600; text-decoration: none; color: var(--violet); white-space: nowrap; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 1rem; background: var(--eosin); color: var(--on-accent); font-size: .78rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--violet); color: var(--violet); border-radius: var(--r); padding: .45rem .85rem; font: 600 .95rem var(--sans); cursor: pointer; }

/* Family letter chip */
.fam-letter { display: inline-grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--eosin); color: #a85800; font: 600 .9rem/1 var(--serif); }
.fam-letter-sm { width: 1.45rem; height: 1.45rem; font-size: .8rem; margin-right: .45rem; vertical-align: middle; }

/* Hero */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero-title { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.25rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; margin-bottom: 1.6rem; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { padding-left: 1.2em; color: var(--violet-2); }
.hero-title .hero-rule { display: block; width: 4.2em; height: .09em; background: var(--eosin); margin: .35em 0 0 1.2em; padding: 0; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-search { margin: 1.8rem 0 1.2rem; }
.hero-search label { display: block; font-weight: 600; margin-bottom: .45rem; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; min-width: 0; padding: .8rem .9rem; border: 1.5px solid #c4cfe0; border-radius: var(--r); font: inherit; }
.search-row input:focus { border-color: var(--violet-2); outline: none; box-shadow: 0 0 0 3px rgba(31, 78, 156, .2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-index { background: var(--navy); color: #fff; border-radius: 10px; padding: 1.6rem 1.6rem 1.2rem; }
.area-index h2 { color: #fff; font-size: 1.3rem; margin-bottom: .8rem; }
.area-index ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.2rem; }
.area-index li { break-inside: avoid; }
.area-index a { display: flex; align-items: center; gap: .65rem; padding: .38rem 0; color: #f1ecf7; text-decoration: none; font-size: .93rem; line-height: 1.25; border-top: 1px solid rgba(255, 255, 255, .12); }
.area-index a:hover { color: #fff; }
.area-index a:hover .area-name { text-decoration: underline; text-underline-offset: .18em; }
.area-index .fam-letter { border-color: var(--eosin); color: #ffd49e; width: 1.7rem; height: 1.7rem; font-size: .88rem; }
.area-index a:hover .fam-letter { background: var(--eosin); border-color: var(--eosin); color: var(--navy); }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-tint { background: var(--mist); }
.band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.intro-grid p { max-width: 40em; }
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--violet); }
.services a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.services strong { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--violet); }
.services span { color: var(--muted); font-size: .97rem; }
.services a:hover strong { color: var(--violet-2); text-decoration: underline; }

/* Report rows */
.rows { border-top: 1px solid var(--line); }
.rows-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.row { padding: 1.15rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.row-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .86rem; color: var(--muted); margin-bottom: .25rem; }
.code { font-weight: 600; color: var(--violet-2); font-variant-numeric: tabular-nums; }
.row-area { color: var(--muted); text-decoration: none; }
.row-area:hover { color: var(--violet-2); text-decoration: underline; }
.row-title { font-size: 1.32rem; margin: 0 0 .3rem; }
.row-title a { color: var(--violet); text-decoration: none; }
.row-title a:hover { color: var(--violet-2); text-decoration: underline; }
.row-text { color: var(--ink); margin-bottom: .45rem; max-width: 46em; }
.row-foot { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; font-size: .9rem; color: var(--muted); }
.row-price { color: var(--ink); font-weight: 600; }

/* Structure and steps */
.structure { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.parts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.parts div { padding: .85rem 0; border-top: 1px solid #cfd9e8; }
.parts dt { font: 600 1.08rem/1.3 var(--serif); color: var(--violet); }
.parts dd { margin: .2rem 0 0; color: var(--muted); font-size: .97rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--violet); padding-top: .9rem; }
.steps li::before { content: counter(s); display: block; font: 600 2rem/1 var(--serif); color: #c26a00; margin-bottom: .4rem; }
.steps strong { display: block; font: 600 1.15rem var(--serif); color: var(--violet); }
.steps span { color: var(--muted); font-size: .97rem; }
.cta-band { background: var(--navy); color: #e3e9f3; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* Page head */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 1.6rem 0 2rem; }
.page-head h1 { margin-bottom: .35rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--violet-2); }

/* Catalog */
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; padding-bottom: 3.5rem; }
.side-search label, .side-h { display: block; font: 600 1.05rem/1.3 var(--serif); color: var(--violet); margin: 0 0 .5rem; }
.side-search { margin-bottom: 1.6rem; }
.side-areas { list-style: none; margin: 0 0 1.8rem; padding: 0; border-top: 1px solid var(--line); }
.side-areas a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .48rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .93rem; line-height: 1.3; }
.side-areas a > span:first-child { display: flex; align-items: center; }
.side-areas a:hover { background: var(--mist); color: var(--violet); }
.side-areas a[aria-current="page"] { background: var(--mist); color: var(--violet); font-weight: 600; box-shadow: inset 3px 0 0 var(--eosin); }
.side-areas .n { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.side-note { background: var(--mist); border-radius: var(--r); padding: 1.1rem; }
.side-note p { font-size: .95rem; color: var(--muted); }
.az { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.az a { min-width: 2.1rem; text-align: center; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--violet); font-weight: 500; font-size: .92rem; }
.az a:hover { border-color: var(--violet-2); }
.az a[aria-current="true"] { background: var(--violet-2); color: #fff; border-color: var(--violet-2); }
.results-h { font: 600 1.05rem/1.4 var(--sans); color: var(--muted); margin-bottom: .8rem; }
.results-h .clear { font-weight: 500; margin-left: .6rem; }
.pager { display: flex; gap: .3rem; margin-top: 1.6rem; flex-wrap: wrap; }
.pager a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pager a[aria-current="page"] { background: var(--violet-2); color: #fff; border-color: var(--violet-2); }
.empty { padding: 1.6rem; background: var(--mist); border-radius: var(--r); }

/* Report page */
.report-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem); }
.report-kicker { margin: 0 0 .6rem; font-weight: 500; }
.report-kicker a { text-decoration: none; color: var(--violet-2); display: inline-flex; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid #cfd9e8; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--violet); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-top: 1.5rem; padding-bottom: 3rem; align-items: start; }
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; overflow-x: auto; position: sticky; top: 0; background: #fff; z-index: 5; }
.tabs a { padding: .8rem 0; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs a.on { color: var(--violet); border-bottom-color: var(--eosin); }
.report-sec { margin-bottom: 2.8rem; }
.abstract { font-size: 1.15rem; line-height: 1.7; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .35rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--eosin); }
.chapters { list-style: none; counter-reset: c; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.chapters li { counter-increment: c; display: grid; grid-template-columns: 2.6rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.chapters li::before { content: counter(c); font: 600 1.35rem/1.2 var(--serif); color: #c26a00; grid-row: span 2; }
.chapters strong { font: 600 1.08rem/1.35 var(--serif); color: var(--violet); }
.chapters span { color: var(--muted); font-size: .97rem; }
.note { font-size: .95rem; color: var(--muted); }
.licenses fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.lic { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.lic:hover { border-color: #b9c7dc; }
.lic:has(input:checked) { border-color: var(--violet); background: var(--mist); }
.lic input { width: 1.15rem; height: 1.15rem; accent-color: var(--eosin); }
.lic-body strong { display: block; color: var(--violet); }
.lic-body span { color: var(--muted); font-size: .95rem; }
.lic-price { font: 600 1.25rem var(--serif); color: var(--violet); white-space: nowrap; }
.buy-box { position: sticky; top: 4rem; border: 1px solid var(--line); border-top: 4px solid var(--eosin); border-radius: var(--r); padding: 1.3rem; background: #fff; }
.buy-from { font-size: .95rem; color: var(--muted); margin-bottom: .2rem; }
.buy-from strong { display: block; font: 600 2rem/1.15 var(--serif); color: var(--violet); }
.buy-box > p { font-size: .95rem; color: var(--muted); }
.buy-box .linkish { font-size: .92rem; margin: .3rem 0 1rem; }
.buy-facts { margin: 0; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .92rem; }
.buy-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.buy-facts dt { color: var(--muted); }
.buy-facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Forms */
.form { display: grid; gap: .95rem; }
.form h2, .form h3 { margin-bottom: .2rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: .7rem .8rem; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #c4cfe0; border-radius: var(--r); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(31, 78, 156, .2); }
.form .btn { justify-self: start; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.seg label { display: inline-flex; flex-direction: row; align-items: center; gap: .45rem; font-weight: 500; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: 2rem; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--violet); background: var(--mist); color: var(--violet); }
.seg input { width: auto; accent-color: var(--eosin); }
.check { display: flex !important; flex-direction: row; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; }
.check input { width: 1.1rem; margin-top: .25rem; accent-color: var(--eosin); }
.form-on-dark label { color: #fff; }
.form-on-dark input, .form-on-dark textarea { border-color: transparent; }
.form-section { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 2px solid var(--violet); }
.notice { padding: .85rem 1rem; border-radius: var(--r); margin-bottom: 1rem; font-weight: 500; border-left: 4px solid; }
.notice-ok { background: var(--mist); border-color: var(--violet); color: var(--violet); }
.notice-error { background: var(--warm); border-color: #c25a00; color: #7a3900; }
.cta-band .notice-ok { background: #fff; }
.toast-wrap { padding-top: 1rem; }

/* Text pages */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-top: 2.2rem; padding-bottom: 3.5rem; align-items: start; }
.narrow.prose, .wrap.narrow { padding-top: 2.2rem; padding-bottom: 3.5rem; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.aside-card { background: var(--mist); border-radius: var(--r); padding: 1.4rem; position: sticky; top: 1.5rem; }
.aside-card h2 { font-size: 1.25rem; }
.method { list-style: none; counter-reset: m; margin: 0; padding: 0; }
.method li { counter-increment: m; position: relative; padding: 0 0 1.4rem 3.4rem; border-left: 2px solid var(--line); margin-left: 1.1rem; }
.method li:last-child { border-left-color: transparent; }
.method li::before { content: counter(m); position: absolute; left: -1.15rem; top: -.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--eosin); color: #c26a00; font: 600 1.05rem var(--serif); }
.method h2 { font-size: 1.3rem; margin: 0 0 .4rem; padding-top: .15rem; }
.lic-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.lic-compare section { border: 1px solid var(--line); border-top: 4px solid var(--eosin); border-radius: var(--r); padding: 1.2rem; }
.lic-compare h2 { margin-top: 0; font-size: 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font: 600 1.12rem/1.35 var(--serif); color: var(--violet); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #c26a00; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }
.contact-list { margin: 0; }
.contact-list div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .85rem; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart-table thead th { font-size: .88rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--violet); }
.cart-table tfoot th, .cart-table tfoot td { border-bottom: 0; font-size: 1.1rem; }
.cart-table select { padding: .4rem .5rem; border: 1.5px solid #c4cfe0; border-radius: 4px; font: inherit; }
.num { text-align: right !important; white-space: nowrap; }
.checkout { border-top: 2px solid var(--violet); padding-top: 1.6rem; }
.sitemap { columns: 3 260px; column-gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; }
.sitemap section { break-inside: avoid; margin-bottom: 1.6rem; }
.sitemap h2 { font-size: 1.1rem; }
.sitemap ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy); color: #d6deea; font-size: .95rem; }
.site-footer a, .site-footer .linkish { color: #fff; }
.site-footer a:hover, .site-footer .linkish:hover { color: #ffc27a; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-tag { font: 500 1.02rem var(--serif); color: #ffc27a; margin: 1rem 0 .5rem; }
.footer-h { font: 600 1.05rem var(--serif); color: #fff; margin: 0 0 .7rem; }
.footer-h + ul + .footer-h, ul + .footer-h { margin-top: 1.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-areas { columns: 2; column-gap: 1.5rem; font-size: .9rem; }
.footer-areas li { break-inside: avoid; }
.newsletter { margin-top: 1.4rem; }
.newsletter label { display: block; font-weight: 600; color: #fff; margin-bottom: .4rem; }
.newsletter-row { display: flex; gap: .4rem; margin-bottom: .5rem; }
.newsletter-row input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 0; border-radius: var(--r); font: inherit; }
.newsletter .linkish { font-size: .85rem; color: #c6d1e3; }
.nl-sub { font-size: .88rem; margin: -.2rem 0 .5rem; color: #c6d1e3; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }
.footer-base p { margin: 0; }
.footer-legal a { margin-left: 1.2rem; }
.footer-legal a:first-child { margin-left: 0; }

/* Dialogs */
.dlg { border: 0; border-radius: 10px; padding: 1.6rem; width: min(520px, 92vw); box-shadow: 0 30px 60px rgba(15, 42, 82, .3); }
.dlg::backdrop { background: rgba(34, 28, 43, .55); }
.dlg-actions { display: flex; gap: .6rem; }

/* Responsive */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; box-shadow: 0 16px 30px rgba(15, 42, 82, .12); }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .sub, .sub-wide { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 .5rem .8rem; }
  .area-menu { grid-template-columns: 1fr; }
  .nav-search input { width: 100%; }
  .header-in { position: relative; }
  .site-header { position: relative; }
}
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .structure, .cta-grid, .catalog, .report-grid, .prose-grid, .footer-grid { grid-template-columns: 1fr; }
  .rows-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .buy-box, .aside-card { position: static; }
  .report-grid .buy-box { order: -1; }
  .catalog-side { order: 2; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar-in > span:first-child { display: none; }
  .topbar a { margin: 0 1rem 0 0; }
  .area-index ol, .parts, .form-2, .lic-compare, .footer-areas { columns: 1; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .lic { grid-template-columns: auto 1fr; }
  .lic-price { grid-column: 2; }
  .brand img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .topbar, .site-header, .site-footer, .tabs, #licenses, #request, .buy-box .btn, .buy-box .linkish, .section-tint { display: none !important; }
  .report-grid { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.svc { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.svc h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.svc p { color: var(--muted); margin-bottom: .6rem; }
.svc .ticks { font-size: .97rem; }
.svc-link { font-weight: 600; }
.services-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.services-strip li { border-top: 3px solid var(--eosin); padding-top: .9rem; }
.services-strip a { text-decoration: none; color: inherit; display: block; }
.services-strip strong { display: block; font: 600 1.1rem/1.3 var(--serif); color: var(--violet); margin-bottom: .3rem; }
.services-strip span { color: var(--muted); font-size: .97rem; }
.services-strip a:hover strong { color: var(--violet-2); text-decoration: underline; text-underline-offset: .18em; }
.section-warm { background: var(--warm); }
@media (max-width: 900px) { .svc-grid, .services-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid, .services-strip { grid-template-columns: 1fr; } }

/* Masthead: static text on the left, images change slowly on the right */
.mast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 540px; border-bottom: 1px solid var(--line); background: #fff; }
.mast-copy { padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem) max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem)); display: flex; flex-direction: column; justify-content: center; }
.mast-media { position: relative; overflow: hidden; background: var(--navy); }
.mast-media::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--eosin); z-index: 3; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide.on { opacity: 1; }
.mast-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 42, 82, .35), rgba(15, 42, 82, 0) 35%); z-index: 2; pointer-events: none; }

/* Image banners for inner pages */
.page-head.banner { position: relative; background-color: var(--navy); background-size: cover; background-position: center right; border-bottom: 0; color: #fff; padding: 2.4rem 0 2.8rem; overflow: hidden; }
.page-head.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 60, .94) 0%, rgba(10, 30, 60, .82) 42%, rgba(10, 30, 60, .25) 100%); }
.page-head.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--eosin); }
.page-head.banner .wrap { position: relative; z-index: 1; }
.page-head.banner h1 { color: #fff; max-width: 22em; }
.page-head.banner .lead { color: #dbe4f2; }
.page-head.banner .crumbs, .page-head.banner .crumbs a { color: #c6d3e8; }
.page-head.banner .crumbs a:hover { color: #fff; }
.page-head.banner .report-kicker a { color: #ffc27a; }
.page-head.banner .fam-letter { color: #ffd49e; }
.page-head.banner .facts { border-top-color: rgba(255, 255, 255, .25); }
.page-head.banner .facts dt { color: #c6d3e8; }
.page-head.banner .facts dd { color: #fff; }

/* Research-area image cards */
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.area-card a { display: block; text-decoration: none; color: inherit; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); height: 100%; }
.area-card .pic { aspect-ratio: 16 / 9; position: relative; }
.area-card .fam-letter { position: absolute; left: .8rem; bottom: -.95rem; background: #fff; width: 2.1rem; height: 2.1rem; border-width: 2px; }
.area-card-body { padding: 1.3rem 1rem 1rem; }
.area-card strong { display: block; font: 600 1.02rem/1.35 var(--serif); color: var(--violet); }
.area-card span.n { font-size: .88rem; color: var(--muted); }
.area-card a:hover { border-color: var(--violet-2); }
.area-card a:hover strong { color: var(--violet-2); text-decoration: underline; text-underline-offset: .18em; }

.svc .pic { aspect-ratio: 16 / 7; border-radius: 6px; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr; }
  .mast-copy { padding-left: 1.25rem; }
  .mast-media { min-height: 260px; order: -1; }
  .mast-media::before { width: auto; height: 5px; right: 0; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Photo slots. Areas without a photo yet show a plain brand tile with the area letter. */
.pic { background-color: var(--navy); background-size: cover; background-position: center; }
.area-card .pic:not(.has-pic) { background-color: var(--mist); border-bottom: 1px solid var(--line); }
.area-card .pic:not(.has-pic)::after { content: attr(data-letter); position: absolute; right: 1rem; top: .5rem; font: 700 4.2rem/1 var(--serif); color: #d3deee; }
.area-card .pic:not(.has-pic) .fam-letter { background: #fff; }
.page-head.banner:not(.has-pic) { background-color: var(--navy); }
.page-head.banner:not(.has-pic)::before { background: none; }
.area-card-text a { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 1rem; align-items: start; }
.area-card-text .fam-letter { position: static; margin-top: .1rem; }
.area-card-text .area-card-body { padding: 0; }
.area-card-text .blurb { display: block; font-size: .9rem; color: var(--muted); margin: .3rem 0 .4rem; line-height: 1.45; }

/* Home page refinements */
@media (min-width: 901px) { .mast { min-height: 500px; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }
.mast-copy .hero-title { font-size: clamp(2rem, 1rem + 2.6vw, 3.1rem); text-wrap: balance; }
@media (min-width: 901px) { .mast-copy .hero-title span:first-child { white-space: nowrap; } }
.mast-copy .hero-lead { font-size: 1.08rem; max-width: 34em; }
.mast-copy .hero-search { margin: 1.4rem 0 1rem; }
.slide { background-size: cover; background-position: 30% 45%; }

/* Research-area panel in the masthead (shown until real photos are added) */
.mast-topics { background: var(--navy); color: #e3e9f3; min-height: 420px; }
.mast-topics::after { display: none; }
.topic { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem) 4.5rem; visibility: hidden; }
.topic.on { visibility: visible; }
.topic-kicker { color: #ffc27a; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.topic-name { color: #fff; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); margin-bottom: .6rem; max-width: 18em; }
.topic-blurb { color: #c9d4e6; max-width: 30em; margin-bottom: 1.4rem; }
.topic-list { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid rgba(255, 255, 255, .15); max-width: 30em; }
.topic-list li { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.topic-list a { display: block; padding: .6rem 0; color: #fff; text-decoration: none; font-weight: 500; }
.topic-list a:hover { color: #ffc27a; }
.topic-more { color: #ffc27a; font-weight: 600; }
.topic-more:hover { color: #fff; }
.topic-nav { position: absolute; left: clamp(1.5rem, 4vw, 4rem); bottom: 1.4rem; z-index: 4; display: flex; align-items: center; gap: .8rem; }
.topic-nav button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.topic-nav button:hover { border-color: var(--eosin); color: var(--eosin); }
.topic-count { font-size: .88rem; color: #c9d4e6; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .mast-topics { min-height: 500px; order: 2; } .topic { padding-top: 2.2rem; } }
