/* Clean pass (31 Oct 2026): design system ported from the cleaning-cost calculator, adapted to the navy palette.
   One border colour, two radii (8px controls, 12px surfaces), flat surfaces with a single soft shadow only where something floats. */
:root {
  --line: #d1e7f0; --line-soft: #e6eef3; --tint: #f4f9fc; --soft: #3d5470;
  --r-sm: 8px; --r: 12px; --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(2,35,69,.05);
  --shadow-float: 0 12px 28px rgba(2,35,69,.12);
}

/* Typography scale */
body { font-size: 16px; line-height: 1.7; color: #1a202c; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.18; }
h2, .prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 800; margin: 1.6em 0 .6em; }
h3, .prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4em 0 .5em; }
h4, .prose h4 { font-size: 1rem; font-weight: 700; margin: 1.2em 0 .4em; }
small, .small, .otd-note, .otd-disclaimer { font-size: .85rem; }
.lede { font-size: 1.08rem; line-height: 1.6; color: var(--soft); font-weight: 500; }

/* Links */
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cqp-primary-80); text-decoration-thickness: 2px; }

/* Header and nav */
.site-header { border-bottom-color: var(--line); background: rgba(255,255,255,.96); }
.site-nav > a { color: var(--navy); border-radius: var(--r-sm); }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { background: var(--ice); color: var(--navy); }
.nav-search input { border: 1px solid var(--line); }
.nav-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,35,69,.10); }
.calc-suggest { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow-float); }
@media (max-width: 980px) {
  .site-nav { padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(2,35,69,.08); }
  .site-nav > a { padding: 12px 10px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav > a:hover { background: var(--tint); box-shadow: inset 3px 0 0 var(--cqp-accent); }
  .nav-search, .nav-search input { width: 100%; }
}

/* Hero and page heads */
.hero { background: linear-gradient(180deg, #fff 0%, var(--ice) 100%); border-bottom: 1px solid var(--line-soft); }
.hero h1 { margin-bottom: .3em; }

/* Breadcrumbs */
.crumb { font-size: .85rem; color: var(--soft); margin-bottom: .5rem; }
.crumb a { color: var(--navy); font-weight: 600; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Buttons: pills, one weight */
.btn, .otd-primary, .otd-secondary, .contact-form button, .prose button:not(.otd-tool button) { border-radius: 999px; font-weight: 700; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: var(--cqp-primary-80); }

/* Surfaces: flat cards, one border, hover lift only on links */
.side-card { border-color: var(--line); border-radius: var(--r); box-shadow: none; }
.side-cta { background: var(--ice); border-color: var(--line); }
.side-list li + li { border-top-color: var(--line); }
.side-list a { padding: 8px 8px; border-radius: var(--r-sm); color: var(--navy); }
.side-list a:hover { background: #fff; box-shadow: inset 3px 0 0 var(--cqp-accent); }
.side-cta .side-list a:hover, .side-card:not(.side-cta) .side-list a:hover { background: var(--tint); }
.state-grid a, .plan, .price-card, .card { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.state-grid a:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-float); border-color: var(--navy); }
.embed-panel { border-color: var(--line); border-radius: var(--r); }

/* Article prose */
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--cqp-primary-80); }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.prose blockquote { border-left: 4px solid var(--cqp-accent); background: var(--ice); margin: 1.5em 0; padding: 14px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { background: var(--ice); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* Tables: tinted head, row rules, zebra */
.prose table:not(.otd-est-table):not(.otd-example) { border-collapse: collapse; font-size: .93rem; margin: 1.2em 0; }
.prose table:not(.otd-est-table):not(.otd-example) th, .prose table:not(.otd-est-table):not(.otd-example) td { border-bottom: 1px solid var(--line); padding: 9px 12px; }
.prose table:not(.otd-est-table):not(.otd-example) thead th { background: var(--ice); color: var(--navy); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.prose table:not(.otd-est-table):not(.otd-example) tbody tr:nth-child(even) { background: #f7fbfd; }

/* Callouts and notes */
.disclaimer, .notice { background: var(--ice); border: 0; border-left: 4px solid var(--cqp-accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; }
.notice.bad { background: #fee2e2; border-left-color: #b91c1c; }

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; margin: 0 0 1.5em; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; min-height: 44px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.faq-item > summary::after { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq-item[open] > summary { background: var(--ice); }
.faq-item[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item > summary:hover { background: var(--ice); }
.faq-item > summary:focus-visible { outline: 3px solid var(--cqp-accent); outline-offset: -3px; }
.faq-item > p { margin: 0; padding: 12px 18px 16px; color: #1a202c; }
@media (prefers-reduced-motion: reduce) { .faq-item > summary::after { transition: none; } }

/* Forms outside the calculator */
.contact-form label { font-size: .85rem; font-weight: 600; color: #374151; }
.contact-form input, .contact-form textarea, .contact-form select { border: 1px solid #cfd8e3; border-radius: var(--r-sm); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,35,69,.10); }

/* Footer */
.site-footer { font-size: .92rem; color: rgba(255,255,255,.82); }
.site-footer a { color: var(--cqp-accent); }
.footer-h { color: #fff; }
.footer-base { border-top-color: rgba(164,223,245,.22); font-size: .82rem; color: rgba(255,255,255,.72); }

/* fee cheat sheet: 3 columns + compact add-on list */
@media (min-width: 760px) { .otd-sheet-3 .otd-sheet-head, .otd-sheet-3 .otd-sheet-row { grid-template-columns: 1.5fr 1fr 0.8fr; } }
.otd-addon-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.2rem 0 0; padding: 0; }
.otd-addon-list li { border: 1px solid var(--otd-line, #e5e7eb); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.9rem; background: #fff; }
