/*
Theme Name: Sevier County: Survey
Theme URI: https://sevieredc.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Clean, photo-led block theme for Sevier County Economic Development (Richfield, Utah). Built 2026-11 to the Sierra direction: light pages, the county's own photos, one rotating home banner, a sticky header with phone and Request Information, a phone call bar. Details from the work: survey-plat corner ticks on photos, numbered section sheets, dotted section lines, a red-rock accent. No page builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: sev-survey
*/

@font-face { font-family: "Young Serif"; src: url(assets/fonts/young-serif-latin-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(assets/fonts/public-sans-latin-text.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--ink: #1a1715;
	--text: #3a332d;
	--mute: #5f564e;
	--rock: #9b3a1b;
	--rock-dark: #7c2d14;
	--sage: #36524d;
	--paper: #f6f0e4;
	--sand: #e3d4b8;
	--line: #d9cdb6;
	--white: #fff;
	--night: #231a15;
	--gut: 16px;
	--wide: 1240px;
	--pad: max(var(--gut), calc((100% - var(--wide)) / 2));
	--sec: clamp(52px, 6.5vw, 96px);
	--display: "Young Serif", "Iowan Old Style", Georgia, serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--head-h: 68px;
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1000px) { :root { --gut: 40px; --head-h: 80px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 1000px) { body { font-size: 1.125rem; } }
.wp-site-blocks { padding: 0; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.7vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.45rem); }
h3 { font-size: clamp(1.3rem, 1.2rem + .5vw, 1.55rem); }
h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--rock); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rock); outline-offset: 3px; }
strong { font-weight: 700; color: var(--ink); }
ul, ol { padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sev-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.sev-skip:focus { top: 12px; color: #fff; outline-color: #fff; }

/* The sheet label: a plat-sheet number or small caps line with a dotted rule running out to the edge. */
.sev-kicker { display: flex; align-items: center; gap: 14px; font: 700 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--rock); margin: 0 0 1rem; }
.sev-kicker::after { content: ""; flex: 1; max-width: 120px; border-top: 2px dotted var(--rock); }
.sev-lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 60ch; }
.sev-mute { color: var(--mute); font-size: .95rem; }

