/* Exley Apiary — site.css (v2.0)
   Tokens come straight from the brand kit. Light scheme only; the palette is defined on paper.
   Rules from the kit: blue and red never adjacent or at equal weight; Comb is never text on light ground;
   Paintbrush is display only, under 5% of a page, never touching Bluebonnet.
   Layout in v2.0: one centred reading column for prose, wider grids for choices and steps,
   and full-width bands for the plate, the pre-screen and the closing panel. */

:root {
  color-scheme: light;
  --bluebonnet: #2B3A6B;
  --iron: #241C15;
  --banner: #F5F2E9;
  --caliche: #D7CEBB;
  --comb: #C9922F;
  --live-oak: #26301E;
  --paintbrush: #C2451E;
  --paper: #FBF9F3;               /* Banner White lifted a shade: card and field grounds only */
  --tint: rgba(215, 206, 187, .32); /* Caliche wash */

  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-plate: Oswald, "Arial Narrow", sans-serif;

  --gutter: 16px;
  --col: min(100% - 2 * var(--gutter), 42rem);
  --mid: min(100% - 2 * var(--gutter), 60rem);
  --wide: min(100% - 2 * var(--gutter), 72rem);
  --radius: 2px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}
@media (min-width: 48em) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--banner);
  color: var(--iron);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px mobile */
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
@media (min-width: 48em) { body { font-size: 1.125rem; } } /* 18px desktop */

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--bluebonnet);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(1.65rem, 3.2vw, 2rem); margin-top: var(--space-5); }
h3 { font-weight: 600; font-size: 1.4rem; margin-top: var(--space-4); }
h2 + h3 { margin-top: var(--space-2); }

p, ul, ol, dl, table { margin: 0 0 var(--space-2); }
p { text-wrap: pretty; }
strong { font-weight: 600; }

a { color: var(--bluebonnet); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bluebonnet); outline-offset: 2px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--bluebonnet); color: var(--banner); padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: var(--gutter); outline-color: var(--iron); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: var(--wide); margin-inline: auto; }
.col { width: var(--col); margin-inline: auto; }

.section { padding-block: var(--space-4); }
.section > .col > h2:first-child, .section > .col > .section-first { margin-top: 0; }
.section-intro { text-align: center; }
.section-intro .lede { margin-inline: auto; }

.kicker, .plate-label {
  font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
  font-size: .875rem; line-height: 1.3; margin: 0 0 .6rem;
}
.kicker { color: var(--live-oak); }

.lede { font-size: 1.2rem; line-height: 1.55; }
@media (min-width: 48em) { .lede { font-size: 1.3rem; } }
.lede-2 { font-size: 1.1rem; margin-top: -.25rem; }
@media (min-width: 48em) { .lede-2 { font-size: 1.15rem; } }

.aside-line {
  font-size: 1rem; color: var(--live-oak); line-height: 1.5;
  border-left: 2px solid var(--comb); padding-left: .85rem; margin-top: var(--space-3);
}
.margin-note {
  font-size: .9375rem; color: var(--live-oak); line-height: 1.5;
  border-left: 2px solid var(--comb); padding-left: var(--space-2); margin: var(--space-3) 0;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--caliche); background: var(--banner); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-2); padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bluebonnet); margin-right: auto; }
