/* ==========================================================================
   Rebuild House Guide — main stylesheet ("field guide" look)
   Column layout uses the Bootstrap grid (bootstrap-grid.min.css, loaded first).
   1 Tokens · 2 Base · 3 Header · 4 Buttons · 5 Hero · 6 Problem finder
   7 Services · 8 Sections · 9 Blog · 10 Forms · 11 Footer
   12 Responsive · 13 Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --limestone: #f4f2ec;
  --limestone-2: #ebe7dc;
  --paper: #fffefa;
  --slate: #243140;
  --slate-700: #31435a;
  --slate-900: #18212c;
  --blue: #35628f;
  --blue-700: #2a5077;
  --blue-soft: #dfe8f1;
  --bourbon: #b06a2c;
  --bourbon-text: #9a5a22;
  --bourbon-soft: #f3e3d2;
  --text: #253240;
  --muted: #56616d;
  --line: #d9d3c4;
  --white: #ffffff;
  --on-dark: #d6dde6;
  --danger: #9b2a1f;
  --danger-bg: #fbe9e6;
  --success: #245c3a;
  --success-bg: #e2efe6;

  --font-head: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --fs-sm: .94rem;
  --fs-base: 1.04rem;
  --fs-lg: 1.16rem;
  --fs-h3: 1.22rem;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem);

  --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;
  --radius: 6px;
  --shadow: 0 18px 40px -28px rgba(24, 33, 44, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; background: var(--limestone-2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.22; margin: 0 0 var(--s-4); color: var(--slate); }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bourbon-text); }
ul, ol { padding-left: 1.2rem; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.bg-slate :focus-visible, .site-footer :focus-visible, .side-card-slate :focus-visible, .contact-card :focus-visible, .cta-board :focus-visible { outline-color: #f0b27a; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--slate); color: #fff; padding: .75rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: .75rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.65; }
.overline { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bourbon-text); margin-bottom: var(--s-3); }
.overline::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.overline-light { color: #f0b27a; }
.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bourbon-text); margin-bottom: var(--s-2); }
.pillar-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-700); flex: none; }
.pillar-ico svg { width: 22px; height: 22px; }
img.img-failed { object-position: -9999px -9999px; background: repeating-linear-gradient(45deg, var(--limestone), var(--limestone) 12px, var(--limestone-2) 12px, var(--limestone-2) 24px); }

/* 3. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 254, 250, .97); border-bottom: 1px solid var(--line); box-shadow: 0 4px 0 -2px var(--limestone-2); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--slate); white-space: nowrap; flex: none; }
.brand img { width: 44px; height: 44px; background: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; line-height: 1; letter-spacing: -.01em; }
.brand-name span { font-style: italic; font-weight: 400; color: var(--bourbon-text); }
.brand:hover { color: var(--slate); }
.primary-nav { margin-left: auto; display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-link { display: block; white-space: nowrap; padding: .5rem .75rem; font-weight: 600; font-size: .98rem; color: var(--text); text-decoration: none; border-radius: var(--radius); transition: background-color .2s, color .2s; }
.nav-link:hover { background: var(--limestone); color: var(--slate); }
.nav-link[aria-current="page"] { color: var(--slate); background: var(--limestone); box-shadow: inset 0 -3px 0 var(--bourbon); }
.mobile-extra { display: none; }
.nav-toggle { display: none; align-items: center; gap: .45rem; min-height: 46px; padding: 0 1rem; border: 2px solid var(--slate); border-radius: var(--radius); background: transparent; color: var(--slate); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 4. Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: .45rem 1.05rem; font-size: .95rem; }
.btn-block { width: 100%; white-space: normal; }
.sidebar > * { min-width: 0; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-700); color: var(--white); }
.btn-bourbon { background: var(--bourbon-text); color: var(--white); }
.btn-bourbon:hover { background: #7f4a1b; color: var(--white); }
.btn-line { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-line:hover { background: var(--slate); color: var(--white); }
.btn-line-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn-line-light:hover { background: var(--white); color: var(--slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.btn-row-end { justify-content: flex-end; margin-top: 0; }
.more-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--blue-700); }
.more-link svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }

/* 5. Hero ------------------------------------------------------------------ */
.hero { padding: var(--s-8) 0 var(--s-9); background: var(--limestone); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 34rem; }
.hero-book { position: relative; padding: 0 0 var(--s-7) var(--s-6); }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--white); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; }
.guide-card { position: absolute; left: 0; bottom: 0; width: min(290px, 78%); padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--bourbon); border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-card-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--slate); margin-bottom: var(--s-3); }
.guide-card-title svg { width: 20px; height: 20px; color: var(--bourbon-text); }
.guide-card ul { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.guide-card li { counter-increment: toc; }
.guide-card a { display: flex; gap: .6rem; padding: .3rem 0; font-size: .95rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--line); }
.guide-card li:last-child a { border-bottom: 0; }
.guide-card a::before { content: counter(toc, upper-roman) "."; min-width: 2.1rem; font-family: var(--font-head); color: var(--bourbon-text); }
.guide-card a:hover { color: var(--blue-700); }