/* ---------- buttons: square-cornered with a ruled arrow cell (no pills) ---------- */
.sev-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .65rem 1.4rem; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--rock); border-radius: 0; background: var(--rock); color: #fff; cursor: pointer; transition: background-color .15s, color .15s; }
.sev-btn:hover, .wp-block-button__link:hover { background: var(--rock-dark); border-color: var(--rock-dark); color: #fff; }
.sev-btn--line, .is-style-outline .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.sev-btn--line:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sev-btn .sev-ico { width: 20px; height: 20px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.sev-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sev-ico--play { fill: currentColor; stroke: none; }

/* ---------- header (sticky) ---------- */
.sev-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.sev-header.is-scrolled { box-shadow: 0 6px 20px rgba(35, 26, 21, .08); }
.sev-bar__in { display: flex; align-items: center; gap: 20px; max-width: calc(1440px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); height: var(--head-h); }
.sev-brand { display: flex; align-items: center; gap: 14px; flex: none; text-decoration: none; }
.sev-brand img { width: 112px; height: auto; display: block; }
@media (min-width: 1000px) { .sev-brand img { width: 132px; } }
.sev-brand__tag { display: none; padding-left: 14px; border-left: 2px dotted var(--rock); font: 700 .72rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
@media (min-width: 1500px) { .sev-brand__tag { display: block; } }
.sev-nav { display: none; margin-left: auto; }
.sev-bar__cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sev-bar__tel { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.0625rem; }
.sev-bar__tel .sev-ico { color: var(--rock); width: 20px; height: 20px; }
.sev-bar__tel:hover { color: var(--rock); }
.sev-bar__quote { display: none; min-height: 46px; padding: .55rem 1.1rem; white-space: nowrap; }
.sev-bar__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
.sev-bar__menu .sev-ico--close, .sev-bar__menu[aria-expanded="true"] .sev-ico--menu { display: none; }
.sev-bar__menu[aria-expanded="true"] .sev-ico--close { display: block; }
@media (min-width: 768px) { .sev-bar__tel, .sev-bar__quote { display: inline-flex; } }
@media (min-width: 1200px) {
	.sev-nav { display: block; }
	.sev-bar__cta { margin-left: 8px; }
	.sev-bar__menu, .sev-panel { display: none !important; }
}

.sev-menu { list-style: none; margin: 0; padding: 0; }
.sev-menu--bar { display: flex; align-items: center; }
.sev-menu--bar > .sev-menu__item { position: relative; display: flex; align-items: center; }
.sev-menu--bar .sev-menu__link { display: block; padding: 10px 7px; color: var(--ink); font-weight: 600; font-size: .975rem; text-decoration: none; white-space: nowrap; }
.sev-menu--bar .has-sub > .sev-menu__link { padding-right: 0; }
.sev-menu--bar .sev-menu__link:hover, .sev-menu--bar .is-in > .sev-menu__link { color: var(--rock); }
.sev-menu--bar .sev-menu__link[aria-current="page"], .sev-menu--bar .is-in > .sev-menu__link { text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.sev-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sev-menu__toggle .sev-ico { width: 18px; height: 18px; transition: transform .15s; }
.sev-menu__toggle[aria-expanded="true"] .sev-ico { transform: rotate(180deg); }
.sev-menu--bar .sev-sub { position: absolute; top: calc(100% + 6px); left: -7px; min-width: 250px; padding: 10px 0; margin: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--rock); box-shadow: 0 14px 30px rgba(35, 26, 21, .12); display: none; }
.sev-menu--bar .sev-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; }
.sev-menu--bar .has-sub:hover > .sev-sub, .sev-menu--bar .has-sub.is-open > .sev-sub { display: block; }
.sev-menu--bar .sev-sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.sev-menu--bar .sev-sub a:hover, .sev-menu--bar .sev-sub a[aria-current="page"] { color: var(--rock); background: var(--paper); }

.sev-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(35, 26, 21, .14); max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 8px var(--gut) 24px; }
.sev-menu--panel > .sev-menu__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.sev-menu--panel .sev-menu__link { flex: 1; display: block; padding: 14px 0; color: var(--ink); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.sev-menu--panel .sev-menu__link[aria-current="page"] { color: var(--rock); }
.sev-menu--panel .sev-menu__toggle { width: 48px; height: 48px; }
.sev-menu--panel .sev-sub { flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 12px; display: none; }
.sev-menu--panel .is-open > .sev-sub { display: block; }
.sev-menu--panel .sev-sub a { display: block; padding: 10px 0 10px 14px; color: var(--ink); text-decoration: none; }
.sev-panel__contact { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 0; }
.sev-panel__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.sev-panel__contact .sev-ico { color: var(--rock); }

/* Phones: exactly two buttons fixed at the bottom. Nothing else floats. */
.sev-callbar { display: none; }
@media (max-width: 767px) {
	.sev-callbar { display: grid; grid-template-columns: 1fr 1.7fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(35, 26, 21, .1); }
	.sev-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font: 700 1.0625rem var(--body); text-decoration: none; }
	.sev-foot .sev-callbar__call { color: var(--ink); background: var(--white); }
	.sev-foot .sev-callbar__call .sev-ico { color: var(--rock); }
	.sev-foot .sev-callbar__quote { color: #fff; background: var(--rock); }
	.sev-foot .sev-callbar a:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
	.sev-foot .sev-callbar__quote:focus-visible { outline-color: #fff; }
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- sections ---------- */
.sev-main { display: block; }
.sev-sec { padding: var(--sec) 0; }
.sev-sec > * { margin-left: var(--pad); margin-right: var(--pad); }
.sev-sec > p, .sev-sec > ul, .sev-sec > ol, .sev-sec > h2, .sev-sec > h3, .sev-sec > h4, .sev-sec > details, .sev-sec > .wp-block-buttons, .sev-sec > .sev-docs { max-width: 46rem; margin-right: auto; }
.sev-sec > .sev-lead, .sev-sec > h1 { max-width: 46rem; margin-right: auto; }
.sev-sec--tight { padding-top: calc(var(--sec) * .5); padding-bottom: calc(var(--sec) * .5); }
.sev-sec--paper { background: var(--paper); }
.sev-sec--rule { border-top: 1px solid var(--line); }
.sev-sec h2 { margin-top: 1.4em; }
.sev-sec > h2:first-child, .sev-sec > .sev-kicker + h2 { margin-top: 0; }
.sev-sec li { margin-bottom: .4em; }

.sev-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 64px; align-items: center; }
@media (min-width: 900px) {
	.sev-split { grid-template-columns: 1fr 1fr; }
	.sev-split--flip > :first-child { order: 2; }
	.sev-split--top { align-items: start; }
}
.sev-split > .wp-block-group > :last-child { margin-bottom: 0; }
.sev-split .sev-kicker + h2, .sev-split h2:first-child { margin-top: 0; }

/* Page head */
.sev-head { padding-top: clamp(26px, 4vw, 52px); padding-bottom: clamp(22px, 3vw, 38px); border-bottom: 1px dotted var(--sand); }
.sev-head + .sev-sec { padding-top: clamp(28px, 3.5vw, 52px); }
.sev-head h1 { max-width: 22ch; }
.sev-head .sev-lead { margin-bottom: 0; }
.sev-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--mute); }
.sev-crumbs li { margin: 0; }
.sev-crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--sand); }
.sev-crumbs a { color: var(--mute); }
.sev-crumbs a:hover { color: var(--rock); }