.brand svg { width: 2.5rem; height: 2.5rem; color: var(--bluebonnet); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: .01em; white-space: nowrap; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.site-nav a, .services > summary { text-decoration: none; color: var(--iron); font-size: 1rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"],
.services > summary:hover, .services > summary.is-current, .services[open] > summary { color: var(--bluebonnet); text-decoration: underline; text-underline-offset: .3em; }

/* Services menu: a <details> so it works without JavaScript */
.nav-services { position: relative; }
.services > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.services > summary::-webkit-details-marker { display: none; }
.services > summary::after {
  content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg); transition: transform .15s ease-out;
}
.services[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.services-panel {
  position: absolute; top: calc(100% + 1.05rem); left: -1.25rem; width: 25rem;
  background: var(--paper); border: 1px solid var(--caliche); border-top: 3px solid var(--bluebonnet);
  box-shadow: 0 14px 30px rgba(36, 28, 21, .10); padding: .5rem 0 .25rem;
}
.services-panel ul { list-style: none; margin: 0; padding: 0; }
.services-panel li a { display: block; padding: .65rem 1.25rem; text-decoration: none; color: var(--iron); white-space: normal; }
.services-panel li a:hover, .services-panel li a:focus-visible, .services-panel li a[aria-current="page"] { background: var(--tint); text-decoration: none; }
.sp-name { display: block; font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.08rem; line-height: 1.25; }
.sp-desc { display: block; font-size: .9375rem; color: var(--live-oak); line-height: 1.4; }
.sp-foot { margin: .25rem 0 0; padding: .6rem 1.25rem .55rem; border-top: 1px solid var(--caliche); font-size: .9375rem; }
.sp-foot a { color: var(--bluebonnet); white-space: normal; }

.nav-menu { display: none; }
@media (max-width: 63.99em) {
  .site-nav { display: none; }
  .site-header .btn { padding: .55rem .8rem; font-size: .9375rem; white-space: nowrap; }
  .nav-menu { display: block; }
  .nav-menu summary { list-style: none; cursor: pointer; font-size: 1rem; padding: .5rem .25rem; color: var(--bluebonnet); text-decoration: underline; text-underline-offset: .2em; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; background: var(--banner); border-bottom: 2px solid var(--bluebonnet); padding: 0 var(--gutter) var(--space-2); box-shadow: 0 14px 30px rgba(36, 28, 21, .10); }
  .nav-menu ul { list-style: none; margin: 0; padding: 0; }
  .nav-menu li a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--caliche); color: var(--iron); text-decoration: none; }
  .nav-menu li a[aria-current="page"] { color: var(--bluebonnet); font-weight: 600; }
  .nav-menu .menu-contact { padding: .9rem 0 .2rem; color: var(--live-oak); }
  .nav-menu .menu-contact a { display: inline; border: 0; padding: 0; color: var(--bluebonnet); text-decoration: underline; font-weight: 600; }
}
@media (max-width: 22.5em) { .brand-name { display: none; } }
@media (max-width: 26em) {
  .brand-name { font-size: 1.05rem; }
  .brand svg { width: 2rem; height: 2rem; }
  .site-header .wrap { gap: .5rem; }
}
@media (min-width: 64em) { .site-header .btn { order: 3; } .site-header .wrap { min-height: 4.5rem; } }
.btn-short { display: none; }
@media (max-width: 30em) { .btn-long { display: none; } .btn-short { display: inline; } }
@media (min-width: 64em) and (max-width: 71.99em) {
  .site-nav > ul { gap: 1.1rem; }
  .site-header .btn { padding: .6rem .85rem; font-size: .9375rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--bluebonnet); color: var(--banner);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .75rem 1.15rem; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--bluebonnet);
  cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn:hover { background: var(--iron); border-color: var(--iron); color: var(--banner); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--bluebonnet); }
.btn-quiet:hover { background: var(--bluebonnet); color: var(--banner); border-color: var(--bluebonnet); }
.panel .btn { background: var(--banner); color: var(--bluebonnet); border-color: var(--banner); }
.panel .btn:hover { background: var(--caliche); border-color: var(--caliche); color: var(--iron); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: var(--space-3) 0 var(--space-2); }
.call-or-text { font-size: 1rem; }
.call-or-text a { font-weight: 600; white-space: nowrap; }
.cta-note { color: var(--live-oak); margin-top: -.25rem; }

/* ---------- Signature element: the gate marker plate, as a full-width band ---------- */
.plate {
  position: relative; display: block; width: 100%;
  background: var(--bluebonnet); color: var(--banner);
  padding: clamp(2.25rem, 5vw, 3.75rem) 0; margin: 0 0 var(--space-4);
}
.plate::before { /* thin inset Caliche rule, edge to edge */
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--caliche); pointer-events: none;
}
.plate .rivet { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--caliche); }
.plate .rivet:nth-child(1) { top: 15px; left: 15px; }
.plate .rivet:nth-child(2) { top: 15px; right: 15px; }
.plate .rivet:nth-child(3) { bottom: 15px; left: 15px; }
.plate .rivet:nth-child(4) { bottom: 15px; right: 15px; }
.plate-inner { width: var(--col); margin-inline: auto; }
@media (max-width: 40em) { .plate-inner { width: calc(100% - 3rem); } }
.plate-label { color: var(--caliche); }
.plate h1 {
  font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  color: var(--banner); font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.25; margin: 0; padding: 0;
  text-wrap: balance;
}

