/* Smart Homes For America
   Street-level Americana: blue motorist-service signs for navigation,
   white curb-paint plates for prices. Everything else stays quiet. */

:root {
  --ink: #23272E;
  --muted: #5B616A;
  --concrete: #E7E5E1;
  --concrete-dk: #BDB9B1;
  --paper: #FFFFFF;
  --sign: #0B4EA2;
  --sign-dk: #083B7A;
  --signal: #C8102E;
  --ok: #1E7B4B;
  --display: 'Overpass', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sign); text-underline-offset: .18em; }
a:hover { color: var(--sign-dk); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -.015em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); }

/* ── Top strip + header ───────────────────────────── */
.strip { background: var(--ink); color: #fff; font-size: .9rem; }
.strip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.strip a { color: #fff; font-weight: 600; text-decoration: none; }
.strip a:hover { text-decoration: underline; color: #fff; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--concrete); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo span { font-family: var(--display); font-weight: 900; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; }
.logo small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: 0; margin-top: .2rem; }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--concrete-dk); border-radius: 8px; padding: .5rem .7rem; font: 700 .95rem var(--body); color: var(--ink); cursor: pointer; }
#site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; flex-wrap: wrap; }
#site-nav a { display: block; padding: .55rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 6px; }
#site-nav a:hover { background: var(--concrete); color: var(--ink); }
#site-nav a[aria-current="page"] { color: var(--sign); box-shadow: inset 0 -3px 0 var(--sign); border-radius: 0; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  #site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--concrete); display: none; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; padding: .5rem var(--gap) 1rem; }
  #site-nav a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--concrete); border-radius: 0; }
  #site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sign); padding-left: .9rem; }
}

