/* Nicholasville Metal Roof Coating. Signature H26-S36-P5-B5-R8-F9-M47-C8-I4-E7 (T1). */
:root {
  --cobalt: #1F4E9A; --cobalt-dk: #173D7A; --steel: #6C86A8; --yellow: #F5C400; --yellow-hv: #FFD43A;
  --ink: #0F2342; --alt: #F1F4F8; --tint: #E6EDF7; --muted: #4A5A70; --line: #C5D0DF; --white: #fff;
  --head: "League Spartan", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17.5px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dk); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.005em; overflow-wrap: normal; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.bg-ink :focus-visible, .h26-band :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 32px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; cursor: pointer; line-height: 1.1; }
.btn .ui { width: 18px; height: 18px; }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--yellow-hv); color: var(--ink); }
.btn-call { background: transparent; color: #fff; border-color: #fff; }
.btn-call:hover { background: #fff; color: var(--cobalt); }
.btn-call-light { background: #fff; color: var(--cobalt); border-color: var(--cobalt); }
.btn-call-light:hover { background: var(--cobalt); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--cobalt-dk); color: #fff; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.bg-page .btn-primary, .bg-alt .btn-primary, .bg-tint .btn-primary { border-color: var(--ink); }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 96px; }
.logo img { height: 76px; width: auto; }
.burger { display: none; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { display: block; padding: 10px 10px; font-family: var(--head); font-weight: 700; font-size: 1.04rem; color: var(--ink); text-decoration: none; }
.menu > li > a:hover { color: var(--cobalt); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.sub-toggle { background: none; border: 0; padding: 6px 4px; margin-left: -6px; color: var(--ink); cursor: pointer; display: inline-flex; min-height: 44px; align-items: center; }
.sub-toggle .ui { width: 16px; height: 16px; transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] .ui { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--yellow); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(15, 35, 66, .14); display: none; }
.sub a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 700; }
.sub a:hover, .sub a:focus { background: var(--tint); color: var(--cobalt); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; font-size: 1rem; }

/* H26 hero: cobalt band, roofline-and-river edge, full-bleed photo */
.h26-band { background: var(--cobalt); color: #fff; text-align: center; padding: 44px 0 26px; }
.h26-band h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 800; max-width: 920px; margin: 0 auto; }
.chip { display: inline-block; border: 2px solid var(--yellow); color: #fff; border-radius: 99px; padding: 4px 14px; font-size: .9rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.hero-intro { max-width: 660px; margin: 16px auto 0; font-size: 1.12rem; color: #fff; }
.h26-photo { position: relative; background: var(--ink); }
.h26-edge { position: absolute; left: 0; top: -1px; width: 100%; height: 72px; z-index: 2; display: block; }
.h26-img { width: 100%; aspect-ratio: 21 / 8; max-height: 560px; object-fit: cover; object-position: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.h26-band .crumbs a, .h26-band .crumbs li { color: #fff; }
.page-head .crumbs ol { justify-content: flex-start; }

/* Sections, backgrounds, E7 heading system */
.sec { padding: 76px 0; }
.bg-page { background: #fff; } .bg-alt { background: var(--alt); } .bg-tint { background: var(--tint); }
.bg-yellow { background: var(--yellow); } .bg-ink { background: var(--ink); color: #fff; }
.sh { text-align: center; max-width: 880px; margin: 0 auto 40px; }
.haz { display: block; width: 56px; height: 6px; margin: 16px auto 0; background: repeating-linear-gradient(45deg, var(--yellow) 0 6px, var(--ink) 6px 12px); }
.intro { margin: 18px auto 0; color: var(--muted); font-size: 1.08rem; max-width: 700px; }

/* Fact strip */
.facts { padding: 26px 0; }
.facts-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; }
.facts-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1rem; }

/* I4 icon tile */
.tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: var(--tint); color: var(--cobalt); }
.bg-tint .tile { background: #fff; }
.tile .icon { width: 26px; height: 26px; }

/* K6 scenario cards */
.k6-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.k6-grid.n5 { grid-template-columns: repeat(6, 1fr); }
.k6-grid.n5 > * { grid-column: span 3; }
.k6-grid.n5 > :nth-child(-n+3) { grid-column: span 2; }
.k6-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.k6-card { display: grid; grid-template-columns: 1fr 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.k6-grid.n5 > :nth-child(-n+3), .k6-grid.n3 .k6-card { grid-template-columns: 1fr; }
.k6-q { padding: 22px 22px 18px; }
.k6-label { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); margin-bottom: 8px; }
.k6-q h3 { margin-bottom: 10px; }
.k6-q p { margin: 0; }
.k6-go { background: var(--cobalt); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.k6-go .ui { width: 28px; height: 28px; color: var(--yellow); }
.k6-start { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.k6-go strong { font-family: var(--head); font-size: 1.2rem; line-height: 1.2; }
.k6-away .k6-go { background: var(--yellow); color: var(--ink); }
.k6-away .k6-go .ui { color: var(--ink); }

/* P5 process */
.p5 { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.p5-card { order: -1; background: var(--cobalt); color: #fff; border-radius: var(--radius); padding: 26px; position: sticky; top: 20px; }
.p5-title { font-family: var(--head); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.p5-covers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.p5-covers li { display: flex; gap: 12px; align-items: center; }
.p5-card .tile { background: rgba(255, 255, 255, .14); color: #fff; width: 40px; height: 40px; }
.p5-card .tile .icon { width: 22px; height: 22px; }
.p5-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); }
.step h3 { margin: 4px 0 8px; }
.step p { margin: 0; }
.step-img { grid-column: 2; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* S36 ready-gate cards and photo cards */
.s36-grid, .pcard-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.s36-grid > *, .pcard-grid > * { grid-column: span 2; }
.s36-grid.n5 > :nth-child(n+4), .pcard-grid.n5 > :nth-child(n+4) { grid-column: span 3; }
.s36-grid.n4 > *, .pcard-grid.n4 > *, .pcard-grid.n2 > * { grid-column: span 3; }
.s36-card, .pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.s36-body, .pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.s36-body h3, .pcard-body h3 { margin-bottom: 10px; }
.gate { background: var(--tint); border-left: 4px solid var(--cobalt); border-radius: 6px; padding: 14px 16px; margin: 4px 0 16px; }
.gate-label { display: block; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--cobalt); margin-bottom: 8px; }
.gate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gate li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.gate .icon { flex: none; width: 22px; height: 22px; color: var(--cobalt); margin-top: 2px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.more .ui { width: 18px; height: 18px; }

/* C8 accent band */
.bg-yellow.sec { padding: 52px 0; }
.c8 { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.c8-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.c8-ic .icon { width: 38px; height: 38px; }
.c8-text h2 { text-align: left; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.c8-text p { margin: 8px 0 0; max-width: 640px; }

/* B5 failure-mode pairs */
.b5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.b5-row { display: grid; grid-template-columns: 1fr 1.5fr; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.b5-wear { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--alt); border-right: 4px solid var(--yellow); }
.b5-wear strong { display: block; font-size: 1.05rem; line-height: 1.4; }
.b5-coat { padding: 22px 24px; }
.b5-coat h3 { margin: 2px 0 8px; }
.b5-coat p { margin: 0; }
.lbl { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); margin-bottom: 4px; }

/* R8 cause-chip cards */
.r8-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.r8-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--cobalt); border-radius: var(--radius); padding: 22px; }
.bg-page .r8-card { background: var(--alt); }
.r8-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cause { background: var(--ink); color: #fff; border-radius: 99px; padding: 3px 12px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.r8-card h3 { margin-bottom: 10px; }
.r8-card dl { margin: 0; display: grid; grid-template-columns: 118px 1fr; gap: 6px 12px; }
.r8-card dt { font-weight: 700; font-size: .9rem; color: var(--cobalt); padding-top: 2px; }
.r8-card dd { margin: 0; }

/* M47 grouped by building type */
.m47 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m47.n2 { grid-template-columns: repeat(2, 1fr); }
.m47-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grp-img { width: calc(100% + 44px); margin: -22px -22px 18px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; max-width: none; }
.m47-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.m47-head h3 { font-size: 1.2rem; }
.m47-towns { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.m47-towns li { border-top: 1px solid var(--line); padding-top: 12px; }
.m47-towns a, .m47-towns strong { display: block; font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.m47-towns span { display: block; }

/* F9 two-pane question index */
.f9 { display: grid; grid-template-columns: 380px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.f9-index { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--alt); }
.f9-index [role=tab] { text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; border-left: 5px solid transparent;
  border-bottom: 1px solid var(--line); padding: 16px 18px; cursor: pointer; line-height: 1.35; min-height: 48px; }
.f9-index [role=tab]:hover { background: var(--tint); }
.f9-index [role=tab][aria-selected=true] { background: var(--ink); color: #fff; border-left-color: var(--yellow); }
.f9-pane { display: grid; grid-template-columns: 1fr 230px; gap: 26px; padding: 28px; }
.f9-topic { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); margin-bottom: 8px; }
.f9-panel h3 { margin-bottom: 12px; }
.f9-panel:focus-visible { outline-offset: 6px; }
.f9-photo { margin: 0; }
.f9-photo img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 8px; }
.f9.js .f9-panel[hidden] { display: none; }
.f9:not(.js) .f9-panel + .f9-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec thead th { background: var(--ink); color: #fff; font-family: var(--head); font-size: 1.02rem; }
.spec tbody th { font-family: var(--head); font-size: 1.05rem; color: var(--cobalt); }
.table-note { text-align: center; color: var(--muted); margin-top: 16px; font-size: .97rem; }

/* Split, icon cards, checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split figure, .ck figure { margin: 0; }
.split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split.flip figure { order: 2; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .tile { width: 40px; height: 40px; }
.ticks .tile .icon { width: 22px; height: 22px; }
.icard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.icard-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.bg-page .icard { background: var(--alt); }
.icard h3 { margin: 14px 0 8px; }
.icard p { margin: 0; }
.ck { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ck-list li { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.ck-list .icon { flex: none; width: 24px; height: 24px; color: var(--cobalt); }

/* Closing */
.closing { padding: 70px 0; }
.closing-in { text-align: center; max-width: 760px; margin: 0 auto; }
.closing-in h2 { color: #fff; }
.closing-in h2::after { content: ""; display: block; width: 56px; height: 6px; margin: 16px auto 0; background: repeating-linear-gradient(45deg, var(--yellow) 0 6px, #fff 6px 12px); }
.closing-in p { margin: 18px auto 0; color: #E3E9F2; font-size: 1.1rem; }

/* Utility page head, forms, legal */
.page-head { background: var(--tint); padding: 48px 0 40px; border-bottom: 4px solid var(--yellow); }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; }
.ph-intro { margin: 14px 0 0; max-width: 720px; font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fld { display: grid; gap: 6px; margin-bottom: 16px; }
.fld label { font-weight: 700; }
.fld .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { font: inherit; font-size: 1rem; color: var(--ink); border: 2px solid var(--steel); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; background: #fff; }
.fld input[aria-invalid=true], .fld textarea[aria-invalid=true] { border-color: #A3161A; }
.fld .err { color: #A3161A; font-size: .94rem; font-weight: 700; }
.form-status { min-height: 1.2em; font-weight: 700; margin: 4px 0 14px; }
.form-status.bad { color: #A3161A; } .form-status.ok { color: #1D6B38; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.side-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.side-card div { padding: 22px 24px; }
.side-card a { color: var(--yellow); font-weight: 700; }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.legal-body ul { padding-left: 22px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0 0 40px; padding: 0; }
.faq-jump a { display: inline-block; border: 2px solid var(--cobalt); border-radius: 99px; padding: 8px 16px; font-weight: 700; text-decoration: none; min-height: 44px; }
.faq-jump a:hover { background: var(--cobalt); color: #fff; }
.faq-cat { margin-bottom: 44px; scroll-margin-top: 20px; }
.faq-cat > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.faq-items { display: grid; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cobalt); border-radius: 8px; padding: 22px 24px; }
.bg-page .faq-item { background: var(--alt); }
.faq-item h3 { margin-bottom: 10px; }
.faq-item ul { margin: 0 0 1rem; padding-left: 22px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .97rem; background: #fff; }
.faq-item th, .faq-item td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.faq-item thead th { background: var(--tint); }
.faq-intro { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; max-width: 900px; margin: 0 auto; }
.faq-intro p { margin: 0 0 10px; font-size: 1.12rem; } .faq-intro p:last-child { margin: 0; }
.sources { columns: 2; padding-left: 20px; font-size: .95rem; }
.sources li { margin-bottom: 6px; break-inside: avoid; }

/* Footer, call bar, callback */
.site-footer { background: var(--ink); color: #DCE3EE; padding: 56px 0 0; }
.ft { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.ft-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 10px 14px; }
.ft-logo img { height: 70px; width: auto; }
.ft-brand p { margin: 14px 0 0; }
.ft-h { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #fff; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--yellow); }
.ft-tel { font-family: var(--head); font-size: 1.3rem; font-weight: 700; }
.ft-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 40px; padding-top: 14px; padding-bottom: 18px; }
.ft-legal p { margin: 0; }
.ft-legal ul { display: flex; gap: 20px; }
.callbar { display: none; }
.cb-backdrop { position: fixed; inset: 0; background: rgba(15, 35, 66, .55); z-index: 80; }
.cb { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 12px; border-top: 6px solid var(--yellow); padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.cb[hidden], .cb-backdrop[hidden] { display: none; }
.cb h2 { font-size: 1.5rem; margin-bottom: 8px; padding-right: 30px; }
.cb-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); }
.cb-direct { margin: 14px 0 0; text-align: center; }

/* Calculator restyle: map --calc-* to site tokens */
.roof-calc { --calc-font-head: var(--head); --calc-font-body: var(--body); --calc-text: var(--ink); --calc-muted: var(--muted); --calc-surface: #fff;
  --calc-surface-alt: var(--alt); --calc-border: var(--steel); --calc-accent: var(--cobalt); --calc-accent-text: #fff; --calc-accent-hover: var(--cobalt-dk);
  --calc-track: #D5DEEA; --calc-focus: var(--cobalt); --calc-radius: 12px; }
.roof-calc .calc-card { border-top: 6px solid var(--yellow); box-shadow: 0 10px 30px rgba(15, 35, 66, .08); }
.roof-calc .calc-btn-primary { background: var(--yellow) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; font-family: var(--head); font-weight: 700; }
.roof-calc .calc-btn-primary:hover { background: var(--yellow-hv) !important; }
.roof-calc .choice-card:has(input:checked) { border-color: var(--cobalt); background: var(--tint); }
.calc-sec { padding: 48px 0 72px; background: var(--alt); }

/* Responsive */
@media (max-width: 1180px) {
  .hdr { min-height: 76px; }
  .logo img { height: 58px; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 12px 10px; margin-right: -6px;
    background: none; border: 2px solid var(--ink); border-radius: 8px; cursor: pointer; }
  .burger span { display: block; height: 3px; background: var(--ink); border-radius: 2px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--yellow); flex-direction: column;
    align-items: stretch; padding: 10px 20px 22px; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 16px 30px rgba(15, 35, 66, .18); }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 13px 4px; }
  .sub-toggle { width: 48px; justify-content: center; margin: 0; }
  .sub { position: static; display: none; width: 100%; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .nav-cta { flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav-cta .btn { width: 100%; min-height: 50px; }
}
@media (max-width: 980px) {
  .p5 { grid-template-columns: 1fr; } .p5-card { position: static; order: 0; }
  .f9 { grid-template-columns: 1fr; } .f9-pane { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .s36-grid, .pcard-grid { grid-template-columns: repeat(2, 1fr); }
  .s36-grid > *, .pcard-grid > *, .s36-grid.n5 > :nth-child(n+4), .pcard-grid.n5 > :nth-child(n+4) { grid-column: span 1; }
  .s36-grid.n5 > :last-child, .pcard-grid.n5 > :last-child, .pcard-grid.n3 > :last-child, .s36-grid.n3 > :last-child { grid-column: span 2; }
  .k6-grid.n5, .k6-grid.n3 { grid-template-columns: 1fr 1fr; }
  .k6-grid.n5 > *, .k6-grid.n5 > :nth-child(-n+3) { grid-column: span 1; }
  .k6-grid.n5 > :last-child, .k6-grid.n3 > :last-child { grid-column: span 2; }
  .m47 { grid-template-columns: 1fr 1fr; } .m47.n3 > :last-child { grid-column: span 2; }
  .ft { grid-template-columns: 1fr 1fr; }
  .icard-grid.n3 { grid-template-columns: 1fr 1fr; } .icard-grid.n3 > :last-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body { font-size: 17px; padding-bottom: 64px; }
  .sec { padding: 52px 0; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .h26-band { padding: 32px 0 20px; }
  .h26-edge { height: 28px; }
  .h26-img { aspect-ratio: 16 / 9; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .facts-list { grid-template-columns: 1fr; gap: 12px; }
  .k6-grid, .k6-grid.n5, .k6-grid.n3 { grid-template-columns: 1fr; }
  .k6-grid > *, .k6-grid.n5 > *, .k6-grid.n5 > :nth-child(-n+3), .k6-grid.n5 > :last-child, .k6-grid.n3 > :last-child { grid-column: auto; }
  .k6-card { grid-template-columns: 1fr; }
  .s36-grid, .pcard-grid, .r8-grid, .m47, .m47.n2, .icard-grid, .icard-grid.n3, .split, .ck { grid-template-columns: 1fr; }
  .s36-grid > *, .pcard-grid > *, .m47.n3 > :last-child, .icard-grid.n3 > :last-child, .s36-grid.n5 > :last-child, .pcard-grid.n5 > :last-child,
  .pcard-grid.n3 > :last-child, .s36-grid.n3 > :last-child { grid-column: auto; }
  .split.flip figure { order: 0; }
  .b5-row { grid-template-columns: 1fr; }
  .b5-wear { border-right: 0; border-bottom: 4px solid var(--yellow); }
  .r8-card dl { grid-template-columns: 1fr; gap: 2px; }
  .r8-card dd { margin-bottom: 8px; }
  .step { grid-template-columns: 44px 1fr; padding: 16px; gap: 12px; }
  .step .num { width: 42px; height: 42px; font-size: 1.15rem; }
  .step-img { grid-column: 1 / -1; max-width: none; }
  .c8 { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .c8-text h2 { text-align: center; }
  .c8 .btn { width: 100%; }
  .f9-index { display: none; }
  .f9-pane { padding: 20px; }
  .f9 .f9-panel[hidden] { display: block; }
  .f9 .f9-panel + .f9-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
  .f9-photo { display: none; }
  table.spec thead { display: none; }
  table.spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec tr { border-bottom: 3px solid var(--line); }
  .spec td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--cobalt); text-transform: uppercase; letter-spacing: .05em; }
  .spec td { border-bottom: 0; padding-top: 6px; }
  .ft { grid-template-columns: 1fr; }
  .ft-legal { flex-direction: column; align-items: flex-start; }
  .sources { columns: 1; }
  .faq-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.1rem;
    text-decoration: none; border-top: 2px solid var(--ink); }
  .callbar .ui { width: 20px; height: 20px; }
  body.menu-open .callbar, body.util.no-callbar .callbar { display: none; }
  body.util.no-callbar { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* QA fixes */
.faq-items > *, .f9-pane > *, .f9 > * { min-width: 0; }
.faq-item .tbl-wrap { max-width: 100%; }
.f9-panel { border-left: 4px solid var(--yellow); padding-left: 18px; }
@media (max-width: 800px) { .faq-item { padding: 18px 16px; } .faq-item table { font-size: .9rem; } }
.form-status { margin: 12px 0 0; }
@media (max-width: 800px) { .f9.js .f9-panel[hidden] { display: block; } }