.page-head { padding-top: var(--space-4); padding-bottom: var(--space-2); }
.page-head + .section { padding-top: var(--space-2); }
.page-head--plate { padding-top: 0; }
.last-checked { font-size: .9375rem; color: var(--live-oak); margin-top: -.5rem; }

/* ---------- Figures: photographs with caption stamps ---------- */
figure { margin: var(--space-4) 0; }
figure.bleed { width: 100%; margin-inline: 0; }
figure.bleed img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
figure.inline img { width: 100%; border-radius: var(--radius); }
figure.portrait img { width: auto; max-width: min(100%, 22rem); }
figcaption { font-size: .9375rem; color: var(--live-oak); margin-top: .5rem; line-height: 1.45; }
figure.bleed figcaption { width: var(--col); margin-inline: auto; }
.stamp {
  font-family: var(--font-plate); font-weight: 400; text-transform: uppercase; letter-spacing: .2em;
  font-size: .8125rem; color: var(--live-oak); display: block; margin-bottom: .15rem;
}

/* ---------- Home hero: full-bleed photo that melts into the page and fades out as you scroll ---------- */
.hero-bleed { position: relative; background: var(--banner); overflow: hidden; }
.hero-media { position: relative; height: clamp(20rem, 58vh, 36rem); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; max-height: none; }
.hero-media::after { /* bottom of the photo dissolves into the page colour */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 242, 233, 0) 0%, rgba(245, 242, 233, 0) 38%, rgba(245, 242, 233, .88) 78%, var(--banner) 100%);
}
.hero-stamp { position: absolute; top: .75rem; right: var(--gutter); margin: 0; padding: .2rem .5rem; background: rgba(245, 242, 233, .85); }
.hero-copy { position: relative; margin-top: -7rem; padding-bottom: var(--space-3); }
.hero-copy h1 { margin-top: 0; }
@media (min-width: 64em) { .hero-media { height: clamp(24rem, 60vh, 38rem); } }
@media (prefers-reduced-motion: no-preference) { .js .hero-media { will-change: opacity; } }

/* ---------- Home: the options ("What brings you by?") ---------- */
.options .col { margin-bottom: var(--space-3); }
.doors { list-style: none; margin: 0 auto; padding: 0; width: var(--wide); display: grid; gap: var(--space-3) 2rem; }
@media (min-width: 40em) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door {
  position: relative; border-top: 3px solid var(--bluebonnet); padding: 1rem 0 .25rem;
  transition: border-color .15s ease-out;
}
.door:hover, .door:focus-within { border-top-color: var(--comb); }
.door-label {
  font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
  font-size: .8125rem; color: var(--live-oak); margin: 0 0 .35rem;
}
.door-name { font-size: 1.45rem; margin: 0 0 .5rem; }
.door-name a { text-decoration: none; color: var(--bluebonnet); }
.door-name a::after { content: ""; position: absolute; inset: 0; } /* the whole block is the link */
.door:hover .door-name a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.door-body { font-size: 1rem; line-height: 1.55; margin-bottom: .5rem; }
.door-more { font-size: .9375rem; font-weight: 600; color: var(--bluebonnet); text-decoration: underline; text-underline-offset: .18em; margin: 0; }

/* ---------- Numbered sequences ---------- */
.sequence { list-style: none; counter-reset: step; padding: 0; margin: 0 0 var(--space-3); }
.sequence > li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-bottom: var(--space-3); min-height: 2.25rem; }
.sequence > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: var(--bluebonnet); color: var(--banner); font-family: var(--font-plate); font-weight: 500; font-size: 1.1rem; border-radius: 1px;
}
.sequence strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.2rem; line-height: 1.3; }