.page-hero { padding: var(--s-7) 0 var(--s-8); background: var(--limestone); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 40rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.taped-photo { position: relative; margin: 0; padding: 10px; background: var(--white); border-radius: 3px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.taped-photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(176, 106, 44, .28); transform: rotate(-3deg); }
.taped-photo img { width: 100%; aspect-ratio: 4 / 3; border-radius: 2px; }
.section .col-lg-5 > .taped-photo img { aspect-ratio: 5 / 5.6; }
.page-hero .taped-photo img { aspect-ratio: 4 / 3; }
.taped-photo figcaption { font-size: .82rem; color: var(--muted); padding-top: .5rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-5); }
.chip-row a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.chip-row a:hover { border-color: var(--blue); color: var(--blue-700); }
.chip-row svg { width: 16px; height: 16px; color: var(--bourbon-text); }

/* 6. Problem finder -------------------------------------------------------- */
.finder-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s-4); }
.finder-tools[hidden], .finder-empty[hidden], .problem[hidden] { display: none; }
.finder-search label { display: block; font-weight: 700; color: var(--slate); margin-bottom: .4rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search-wrap input[type="search"] { padding-left: 46px; }
.finder-search .hint { margin-top: .4rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-chip { min-height: 44px; padding: .45rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--slate); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.area-chip:hover { border-color: var(--blue); }
.area-chip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.finder-status { min-height: 1.5em; margin: 0 0 var(--s-3); font-size: .95rem; font-weight: 600; color: var(--muted); }
.finder-status:empty { min-height: 0; margin: 0; }
.problems { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.problem { position: relative; display: flex; flex-direction: column; padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); min-width: 0; }
.problem[data-area="roof"] { border-top-color: var(--bourbon); }
.problem[data-area="inside"] { border-top-color: #5e7f5a; }
.problem[data-area="safety"] { border-top-color: #a3433a; }
.problem[data-area="money"] { border-top-color: var(--slate); }
.problem-area { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.problem h3 { font-size: 1.12rem; }
.problem dl { margin: 0 0 var(--s-4); font-size: .96rem; }
.problem dt { font-weight: 700; color: var(--slate); font-size: .86rem; }
.problem dd { margin: 0 0 var(--s-3); color: var(--muted); }
.problem dd:last-child { margin-bottom: 0; }
.problem-link { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--blue-700); }
.problem-link svg { width: 18px; height: 18px; flex: none; color: var(--bourbon-text); }
.problem-link:hover { text-decoration: underline; }
.finder-empty { padding: var(--s-5); background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); }

/* 7. Services -------------------------------------------------------------- */
.svc-card { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: 34px; scroll-margin-top: 110px; }
.svc-tab { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: .4rem; max-width: 92%; height: 36px; padding: 0 1rem; background: var(--slate); color: var(--white); font-size: .82rem; font-weight: 700; letter-spacing: .04em; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-tab svg { width: 16px; height: 16px; flex: none; color: #f0b27a; }
.svc-card-photo { border: 1px solid var(--line); border-bottom: 0; border-radius: 0 var(--radius) 0 0; overflow: hidden; }
.svc-card-photo img { width: 100%; aspect-ratio: 16 / 11; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card-photo img { transform: scale(1.03); }
.svc-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--bourbon); border-radius: 0 0 var(--radius) var(--radius); }
.svc-card-body h2, .svc-card-body h3 { font-size: 1.24rem; }
.svc-card-body p { color: var(--muted); }
.svc-card-body .btn { margin-top: auto; }
.card-note { font-size: .9rem; padding: .6rem .8rem; background: var(--bourbon-soft); border-radius: var(--radius); color: var(--text) !important; }
.svc-card-body p + .btn, .card-note + .btn { margin-top: auto; }
.svc-card-body > p:last-of-type { margin-bottom: var(--s-5); }

/* 8. Sections -------------------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-top-tight { padding-top: var(--s-7); }
.bg-limestone { background: var(--limestone); }
.bg-slate { background: var(--slate); color: var(--on-dark); }
.bg-slate h2, .bg-slate h3 { color: var(--white); }
.bg-slate .overline { color: #f0b27a; }
.bg-slate .section-title p, .on-dark { color: var(--on-dark); }
.section-title { max-width: 44rem; margin-bottom: var(--s-7); }
.section-title p { color: var(--muted); font-size: var(--fs-lg); }
.section-title-center { margin-left: auto; margin-right: auto; text-align: center; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-7); }
.title-row .section-title { margin-bottom: 0; }
.ky-card { height: 100%; padding: var(--s-5); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); background: var(--slate-700); }
.bg-limestone .ky-card { background: var(--paper); border-color: var(--line); }
.ky-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--bourbon); color: var(--white); margin-bottom: var(--s-4); }
.ky-ico svg { width: 22px; height: 22px; }
.ky-card h3 { font-size: 1.12rem; }
.ky-card p { font-size: .97rem; }
.pillar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.pillar-list li { display: flex; gap: var(--s-4); }
.pillar-list h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.pillar-list p { color: var(--muted); }
.value-card, .who-card { height: 100%; padding: var(--s-5); border-radius: var(--radius); }
.value-card { background: var(--slate-700); border: 1px solid rgba(255, 255, 255, .18); }
.value-card .pillar-ico { background: rgba(255, 255, 255, .1); color: #f0b27a; margin-bottom: var(--s-4); }
.value-card h3 { font-size: 1.12rem; }
.who-card { background: var(--paper); border: 1px solid var(--line); }
.who-card .pillar-ico { margin-bottom: var(--s-4); }
.who-card h3 { font-size: 1.12rem; }
.who-card p { color: var(--muted); }
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); counter-reset: step; }
.path li { position: relative; counter-increment: step; padding: var(--s-5); padding-top: var(--s-6); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.path li::before { content: "Step " counter(step, upper-roman); position: absolute; top: -13px; left: var(--s-5); padding: .15rem .6rem; background: var(--bourbon-text); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; }
.path-ico { display: block; color: var(--blue-700); margin-bottom: var(--s-3); }
.path-ico svg { width: 26px; height: 26px; }
.path h3 { font-size: 1.06rem; }
.path p { font-size: .95rem; color: var(--muted); }
.faq-box { display: grid; gap: var(--s-3); }
.faq-box details { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.faq-box summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: 700; color: var(--slate); cursor: pointer; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-mark svg { width: 20px; height: 20px; color: var(--bourbon-text); transition: transform .25s var(--ease); }
.faq-box details[open] .faq-mark svg { transform: rotate(45deg); }
.faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.news-note { padding: clamp(1.5rem, 4vw, 3rem); background: var(--limestone); border: 1px solid var(--line); border-radius: var(--radius); background-image: repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(53, 98, 143, .08) 31px, rgba(53, 98, 143, .08) 32px); }
.news-note h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-board { padding: clamp(1.75rem, 5vw, 3.5rem); background: var(--slate); color: var(--on-dark); border-radius: var(--radius); border-bottom: 6px solid var(--bourbon); }
.cta-board h2 { color: var(--white); }
.status-page { padding: var(--s-9) 0; text-align: center; }
.status-page .btn-row { justify-content: center; }
.status-page .lead { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* 9. Blog ------------------------------------------------------------------ */
.post-card { height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-photo img { width: 100%; aspect-ratio: 16 / 11; transition: transform .5s var(--ease); }
.post-card-photo { overflow: hidden; }
.post-card:hover .post-card-photo img { transform: scale(1.03); }
.post-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: var(--s-5); }
.post-card h2, .post-card h3 { font-size: 1.2rem; }
.post-card h2 a, .post-card h3 a { color: var(--slate); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--blue-700); text-decoration: underline; }
.post-card p { color: var(--muted); }
.post-card .more-link { margin-top: auto; }
.article-head { padding: var(--s-7) 0; background: var(--limestone); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.byline { font-size: .92rem; font-weight: 600; color: var(--muted); }
.article-photo img { aspect-ratio: 4 / 3; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.55rem; margin-top: var(--s-7); scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin-top: var(--s-5); }
.prose li { margin-bottom: .45rem; }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); margin-top: var(--s-6); padding: var(--s-4) var(--s-5); background: var(--bourbon-soft); border-left: 4px solid var(--bourbon); border-radius: var(--radius); }
.callout svg { width: 22px; height: 22px; color: var(--bourbon-text); margin-top: 3px; }
.article-foot { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.article-foot .btn-row { margin-top: 0; }
.copy-status { margin: var(--s-3) 0 0; font-weight: 600; color: var(--success); }
.copy-status:empty { display: none; }
.sidebar { position: sticky; top: 104px; display: grid; gap: var(--s-5); }
.side-card { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h2 { font-size: 1.2rem; }
.side-card-slate { background: var(--slate); border-color: var(--slate); color: var(--on-dark); }
.side-card-slate h2 { color: var(--white); }
.side-card-slate .pillar-ico { background: rgba(255, 255, 255, .1); color: #f0b27a; margin-bottom: var(--s-4); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: .5rem 0; border-bottom: 1px dotted var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--blue-700); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.tick-list svg { width: 20px; height: 20px; color: var(--bourbon-text); margin-top: 3px; }

/* 10. Forms ---------------------------------------------------------------- */
.form-shell { padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); }
.form-intro { color: var(--muted); }
.form { display: grid; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-weight: 700; color: var(--slate); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 2px solid #b3ab9b; border-radius: var(--radius); background: var(--white); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53, 98, 143, .3); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .925rem; font-weight: 700; margin: .4rem 0 0; }
.field .field-error { margin-top: 0; }
.field-error:empty { display: none; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
.checkbox { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.checkbox input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: var(--s-4) var(--s-5); font-weight: 700; border-radius: var(--radius); }
.form-alert svg { width: 22px; height: 22px; margin-top: 2px; }
.form-alert p { margin: 0; }
.form-alert[hidden] { display: none; }
.form-alert-error { background: var(--danger-bg); color: var(--danger); }
.form-alert-success { background: var(--success-bg); color: var(--success); }
.inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.contact-card { padding: var(--s-6) var(--s-5); background: var(--slate); color: var(--on-dark); border-radius: var(--radius); border-bottom: 6px solid var(--bourbon); }
.contact-card h2 { color: var(--white); font-size: 1.5rem; }
.contact-card h3 { font-family: var(--font-body); font-weight: 700; color: #f0b27a; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.contact-card a { color: var(--white); }
.contact-card .more-link { color: #f0b27a; margin-top: var(--s-3); }
.contact-card .pillar-ico { background: rgba(255, 255, 255, .1); color: #f0b27a; }
.contact-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.contact-rows li { display: flex; gap: var(--s-4); min-width: 0; }
.contact-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-rows p { margin: 0; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--slate-900); color: var(--on-dark); padding: var(--s-8) 0 var(--s-5); border-top: 6px solid var(--bourbon); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #f0b27a; text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: var(--white); text-decoration: none; }
.site-footer .brand-name span { color: #f0b27a; }
.site-footer .brand img { outline: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; }
.footer-blurb { margin: var(--s-5) 0; max-width: 34rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; color: #f0b27a; flex: none; }
.footer-col h2 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f0b27a; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5) !important; }
.footer-sub { margin-top: var(--s-6); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .15); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bourbon-text); color: var(--white); cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background-color .2s; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--slate); }

/* 12. Responsive ----------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-cta { display: none; }
}
@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .primary-nav { position: fixed; top: var(--nav-top, 81px); left: 0; right: 0; bottom: 0; z-index: 120; margin: 0; background: var(--paper); padding: var(--s-6) clamp(16px, 4vw, 40px) var(--s-7); overflow-y: auto; display: none; }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { font-family: var(--font-head); font-size: 1.5rem; padding: .75rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--bourbon); padding-left: 1rem; }
  .mobile-extra { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
  .m-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--slate); text-decoration: none; overflow-wrap: anywhere; }
  .m-link svg { width: 20px; height: 20px; color: var(--bourbon-text); flex: none; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
}
@media (max-width: 991.98px) {
  .section { padding: var(--s-8) 0; }
  .sidebar { position: static; }
  .btn-row-end { justify-content: flex-start; }
  .section-title { margin-bottom: var(--s-6); }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-bottom: var(--s-8); }
  .taped-photo { transform: none; }
}
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .inline-field { grid-template-columns: minmax(0, 1fr); }
  .inline-field .btn { width: 100%; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .footer-split { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problems { grid-template-columns: minmax(0, 1fr); }
  .hero-book { padding: 0; }
  .guide-card { position: static; width: auto; margin-top: var(--s-4); }
  .faq-body { padding-right: var(--s-5); }
  .btn { white-space: normal; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 38px; height: 38px; }
  .header-inner { gap: var(--s-3); min-height: 70px; }
  .nav-toggle-text { display: none; }
  .nav-toggle { width: 46px; padding: 0; justify-content: center; }
  .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
  .path { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { border-width: 5px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: .95rem; }
  .brand { gap: .45rem; }
  .brand img { width: 34px; height: 34px; }
}

/* 13. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .back-to-top, .news-note, .cta-board, .sidebar, .finder-tools { display: none !important; }
  .problem[hidden] { display: flex !important; }
  body { background: #fff; }
}
