/* Preston's Farm Electric — "Farm Country" theme
   Built from the farm badge: red barn, hay field, Holsteins and a bay horse, navy seal.
   Compact on purpose: farmers read this on a phone in the barn. */

:root {
  --cream: #f6eeda;
  --paper: #fffaf0;
  --board: #efe4c8;
  --red: #9e2e26;
  --red-dk: #6f1f1a;
  --navy: #1b2a41;
  --navy-soft: #45526a;
  --field: #77853a;
  --field-lt: #a3a86a;
  --field-dk: #4b5522;
  --hay: #d9a441;
  --hay-lt: #f0d08a;
  --line: rgba(27, 42, 65, .18);
  --script: "Yellowtail", Georgia, cursive;
  --display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --body: "Bitter", Georgia, "Times New Roman", serif;
  --wrap: 1100px;
  --shadow: 5px 5px 0 var(--navy);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 15.5px/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 2px; font-weight: 600; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--hay); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 .7em; }
.small { font-size: .86rem; }
.muted { font-size: .9rem; color: var(--navy-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--navy); color: var(--cream); padding: .4rem .8rem; z-index: 10; }
.eyebrow { font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }

/* ---- seasonal banner: a strip of hay ---- */
.banner { background: var(--hay); color: var(--navy); text-align: center; font: .78rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .45rem 1rem; }
.banner span { color: var(--red); margin-inline: .35em; }

/* ---- header ---- */
.site-header { background: var(--paper); border-bottom: 4px solid var(--red); box-shadow: 0 3px 0 var(--navy); position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; gap: 1.1rem; padding-block: .45rem; max-width: 1240px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { width: 64px; height: 64px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .script { font-family: var(--script); font-size: 2rem; color: var(--navy); }
.wordmark .fe { font-family: var(--display); font-size: .6rem; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-top: .15rem; }
/* one line only: never wraps; on narrow screens the row scrolls sideways instead */
.site-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: .25rem .75rem; margin-left: auto; min-width: 0; }
.site-nav a { font-family: var(--display); font-weight: 400; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); text-decoration: none; padding-block: .2rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--hay); }
.header-phone { flex: none; text-decoration: none; background: var(--red); color: var(--cream); border-radius: 999px; padding: .4rem 1.1rem .45rem; text-align: center; line-height: 1.1; box-shadow: 3px 3px 0 var(--navy); }
.header-phone .label { display: block; font: .58rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--hay-lt); }
.header-phone .num { font: 1.05rem var(--display); }
.header-phone:hover { background: var(--navy); color: var(--cream); }