/* Four steps side by side on wide screens */
@media (min-width: 64em) {
  .steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: var(--space-2); }
  .steps-row > li { padding-left: 0; padding-top: 3.25rem; margin: 0; font-size: 1rem; }
  .steps-row > li::before { top: 0; }
  .steps-row > li::after { /* a rule running from each number toward the next step */
    content: ""; position: absolute; top: 1.12rem; left: 3rem; right: -1.25rem; height: 1px; background: var(--caliche);
  }
  .steps-row > li:last-child::after { display: none; }
}

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.ticks > li { position: relative; padding-left: 1.6rem; margin-bottom: .75rem; }
.ticks > li::before {
  content: ""; position: absolute; left: .2rem; top: .62em; width: .48rem; height: .48rem;
  background: var(--comb); transform: rotate(45deg);
}

/* "Other ways I can help" */
.also { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--comb); }
.also li { padding: .95rem 0; border-bottom: 1px solid var(--caliche); }
.also-q { font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.12rem; }
.also a { font-weight: 600; display: block; width: fit-content; margin-top: .15rem; }

/* A quiet box for the investment, vendor details and Patreon */
.feature {
  background: var(--tint); border-left: 4px solid var(--comb);
  padding: var(--space-3) var(--space-3) var(--space-2); border-radius: var(--radius);
}
.feature h2 { margin-top: 0; }
.feature .cta-row { margin-bottom: var(--space-1); }

/* Vendor facts */
.facts { margin: 0 0 var(--space-2); }
.facts > div { padding: .55rem 0; border-bottom: 1px solid var(--caliche); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; color: var(--live-oak); }
.facts dd { margin: .1rem 0 0; }
@media (min-width: 40em) {
  .facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
  .facts dd { margin: 0; }
}

/* Starter: the three visits */
.seasons { margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.seasons > div { border-top: 1px solid var(--caliche); padding-top: .75rem; }
.seasons dt { font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: .875rem; color: var(--live-oak); }
.seasons dd { margin: .25rem 0 0; }

/* Institutions: uses side by side */
.uses { display: grid; gap: var(--space-3) 2rem; width: var(--wide); }
@media (min-width: 52em) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.use { border-top: 3px solid var(--bluebonnet); padding-top: 1rem; }
.use h3 { margin-top: 0; font-size: 1.3rem; }
.use p { font-size: 1rem; }

/* Home: who is doing the work */
.who { display: grid; gap: var(--space-3); align-items: center; width: var(--mid); }
@media (min-width: 48em) { .who { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 3rem; } }
.who figure { margin: 0; }

/* ---------- Video: loads YouTube only when someone presses play ---------- */
.video { margin: var(--space-3) 0 var(--space-2); }
.video-poster, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius);
}
.video-poster {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  background: var(--bluebonnet); color: var(--banner); font: inherit;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
}
.video-poster::before { /* the plate's inset rule */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(215, 206, 187, .55); pointer-events: none;
}
.vp-mark { position: absolute; right: -6%; top: -18%; width: 62%; height: auto; color: rgba(245, 242, 233, .045); }
.vp-label { font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: .8125rem; color: var(--caliche); }
.vp-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.15; max-width: 22ch; }
.vp-note { font-size: .875rem; color: var(--caliche); }
.vp-play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: clamp(3.5rem, 9vw, 4.75rem); height: clamp(3.5rem, 9vw, 4.75rem); border-radius: 50%;
  background: var(--banner); display: grid; place-items: center;
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.vp-play svg { width: 44%; height: 44%; fill: var(--bluebonnet); margin-left: 8%; }
.video-poster:hover .vp-play, .video-poster:focus-visible .vp-play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.video-poster:focus-visible { outline-offset: 3px; }
.video-link { font-size: .9375rem; margin-top: .5rem; }
.video.is-playing .video-link { display: none; }

/* ---------- Postcard welcome on the calculator ---------- */
.welcome-note {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--caliche); border-left: 4px solid var(--comb);
  padding: .9rem 1rem; margin: 0 0 var(--space-3); border-radius: var(--radius);
}
.welcome-note img { width: 6.5rem; height: auto; flex: none; border-radius: var(--radius); }
.welcome-note p { margin: 0; font-size: 1rem; }
@media (max-width: 26em) { .welcome-note img { width: 4.5rem; } }

