/* Fair OTD — same chrome as the cleaning and transfer-tax calculators. */
:root {
    --cqp-primary: #022345;
    --cqp-primary-80: #033566;
    --cqp-accent: #A4DFF5;
    --cqp-light-bg: #E4F1F5;
    --cqp-border: #d1e7f0;
    --cqp-text: #1a202c;
    --cqp-muted: #6b7280;
    --cqp-text-soft: #3d5470;
    --navy: var(--cqp-primary);
    --ice: var(--cqp-light-bg);
    --text: var(--cqp-text);
    --muted: var(--cqp-text-soft);
    --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Lato, Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { font-family: Inter, system-ui, sans-serif; color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 8px; background: #fff; padding: 8px; z-index: 80; }

.site-header { background: #fff; border-bottom: 1px solid var(--cqp-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Inter, sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--navy); }
.mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .04em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav > a { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { background: var(--ice); }
.nav-search { position: relative; }
.nav-search input { border: 1.5px solid var(--cqp-border); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: .88rem; width: 210px; max-width: 100%; background: #fff; color: var(--text); }
.nav-search input:focus { outline: none; border-color: var(--navy); }
.calc-suggest { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: min(340px, 90vw); max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--cqp-border); border-radius: 12px; box-shadow: 0 14px 36px rgba(2,35,69,.14); }
.calc-suggest a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); font-family: Inter, sans-serif; font-size: .86rem; font-weight: 600; line-height: 1.35; }
.calc-suggest a.on, .calc-suggest a:hover { background: var(--ice); }
.calc-suggest-empty { padding: 8px 10px; color: var(--muted); font-size: .84rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-bottom: 1px solid var(--cqp-border); box-shadow: 0 10px 20px rgba(2,35,69,.08); }
    .site-nav.open { display: flex; }
    .nav-search { width: 100%; }
    .nav-search input { width: 100%; margin-top: 6px; }
    .calc-suggest { left: 0; right: 0; width: auto; }
}

.hero, .page-head { background: linear-gradient(180deg, #fff 0%, var(--ice) 100%); padding: 48px 0 36px; text-align: center; }
.page-head { text-align: left; padding-bottom: 20px; }
.lede { font-size: 1.15rem; color: var(--navy); font-weight: 700; max-width: 40rem; margin: 0 auto; }
.page-head .lede { margin-left: 0; font-weight: 500; color: var(--muted); }
.crumb { margin: 0 0 .4rem; color: var(--muted); font-size: .92rem; }
.crumb a { font-weight: 700; }
.tool-band { background: #f7fbfd; padding: 28px 0 8px; }
.band { padding: 36px 0; }
.band.alt { background: rgba(211, 226, 232, .35); }
.section-title, .section-lead { text-align: center; }
.section-lead { color: var(--muted); margin-top: 0; }
.prose { max-width: 1000px; margin: 0; min-width: 0; overflow-wrap: break-word; }
/* Article pages: header and body share one centred readable column. */
.wrap.wrap-read { max-width: calc(1000px + 40px); margin-left: auto; margin-right: auto; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.prose code { overflow-wrap: anywhere; }

.prose.center-copy { text-align: left; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--cqp-border); text-align: left; padding: 10px 8px; vertical-align: top; }
.prose th { font-family: Inter, sans-serif; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.steps { padding-left: 1.2rem; }
.steps li { margin: .7rem 0; }
.guide-list { padding-left: 1.1rem; }
.guide-list li { margin: .45rem 0; }
.state-grid { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.state-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--cqp-border); border-radius: 12px; text-decoration: none; font-weight: 700; }
.state-grid a:hover { background: var(--ice); }
.state-grid small { color: var(--muted); font-weight: 700; }
.disclaimer, .notice { background: var(--ice); border-radius: 12px; padding: 12px 14px; }
.notice.bad { background: #fde8e4; }
.contact-form { display: grid; gap: 12px; max-width: 32rem; }
.contact-form label { display: grid; gap: 4px; font-weight: 700; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--cqp-border); border-radius: 10px; }
.contact-form button, .prose button { font: inherit; font-weight: 800; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; }
.site-footer { background: var(--navy); color: #d5e4ee; padding: 36px 0 18px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-about p { margin: 0; max-width: 30ch; line-height: 1.5; }
.footer-h { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7rem; }
.footer-brand, .footer-h { font-family: Inter, sans-serif; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .5rem; }
.footer-base { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 8px; align-items: center; }
.footer-legal span { opacity: .5; }
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-about { grid-column: 1 / -1; }
    .wrap { padding: 0 14px; }
    .wrap.wrap-read { max-width: 100%; }
    body { font-size: 16px; }
}
.ad-slot { min-height: 0; margin: 1.25rem 0; }
.embed-panel { max-width: 1080px; margin: 1rem auto 0; border: 1px solid var(--cqp-border); border-radius: 12px; padding: 0.6rem 1rem; background: #fff; }
.embed-panel summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.notice { background: #e4f1f5; border-radius: 10px; padding: 0.75rem 1rem; }
.notice.bad { background: #fde8e8; }
@media print {
    .site-header, .site-footer, .hero, .page-head, .nav-toggle { display: none !important; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 801px) {
    .prose { font-size: 18px; line-height: 1.7; }
}

/* ===== Unified layout container (one left edge site-wide) ===== */
:root { --wrap: 1180px; --gutter: 24px; --read: 1000px; }
@media (max-width: 800px) { :root { --gutter: 16px; } }
.wrap, .container, .wrap.wrap-read, .wrap.prose {
    box-sizing: border-box; width: 100%; max-width: var(--wrap);
    margin-left: auto; margin-right: auto;
    padding-left: var(--gutter); padding-right: var(--gutter);
}
.wrap.prose > *, .prose:not(.wrap) { max-width: var(--read); }
.wrap.prose > *, .prose > * { margin-left: 0; margin-right: 0; }
.hero, .page-head, .section-title, .section-lead { text-align: left; }
.lede, .page-head .lede { margin-left: 0; margin-right: 0; }
.tool-band .wrap > *, .otd-tool, .otd-tool.otd-estimator, .embed-panel { margin-left: 0; margin-right: 0; max-width: 100%; }
.otd-tool { box-sizing: border-box; }
main, .site-main { min-width: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { display: table; }
.prose a, .prose li, .prose p { overflow-wrap: anywhere; }