/* ---------- plates: photos mounted like survey sheets (corner ticks + figure caption) ---------- */
.sev-fig, .sev-plate { position: relative; }
.sev-fig img, .sev-plate img { display: block; width: 100%; height: auto; }
.wp-block-image.sev-fig, .sev-plate { padding: 10px; background: var(--white); border: 1px solid var(--line); }
.wp-block-image.sev-fig::before, .sev-plate::before, .wp-block-image.sev-fig::after, .sev-plate::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.wp-block-image.sev-fig::before, .sev-plate::before { left: -6px; top: -6px; border-left: 3px solid var(--rock); border-top: 3px solid var(--rock); }
.wp-block-image.sev-fig::after, .sev-plate::after { right: -6px; bottom: -6px; border-right: 3px solid var(--rock); border-bottom: 3px solid var(--rock); }
.sev-plate figcaption, .wp-block-image.sev-fig figcaption { margin: 8px 0 0; padding-top: 8px; border-top: 1px dotted var(--sand); font: 700 .72rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.sev-plate figcaption span::before { content: "▪ "; color: var(--rock); }
.sev-fig.sev-fig--map { padding: 0; border: 0; }
.sev-fig--map::before, .sev-fig--map::after { display: none; }
.sev-trio { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .sev-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- home banner: photo in a plate, headline on a solid card laid over its lower left ---------- */
.sev-hero { padding: clamp(18px, 3vw, 36px) var(--pad) 0; }
.sev-banner { position: relative; }
.sev-banner__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
@media (min-width: 700px) { .sev-banner__stage { aspect-ratio: 16 / 9; } }
@media (min-width: 1000px) { .sev-banner__stage { aspect-ratio: auto; height: clamp(380px, 52vh, 560px); } }
.sev-banner__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.sev-banner__slide.is-on { opacity: 1; }
.sev-banner__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.sev-banner__ctl { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; background: rgba(255, 255, 255, .94); max-width: calc(100% - 24px); }
.sev-banner__cap { margin: 0; font: 700 .72rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sev-banner__btns { display: flex; align-items: center; gap: 2px; flex: none; }
.sev-banner__dot { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sev-banner__dot::before { content: ""; width: 11px; height: 11px; border: 2px solid var(--ink); background: transparent; }
.sev-banner__dot[aria-current="true"]::before { background: var(--rock); border-color: var(--rock); }
.sev-banner__pause { margin-left: 6px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); cursor: pointer; }
.sev-banner__pause .sev-ico { width: 18px; height: 18px; }
.sev-banner__pause .sev-ico--play, .sev-banner__pause.is-paused .sev-ico--pause { display: none; }
.sev-banner__pause.is-paused .sev-ico--play { display: block; }
.sev-banner__pause:hover { background: var(--ink); color: #fff; }
@media (max-width: 559px) { .sev-banner__cap { display: none; } .sev-banner__ctl { padding-left: 8px; } }
.sev-hero__text { display: grid; gap: 18px 56px; position: relative; padding: 26px 0 0; }
@media (min-width: 1000px) {
	.sev-hero__text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding-top: 0; }
	.sev-hero__title { background: var(--white); border-top: 5px solid var(--rock); padding: 30px 36px 8px 0; margin-top: -84px; position: relative; z-index: 2; max-width: 640px; }
	.sev-hero__intro { padding-top: 30px; }
}
.sev-hero__title h1 { margin-bottom: .2em; }
.sev-hero__title .sev-kicker { margin-bottom: .7rem; }
.sev-hero__intro .sev-lead { margin-bottom: 0; }
.sev-hero__facts { margin: 1.2rem 0 0; font-size: .95rem; color: var(--mute); padding-top: 12px; border-top: 1px dotted var(--sand); }

/* ---------- facts strip, reasons, parks ---------- */
.sev-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .sev-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sev-facts li { margin: 0; padding-top: 14px; border-top: 3px solid var(--rock); }
.sev-facts strong { display: block; font: 400 clamp(2rem, 1.5rem + 1.8vw, 2.9rem)/1.05 var(--display); color: var(--ink); margin-bottom: 6px; }
.sev-facts span { display: block; font-size: .98rem; line-height: 1.45; color: var(--text); }

.sev-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 800px) { .sev-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sev-reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sev-reasons__item { margin: 0; padding: 22px 0 26px; border-top: 1px dotted var(--rock); display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
.sev-reasons__n { grid-row: 1 / span 2; font: 400 1.9rem/1 var(--display); color: var(--rock); }
.sev-reasons__h { margin: 0 0 .3em; font-size: 1.35rem; }
.sev-reasons__h a { color: var(--ink); text-decoration: none; }
.sev-reasons__h a:hover { color: var(--rock); text-decoration: underline; }
.sev-reasons__item p { margin: 0; grid-column: 2; }

.sev-parks { display: grid; gap: 44px 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .sev-parks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sev-parks__card h3 { margin: 22px 0 .3em; }
.sev-parks__card h3 a { color: var(--ink); text-decoration: none; }
.sev-parks__card h3 a:hover { color: var(--rock); }
.sev-parks__card p { margin-bottom: .7em; }
.sev-more { margin: 0; font-weight: 700; }
.sev-more a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.sev-more a:hover { text-decoration: underline; }
.sev-more .sev-ico { width: 18px; height: 18px; }

/* ---------- tables, lists, details ---------- */
.sev-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 1rem; }
.sev-table th, .sev-table td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px dotted var(--rock); }
.sev-table thead th { font: 700 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--ink); }
.sev-table tbody th { font-weight: 700; color: var(--ink); }
.sev-chips { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sev-chips li { margin: 0; padding: 7px 14px; border: 1px solid var(--ink); font-weight: 600; font-size: .98rem; color: var(--ink); background: var(--white); }
.sev-bullets { list-style: none; padding: 0; }
.sev-bullets li { position: relative; padding-left: 26px; }
.sev-bullets li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 9px; height: 9px; border: 2px solid var(--rock); }
.sev-sec--paper .sev-chips li { background: var(--white); }
.sev-docs { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 8px; }
.sev-docs li { margin: 0; }
.sev-docs a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.sev-docs em { font-style: normal; font-weight: 400; color: var(--mute); }
.sev-docs .sev-ico { color: var(--rock); width: 20px; height: 20px; }
.wp-block-details { border-top: 1px dotted var(--rock); padding: 0; margin: 0; }
.wp-block-details:last-of-type { border-bottom: 1px dotted var(--rock); }
.wp-block-details summary { cursor: pointer; padding: 16px 40px 16px 0; font: 400 1.25rem/1.3 var(--display); color: var(--ink); list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.8rem/1 var(--body); color: var(--rock); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { max-width: 44rem; }
.wp-block-details[open] > :last-child { margin-bottom: 20px; }
.sev-stat { margin: 0 0 1.4em; padding: 14px 18px; border-left: 4px solid var(--rock); background: var(--paper); }

/* ---------- distance map ---------- */
.sev-map-fig { margin: 0; }
.sev-map { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--line); }
.sev-map__ring { fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-dasharray: 5 6; opacity: .75; }
.sev-map__state { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.sev-map__road { fill: none; stroke: var(--rock); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sev-map__leg { stroke: var(--sage); stroke-width: 1.1; stroke-dasharray: 2 4; }
.sev-map__city { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.sev-map__home { fill: var(--rock); stroke: #fff; stroke-width: 2.5; }
.sev-map__lbl { font: 700 17px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.sev-map__lbl--home { font-size: 19px; }
.sev-map__sub { font: 400 15px var(--body); fill: var(--text); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.sev-map__road-lbl { font: 700 16px var(--body); fill: var(--rock); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sev-map__state-lbl { font: 400 26px var(--display); fill: var(--sand); letter-spacing: .3em; }
.sev-map-fig figcaption { margin-top: 10px; font-size: .92rem; color: var(--mute); }

/* ---------- closing band ---------- */
.sev-cta { display: grid; gap: 24px 48px; padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 56px); background: var(--night); color: #efe6d8; border-top: 5px solid var(--rock); }
@media (min-width: 900px) { .sev-cta { grid-template-columns: 1.5fr auto; align-items: center; } }
.sev-cta h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.sev-cta p { margin: 0; max-width: 52ch; }
.sev-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sev-btn--on-dark { background: #fff; border-color: #fff; color: var(--ink); }
.sev-btn--on-dark:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.sev-cta .sev-btn--line { border-color: #fff; color: #fff; }
.sev-cta .sev-btn--line:hover { background: #fff; color: var(--ink); }
.sev-cta :focus-visible { outline-color: #fff; }

/* ---------- gallery + lightbox ---------- */
.sev-work { display: grid !important; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
@media (min-width: 800px) { .sev-work { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sev-work figure { margin: 0 !important; width: auto !important; }
.sev-work figure[hidden] { display: none; }
.sev-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sev-work a { display: block; }
.sev-work figcaption { font-size: .85rem; line-height: 1.35; color: var(--mute); margin-top: 6px; }
.sev-lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(26, 23, 21, .96); color: #fff; }
.sev-lb::backdrop { background: rgba(26, 23, 21, .6); }
.sev-lb[open] { display: flex; align-items: center; justify-content: center; }
.sev-lb__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1400px, 92vw); }
.sev-lb__fig img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.sev-lb__cap { margin: 0; text-align: center; color: #eee7da; font-size: .98rem; }
.sev-lb__n { color: #c4b9a6; margin-left: .6em; }
.sev-lb__btn { position: absolute; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .6); border-radius: 0; background: rgba(26, 23, 21, .5); color: #fff; cursor: pointer; }
.sev-lb__btn:hover { background: #fff; color: var(--ink); }
.sev-lb__btn:focus-visible { outline-color: #fff; }
.sev-lb__close { top: 16px; right: 16px; }
.sev-lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.sev-lb__next { right: 16px; top: 50%; margin-top: -26px; }
@media (max-width: 700px) {
	.sev-lb__prev, .sev-lb__next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; }
	.sev-lb__prev { left: calc(50% - 64px); }
	.sev-lb__next { right: calc(50% - 64px); }
	.sev-lb__fig img { max-height: calc(100dvh - 220px); }
}

/* ---------- contact + forms (Ninja Forms, opinionated styles off) ---------- */
.sev-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px 64px; align-items: start; }
.sev-form, .sev-form .nf-form-cont, .sev-form nf-field, .sev-form .nf-field-element { min-width: 0; max-width: 100%; }
@media (min-width: 1000px) { .sev-contact { grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); } }
.sev-ccard { background: var(--paper); padding: 24px 20px 20px; border-top: 5px solid var(--rock); }
@media (min-width: 600px) { .sev-ccard { padding: 30px 30px 26px; } }
.sev-ccard a, .sev-foot__facts a, .sev-panel__contact a { overflow-wrap: anywhere; }
.sev-ccard__big { display: flex; align-items: center; gap: 12px; font: 400 1.8rem/1.1 var(--display); margin: 0 0 18px; }
.sev-ccard__big a { color: var(--ink); text-decoration: none; }
.sev-ccard__big a:hover { color: var(--rock); }
.sev-ccard__big .sev-ico { color: var(--rock); }
.sev-ccard__list { list-style: none; margin: 0; padding: 0; }
.sev-ccard__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dotted var(--rock); margin: 0; }
.sev-ccard__list .sev-ico { color: var(--rock); margin-top: 2px; }
.sev-form .nf-form-content { padding: 0; max-width: none; }
.sev-form .nf-form-fields-required { font-size: .95rem; color: var(--mute); margin-bottom: 18px; }
.sev-form nf-fields-wrap { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sev-form nf-field { flex: 1 1 100%; }
@media (min-width: 700px) { .sev-form nf-field:has(.sev-half) { flex: 1 1 calc(50% - 10px); } }
.sev-form .nf-field-container { margin-bottom: 22px; }
.sev-form .nf-field-label { margin-bottom: 6px; }
.sev-form .nf-field-label label, .sev-form .nf-field-label .nf-label-span { font-weight: 700; color: var(--ink); font-size: 1rem; }
.sev-form .ninja-forms-req-symbol { color: var(--rock); }
.sev-form input.ninja-forms-field:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]), .sev-form textarea.ninja-forms-field, .sev-form select.ninja-forms-field {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.4 var(--body); }
.sev-form textarea.ninja-forms-field { min-height: 150px; height: 150px; }
.sev-form .ninja-forms-field:focus { outline: 3px solid var(--rock); outline-offset: 1px; }
.sev-form .nf-field-description { font-size: .92rem; color: var(--mute); margin-top: 6px; }
.sev-form .nf-error-msg, .sev-form .nf-error .nf-error-msg { color: #a3142a; font-size: .95rem; font-weight: 600; margin-top: 6px; }
.sev-form .nf-error .ninja-forms-field { border-color: #a3142a !important; border-width: 2px !important; }
.sev-form .nf-form-errors .nf-error-msg { margin: 0 0 12px; }
.sev-form input[type=submit], .sev-form input[type=button].ninja-forms-field { min-height: 52px; padding: 0 30px; border: 0; border-radius: 0; background: var(--rock); color: #fff; font: 700 1.05rem var(--body); cursor: pointer; }
.sev-form input[type=submit]:hover, .sev-form input[type=button].ninja-forms-field:hover { background: var(--rock-dark); }
.sev-form .nf-after-field .nf-input-limit { display: none; }
.sev-thanks { padding: 32px 0 8px; outline: none; }
.sev-thanks__check { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--rock); color: #fff; margin-bottom: 18px; }
.sev-thanks__check .sev-ico { width: 32px; height: 32px; stroke-width: 2.2; }
.sev-thanks h2 { margin-bottom: .35em; }
.sev-thanks ol { margin: 14px 0 22px; padding-left: 1.3em; }
.sev-thanks ol li { margin-bottom: 6px; }
.sev-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

/* ---------- footer (the one dark band) ---------- */
.sev-foot { background: var(--night); color: #dcd2c2; font-size: 1rem; }
.sev-foot a { color: #fff; }
.sev-foot a:hover { color: #f0c9b6; }
.sev-foot :focus-visible { outline-color: #fff; }
.sev-foot__in { display: grid; gap: 40px 48px; padding: clamp(52px, 6vw, 84px) var(--pad) 44px; }
@media (min-width: 700px) { .sev-foot__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sev-foot__in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.sev-foot__name { font: 400 1.9rem/1.1 var(--display); color: #fff; margin: 0 0 22px; }
.sev-foot__name span { display: block; margin-top: 8px; font: 700 .74rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: #cdbfa8; }
.sev-foot__facts { list-style: none; margin: 0; padding: 0; }
.sev-foot__facts li { display: flex; gap: 12px; padding: 6px 0; margin: 0; }
.sev-foot__facts .sev-ico { color: #e0a88f; width: 20px; height: 20px; margin-top: 3px; }
.sev-foot__facts a { text-decoration: none; }
.sev-foot__facts a:hover { text-decoration: underline; }
.sev-foot__h { font: 700 .78rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: #cdbfa8; margin: 6px 0 16px; }
.sev-foot__col ul { list-style: none; margin: 0; padding: 0; }
.sev-foot__col li { padding: 4px 0; margin: 0; }
.sev-foot__col a { text-decoration: none; }
.sev-foot__col a:hover { text-decoration: underline; }
.sev-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px var(--pad) 22px; border-top: 1px dotted #5b4a3f; font-size: .9rem; color: #cdbfa8; }
.sev-foot__base p { margin: 0; }
.sev-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the one quiet fade-in (site.js adds .sev-rise only when motion is allowed) ---------- */
.sev-rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.sev-rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.sev-rise { opacity: 1; transform: none; transition: none; }
	.sev-banner__slide { transition: none; }
	html { scroll-behavior: auto; }
}

@media print {
	.sev-header, .sev-callbar, .sev-banner__ctl, .sev-foot__in { display: none !important; }
	.sev-header { position: static; }
}

/* ---------- columns of short text blocks ---------- */
.sev-cols { display: grid; gap: 28px 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .sev-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sev-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sev-cols > * { padding-top: 16px; border-top: 1px dotted var(--rock); }
.sev-cols h2, .sev-cols h3 { margin-top: 0; }
.sev-cols > :last-child, .sev-cols p:last-child { margin-bottom: 0; }
.sev-cols h3 a { color: var(--ink); text-decoration: none; }
.sev-cols h3 a:hover { color: var(--rock); text-decoration: underline; }
.sev-sec > .sev-facts, .sev-sec > .sev-reasons, .sev-sec > .sev-cols, .sev-sec > .sev-parks, .sev-sec > .sev-chips { max-width: none; margin-left: var(--pad); margin-right: var(--pad); }
.sev-sec > .sev-chips { max-width: 60rem; }
.sev-banner__slide.is-wait { display: none; }