.drawing { background: var(--banner); border: 1px solid var(--caliche); padding: var(--space-2); }
.drawing svg { width: 100%; height: auto; }

/* ---------- Bands and panels ---------- */
.band { background: var(--caliche); padding-block: var(--space-4); margin-block: var(--space-4); }
.band h2 { margin-top: 0; color: var(--bluebonnet); }
.band a { color: var(--bluebonnet); }
.panel { background: var(--bluebonnet); color: var(--banner); padding-block: var(--space-5); margin-top: var(--space-5); }
.panel h2, .panel h3 { color: var(--banner); margin-top: 0; }
.panel a { color: var(--banner); }
.panel :focus-visible { outline-color: var(--banner); }
.panel .panel-mark { width: 3rem; height: 3rem; color: var(--banner); margin-bottom: var(--space-2); }
.panel p { color: var(--banner); }
.band + .panel { margin-top: calc(-1 * var(--space-4)); }

/* Pre-screen checklist */
.prescreen h2 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--iron); border-radius: 1px; background: var(--banner);
}

/* "What I won't promise" */
.limits { border-top: 2px solid var(--comb); border-bottom: 2px solid var(--comb); padding-block: var(--space-3); }
.limits h2 { margin-top: 0; }
.limits p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: var(--space-3) 0; border-left: 2px solid var(--comb); }
.timeline > li { position: relative; padding: 0 0 var(--space-4) var(--space-3); }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; background: var(--bluebonnet); border-radius: 1px; }
.timeline .when { font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--live-oak); font-size: .9375rem; display: block; }
.timeline h3 { margin-top: .15rem; }
.timeline figure { margin: var(--space-2) 0; }
/* Portrait photographs in the timeline shouldn't fill the screen. */
.timeline figure img { width: auto; max-width: 100%; max-height: 34rem; }

/* Tables (county standards) */
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-block: var(--space-2) var(--space-3); }
.data-table caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--caliche); }
.data-table thead th { border-bottom: 2px solid var(--iron); }
.table-scroll { overflow-x: auto; max-width: 100%; }

/* FAQ */
.faq dt { font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.2rem; line-height: 1.3; margin-top: var(--space-3); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: .35rem 0 0; }

/* Sources */
.sources { font-size: .9375rem; color: var(--live-oak); }
.sources li { margin-bottom: .35rem; }
.cite { font-size: .9em; }

/* Field Notes list */
.fn-list { list-style: none; padding: 0; margin: 0; }
.fn-list li { border-top: 1px solid var(--caliche); padding-block: var(--space-3); }
.fn-list h3 { margin: .15rem 0 .35rem; font-size: 1.35rem; }
.fn-list h3 a { text-decoration: none; }
.fn-list h3 a:hover { text-decoration: underline; }
.fn-meta { font-size: .9375rem; color: var(--live-oak); }
.fn-topics { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-3); font-size: 1rem; }
.fn-topics a[aria-current="true"] { font-weight: 600; text-decoration-thickness: 2px; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--space-3); }
.post-body img { width: 100%; margin-block: var(--space-3); }
.post-body table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.post-body td, .post-body th { border-bottom: 1px solid var(--caliche); padding: .5rem .5rem .5rem 0; text-align: left; vertical-align: top; }
.post-body hr { border: 0; border-top: 2px solid var(--comb); margin-block: var(--space-4); width: 6rem; }
.post-cover { margin-top: 0; }

