:root {
    color-scheme: light;
    --paper: #f8f8f6;
    --white: #fff;
    --ink: #1d1d1c;
    --muted: #595855;
    --brand: #242423;
    --brand-dark: #191919;
    --accent: #8d4c30;
    --sand: #d8a989;
    --line: #deded9;
    --stone: #eeede9;
    --display: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --gutter: clamp(20px, 4vw, 62px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.62 var(--sans); }
main { min-height: 52vh; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 670; letter-spacing: -.048em; }
h1 { font-size: clamp(2.5rem, 4.65vw, 4.5rem); line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.14; text-wrap: balance; }
h3 { font-weight: 650; line-height: 1.32; }
a { color: inherit; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-width { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 12px auto auto 12px; background: var(--white); padding: 8px 14px; z-index: 4; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 1px solid var(--brand); border-radius: 4px; color: var(--white); background: var(--brand); font-size: .94rem; font-weight: 650; line-height: 1.36; text-align: center; text-decoration: none; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); text-decoration: none; }
.button-outline { background: transparent; color: var(--brand); border-color: #a5a49f; }
.button-outline:hover { background: var(--stone); border-color: var(--brand); color: var(--brand); }
.button-light { background: var(--paper); color: var(--brand-dark); border-color: var(--paper); }
.button-light:hover { background: var(--white); color: var(--brand-dark); border-color: var(--white); }
.button-hero-outline { background: transparent; color: var(--paper); border-color: #827a73; }
.button-hero-outline:hover { background: #33302d; border-color: var(--sand); }
.text-link { font-size: .94rem; font-weight: 650; color: var(--brand); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.quiet-button { background: transparent; border: 0; min-height: 40px; padding: 4px 2px; color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.quiet-button[aria-pressed=true] { color: var(--accent); }
.site-header { color: var(--paper); background: var(--brand-dark); border-bottom: 1px solid #ffffff2e; }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: clamp(18px, 4.2vw, 70px); }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: .92rem; font-weight: 750; letter-spacing: .055em; line-height: 1.13; text-transform: uppercase; }
.brand b { display: block; margin-top: 4px; font: 620 .64rem/1 var(--sans); letter-spacing: .245em; }
.brand-mark { width: 39px; height: 39px; object-fit: contain; }
.site-nav, .header-actions { display: flex; align-items: center; gap: clamp(14px, 2.25vw, 34px); }
.site-nav a, .header-actions a { text-decoration: none; font-size: .94rem; white-space: nowrap; }
.site-nav a[aria-current], .site-nav a:hover, .header-actions a:hover { text-decoration: underline; }
.header-actions { margin-left: auto; gap: 19px; }
.header-search { position: relative; }
.header-search summary, .menu-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; font-size: .94rem; }
.header-search summary::-webkit-details-marker { display: none; }
.header-search form { position: absolute; z-index: 2; right: 0; top: 100%; padding: 12px; background: var(--white); color: var(--ink); border: 1px solid var(--line); width: min(370px, 76vw); box-shadow: 0 8px 24px #16161624; }
.search-icon { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; margin-right: 2px; }
.search-icon::after { content: ''; position: absolute; background: currentColor; width: 6px; height: 1.5px; right: -5px; bottom: -2px; transform: rotate(46deg); }
.saved-link { padding: 8px 12px; border: 1px solid #ffffff45; border-radius: 4px; }
.saved-link span { margin-left: 6px; }
.menu-toggle { display: none; background: transparent; border: 1px solid #ffffff45; padding: 0 11px; color: inherit; border-radius: 3px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--brand-dark); color: var(--paper); }
.hero-copy { padding: clamp(37px, 4.8vw, 79px) clamp(24px, 3vw, 50px) clamp(40px, 5vw, 82px) max(var(--gutter), calc((100vw - 1320px) / 2)); align-self: center; }
.hero-copy h1 { max-width: 11.8em; font-size: clamp(2.35rem, 4.1vw, 4.44rem); line-height: 1.04; text-wrap: pretty; }
.hero-copy p { max-width: 32em; margin: 21px 0 26px; color: #d6d2cd; font-size: clamp(1rem, 1.28vw, 1.12rem); }
.hero-image { position: relative; min-width: 0; min-height: 420px; background: #6c4337; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-image figcaption { position: absolute; inset: auto 0 0 auto; padding: 10px 16px; color: var(--ink); background: var(--paper); font-size: .84rem; font-weight: 650; }
.hero-image a { text-decoration: none; }
.hero-image a:hover { text-decoration: underline; }
.section { margin: clamp(53px, 6.75vw, 101px) 0; }
.material-section { margin-top: clamp(34px, 4.6vw, 72px); }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.section-head p, .page-heading p, .faq > p { margin-top: 8px; color: var(--muted); }
.section-head > a { flex: 0 0 auto; padding-bottom: 3px; }
.family-grid, .stone-grid, .guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(13px, 2vw, 27px); }
.family { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family-photo, .card-image { display: block; background: var(--stone); overflow: hidden; }
.family-photo { aspect-ratio: 1.54; }
.family-photo img, .card-image img { width: 100%; height: 100%; object-fit: cover; }
.family-copy { padding: 14px 0 18px; }
.family h3 { font: 680 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--display); letter-spacing: -.028em; }
.family h3 a, .stone-card h3 a, .guide-card h3 a { text-decoration: none; }
.family h3 a:hover, .stone-card h3 a:hover, .guide-card h3 a:hover { text-decoration: underline; }
.family p { font-size: .94rem; color: var(--muted); margin-top: 7px; }
.family .price { color: var(--brand); font-weight: 600; }
.stone-card, .guide-card { min-width: 0; border-bottom: 1px solid var(--line); }
.stone-card .card-image { aspect-ratio: 1.37; }
.image-placeholder { display: block; width: 100%; height: 100%; background: var(--stone); }
.stone-card-copy, .guide-card-copy { padding: 14px 0 10px; }
.eyebrow { display: inline-block; font-size: .79rem; line-height: 1.35; font-weight: 650; letter-spacing: .052em; text-transform: uppercase; color: var(--accent); }
.stone-card h3, .guide-card h3 { margin-top: 4px; }
.card-actions { display: flex; justify-content: space-between; gap: 7px; align-items: center; margin-top: 9px; padding-top: 4px; border-top: 1px solid var(--line); font-size: .87rem; color: var(--muted); }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card .card-image { aspect-ratio: 1.76; }
.guide-card p { margin-top: 7px; color: var(--muted); font-size: .94rem; }
.toolkit { padding: clamp(25px, 5vw, 61px); background: var(--brand); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 6vw, 68px); align-items: center; }
.toolkit p { margin: 12px 0 22px; color: #e0dad3; }
.toolkit-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toolkit-links a { display: block; padding: 10px 0; border-bottom: 1px solid #ffffff45; text-decoration: none; }
.toolkit-links a:hover { text-decoration: underline; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px; border: 1px solid var(--line); }
.callout h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.callout p { margin-top: 6px; color: var(--muted); }
.callout .button { flex-shrink: 0; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 16px; border-top: 1px solid var(--line); }
.faq summary { padding: 13px 0; cursor: pointer; font-weight: 650; }
.faq details p { margin: 0 0 15px; color: var(--muted); }
.page-space { padding-top: 25px; padding-bottom: clamp(42px, 6vw, 84px); }
.page-heading { margin: 24px 0 31px; }
.page-heading h1 { font-size: clamp(2.3rem, 4.6vw, 4.15rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 10px; list-style: none; margin: 0 0 19px; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; color: #778077; margin-right: 10px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-block: 1px solid var(--line); padding: 12px 0; }
.filter-links { display: flex; flex-wrap: wrap; gap: 7px 11px; }
.filter-links a { display: block; padding: 5px 10px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: .91rem; }
.filter-links a:hover { text-decoration: underline; }
.filter-links [aria-current] { border-color: var(--line); background: var(--white); font-weight: 650; }
.guide-filters { margin-bottom: 26px; }
.search-row { display: flex; gap: 8px; align-items: stretch; }
input:not([type=checkbox], [type=radio]), select, textarea { min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #bfc5bb; border-radius: 4px; color: var(--ink); background: var(--white); }
.search-row input { flex: 1; }
.results-line { color: var(--muted); margin: 15px 0; font-size: .93rem; }
.pagination { margin: 28px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }
.pagination a { min-width: 41px; min-height: 41px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; border-radius: 3px; }
.pagination a[aria-current] { background: var(--brand); color: var(--white); }
.stone-detail { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4.6vw, 72px); }
.stone-info { padding-top: clamp(2px, 1.6vw, 20px); }
.stone-info h1 { margin-top: 9px; font-size: clamp(2.1rem, 4.1vw, 3.8rem); }
.stone-info .stone-price { margin: 15px 0 20px; font-size: 1.1rem; font-weight: 680; color: var(--brand); }
.gallery-main { aspect-ratio: 1.24; background: var(--stone); border: 1px solid #e0dfda; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-strip { display: flex; gap: 8px; padding: 10px 2px; overflow-x: auto; }
.gallery-thumb { border: 2px solid transparent; background: var(--stone); flex: 0 0 clamp(61px, 9vw, 95px); aspect-ratio: 1.24; padding: 0; }
.gallery-thumb[aria-pressed=true] { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 17px 0 21px; padding: 14px 0; border-block: 1px solid var(--line); }
.specs dt { font-size: .84rem; color: var(--muted); }
.specs dd { margin: 3px 0 0; font-weight: 600; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { border-bottom: 1px solid var(--line); padding: 11px 13px; vertical-align: top; }
th { background: var(--stone); }
.matrix table { min-width: 535px; }
.matrix h2, .specification h2 { margin-bottom: 16px; }
.article { max-width: 780px; margin-inline: auto; }
.article-heading { margin-bottom: 23px; }
.article-heading h1 { margin: 9px 0 0; }
.article-byline { font-size: .89rem; }
.article-cover { background: var(--stone); margin-bottom: 25px; }
.article-cover img { width: 100%; max-height: 510px; object-fit: contain; }
.article-cover figcaption { background: var(--paper); padding-top: 8px; color: var(--muted); font-size: .86rem; }
.prose { overflow-wrap: anywhere; }
.article .prose { font-size: 1.04rem; line-height: 1.76; }
.prose p, .prose blockquote, .prose table, .prose figure, .prose ol, .prose ul { margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose h2, .prose h3, .prose h4 { margin: 1.45em 0 .55em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.prose h3 { font-size: 1.25rem; }
.prose img { margin: 13px auto; max-height: 680px; object-fit: contain; }
.prose a[href] { color: var(--brand); }
.prose table { display: block; overflow-x: auto; min-width: 0; }
.prose blockquote { border-left: 3px solid var(--line); padding-left: 14px; }
.site-footer { background: var(--brand-dark); color: var(--paper); padding: 42px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.1fr; gap: 25px; }
.footer-inner p { margin-top: 13px; color: #d9d5d0; max-width: 29ch; font-size: .92rem; }
.footer-inner h2 { font: 650 1rem/1.4 var(--sans); letter-spacing: 0; }
.footer-inner ul { list-style: none; padding: 0; margin: 9px 0 0; }
.footer-inner li + li { margin-top: 5px; }
.footer-inner li a { font-size: .92rem; text-decoration: none; color: #e4e1dc; }
.footer-inner li a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid #ffffff38; margin-top: 31px; padding-top: 14px; color: #d9d5d0; font-size: .86rem; }
.form-panel { max-width: 760px; padding: clamp(16px, 3vw, 29px); border: 1px solid var(--line); background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field > span { font-weight: 600; font-size: .92rem; }
.field.full { grid-column: 1 / -1; }
.form-panel .actions { margin-top: 16px; }
fieldset { min-width: 0; margin: 14px 0; padding: 12px; border: 1px solid var(--line); }
fieldset label { display: inline-block; margin: 4px 11px 4px 0; }
.feedback { margin: 12px 0; padding: 10px 13px; border-left: 3px solid var(--brand); background: var(--stone); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card { display: block; padding: 17px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.tool-card:hover h3 { text-decoration: underline; }
.tool-card p { margin-top: 5px; color: var(--muted); font-size: .94rem; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr); gap: clamp(18px, 4vw, 54px); align-items: start; }
.calc-result { padding: 20px; border: 1px solid var(--line); background: var(--stone); }
.calc-result output { display: block; font: 400 clamp(1.7rem, 4vw, 2.65rem)/1.2 var(--display); margin: 10px 0; }
.calc-result ul { margin-bottom: 0; padding-left: 20px; }
.calc-result .field { margin-top: 12px; }
.estimate-sections { margin: 10px 0; }
.estimate-section { margin-bottom: 12px; }
@media (max-width: 1000px) {
    .header-inner { gap: 20px; }
    .site-nav { gap: 15px; }
    .header-actions { gap: 12px; }
    .hero-image { min-height: 330px; }
}
@media (max-width: 850px) {
    .header-inner { min-height: 69px; flex-wrap: wrap; gap: 10px; }
    .site-nav { order: 4; width: 100%; padding: 4px 0 12px; flex-wrap: wrap; }
    .menu-toggle { display: flex; }
    .site-header.enhanced:not(.menu-open) .site-nav { display: none; }
    .stone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .family-grid, .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .stone-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .home-hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 32px var(--gutter) 30px; }
    .hero-copy h1 { max-width: 17em; }
    .hero-copy p { margin: 14px 0 19px; }
    .hero-image { min-height: 0; aspect-ratio: 1.55; }
    .section-head, .callout { align-items: start; flex-direction: column; }
    .toolkit, .calc-layout { grid-template-columns: 1fr; }
    .guide-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 525px) {
    .header-inner { gap: 7px; }
    .brand { font-size: .78rem; gap: 8px; }
    .brand-mark { width: 33px; height: 33px; }
    .header-actions { gap: 9px; }
    .header-search summary span:last-child { position: absolute; clip-path: inset(50%); }
    .header-search summary { width: 37px; justify-content: center; }
    .header-search form { right: -67px; }
    .saved-link { padding-inline: 7px; }
    .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid { grid-template-columns: 1fr; }
    .family-copy, .stone-card-copy { padding: 11px 0; }
    .family-copy p { font-size: .89rem; }
    .card-actions { align-items: start; flex-direction: column; gap: 0; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Project calculators */
.tool-workspace {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 2rem);
}
.tool-page .page-heading { max-width: 58rem; }
.tool-page .page-heading p { max-width: 46rem; }
.tool-workspace [hidden] { display: none !important; }
.tool-input, .tool-output { min-width: 0; }
.tool-input { display: grid; gap: 1.25rem; }
.tool-panel-head, .tool-entry-head, .tool-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.tool-panel-head, .tool-entry-head { justify-content: space-between; }
.tool-panel-head h2, .tool-entry-head h3, .tool-result-heading h2, .tool-diagram h3 { margin: 0; }
.tool-panel-head h2, .tool-result-heading h2 { font-size: 1.25rem; }
.tool-entry-head h3, .tool-diagram h3 { font-size: 1rem; }
.tool-unit { min-width: min(100%, 11rem); }
.tool-field small { font-size: .8em; color: #46584f; font-weight: 500; white-space: nowrap; }
.tool-field > span { min-width: 0; }
.tool-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.tool-group > legend { margin: 0 0 .65rem; padding: 0; font-weight: 700; }
.tool-entries { display: grid; gap: .7rem; }
.tool-entry {
    padding: .85rem;
    background: #f6f7f2;
    border: 1px solid #d9ded4;
    border-radius: .65rem;
}
.tool-entry-head { margin-bottom: .7rem; }
.tool-add { margin-top: .65rem; }
.tool-actions .button, .tool-actions .quiet-button, .tool-add { min-height: 44px; }
.tool-actions .quiet-button, .tool-add { padding: .5rem .7rem; }
.tool-options { padding: .7rem 0 0; margin-top: .8rem; border-top: 1px solid #d9ded4; }
.tool-options summary { cursor: pointer; font-weight: 700; }
.tool-options > .form-grid { margin-top: .8rem; }
.tool-output.calc-result { padding: 0; background: #fff; color: #202923; overflow: hidden; border: 1px solid #d9ded4; }
.tool-result-heading { padding: clamp(1rem, 3vw, 1.55rem); background: #203a2d; color: #fff; }
.tool-output .tool-result-heading output {
    display: block;
    margin: .45rem 0 0;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.tool-result-detail { display: grid; gap: 1rem; padding: clamp(.9rem, 3vw, 1.55rem); }
.tool-result-detail > p { margin: 0; }
.tool-result-detail [data-note] { padding: .65rem .8rem; background: #f5f2e9; border-radius: .4rem; }
.tool-breakdown { display: grid; margin: 0; }
.tool-breakdown > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: .5rem;
    border-bottom: 1px solid #e4e8e0;
    padding: .55rem 0;
}
.tool-breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.tool-table { overflow-x: auto; }
.tool-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tool-table caption { text-align: left; font-weight: 700; margin-bottom: .45rem; }
.tool-table th, .tool-table td { text-align: left; padding: .45rem; border-bottom: 1px solid #e4e8e0; min-width: 4rem; }
.tool-table th { background: #f4f6f0; }
.tool-diagram figure { margin: .5rem 0; }
.tool-diagram canvas { width: 100%; height: auto; display: block; background: #f6f7f2; border-radius: .45rem; }
.tool-diagram figcaption { font-size: .9rem; margin-top: .35rem; }
.tool-status textarea { width: 100%; min-height: 4rem; display: block; }
.tool-guide { max-width: 56rem; margin-inline: auto; }
.tool-guide h3 { margin-top: 1.4rem; }
.tool-example { padding: 1rem 1.15rem; border-left: .25rem solid #55765d; background: #f5f6ef; border-radius: .3rem; }
.tool-example h3 { margin: 0 0 .45rem; }
.tool-example p { margin: .35rem 0 0; }
.tool-related { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.4rem; }
.tool-directory-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; max-width: 43rem; }
.tool-directory-controls .field { flex: 1 1 13rem; }
.tool-cards .tool-card { min-width: 0; }
.tool-cost-services { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.tool-cost-services label { display: inline-flex; align-items: center; gap: .35rem; }
.tool-cost-services input[type="checkbox"] { width: 1rem; min-height: 1rem; }
.tool-preset-links { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; }
@media (max-width: 840px) {
    .tool-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .tool-workspace .form-grid { grid-template-columns: minmax(0, 1fr); }
    .tool-breakdown > div { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
@media print {
    body:has(.tool-page) :is(.site-header, .site-footer, .tool-input, .tool-guide, .tool-actions, .tool-status, .tool-preset-links) { display: none !important; }
    .tool-workspace { display: block; }
    .tool-output .tool-result-heading, .tool-output .tool-result-heading output { color: #111; background: transparent; }
    .tool-breakdown > div, .tool-diagram figure { break-inside: avoid; }
}
.tool-cards [hidden] { display: none !important; }
.tool-jump { display: none; }
.tool-output { scroll-margin-top: 5rem; }
@media (max-width: 840px) {
    .tool-jump { display: inline-flex; align-items: center; }
}
.tool-steps { margin-block: .8rem 1rem; padding-inline-start: 1.4rem; }
.tool-steps li + li { margin-top: .35rem; }
@media print { .tool-print-help { display: none; } }

.article-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .85rem; }
.article-gallery-grid figure { margin: 0; }
.article-gallery-grid img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.publication-dates { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
