/* Georgetown Deck Builders. Navy and brick on white, transitional serif heads, big type. */
:root {
  --paper: #ffffff;
  --mist: #f2f5f9;
  --ink: #17202b;
  --ink-2: #3b4757;
  --navy: #1b365d;
  --navy-deep: #10243f;
  --navy-rgb: 27, 54, 93;
  --brick: #b5452f;
  --brick-ink: #8e3322;
  --brick-rgb: 181, 69, 47;
  --rule: #d3dae4;
  --on-navy: #e8edf4;
  --head: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
  interpolate-size: allow-keywords;
}
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
html.big { font-size: 22px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; font-weight: 700; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--brick-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 16px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.num { font-variant-numeric: tabular-nums; }

/* Utility strip and header */
.topline { background: var(--navy); color: var(--on-navy); font-size: .82rem; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; }
.topline a { color: #fff; }
.size-btn { font: inherit; font-size: .82rem; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; padding: 6px 12px; cursor: pointer; min-height: 38px; }
.size-btn[aria-pressed="true"] { background: #fff; color: var(--navy); }
.ledger { background: var(--paper); border-bottom: 4px solid var(--brick); }
.ledger .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 1; min-width: 0; }
.mark svg { width: 46px; height: 46px; flex-shrink: 0; }
.mark span { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.mark small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--ink-2); letter-spacing: .04em; }
.rail { display: none; align-items: center; gap: 4px; flex-shrink: 0; }
.rail > a, .rail summary { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.rail > a:hover, .rail summary:hover { background: var(--mist); }
.rail details { position: relative; }
.rail summary { list-style: none; }
.rail summary::-webkit-details-marker { display: none; }
.rail summary::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; translate: 0 3px; }
.rail .drop { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--navy); box-shadow: 0 12px 28px rgba(var(--navy-rgb), .14); padding: 8px; min-width: 260px; max-height: calc(100vh - 96px); overflow: auto; z-index: 30; }
.rail .drop a { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-size: .9rem; }
.rail .drop a:hover { background: var(--mist); }
.rail > a.btn-brick { color: #fff; margin-left: 8px; padding: 10px 18px; }
.rail > a.btn-brick:hover { background: #74291b; color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 4px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; text-box: trim-both cap alphabetic; }
.btn-brick { background: var(--brick-ink); color: #fff; border-color: var(--brick-ink); }
.btn-brick:hover { background: #74291b; color: #fff; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--mist); color: var(--navy); }
.ledger .btn { min-height: 46px; padding: 10px 18px; font-size: .9rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 2px solid var(--navy); color: var(--navy); font-weight: 600; border-radius: 4px; padding: 10px 16px; min-height: 48px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: #fff; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); box-shadow: 0 16px 36px rgba(var(--navy-rgb), .18); padding: 10px; z-index: 40; max-height: calc(100vh - 140px); overflow: auto; }
.menu-panel a { display: block; padding: 12px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--mist); }
.menu-panel .btn { margin-top: 10px; width: 100%; color: #fff; border-bottom: 0; }
.menu-panel .btn-line { color: var(--navy); }
.menu { flex-shrink: 0; }
@media (max-width: 479px) { .mark svg { width: 40px; height: 40px; } .mark span { font-size: 1rem; } .ledger .wrap { gap: 10px; } }
@media (min-width: 1100px) {
  .rail { display: flex; }
  .menu { display: none; }
}

/* Home hero */
.beam { padding: 48px 0 40px; }
.beam .wrap { display: grid; gap: 36px; align-items: center; }
.beam p.line { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.frame { position: relative; margin-right: 14px; margin-bottom: 14px; }
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.frame::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--navy); border-radius: 2px; }
@media (min-width: 900px) { .beam { padding: 64px 0 56px; } .beam .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* Quick answer and four facts */
.answer { background: var(--mist); border-left: 6px solid var(--navy); padding: 22px 24px; font-size: 1.1rem; margin: 0 0 24px; }
.answer p { margin: 0; }
.four { border: 1px solid var(--rule); border-top: 4px solid var(--brick); padding: 20px 22px 8px; margin: 0 0 28px; background: #fff; }
.four h2 { font-size: 1.15rem; margin: 0 0 12px; font-family: var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--brick-ink); }
.four ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 28px; }
.four li { position: relative; padding: 0 0 12px 30px; }
.four li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: var(--navy); box-shadow: 4px 4px 0 rgba(var(--brick-rgb), .55); }
@media (min-width: 640px) { .four ul { grid-template-columns: 1fr 1fr; } }

/* Sections */
.band { padding: 56px 0; }
.band-mist { background: var(--mist); }
.band h2:first-child { margin-top: 0; }
.intro { max-width: 46em; color: var(--ink-2); font-size: 1.05rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 78px; background: #fff; border: 1px solid var(--rule); min-height: 76px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; font: 700 1.3rem/1 var(--head); color: #fff; background: var(--brick-ink); border-radius: 50%; }
.steps strong, .steps b { color: var(--navy); }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
.joists { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 2px solid var(--navy); }
.joists li { border-bottom: 1px solid var(--rule); padding: 20px 0; display: grid; gap: 6px; }
.joists a.name { font: 700 1.3rem/1.25 var(--head); color: var(--navy); text-decoration: none; }
.joists a.name:hover { color: var(--brick-ink); text-decoration: underline; }
.joists p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .joists { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: 8px; }
.checks li::marker { color: var(--brick); }
.places { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0; }
.places li { border: 1px solid var(--navy); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 600; }

/* Numbers band */
.tally { background: var(--navy); color: var(--on-navy); padding: 56px 0; }
.tally h2 { color: #fff; margin-top: 0; }
.tally dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.tally dl > div { padding: 22px 16px 22px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.tally dt { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem)/1.1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.tally dd { font-size: .92rem; color: var(--on-navy); margin-top: 6px; }
@media (min-width: 900px) { .tally dl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; } }
.tally .src { margin: 22px 0 0; font-size: .85rem; color: var(--on-navy); }
.tally .src a { color: #fff; }

/* Inner pages */
.head-band { background: var(--mist); border-bottom: 1px solid var(--rule); padding: 28px 0 32px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.head-band h1 { margin: 0; }
.body-grid { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 64px; align-items: start; }
.article { min-width: 0; max-width: 46rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--brick); }
.photo { margin: 8px 0 28px; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.photo figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; border-left: 3px solid var(--brick); padding-left: 10px; }
.related { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--navy); }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.related li::before { content: "\2192"; color: var(--brick-ink); margin-right: 10px; }
@media (min-width: 1000px) {
  .body-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .body-grid > aside { position: sticky; top: 24px; }
}

/* FAQ accordion */
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 0; position: relative; font: 700 1.12rem/1.35 var(--head); color: var(--navy); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; font: 400 1.5rem/1 var(--body); color: var(--brick-ink); border: 1px solid var(--rule); border-radius: 50%; }
.faq details[open] summary::after { content: "\2212"; background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-a { padding: 0 0 18px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .28s ease, content-visibility .28s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
.faq-group + .faq-group { margin-top: 48px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.jump a { display: inline-block; padding: 10px 16px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); text-decoration: none; font-weight: 600; }
.jump a:hover { background: var(--mist); }

/* Glossary popovers */
.gloss { font: inherit; color: var(--navy); background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--brick); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gloss-pop { border: 1px solid var(--rule); border-top: 4px solid var(--navy); background: #fff; color: var(--ink); padding: 14px 16px; max-width: min(340px, calc(100vw - 32px)); font-size: .9rem; line-height: 1.5; box-shadow: 0 14px 30px rgba(var(--navy-rgb), .2); margin: 8px 0; }
.gloss-pop .gloss-h { display: block; font: 700 1rem/1.3 var(--head); color: var(--navy); margin-bottom: 4px; }
@media (min-width: 640px) { @supports (position-area: bottom) { .gloss-pop { position-area: bottom span-right; position-try-fallbacks: flip-block, flip-inline; } } }
.gloss-pop { position: fixed; inset: auto 16px 96px 16px; margin: 0 auto; }
@media (min-width: 640px) { @supports (position-area: bottom) { .gloss-pop { position: absolute; inset: auto; margin: 8px 0; } } }

/* Estimate box and forms */
.joist-card { border: 2px solid var(--navy); background: #fff; }
.joist-card > header { background: var(--navy); color: #fff; padding: 16px 20px; }
.joist-card > header h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.joist-card > header p { margin: 4px 0 0; color: var(--on-navy); font-size: .9rem; }
.joist-card form { padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #8592a3; border-radius: 4px; padding: 12px 14px; min-height: 52px; }
.field textarea { field-sizing: content; min-block-size: 4lh; max-block-size: 12lh; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(var(--navy-rgb), .25); outline-offset: 0; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .82rem; line-height: 1.5; color: var(--ink-2); margin: -4px 0 18px; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.joist-card .btn { width: 100%; }
.form-note { margin: 12px 0 0; font-weight: 600; color: var(--brick-ink); }
.form-note:empty { display: none; }
.wide-form { max-width: 46rem; }
.wide-form .two { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .wide-form .two { grid-template-columns: 1fr 1fr; } }

/* Footer */
.footing { background: var(--navy-deep); color: var(--on-navy); padding: 48px 0 28px; margin-top: 0; font-size: .9rem; }
.footing a { color: #fff; }
.footing .cols { display: grid; gap: 28px; }
.footing h2 { color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.footing ul { list-style: none; padding: 0; margin: 0; }
.footing li { margin-bottom: 8px; }
.footing .base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 18px; color: var(--on-navy); }
@media (min-width: 800px) { .footing .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Mobile call bar, only rendered when a phone is set */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--navy); z-index: 45; }
.callbar .btn { min-height: 50px; padding: 10px; }
body.has-callbar { padding-bottom: 76px; }
@media (min-width: 1040px) { .callbar { display: none; } body.has-callbar { padding-bottom: 0; } }

/* Reading progress on the long guide */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: fixed; inset: 0 0 auto; height: 5px; background: var(--brick); transform-origin: left; z-index: 60; animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
  }
}

/* Legal pages and 404 */
.plain { padding-top: 36px; padding-bottom: 64px; max-width: 46rem; }
.notfound { padding-top: 72px; padding-bottom: 72px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topline, .ledger nav, .menu, .joist-card, .callbar, .footing { display: none; } }