/* ── Buttons ───────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.35rem; border-radius: 8px; border: 2px solid var(--sign); background: var(--sign); color: #fff; font: 700 1.02rem/1.1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sign-dk); border-color: var(--sign-dk); color: #fff; }
.btn.ghost { background: transparent; color: var(--sign); }
.btn.ghost:hover { background: var(--sign); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ── The curb plate: white paint, black numerals, concrete surround ── */
.plate {
  display: inline-block; background: #fff; color: #16191D;
  font-family: var(--display); font-weight: 900; line-height: 1; letter-spacing: .01em;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); padding: .2em .42em .08em;
  border-radius: 3px;
  box-shadow: 0 0 0 .28em var(--concrete-dk), 0 .42em 0 .28em #A7A298;
  margin: .3em .3em .7em;
  font-variant-numeric: tabular-nums;
}
.plate-sm { font-size: 1.35rem; box-shadow: 0 0 0 .22em var(--concrete-dk), 0 .34em 0 .22em #A7A298; margin: .2em .25em .5em; }
.was { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 3px; margin-left: .6rem; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; margin: 1.1rem 0 .4rem; }
.price-row .note { font-weight: 600; color: var(--muted); max-width: 26ch; line-height: 1.35; }

/* ── Hero ───────────────────────────── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 14px; }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.94); padding: .45rem .75rem; border-radius: 6px; font-size: .88rem; font-weight: 600; }
.hero .kicker { font-weight: 700; color: var(--sign); margin-bottom: .75rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-media { order: -1; } .hero-media img { aspect-ratio: 16 / 10; } }

/* ── The curb: concrete band that carries the service signs ── */
.curb { background: var(--concrete) var(--noise); border-top: 10px solid #D4D0C8; box-shadow: inset 0 10px 0 #F2F0EC; padding: 2.2rem 0 2.6rem; }
.curb h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .signs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .signs { grid-template-columns: 1fr; } }
.sign {
  display: grid; grid-template-columns: 52px 1fr; gap: .2rem .9rem; align-items: center;
  background: var(--sign); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 1.05rem 1.15rem;
  outline: 2px solid #fff; outline-offset: -7px;
}
.sign:hover { background: var(--sign-dk); color: #fff; }
.sign:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sign svg { grid-row: span 2; width: 52px; height: 52px; }
.sign strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.sign span { font-size: .92rem; line-height: 1.35; opacity: .92; }

/* ── Sections ───────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: #F3F2EF; }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.photo { border-radius: 14px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.photo-pair img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.photo-pair img:first-child { aspect-ratio: auto; }

.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.checks li { padding-left: 1.9rem; position: relative; max-width: 60ch; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--sign) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

.cities { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.cities li { background: #1E6B3A; color: #fff; font-family: var(--display); font-weight: 700; padding: .45rem .8rem .35rem; border-radius: 6px; outline: 1.5px solid #fff; outline-offset: -4px; }

/* Around-the-house trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.job { display: flex; flex-direction: column; }
.job img, .job .illo { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.job p { flex: 1; }
.job .price-row { margin-top: 0; }

/* Steps (a real sequence, so numbered) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; display: block; margin-bottom: .5rem; color: var(--sign); }
.steps h3 { margin-bottom: .3rem; }

/* Referral band */
.refer-band { background: var(--sign); color: #fff; }
.refer-band h2, .refer-band h3 { color: #fff; }
.refer-band a:not(.btn) { color: #fff; }
.refer-band .btn { background: #fff; color: var(--sign); border-color: #fff; }
.refer-band .btn:hover { background: var(--concrete); border-color: var(--concrete); color: var(--sign-dk); }
.refer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.refer-grid .rates { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.refer-grid .rates div { display: flex; align-items: center; gap: .9rem; }
.refer-grid .rates p { margin: 0; max-width: 18ch; font-weight: 600; line-height: 1.3; }
@media (max-width: 860px) { .refer-grid { grid-template-columns: 1fr; } }

/* Pay methods */
.methods { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.methods li { border: 1.5px solid var(--concrete-dk); border-radius: 999px; padding: .35rem .85rem; font-weight: 600; font-size: .92rem; background: #fff; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--concrete-dk); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .75rem; font: 800 1.5rem var(--display); color: var(--sign); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* ── Booking form ───────────────────────────── */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .booking-grid { grid-template-columns: 1fr; } .summary { order: -1; position: static !important; } }
form.book { display: grid; gap: 1.6rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin-bottom: .8rem; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem 1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label.f { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
label.f .opt { font-weight: 400; color: var(--muted); }
label.f .req { font-weight: 700; color: var(--signal); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem; font: 400 1rem/1.3 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--concrete-dk); border-radius: 8px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(11,78,162,.2); }
[aria-invalid="true"] { border-color: var(--signal) !important; box-shadow: 0 0 0 3px rgba(200,16,46,.15) !important; }
.hint { font-size: .88rem; color: var(--muted); font-weight: 400; margin: .35rem 0 0; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; align-items: start; padding: .9rem 1rem; border: 1.5px solid var(--concrete-dk); border-radius: 10px; background: #fff; cursor: pointer; }
.choice input { margin: .25rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--sign); grid-row: span 2; }
.choice b { font-weight: 700; line-height: 1.25; }
.choice small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--sign); box-shadow: inset 0 0 0 1px var(--sign); background: #F4F8FD; }
.choice:has(input:focus-visible) { outline: 3px solid var(--sign); outline-offset: 2px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--ok); padding: .1rem .45rem; border-radius: 4px; margin-left: .3rem; vertical-align: .1em; }

.pay-panel { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 10px; background: #F3F2EF; }
.pay-panel p { margin: 0 0 .5rem; }
.pay-panel p:last-child { margin-bottom: 0; }
.card-box { min-height: 90px; }
.secure { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.secure svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; }
.agree { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; padding: .9rem 1rem; border: 1.5px solid var(--concrete-dk); border-radius: 10px; background: #fff; }
.agree input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--sign); }
.form-error { background: #FDECEE; color: #8A0B1F; border-left: 4px solid var(--signal); padding: .8rem 1rem; border-radius: 6px; font-weight: 600; }
.bot { display: none; }
.submit-row { display: grid; gap: .6rem; }
.submit-row .btn { width: 100%; min-height: 58px; font-size: 1.1rem; }

.summary { position: sticky; top: 96px; background: #fff; border: 1.5px solid var(--concrete-dk); border-radius: 14px; overflow: hidden; }
.summary header { background: var(--concrete) var(--noise); padding: 1rem 1.2rem; }
.summary header h3 { margin: 0; font-size: 1.1rem; }
.summary .body { padding: 1.1rem 1.2rem 1.3rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.summary li span:last-child { font-weight: 700; white-space: nowrap; }
.summary li.discount { color: var(--ok); }
.summary .total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--concrete); padding-top: .6rem; gap: .5rem; }
.summary .total span:first-child { font-weight: 700; }
.summary .total .plate { font-size: 2rem; margin: .4rem .3rem .7rem; }
.summary [data-extra] p { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }

/* ── Footer ───────────────────────────── */
.site-footer { background: var(--ink); color: #D8DADD; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer .legal { border-top: 1px solid #3A3F47; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #A9ADB3; font-size: .85rem; }
.site-footer .legal a { color: #D8DADD; }

/* Prose pages (terms, privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose li { margin-bottom: .4rem; }

.thanks-box { max-width: 680px; }
.thanks-box .lead { font-size: 1.4rem; }
.hero-media .illo, .job .illo { width: 100%; height: auto; display: block; border-radius: 14px; }
.hero-media .illo { aspect-ratio: 4 / 3; }
label.f .lbl { display: block; }
.pay-panel { background: #fff; border: 1.5px solid var(--concrete-dk); }
.section:not(.alt) .pay-panel { background: #F7F6F4; }
.card-box:empty { min-height: 0; }

/* ── Insurance housing ───────────────────────────── */
@media (max-width: 1260px) {
  .nav-toggle { display: inline-block; }
  #site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--concrete); display: none; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; padding: .5rem var(--gap) 1rem; }
  #site-nav a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--concrete); border-radius: 0; }
  #site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sign); padding-left: .9rem; }
}
#site-nav a.nav-ins { background: var(--sign); color: #fff; border-radius: 6px; }
#site-nav a.nav-ins:hover { background: var(--sign-dk); color: #fff; }
#site-nav a.nav-ins[aria-current="page"] { box-shadow: none; }
@media (max-width: 1260px) { #site-nav a.nav-ins { margin: .4rem 0; border-bottom: 0; border-radius: 8px; padding-left: .9rem; } }

.sign-wide { grid-column: 1 / -1; background: var(--ink); }
.sign-wide:hover { background: #111418; }
.sign-wide strong { font-size: 1.45rem; }

.ins-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ins-points li { border: 1.5px solid var(--concrete-dk); border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .92rem; }
.checks.cols-2 { grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
@media (max-width: 760px) { .checks.cols-2 { grid-template-columns: 1fr; } }

.homes { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding-bottom: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--concrete); }
.home:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) { .home { grid-template-columns: 1fr; } }
.home h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .2rem; }
.home .kicker { font-weight: 700; color: var(--sign); margin: 0 0 .3rem; }
.home-addr { color: var(--muted); margin-bottom: .8rem; }
.home-note { margin: .8rem 0 0; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.facts li { background: #F3F2EF; border-radius: 6px; padding: .3rem .65rem; font-weight: 600; font-size: .92rem; }
.rent { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .3rem; font-weight: 700; color: var(--muted); }
.plate-md { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: .3rem .3rem .6rem; }
.home-terms { width: 100%; border-collapse: collapse; margin: .4rem 0 1.3rem; font-size: .96rem; }
.home-terms th, .home-terms td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--concrete); vertical-align: top; }
.home-terms th { font-weight: 600; color: var(--muted); padding-right: 1rem; width: 45%; }
.home-terms td { font-weight: 700; }

.gallery { min-width: 0; }
.g-main { position: relative; border-radius: 14px; overflow: hidden; background: #F3F2EF; }
.g-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: 700 1.6rem/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.g-nav.prev { left: .7rem; } .g-nav.next { right: .7rem; }
.g-open { position: absolute; right: .7rem; bottom: .7rem; border: 0; border-radius: 6px; background: rgba(35,39,46,.85); color: #fff; font: 600 .85rem var(--body); padding: .4rem .7rem; cursor: pointer; }
.g-thumbs { display: flex; gap: .45rem; overflow-x: auto; padding: .55rem 0 .2rem; scroll-snap-type: x mandatory; }
.g-thumb { flex: none; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; scroll-snap-align: start; opacity: .75; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"] { border-color: var(--sign); opacity: 1; }
.g-empty { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--concrete) var(--noise); display: grid; place-content: center; justify-items: center; text-align: center; gap: .6rem; padding: 1.5rem; color: var(--ink); }
.g-empty svg { width: 64px; height: 64px; color: var(--sign); }
.g-empty p { margin: 0; max-width: 32ch; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(15,17,20,.94); }
.lb-inner { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.lb-inner img { max-width: min(96vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-inner p { color: #fff; margin: .6rem auto 0; text-align: center; font-size: .95rem; }
.lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 52px; height: 52px; border-radius: 50%; font: 700 1.8rem/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; } .lb-close { right: 1rem; top: 1rem; font-size: 1.5rem; }
@media (max-width: 640px) { .strip-local { display: none; } }