/* ---------- Qualifier and forms ---------- */
.tool { background: var(--paper); border: 1px solid var(--caliche); border-top: 3px solid var(--bluebonnet); padding: var(--space-3); margin-block: var(--space-3); border-radius: var(--radius); }
@media (min-width: 48em) { .tool { padding: var(--space-4) var(--space-4) var(--space-3); } }
.band .tool { background: var(--paper); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-3); min-width: 0; }
.lead-form fieldset + fieldset { border-top: 1px solid var(--caliche); padding-top: var(--space-3); }
legend { font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.25rem; padding: 0; margin-bottom: .6rem; }
.lead-form fieldset + fieldset > legend { float: left; width: 100%; margin-bottom: .6rem; }
.lead-form fieldset + fieldset > legend + * { clear: both; }
.field { margin-bottom: var(--space-3); }
.field > label, .field .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { display: block; font-size: .9375rem; color: var(--live-oak); margin: -.15rem 0 .45rem; font-weight: 400; }
.choice, .field > label.choice { display: flex; align-items: flex-start; gap: .6rem; margin: .4rem 0; font-weight: 400; }
.choice input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--bluebonnet); flex: none; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; max-width: 32rem; font: inherit; color: var(--iron); background: #FFFDF8;
  border: 1px solid var(--iron); border-radius: var(--radius); padding: .6rem .7rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--bluebonnet); outline-offset: 1px; }