/* ---- buttons ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn { display: inline-block; font: .8rem var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: .7rem 1.15rem; border: 2px solid var(--navy); border-radius: 4px; box-shadow: 3px 3px 0 var(--navy); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-red:hover { color: var(--cream); }
.btn-outline { background: var(--paper); color: var(--navy); }

/* ---- hero: sky, copy, badge, then the farm ---- */
.hero { background: linear-gradient(#fbf5e6 0%, #f6e8c6 100%); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-top: 2rem; position: relative; z-index: 1; }
.hero h1 { font-size: .8rem; color: var(--red); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.hero-sub { font-family: var(--display); font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.06; margin-bottom: .6rem; text-wrap: balance; }
.lede { font-size: 1.05rem; max-width: 34em; margin: 0; }
.creds { font-size: .84rem; color: var(--navy-soft); margin: .9rem 0 0; }
.creds span { color: var(--hay); }
.hero-badge { width: 320px; margin-bottom: -110px; filter: drop-shadow(4px 6px 0 rgba(27, 42, 65, .25)); }
.hero-scene { height: clamp(140px, 21vw, 320px); margin-top: -1rem; }
.scene { display: block; width: 100%; height: 100%; }

/* ---- problem: the dark field continues out of the landscape ---- */
.problem { background: var(--field-dk); color: var(--cream); padding-block: 1.1rem 1.5rem; }
.problem-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; }
.deck { font-style: italic; font-size: 1.08rem; line-height: 1.45; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { border-left: 4px solid var(--hay); padding-left: .75rem; }
.stat .n { font: 1.55rem/1.1 var(--display); color: var(--hay); }
.stat .l { font-size: .8rem; line-height: 1.35; margin-top: .2rem; }

/* ---- sections ---- */
.section { padding-block: 2.2rem; }
/* whitewashed barn boards */
.barnboard, .paper-2 {
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(27, 42, 65, .07) 118px 120px),
    var(--board);
  border-block: 4px solid var(--navy);
}

/* red ribbon label, same banner as the badge */
.ribbon { position: relative; display: inline-block; margin: 0 0 1.1rem 16px; z-index: 0; }
.ribbon span { position: relative; z-index: 1; display: block; background: var(--red); color: var(--cream); font: .88rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .45rem 1.2rem; border: 2px solid var(--red); outline: 2px solid var(--cream); outline-offset: -6px; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 8px; bottom: -8px; width: 30px; background: var(--red-dk); z-index: -1; }
.ribbon::before { left: -16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.ribbon::after { right: -16px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }

/* ---- service cards ---- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.svc-top { background: var(--red); color: var(--cream); display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 4px solid var(--hay); }
.svc-icon { width: 42px; height: 42px; flex: none; fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.svc-icon .fill { fill: var(--hay); stroke: none; }
.svc-top h2 { font-size: 1.05rem; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: .5rem; }
.svc-top .num { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--hay); color: var(--navy); display: grid; place-items: center; font-size: .85rem; flex: none; }
.svc-body { padding: .95rem 1.1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.svc-body .checklist { flex: 1; align-content: start; }
.svc-body .muted { margin: 0; padding-top: .6rem; border-top: 2px dashed var(--line); }
.card-hook { font-family: var(--script); font-size: 1.45rem; line-height: 1.15; color: var(--red); margin-bottom: .5rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .38rem; }
.checklist li { position: relative; padding-left: 1.35rem; }
.checklist li::before { content: "★"; position: absolute; left: 0; top: .08em; color: var(--red); font-size: .85em; }
.checklist li.warn { background: var(--hay-lt); border-left: 5px solid var(--red); padding: .6rem .8rem .6rem 2rem; border-radius: 0 4px 4px 0; }
.checklist li.warn::before { left: .7rem; top: .7rem; }

.extras { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.3rem; margin-top: 1.6rem; }
/* tin sign with rivets */
.sign {
  background:
    radial-gradient(circle at 12px 12px, var(--navy) 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, var(--navy) 3.5px, transparent 4.5px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--navy) 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--navy) 3.5px, transparent 4.5px),
    var(--hay);
  border: 3px solid var(--navy); border-radius: 8px; padding: 1.1rem 1.6rem; box-shadow: var(--shadow);
}
.sign h3 { font-size: 1rem; text-transform: uppercase; color: var(--red-dk); }
.sign p { margin: 0; }
/* feed-sack tag: stitched edge */
.tag-note { background: var(--paper); border: 2px dashed var(--navy); outline: 6px solid var(--paper); outline-offset: 0; padding: 1rem 1.2rem; border-radius: 4px; }
.tag-note h3 { font-size: .92rem; text-transform: uppercase; color: var(--field-dk); }
.tag-note p:last-child { margin: 0; }

/* ---- prices: feed-store price tags ---- */
.plans-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.2rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .4rem 0 1rem; }
.tier { position: relative; background: var(--paper); border: 2px solid var(--navy); border-radius: 10px 10px 6px 6px; text-align: center; padding: 1.5rem .7rem .8rem; box-shadow: var(--shadow); }
.tier::before { content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--board); border: 2px solid var(--navy); }
.tier::after { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 16px; background: var(--navy); }
.tier .t { font: .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.tier .p { font: 1.9rem/1.1 var(--display); margin: .2rem 0; }
.tier .p small { font-size: .8rem; color: var(--navy-soft); }
.tier .d { font-size: .8rem; line-height: 1.35; color: var(--navy-soft); }
.tier:nth-child(2) { background: var(--hay-lt); }
.price-note { font-size: .9rem; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .8rem; }
.plan-row > div { background: var(--paper); border: 2px solid var(--navy); border-left: 8px solid var(--field); border-radius: 4px; padding: .7rem .9rem; font-size: .88rem; line-height: 1.4; }
.plan-price { display: block; font: .88rem var(--display); color: var(--red); margin-top: .3rem; }

.how { list-style: none; padding: 0; margin: .4rem 0 0; counter-reset: step; position: relative; }
.how::before { content: ""; position: absolute; left: 1.15rem; top: 1rem; bottom: 1rem; border-left: 3px dashed var(--field); }
.how li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.3rem; min-height: 2.6rem; }
.how li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--red); color: var(--cream); border: 3px solid var(--hay); display: grid; place-items: center; font: 1rem var(--display); }
.how strong { display: block; font: 1rem var(--display); text-transform: uppercase; }

