:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --white: #fffefa;
  --ink: #192931;
  --muted: #434f50;
  --line: #dedfd6;
  --soft: #f3f2eb;
  --orange: #b24427;
  --orange-light: #f6e6dc;
  --navy: #1b303b;
  --pale: #d5e1e3;
  --heading: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #218184; outline-offset: 4px; }
.wrap { width: min(100% - 6rem, 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 9px; left: 10px; z-index: 2; background: var(--white); padding: .6rem 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; min-height: 44px; text-decoration: none; font: 700 1.34rem/1 var(--heading); letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: #fcf0e0; }
.brand-mark svg { width: 23px; height: 23px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.3rem); }
.site-header nav a, .site-footer nav a { position: relative; display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .18s ease; }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
.site-header nav a[aria-current] { color: var(--orange); }
.site-header nav { grid-column: 2; grid-row: 1; }
.header-actions { display: flex; grid-column: 3; grid-row: 1; justify-self: end; gap: .45rem; }
.nav-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .72rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font-size: .89rem; font-weight: 700; text-decoration: none; }
.nav-action:hover, .nav-action[aria-current], .nav-action[aria-expanded="true"] { border-color: #d9bfae; background: var(--orange-light); color: #762d1b; }
.nav-action svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-menu { display: none; }
.home-nav { margin-bottom: .7rem; border: 1px solid var(--line); border-radius: 12px; }
.home-nav .header-inner { width: 100%; min-height: 64px; padding-inline: clamp(.72rem, 1.75vw, 1.3rem); }
.home-hero #fit-checker { scroll-margin-top: 5rem; }

.masthead { display: grid; grid-template-columns: 1.38fr 1fr; align-items: center; gap: 2.5rem; padding-block: 2.65rem 1.35rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; color: var(--orange); font: 700 .81rem/1.25 Consolas, monospace; text-transform: uppercase; letter-spacing: .095em; }
.eyebrow > span { width: 8px; height: 8px; flex: 0 0 8px; background: var(--orange); border-radius: 50%; }
h1 { font-size: clamp(2.8rem, 4.45vw, 4.25rem); font-weight: 750; line-height: 1.01; letter-spacing: -.051em; text-wrap: balance; }
.masthead h1 { text-wrap: wrap; }
.hero-lede { color: var(--muted); max-width: 36rem; margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.55; }
.home-jump { display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin-top: .3rem; }
.home-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange); font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }
.hero-art { min-width: 0; }
.hero-art img { width: 100%; height: auto; }
[data-enter] { animation: entrance .42s ease both; }
@keyframes entrance { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.checker { border: 1px solid #d1d5ce; border-radius: 15px; overflow: clip; background: var(--white); box-shadow: 0 5px 22px #253d4410; }
.checker-head { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 1.75rem; border-bottom: 1px solid var(--line); }
.checker-head h2 { font-size: 2.1rem; line-height: 1.1; letter-spacing: -.045em; }
.checker-head p { margin-top: .25rem; color: var(--muted); font-size: .91rem; }
.checker-actions { display: flex; align-items: center; gap: .8rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 7px; padding: .57rem 1rem; text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.28; text-align: center; transition: transform .16s ease, background-color .16s ease; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-outline { background: transparent; color: var(--ink); border-color: #bfc7c1; }
.button-outline:hover { background: var(--soft); }
.button-primary { background: var(--orange); color: white; border-color: var(--orange); }
.button-primary:hover { background: #93361e; }
.unit-switch { display: inline-flex; flex: 0 0 auto; align-items: stretch; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.unit-switch label { position: relative; }
.unit-switch input { display: block; appearance: none; width: 45px; height: 44px; margin: 0; border: 0; border-radius: 5px; cursor: pointer; }
.unit-switch span { display: grid; place-items: center; position: absolute; inset: 0; pointer-events: none; font: 700 .85rem/1 Consolas, monospace; }
.unit-switch input:checked { background: var(--ink); }
.unit-switch input:checked + span { color: white; }
.unit-switch input:focus-visible { outline: 3px solid #218184; outline-offset: 1px; }
.checker-body { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(320px, 1fr); }
.fit-form { padding: 1.35rem 1.75rem 1.65rem; }
.field-group, .subgroup, .pocket-inputs { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.field-group + .field-group { margin-top: 1.5rem; padding-top: .65rem; }
.field-group > legend { display: flex; align-items: center; gap: .65rem; font: 720 1.28rem/1.1 var(--heading); letter-spacing: -.024em; padding: 0; }
.field-group:not(:first-of-type) { border-top: 1px solid var(--line); }
.field-group:not(:first-of-type) > legend { padding-right: .75rem; }
.form-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--orange); background: var(--orange-light); border-radius: 6px; }
.form-icon svg { width: 18px; height: 18px; }
.field-help { margin-block: .42rem .7rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.subgroup { margin-top: 1.1rem; }
.subgroup > legend { font-weight: 750; font-size: .95rem; padding: 0; }
.subgroup .measure-grid { margin-top: .38rem; }
.measure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.measure-grid > label { display: flex; flex-direction: column; min-width: 0; gap: .32rem; font-size: .84rem; color: #435055; font-weight: 650; }
.measure-input { display: block; position: relative; }
.measure-input input { min-width: 0; width: 100%; height: 45px; padding: .55rem 2.35rem .55rem .7rem; border: 1px solid #c8cec7; border-radius: 6px; color: var(--ink); background: #fafaf6; appearance: textfield; font: 500 1rem/1 Consolas, monospace; }
.measure-input input::-webkit-inner-spin-button, .measure-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.measure-input input::placeholder { color: #637072; opacity: 1; }
.measure-input input[aria-invalid="true"] { border: 2px solid var(--orange); }
.measure-input input:disabled { opacity: .55; }
.unit-label { position: absolute; top: 50%; right: .66rem; transform: translateY(-50%); pointer-events: none; color: var(--muted); font: .79rem/1 Consolas, monospace; }
.check-label { display: flex; align-items: center; gap: .58rem; width: fit-content; min-height: 44px; margin-top: .22rem; font-size: .89rem; line-height: 1.4; cursor: pointer; }
.check-label input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--orange); }
.inset-help { margin: -.08rem 0 0 1.65rem; }
.helper-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange); font-size: .86rem; font-weight: 650; text-underline-offset: 3px; }
.helper-link:hover { text-decoration-thickness: 2px; }
.pocket-details { margin-top: .4rem; padding: .05rem .8rem; background: var(--soft); border-radius: 7px; }
.pocket-details summary { min-height: 44px; padding: .62rem 0; cursor: pointer; font-size: .91rem; font-weight: 700; }
.pocket-details summary span { margin-left: .45rem; font-weight: 400; color: var(--muted); }
.pocket-details > div { padding: 0 0 .8rem; }
.pocket-check { margin-bottom: .4rem; }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.15rem; margin-top: 1.55rem; }
.submit-row .button { padding-inline: 1.5rem; }
.reset-button { background: none; border: none; padding: .5rem 0; min-height: 44px; color: var(--muted); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.sample-note, .input-error { padding: .65rem .8rem; margin-bottom: .9rem; border-radius: 6px; background: var(--orange-light); color: #702b1e; font-size: .9rem; }
.sample-note { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; column-gap: .75rem; }
.sample-result { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.input-error { margin: 1rem 0 0; }

.result-wrap { min-width: 0; padding: 1.3rem; background: #edf0eb; border-left: 1px solid var(--line); }
.result { position: sticky; top: 1rem; padding: 1.35rem; border-radius: 10px; background: var(--navy); color: #fffdf7; }
.result:focus { outline: 3px solid #3d9089; outline-offset: 3px; }
.result-kicker { display: flex; align-items: center; gap: .58rem; margin-bottom: .74rem; color: #b9cfd1; font: 700 .78rem/1 Consolas, monospace; text-transform: uppercase; letter-spacing: .11em; }
.result-kicker span { width: 8px; height: 8px; border-radius: 50%; background: #ea946a; }
.result[data-state="pass"] .result-kicker span { background: #9cd8ad; }
.result h3 { font-size: clamp(1.55rem, 2.35vw, 1.95rem); line-height: 1.1; letter-spacing: -.045em; }
.result-summary { color: var(--pale); margin-block: .55rem 1rem; font-size: .93rem; line-height: 1.5; }
.fit-visual { border: 1px solid #54717b; border-radius: 7px; overflow: hidden; background: #203c48; }
.fit-visual img, .fit-visual svg { width: 100%; height: auto; }
.result-legend { list-style: none; padding: 0; margin: .7rem 0 .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--pale); font-size: .82rem; }
.result-legend li { display: flex; align-items: center; gap: .35rem; }
.result-legend i { width: 10px; height: 10px; border-radius: 2px; background: #ec996d; }
.result-legend li + li i { border-radius: 50%; background: #a5c3a8; }
.result-foot { padding-top: .8rem; margin-top: .8rem; border-top: 1px solid #54717b; color: var(--pale); font-size: .85rem; line-height: 1.45; }
.result-checks { list-style: none; margin: 1rem 0 0; padding: 0; }
.result-checks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; padding: .64rem 0; border-top: 1px solid #54717b; }
.result-checks li > span:first-child { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1; }
.result-checks li[data-check="pass"] > span:first-child { color: #addcc0; }
.result-checks li[data-check="fail"] > span:first-child { color: #f2ab90; }
.result-checks li[data-check="unknown"] > span:first-child { color: #f0d3a4; }
.result-checks strong { display: block; font-size: .89rem; }
.result-checks small { display: block; color: var(--pale); font-size: .84rem; line-height: 1.45; }
.next-measurement { margin-top: .25rem; }
.next-measurement a { color: #fff4de; font-weight: 700; text-underline-offset: 3px; }

.home-guides { padding-block: 3.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 { font-size: clamp(1.8rem, 3.2vw, 2.25rem); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin-top: .55rem; max-width: 60ch; color: var(--muted); }
.home-editorial { margin-top: clamp(2.6rem, 5.3vw, 4.8rem); }
.home-steps, .home-case-grid { display: grid; gap: 1rem; }
.home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-step, .home-case { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: clip; }
.home-step { display: grid; grid-template-rows: auto 1fr; }
.home-step img { width: 100%; height: auto; aspect-ratio: 2.08; object-fit: contain; background: #e9eee5; border-bottom: 1px solid var(--line); }
.home-step > div { display: flex; flex-direction: column; align-items: start; gap: .5rem; padding: 1rem; }
.home-step h3, .home-case h3, .home-next h3 { font-size: 1.26rem; line-height: 1.17; }
.home-step p, .home-case p, .home-next p, .seller-callout p { color: var(--muted); }
.home-step .text-link, .home-next .text-link { font-size: .91rem; }
.home-step .text-link { margin-top: auto; }
.home-cases { padding: clamp(1.1rem, 2.5vw, 2rem); border: 1px solid #d6dfd2; border-radius: 12px; background: #e9eee7; }
.home-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-case { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.08rem; }
.home-case .case-readings { font: 700 .87rem/1.4 Consolas, monospace; color: #38534e; }
.home-case .button { margin-top: auto; }
.home-next { border-top: 1px solid var(--line); }
.home-next article { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.25fr); gap: .4rem 1.5rem; padding-block: 1rem .65rem; border-bottom: 1px solid var(--line); }
.home-next h3 { padding-top: .15rem; }
.seller-callout { margin-top: clamp(2rem, 4vw, 3.2rem); padding: clamp(1.05rem, 2.2vw, 1.65rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 9px; background: var(--white); }
.seller-callout h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; }
.seller-callout p { margin-top: .45rem; max-width: 67ch; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange); font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.4rem 3rem; padding-block: 1.65rem; }
.footer-inner p { font-size: .92rem; color: var(--muted); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(.9rem, 6vw, 5rem); }
.footer-links h2 { font-size: .97rem; margin-bottom: .2rem; }
.footer-links a { width: fit-content; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--orange); }

.inner-page { min-height: calc(100vh - 174px); padding-block: clamp(2.2rem, 6vw, 5rem) 4rem; }
.page-intro { max-width: 54rem; margin-bottom: 2rem; }
.page-intro h1 { font-size: clamp(2.45rem, 5.8vw, 4.4rem); text-wrap: wrap; }
.reading { max-width: 49rem; }
.article-reader { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: -.65rem 0 1.35rem; max-width: 49rem; }
.article-reader .button { background: var(--white); }
.article-reader .button:hover { background: var(--soft); }
.reader-status { color: var(--muted); font-size: .88rem; }
.reading h2 { margin: 2.15rem 0 .48rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.reading p + p { margin-top: .9rem; }
.reading p, .reading dd { color: #384a4e; }
.article-art { border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; margin-top: 1.8rem; }
.case-index { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; max-width: 58rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 1.25rem; }
.case-list { display: grid; gap: 1rem; }
.case-index h2 { font-size: 1.85rem; line-height: 1.1; letter-spacing: -.045em; }
.case-index p:not(.eyebrow) { margin-block: .55rem .9rem; color: var(--muted); }
.fact-list { margin: 0; }
.fact-list > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; padding: .65rem 0; gap: .7rem; border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 750; }
.fact-list dd { margin: 0; }
.sample-photo { max-width: 34rem; display: grid; gap: .7rem; }
.sample-photo p { font-size: .9rem; }
.case-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .8rem; }
.case-photos img { border-radius: 8px; }
.case-table { width: 100%; border-collapse: collapse; font-size: .94rem; text-align: left; }
.case-table thead { background: #e9eee7; }
.case-table th, .case-table td { padding: .7rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.case-table th:last-child, .case-table td:last-child { font-variant-numeric: tabular-nums; }
.try-case { margin-top: 1rem; }
.information-page .fact-list dd { overflow-wrap: anywhere; }
.contact-details { padding: .45rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.contact-details > div:last-child { border-bottom: 0; }

.library-page .page-intro, .editorial-page .page-intro { margin-bottom: 1.8rem; }
.breadcrumbs { margin-bottom: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--muted); font-size: .86rem; }
.breadcrumbs li + li::before { content: '/'; color: #65736e; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--orange); font-weight: 650; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.directory-category { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-category .directory-card { grid-template-rows: auto 1fr auto; }
.directory-section { margin-top: 1.65rem; }
.directory-section > h2 { margin-bottom: .55rem; font-size: 1.45rem; letter-spacing: -.02em; }
.directory-card { display: grid; align-content: start; gap: .52rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.directory-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.directory-card h2, .directory-card h3 { font-size: 1.35rem; line-height: 1.2; }
.directory-card p { color: var(--muted); }
.directory-card span { font-size: .86rem; color: var(--orange); font-weight: 700; }
.tool-filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: end; gap: .85rem; max-width: 58rem; margin-bottom: 1rem; }
.tool-filters label, .tool-fields label, .search-workspace label { display: block; font-weight: 700; }
.tool-filters label, .search-workspace label { margin-bottom: .3rem; }
.tool-filters input, .tool-filters select, .tool-fields input, .copy-block textarea, .search-workspace input { width: 100%; min-width: 0; min-height: 46px; padding: .6rem .75rem; border: 1px solid #aab6af; background: var(--white); color: var(--ink); border-radius: 6px; font: inherit; }
.tool-filters select { appearance: none; padding-right: 2rem; background: var(--white) right .75rem center / 1rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23192931' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tool-filters .button { min-height: 46px; }
.category-directory summary { width: fit-content; min-height: 44px; padding-block: .6rem; color: var(--orange); cursor: pointer; font-weight: 700; }
.category-directory[open] { margin-bottom: 1rem; }
.directory-results { margin-top: .35rem; }
.search-feedback { margin-block: .65rem; color: var(--muted); font-size: .9rem; }
.result-cards, .guide-list ul { list-style: none; padding: 0; margin: 0; }
.directory-results .result-cards, .guide-list ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.result-cards a, .guide-list a { height: 100%; display: grid; align-content: start; gap: .28rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-decoration: none; }
.result-cards a:hover, .guide-list a:hover { border-color: var(--orange); }
.result-cards a:hover strong, .guide-list a:hover h3 { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.result-type { color: var(--orange); font: 700 .78rem/1.25 Consolas, monospace; }
.result-description, .guide-list li p { color: var(--muted); font-size: .94rem; }
.directory-results > .button { margin-top: 1rem; }
.site-search { padding: 0; margin: min(8vh, 4rem) auto auto; width: min(830px, 100% - 2rem); max-width: none; max-height: none; border: 0; border-radius: 12px; background: var(--white); color: var(--ink); }
.site-search::backdrop { background: #14282ed1; }
.search-panel { display: flex; flex-direction: column; max-height: 84dvh; padding: clamp(1rem, 3vw, 1.55rem); }
.search-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.search-panel-head h2 { font-size: 1.5rem; line-height: 1.1; }
.search-workspace { min-width: 0; }
.site-search .search-workspace { display: flex; flex-direction: column; min-height: 0; }
.site-search .search-workspace input { flex: 0 0 auto; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.site-search .search-results { overflow: auto; overscroll-behavior: contain; padding: .14rem .25rem .3rem; }
.search-results h2, .search-results h3 { margin-block: .2rem .55rem; font-size: 1.18rem; }
.search-results .result-cards { display: grid; gap: .5rem; }
.search-shortcuts { display: none; }
.search-more { margin-top: .6rem; }
.library-link { margin-top: 1.4rem; }
.library-link a, .library-related a, .reading .related a:not(.button) { color: var(--orange); text-underline-offset: 3px; }
.workbench { display: grid; grid-template-columns: minmax(235px, 1fr) minmax(0, 2.2fr); align-items: start; gap: 1.2rem; }
.tool-picker, .active-tool { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.tool-picker summary { padding: .75rem 1rem; font-weight: 700; cursor: pointer; min-height: 44px; }
.tool-picker nav { display: grid; max-height: 470px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.tool-picker a { min-height: 44px; display: flex; align-items: center; padding: .55rem 1rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.tool-picker a:hover, .tool-picker a[aria-current] { background: var(--orange-light); color: #762d1b; }
.active-tool { padding: clamp(1rem, 3vw, 1.8rem); }
.active-tool h2, .guide-list h2 { font-size: clamp(1.45rem, 2.9vw, 2rem); line-height: 1.15; }
.active-tool > p { margin-top: .45rem; color: var(--muted); }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1.2rem 0; }
.tool-fields label { display: flex; flex-direction: column; justify-content: space-between; gap: .35rem; font-size: .9rem; }
.tool-buttons, .example-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.active-tool output:not(:empty) { display: block; padding: .8rem 1rem; margin-top: .6rem; background: #e9eee7; border-radius: 7px; border-left: 3px solid #587e70; font-weight: 750; }
.active-tool output[data-result="short"] { background: var(--orange-light); border-left-color: var(--orange); }
.tool-sample-label { font-size: .875rem; }
.library-related { margin-top: 1.35rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.library-related h3 { font-size: 1.18rem; }
.library-related ul { margin: .4rem 0 0; padding-inline-start: 1.3rem; }
.library-related li + li { margin-top: .35rem; }
.guide-topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.guide-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700; }
.guide-topics a:hover { color: var(--orange); border-color: var(--orange); }
.guide-list { margin-top: 2.2rem; }
.guide-list h2 { margin-bottom: .75rem; }
.guide-list li h3 { font-size: 1.17rem; line-height: 1.25; }
.guide-list li p { font-size: .95rem; }
.editorial-steps { padding-inline-start: 1.6rem; }
.editorial-steps li { padding-inline-start: .25rem; margin-block: .6rem; }
.editorial-dl dt { font-weight: 750; font-size: 1.06rem; }
.editorial-dl dd { margin: .2rem 0 1rem; }
.editorial-page .reading > .button, .example-links { margin-block: .85rem; }
.demo-link { flex-direction: column; gap: .15rem; }
.demo-link small { font-size: .78rem; font-weight: 500; }
.result-guide { display: inline-block; margin-top: .3rem; color: #fff4de; font-size: .86rem; font-weight: 700; text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; margin: .85rem 0; }
.editorial-table { font-size: .94rem; }
.editorial-table caption { text-align: left; padding: .45rem 0; color: var(--muted); font-weight: 700; }
.copy-block { padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.copy-block textarea { display: block; resize: vertical; margin: .5rem 0; font: inherit; min-height: 17rem; }
.copy-block [role="status"] { margin-left: .65rem; font-size: .88rem; }
.contact-template { margin-top: .85rem; }
.contact-template textarea { min-height: 9rem; }
.measurement-figure { margin-top: .3rem; }
.measurement-figure summary { min-height: 44px; padding: .65rem 0; cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 700; }
.measurement-figure img { border: 1px solid var(--line); border-radius: 8px; width: min(100%, 33rem); }

@media (max-width: 850px) { .directory-grid, .directory-results .result-cards, .guide-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 710px) { .workbench { grid-template-columns: 1fr; } .tool-picker nav { max-height: 250px; } }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 3.5rem); }
  .masthead { gap: 1.35rem; }
}
@media (max-width: 850px) {
  .checker-body { grid-template-columns: minmax(0, 1.3fr) minmax(275px, 1fr); }
  .fit-form, .checker-head { padding-inline: 1.15rem; }
  .result-wrap, .result { padding: 1rem; }
  .measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .header-inner { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .45rem; }
  .header-actions { grid-column: 2; }
  .nav-menu { display: inline-flex; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; display: grid; align-items: stretch; gap: .2rem; padding-block: .4rem .65rem; }
  .site-header[data-enhanced-nav][data-menu-open="false"] nav { display: none; }
  .site-header nav a { padding-inline: .7rem; border-radius: 6px; }
  .site-header nav a::after { display: none; }
  .site-header nav a:hover, .site-header nav a[aria-current] { background: var(--orange-light); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { grid-template-columns: 1fr; gap: 0; padding-block: 1.45rem 1rem; }
  .masthead h1 { font-size: clamp(2.1rem, 7.85vw, 3.1rem); }
  .hero-art { display: none; }
  .eyebrow { font-size: .75rem; margin-bottom: .65rem; }
  .hero-lede { margin-top: .7rem; }
  .checker { border-radius: 11px; }
  .checker-head { flex-wrap: wrap; gap: .75rem; padding: .9rem; }
  .checker-head h2 { font-size: 1.65rem; }
  .checker-actions { width: 100%; justify-content: space-between; }
  .checker-body { grid-template-columns: 1fr; }
  .fit-form { padding: .95rem; }
  .result-wrap { border-left: 0; border-top: 1px solid var(--line); }
  .result { position: static; }
  .home-guides { padding-block: 2.7rem 1.6rem; }
  .home-case-grid, .home-next article { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: .2rem; }
  .case-index, .search-results { grid-template-columns: 1fr; }
  .search-shortcuts { display: flex; gap: .45rem; margin-bottom: .55rem; }
  .tool-filters { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
  .tool-filters .button { justify-self: start; }
  .site-search { margin-top: 1rem; }
  .footer-inner { flex-direction: column; padding-block: 1.15rem; }
  .related { gap: .55rem 1rem; }
  .case-table { font-size: .83rem; }
  .case-table th, .case-table td { padding: .5rem .25rem; }
  .fact-list > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 470px) {
  .home-steps, .directory-grid, .directory-results .result-cards, .guide-list ul { grid-template-columns: 1fr; }
  .editorial-table { font-size: .84rem; }
  .header-actions { gap: .3rem; }
  .home-nav .header-inner { padding-inline: .45rem; }
  .home-nav .brand { gap: .45rem; font-size: 1.2rem; }
  .nav-action { padding-inline: .55rem; }
  .nav-menu { width: 44px; }
  .nav-menu span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