.error-summary { border: 2px solid var(--paintbrush); background: var(--banner); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.error-summary h2 { font-size: 1.25rem; margin: 0 0 .5rem; color: var(--iron); }
.field-error { display: block; color: var(--iron); font-weight: 600; margin-top: .35rem; }
.field-error::before { content: "Fix this: "; color: var(--iron); }
[aria-invalid="true"] { border-width: 2px; border-color: var(--paintbrush); }
.note-box { border-left: 4px solid var(--comb); background: var(--banner); padding: var(--space-2); margin: var(--space-2) 0; }
.note-box p:last-child { margin-bottom: 0; }
.form-nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: var(--space-3); }
.form-nav ~ .hint { margin: .9rem 0 0; }
.form-nav ~ .hint + .hint { margin-top: .35rem; }
.step-count { font-family: var(--font-plate); text-transform: uppercase; letter-spacing: .16em; font-size: .875rem; color: var(--live-oak); margin-bottom: .5rem; }
.js .step[hidden] { display: none; }
.qualifier-result { border-top: 3px solid var(--bluebonnet); margin-top: var(--space-3); padding-top: var(--space-2); }
.qualifier-result:focus { outline: none; }
.fade-in { animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-section { scroll-margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--caliche); padding-block: var(--space-4) var(--space-4); font-size: 1rem; background: var(--banner); }
.site-footer .wrap { display: grid; gap: var(--space-4); }
@media (min-width: 56em) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 3rem; } }
.footer-lockup { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--bluebonnet); margin-bottom: var(--space-3); }
.footer-lockup svg { width: 3.25rem; height: 3.25rem; flex: none; }
.fl-text { display: flex; flex-direction: column; }
.fl-name { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: .02em; }
.fl-tag { font-style: italic; color: var(--iron); font-size: 1rem; margin-top: .3rem; }
.site-footer address { font-style: normal; }
.footer-nav { display: grid; gap: var(--space-3) 2rem; }
@media (min-width: 40em) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-head { font-family: var(--font-plate); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; color: var(--live-oak); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid var(--caliche); padding-top: var(--space-2); margin: 0; }
.disclaimer { color: var(--live-oak); font-size: .9375rem; }
.signature-line { font-family: var(--font-display); font-weight: 600; color: var(--iron); border-top: 2px solid var(--comb); padding-top: .4rem; display: inline-block; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: guides and the land-advisors page ---------- */
@media print {
  @page { size: letter; margin: 0.6in; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; }
  .site-header, .site-nav, .nav-menu, .skip-link, .panel, .fn-latest, .no-print, .tool, figure.bleed, .hero-media, .cta-row .btn, .video { display: none !important; }
  .col, .wrap { width: 100% !important; display: block !important; }
  a { color: #000; text-decoration: none; }
  .print-url::after { content: " (" attr(href) ")"; font-size: 9pt; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  h2 { margin-top: 1.2em; }
  .band { background: none; border: 1px solid #000; padding: .5em 1em; }
  .plate { background: none; color: #000; border-block: 2px solid #000; padding: .5rem 0; margin-bottom: 1rem; }
  .plate h1, .plate-label { color: #000; }
  .plate h1 { font-size: 1.6rem; }
  .plate::before, .plate .rivet { display: none; }
  .hero-copy { margin-top: 0; }
  .site-footer { border-top: 1px solid #000; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
legend[tabindex="-1"]:focus { outline: none; }

/* ---------- Bee Tax Calculator (/bee-tax-calculator/) ---------- */
.calc input.short { max-width: 10rem; }
.calc .choice > span { display: block; }
.calc .choice .hint { margin: .15rem 0 0; }
.optional { font-weight: 400; color: var(--live-oak); }

/* "$" sits inside the box so people don't type it twice */
.adorn { position: relative; display: block; max-width: 20rem; }
.adorn .adorn-mark { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--live-oak); pointer-events: none; }
.adorn input { padding-left: 1.6rem; }

/* County links: appears when a county is chosen */
.lookup { border-left: 4px solid var(--comb); background: #FFFDF8; padding: .85rem 1rem .35rem; margin: 0 0 var(--space-2); max-width: 36rem; }
.lookup-title { font-family: var(--font-display); font-weight: 600; color: var(--bluebonnet); font-size: 1.1rem; margin-bottom: .35rem; }
.lookup-links { padding-left: 1.1rem; margin-bottom: .5rem; }
.lookup-links li { margin-bottom: .3rem; }
.lookup-note { font-size: .9375rem; color: var(--live-oak); }

/* "Where to find this" notes under each box */
details.where { margin-top: .5rem; max-width: 36rem; font-size: .9375rem; }
details.where > summary, details.math > summary, details.county-links > summary {
  cursor: pointer; color: var(--bluebonnet); text-decoration: underline; text-underline-offset: .18em; width: fit-content;
}
details.where[open] > summary { margin-bottom: .4rem; }
details.where > :not(summary) { border-left: 2px solid var(--caliche); padding-left: .85rem; }
details.where ul { padding-left: 1.85rem; }
.adder-grid { display: grid; grid-template-columns: max-content minmax(0, 8rem); gap: .45rem .85rem; align-items: center; margin-bottom: .6rem; }
.adder-grid input { padding: .4rem .55rem; }
.adder-total { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.adder-total strong { font-variant-numeric: tabular-nums; }
.adder-total .btn { padding: .4rem .8rem; font-size: .9375rem; }

/* The result: a two-line ledger, with bars drawn to the same scale */
.calc-result { background: var(--banner); border-top: 3px solid var(--bluebonnet); padding: var(--space-3); margin-top: var(--space-3); }
.calc-result:focus { outline: none; }
.result-head { font-size: 1.35rem; margin: 0 0 var(--space-2); }
.ledger { margin: 0 0 var(--space-2); max-width: 36rem; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1rem; padding-block: .55rem .7rem; }
.ledger-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--iron); }
.ledger-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 4vw, 2.1rem); color: var(--bluebonnet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-figure .per { font-family: var(--font-body); font-weight: 400; font-size: .9375rem; color: var(--live-oak); }
.ledger-bar { grid-column: 1 / -1; height: 12px; background: var(--caliche); margin-top: .35rem; }
.ledger-bar > span { display: block; height: 100%; width: 0; transition: width .4s ease-out; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.is-without .ledger-bar > span { background: var(--iron); }
.is-with .ledger-bar > span { background: var(--comb); }
.ledger-diff { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--bluebonnet); border-top: 2px solid var(--comb); padding-top: .6rem; max-width: 36rem; }
.ledger-diff strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.stale-note { border-left: 4px solid var(--comb); padding-left: .85rem; font-weight: 600; }
details.math { margin-block: var(--space-2); font-size: .9375rem; }
details.math ol { padding-left: 1.4rem; margin-top: .6rem; font-variant-numeric: tabular-nums; }
details.math li { margin-bottom: .3rem; }
.calc-band .disclaimer { margin-top: var(--space-3); }
.calc-result a.btn { color: var(--banner); }
.calc-result a.btn:hover { color: var(--banner); }
details.county-links { margin-bottom: var(--space-3); }
details.county-links[open] > summary { margin-bottom: .5rem; }

@media print {
  .calc-result { border: 1px solid #000; padding: .6em 1em; }
  .ledger-figure { color: #000; }
  .calc-result .hint, .calc-result .cta-row { display: none !important; }
  details.county-links > :not(summary) { display: block; }
}