/* ---- why / where / contact ---- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.05fr; gap: 1.8rem; align-items: start; }
.script-head { font-family: var(--script); font-weight: 400; font-size: 2.6rem; color: var(--red); margin-bottom: .2rem; }
.area { font: 1.2rem/1.2 var(--display); margin-bottom: .4rem; }
.where { border-left: 4px solid var(--field); padding-left: 1.1rem; }
/* barn door: red with the white X-brace */
.barn-door {
  position: relative; color: var(--cream); padding: 1.2rem 1.3rem; border: 7px solid var(--cream); outline: 3px solid var(--navy); border-radius: 3px; box-shadow: 7px 7px 0 var(--navy);
  background:
    linear-gradient(to top right, transparent calc(50% - 4px), rgba(246, 238, 218, .09) calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)),
    linear-gradient(to bottom right, transparent calc(50% - 4px), rgba(246, 238, 218, .09) calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)),
    var(--red);
}
.barn-door .eyebrow { color: var(--hay-lt); }
.contact-name { font: 1rem var(--display); margin-bottom: .1rem; }
.contact-phone { display: block; font: clamp(1.6rem, 3vw, 2rem) var(--display); color: var(--cream); text-decoration: none; margin-bottom: .5rem; }
.contact-phone:hover { color: var(--hay-lt); }
.barn-door .small { margin: 0; }
.barn-door a:not(.contact-phone) { color: var(--hay-lt); }

/* ---- inner pages ---- */
.page-head {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C300 10 600 46 900 28 S1350 6 1600 30 V90 H0Z' fill='%23a3a86a'/%3E%3Cpath d='M0 62 C400 40 900 70 1600 52 V90 H0Z' fill='%2377853a'/%3E%3C/svg%3E") bottom / 100% 70px no-repeat,
    linear-gradient(#fbf5e6, #f6e8c6);
  padding: 2rem 0 5.2rem; border-bottom: 6px solid var(--field-dk);
}
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3rem; }
.page-sub { font-size: 1.05rem; margin: 0; }

.insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.insp { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.insp h2 { font-size: 1.02rem; text-transform: uppercase; padding-bottom: .35rem; border-bottom: 4px solid var(--hay); display: inline-block; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.placeholder { margin: 0; aspect-ratio: 4 / 3; border: 2px dashed var(--navy-soft); border-radius: 4px; background: repeating-linear-gradient(45deg, var(--cream) 0 10px, var(--board) 10px 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .5rem; position: relative; font-size: .82rem; }
.placeholder span { display: flex; flex-direction: column; font-weight: 600; }
.placeholder small { font-weight: 400; color: var(--navy-soft); }
.placeholder figcaption { position: absolute; top: 6px; left: 6px; background: var(--navy); color: var(--cream); font: .6rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .15rem .4rem; border-radius: 2px; }
.report { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1rem 1.15rem; box-shadow: var(--shadow); align-self: start; }
.report-sample { aspect-ratio: 16 / 9; }
/* hidden until real photos replace them; a row with only placeholders hides too */
.placeholder, .img-pair:not(:has(> :not(.placeholder))), .photo-slots:not(:has(> :not(.placeholder))) { display: none; }

.prose p { font-size: 1.02rem; }

/* service area */
.area-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.8rem; align-items: start; }
.map-wrap { margin: 0; border: 3px solid var(--navy); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #eef0dc; }
.area-map { display: block; width: 100%; height: auto; }
.map-bg { fill: #eef0dc; }
.map-area { fill: rgba(119, 133, 58, .14); stroke: var(--field); stroke-width: 2.5; stroke-dasharray: 9 6; }
.map-pref { fill: rgba(217, 164, 65, .3); stroke: var(--red); stroke-width: 2.5; }
.map-state { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .55; }
.map-state-label { font: 11px var(--display); letter-spacing: .12em; fill: var(--field-dk); opacity: .7; }
.map-town { fill: var(--navy); font: 600 12.5px var(--body); }
.map-town.out { fill: var(--navy-soft); opacity: .55; }
.map-home { fill: var(--red); }
.map-home-label { font: 14px var(--display); fill: var(--red); }
.map-ring-label { font: 10px var(--display); letter-spacing: .08em; fill: var(--red-dk); }
.map-ring-label.outer { fill: var(--field-dk); }
.map-note { font: 11px var(--body); fill: var(--navy-soft); }
.area-head { font-size: .9rem; text-transform: uppercase; color: var(--red); margin: 1rem 0 .3rem; }
.county-list { font-weight: 600; }
.note { background: var(--hay-lt); border: 2px solid var(--navy); border-radius: 6px; padding: .85rem 1rem; margin-top: .8rem; }
.note p { margin: 0; }

/* our story: a fence-post timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 3.1rem; top: .5rem; bottom: .5rem; border-left: 4px solid var(--board); }
.timeline > li { position: relative; display: grid; grid-template-columns: 6.2rem 1fr; gap: 1.1rem; padding: .85rem 0; }
.timeline .year { position: relative; z-index: 1; justify-self: start; align-self: start; background: var(--navy); color: var(--cream); font: .82rem/1.2 var(--display); padding: .4rem .55rem; border-radius: 4px; text-align: center; min-width: 6.2rem; box-shadow: 3px 3px 0 var(--hay); }
.timeline h2 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: .25rem; }
.timeline p { margin: 0; }
.timeline > li.now > div { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.timeline > li.now .year, .timeline > li.next .year { background: var(--red); }
.timeline li.now p + p { margin-top: .5rem; }
.bg-head { font-size: .88rem; text-transform: uppercase; color: var(--red); margin: 1rem 0 .4rem; }
.photo-slots { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1rem; }
.sources { font-size: .78rem; color: var(--navy-soft); margin-top: 1.6rem; }

/* ---- footer: the hills go navy at dusk ---- */
.site-footer { margin-top: 1rem; }
.scene-foot { display: block; width: 100%; height: clamp(50px, 7.5vw, 120px); }
.footer-body { background: var(--navy); color: var(--cream); padding: .6rem 0 1.6rem; }
.footer-row { display: flex; gap: 1.6rem; align-items: center; }
.footer-badge { width: 110px; flex: none; }
.footer-text { font-size: .88rem; }
.footer-text p { margin: 0 0 .3rem; }
.footer-phone { font: 1.4rem var(--display); color: var(--hay); text-decoration: none; }
.heritage-line { font-family: var(--script); font-size: 1.3rem; color: var(--hay-lt); }
.footer-text .muted { color: #b8c0cf; }
.footer-nav { margin-left: auto; display: grid; grid-template-columns: repeat(2, auto); gap: .3rem 1.4rem; }
.footer-nav a { color: var(--cream); font: .7rem var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover { color: var(--hay); }
.callbar { display: none; }

/* ---- tablet ---- */
@media (max-width: 1200px) {
  .site-nav { gap: .25rem .55rem; }
  .site-nav a { font-size: .62rem; letter-spacing: .03em; }
  .wordmark .fe { font-size: .54rem; }
}
@media (max-width: 1040px) {
  .header-row { flex-wrap: wrap; gap: .4rem 1rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; padding-top: .35rem; border-top: 2px dashed var(--line); overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-phone { margin-left: auto; }
}
@media (max-width: 960px) {
  .problem-grid, .services, .extras, .plans-grid, .about-grid, .insp-grid, .area-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .hero-badge { width: 230px; margin-bottom: -70px; }
  .footer-row { flex-wrap: wrap; }
  .footer-nav { margin-left: 0; }
}

/* ---- phone ---- */
@media (max-width: 600px) {
  body { padding-bottom: 3.2rem; }
  .brand img { width: 52px; height: 52px; }
  .wordmark .script { font-size: 1.7rem; }
  .header-phone { display: none; }
  /* 3 x 2 grid of thumb-sized links instead of one tiny row */
  .site-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; overflow: visible; }
  .site-nav a { font-size: .72rem; letter-spacing: .03em; text-align: center; padding: .55rem .2rem; background: var(--cream); border: 2px solid var(--line); border-radius: 4px; }
  .site-nav a:hover { border-color: var(--hay); }
  .nav-long { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 1.2rem; gap: .6rem; }
  .hero-badge { order: -1; width: 150px; margin: 0 auto; }
  .hero-copy { text-align: left; }
  .hero-scene { margin-top: .4rem; }
  .stats, .tiers, .plan-row, .img-pair, .photo-slots { grid-template-columns: 1fr; }
  .tiers { gap: 1.4rem; }
  .btn { flex: 1; text-align: center; }
  .timeline::before { display: none; }
  .timeline > li { grid-template-columns: 1fr; gap: .4rem; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--red); color: var(--cream); text-align: center; font: .95rem var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px)); border-top: 4px solid var(--hay); }
}

/* ---- state pages (New York / Pennsylvania farms) ---- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.jump a { background: var(--paper); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: .25rem .85rem; font: .78rem var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.jump a:hover { background: var(--navy); color: var(--cream); }
.deadline h2 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: .5rem; }
.deadline ul { margin: 0; padding-left: 1.1rem; }
.deadline li { margin-bottom: .35rem; }
.deadline li:last-child { margin-bottom: 0; }
.deadline .when { font-family: var(--display); color: var(--red-dk); }
.section-intro { max-width: 760px; }
.progs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.prog { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.prog-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .4rem .8rem; margin-bottom: .45rem; }
.prog h3 { font-size: 1rem; text-transform: uppercase; margin: 0; padding-bottom: .3rem; border-bottom: 4px solid var(--hay); }
.status { flex: none; font: .66rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 3px; border: 2px solid var(--navy); white-space: nowrap; }
.status.open { background: var(--field); border-color: var(--field-dk); color: #fff; }
.status.anytime { background: var(--navy); color: var(--cream); }
.status.check { background: var(--hay-lt); }
.status.paused { background: var(--paper); border-color: var(--red); color: var(--red); }
.prog p { margin-bottom: .45rem; }
.prog .help { margin-top: auto; background: var(--cream); border-left: 4px solid var(--red); padding: .45rem .7rem; font-size: .92rem; }
.prog .src { margin: .55rem 0 0; font-size: .85rem; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.rules li { position: relative; padding-left: 2rem; }
.rules li::before { content: "!"; position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--navy); color: var(--hay); font: .8rem/1.35rem var(--display); text-align: center; }
.rules strong { display: block; }
.power-co { width: 100%; border-collapse: collapse; background: var(--paper); border: 2px solid var(--navy); font-size: .93rem; }
.power-co th, .power-co td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.power-co th { background: var(--navy); color: var(--cream); font: .75rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.counties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.county { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; box-shadow: 4px 4px 0 var(--navy); scroll-margin-top: 1rem; }
.county h3 { background: var(--red); color: var(--cream); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin: 0; padding: .5rem .8rem; }
.county h3 small { font: 600 .78rem var(--body); text-transform: none; letter-spacing: 0; opacity: .85; }
.county-body { padding: .7rem .8rem .8rem; font-size: .9rem; }
.county-body p { margin-bottom: .4rem; }
.county-body ul { margin: 0; padding-left: 1.05rem; }
.zone { display: inline-block; font: .66rem var(--display); letter-spacing: .07em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 3px; margin-bottom: .45rem; }
.zone.in { background: var(--field); color: #fff; }
.zone.part { background: var(--hay); color: var(--navy); }
.zone.out { background: var(--navy); color: var(--cream); }
.checked { font-size: .82rem; color: var(--navy-soft); border-top: 2px dashed var(--line); padding-top: .7rem; margin-top: 1.4rem; }
.state-links { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.state-links a { display: block; background: var(--navy); color: var(--cream); text-decoration: none; border-radius: 6px; padding: .7rem .9rem; font: .9rem var(--display); text-transform: uppercase; box-shadow: 3px 3px 0 var(--hay); }
.state-links a span { display: block; font: 500 .82rem var(--body); text-transform: none; color: var(--hay-lt); }
.state-links a:hover { background: var(--red); }
@media (max-width: 960px) {
  .progs, .rules { grid-template-columns: 1fr; }
  .counties { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .counties, .state-links { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .site-nav a { font-size: .66rem; letter-spacing: 0; }
}

/* ---- farm tools (calculators) ---- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.tool-card { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; box-shadow: var(--shadow); padding: 1rem 1.1rem; color: var(--navy); text-decoration: none; font-weight: 400; }
.tool-card h2, .tool-card h3 { font-size: 1rem; text-transform: uppercase; margin: 0 0 .35rem; padding-bottom: .3rem; border-bottom: 4px solid var(--hay); align-self: start; }
.tool-card p { margin: 0 0 .6rem; font-size: .93rem; }
.tool-card .go { margin-top: auto; color: var(--red); font: .78rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.tool-card:hover { background: #fff; color: var(--navy); }
.tool-card:hover .go { text-decoration: underline; }
.tool { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; align-items: start; }
.tool-form { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.tool-form h2 { font-size: .95rem; text-transform: uppercase; margin: .4rem 0 .6rem; }
.tool-form h2:not(:first-child) { margin-top: 1.1rem; padding-top: .8rem; border-top: 2px dashed var(--line); }
.field { display: grid; gap: .25rem; margin-bottom: .75rem; }
.field label, .field .lbl { font-weight: 700; font-size: .92rem; }
.field small { color: var(--navy-soft); font-size: .8rem; }
.tool input[type=number], .tool select { font: inherit; font-size: 1rem; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 4px; padding: .4rem .5rem; width: 100%; max-width: 14rem; }
.tool input:focus, .tool select:focus { outline: 3px solid var(--hay); outline-offset: 1px; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 2px solid var(--navy); border-radius: 4px; padding: .3rem .65rem; font-weight: 600; cursor: pointer; }
.seg input { accent-color: var(--red); }
.load-list { list-style: none; margin: 0; padding: 0; }
.load-list li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .5rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.load-list li:last-child { border-bottom: 0; }
.load-list input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }
.load-list .nm { font-weight: 600; font-size: .93rem; line-height: 1.25; }
.load-list .nm small { display: block; font-weight: 400; }
.load-list .amt { display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--navy-soft); white-space: nowrap; }
.tool .load-list input[type=number] { width: 4.6rem; padding: .25rem .35rem; font-size: .95rem; }
.result { position: sticky; top: 1rem; background: var(--navy); color: var(--cream); border-radius: 8px; padding: 1.1rem 1.2rem; box-shadow: 5px 5px 0 var(--hay); }
.result .eyebrow { color: var(--hay); }
.result .big { font: 2.3rem/1.05 var(--display); color: #fff; margin: .2rem 0 .3rem; }
.result .big small { font-size: 1rem; color: var(--hay-lt); }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; margin: .7rem 0; font-size: .93rem; }
.result dt { color: var(--hay-lt); }
.result dd { margin: 0; font-weight: 700; text-align: right; }
.result p { font-size: .9rem; }
.result a { color: var(--hay); }
.result .btn-red { margin-top: .4rem; box-shadow: 3px 3px 0 var(--hay); }
.result.lvl-ok { background: var(--field-dk); }
.result.lvl-watch { background: #8a6414; }
.result.lvl-danger { background: var(--red-dk); }
.hay-chart { width: 100%; border-collapse: collapse; border: 2px solid var(--navy); background: var(--paper); font-size: .93rem; }
.hay-chart th, .hay-chart td { padding: .5rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hay-chart th { background: var(--navy); color: var(--cream); font: .75rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.hay-chart td:first-child { font-family: var(--display); white-space: nowrap; }
.hay-chart tr.t-ok td:first-child { color: var(--field-dk); }
.hay-chart tr.t-watch td:first-child { color: #8a6414; }
.hay-chart tr.t-danger td:first-child { color: var(--red); }
.hay-chart tr.on { background: var(--hay-lt); }
.cost-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cost-table th, .cost-table td { padding: .4rem .35rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cost-table th { font: .68rem var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--navy-soft); }
.cost-table td.n { text-align: right; font-weight: 700; white-space: nowrap; }
.tool .cost-table input[type=number] { width: 4.4rem; padding: .25rem .3rem; font-size: .92rem; }
.fine { font-size: .82rem; color: var(--navy-soft); }
.how-calc { max-width: 760px; }
.how-calc h2 { font-size: 1rem; text-transform: uppercase; margin-top: 1.2rem; }
@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  .result { position: static; }
}
.tool > * { min-width: 0; }
@media (max-width: 600px) {
  .tool .cost-table input[type=number] { width: 3.2rem; }
  .tool-form { padding-inline: .8rem; }
  .cost-table th, .cost-table td { padding: .35rem .2rem; }
  .cost-table td:first-child { font-size: .82rem; }
}
/* spinner arrows eat the room numbers need inside small boxes */
.tool .cost-table input[type=number], .tool .load-list input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.tool .cost-table input::-webkit-inner-spin-button, .tool .load-list input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- tools readability pass: roomier rows, larger notes, short info cards instead of long paragraphs ---- */
.page-sub { max-width: 62ch; }
.tool-list { display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
.tool-row { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1.1rem; align-items: center; background: var(--paper); border: 2px solid var(--navy); border-radius: 8px; box-shadow: 4px 4px 0 var(--navy); padding: 1rem 1.2rem; color: var(--navy); text-decoration: none; font-weight: 400; }
.tool-row:hover { background: #fff; color: var(--navy); }
.tool-row .ico { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; font: 1.35rem var(--display); box-shadow: 3px 3px 0 var(--hay); }
.tool-row h3 { font-size: 1.08rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .3rem; }
.tool-row p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--navy-soft); }
.tool-row .go { font: .78rem var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--cream); background: var(--navy); padding: .55rem .9rem; border-radius: 4px; white-space: nowrap; }
.tool-row:hover .go { background: var(--red); }

.tool-form { padding: 1.3rem 1.4rem; }
.tool-form h2 { font-size: 1rem; margin-bottom: .8rem; }
.tool-form > .fine { margin: -.3rem 0 .9rem; }
.field { gap: .4rem; margin-bottom: 1.25rem; }
.field label, .field .lbl { font-size: 1rem; }
.field small { font-size: .88rem; line-height: 1.5; }
.seg { gap: .5rem; }
.seg label { padding: .4rem .75rem; }
.load-list li { gap: .75rem; padding: .7rem 0; }
.load-list .nm { font-size: 1rem; line-height: 1.35; }
.load-list .nm small { font-size: .86rem; line-height: 1.45; color: var(--navy-soft); margin-top: .2rem; }
.load-list .nm small label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.load-list .amt { font-size: .9rem; }
.result { padding: 1.4rem 1.5rem; }
.result p { font-size: .97rem; line-height: 1.55; margin-bottom: .85rem; }
.result dl { gap: .5rem 1rem; margin: 1rem 0 1.1rem; padding-block: .9rem; border-block: 1px solid rgba(246, 238, 218, .2); font-size: 1rem; }
.result .note-line { border-top: 1px solid rgba(246, 238, 218, .2); padding-top: .85rem; }
.result .fine { color: var(--hay-lt); font-size: .88rem; }
.fine { font-size: .88rem; line-height: 1.55; }
.hay-chart th, .hay-chart td { padding: .7rem .85rem; line-height: 1.5; }
.cost-table td { line-height: 1.35; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.info { background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; padding: 1.1rem 1.25rem; }
.info h3 { font-size: .98rem; text-transform: uppercase; margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 4px solid var(--hay); display: inline-block; }
.info p { line-height: 1.6; margin-bottom: .7rem; }
.info p:last-child { margin-bottom: 0; }
.info .checklist li { margin-bottom: .55rem; line-height: 1.5; }
.disclaimer { max-width: 760px; margin: 1.6rem auto 0; text-align: center; }
.disclaimer p { font-size: .9rem; line-height: 1.6; color: var(--navy-soft); }
@media (max-width: 600px) {
  .tool-row { grid-template-columns: 2.8rem 1fr; padding: .9rem 1rem; }
  .tool-row .ico { width: 2.8rem; height: 2.8rem; font-size: 1.1rem; }
  .tool-row .go { grid-column: 2; justify-self: start; }
  .tool-form { padding: 1.1rem 1rem; }
}
.info-grid.four { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
@media (max-width: 700px) { .info-grid.four { grid-template-columns: 1fr; } }

/* home: free farm tools strip, right under the field band */
.tool-strip { background: var(--board); border-bottom: 4px solid var(--navy); padding-block: .9rem; }
.tool-strip-row { display: flex; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; }
.tool-strip-head { margin: 0; font: .85rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.tool-strip-head .script { font: 1.6rem var(--script); text-transform: none; letter-spacing: 0; color: var(--red); margin-right: .15rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1; justify-content: space-between; }
.tool-chips a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; padding: .2rem .7rem .2rem .22rem; color: var(--navy); text-decoration: none; font-size: .85rem; font-weight: 700; box-shadow: 2px 2px 0 var(--navy); }
.tool-chips a:hover { background: #fff; color: var(--red); }
.tool-chips .ico { display: grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .2rem; border-radius: 999px; background: var(--red); color: var(--cream); font: .62rem var(--display); }
.tool-chips a.all { background: var(--navy); color: var(--cream); padding-inline: .9rem; font: .72rem var(--display); text-transform: uppercase; letter-spacing: .04em; }
.tool-chips a.all:hover { background: var(--red); color: var(--cream); }
.tool-strip-head { flex-basis: 100%; }
@media (max-width: 600px) {
  .tool-chips { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .tool-chips a { font-size: .85rem; }
  .tool-chips a.all { justify-content: center; }
}
/* phones: each cost-table row stacks, name on top, then watts / hours / how many / per month in four columns,
   so nothing hides off the right edge (last, so it beats the rules above) */
@media (max-width: 600px) {
  .cost-table, .cost-table thead, .cost-table tbody { display: block; }
  .cost-table tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem .5rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .cost-table th, .cost-table td { border: 0; padding: 0; }
  .cost-table th:first-child { display: none; }
  .cost-table td:first-child { grid-column: 1 / -1; font-size: .95rem; font-weight: 600; }
  .tool .cost-table input[type=number] { width: 100%; }
}
