/* Oxford Norfolk Home Energy: design source of truth. Palette from Dan's approved logo (navy, electric blue, leaf green) plus amber for actions.
   Official, editorial look: Source Serif 4 headings, Source Sans 3 text, square edges, ruled sections.
   Navy is the brand, leaf green marks the good news, amber is for actions only. No shadows, no pastel cards, no pills. */

:root {
  --ink: #0a1a33;
  --body: #23304a;
  --muted: #56627a;
  --paper: #ffffff;
  --surface: #f3f6fa;
  --line: #d6dde8;
  --line-strong: #b7c3d3;
  --green: #073268;        /* brand navy (variable name kept from v1) */
  --leaf: #4eaa22;
  --leaf-dark: #3d8a1a;
  --sky: #079cde;
  --green-dark: #04224a;
  --tint: #e7f0fa;
  --accent: #f2b33d;
  --accent-dark: #d9970f;
  --accent-soft: #fdf1d4;
  --warn: #fdf3d7;
  --focus: #d9970f;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 70ch;
  --wide: 1140px;
  --r: 4px;
  --gap: clamp(16px, 3vw, 28px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 18px/1.6 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { color: var(--ink); font-weight: 600; }

h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.22rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
.small { font-size: 0.9rem; color: var(--muted); }
.lede { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--body); max-width: 40em; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wide); }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > .grid-2, .wrap.prose > .table-scroll, .wrap.prose > .cta-wide { max-width: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.centre { text-align: center; }
.centre .section-head, .centre .prose { margin-left: auto; margin-right: auto; }

/* Top bars and header */
.preview-bar { background: #26302b; color: #fff; text-align: center; font-size: 0.85rem; padding: 6px 12px; }
.utility { background: var(--green-dark); color: #d4e6dc; font-size: 0.86rem; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 7px; padding-bottom: 7px; }
.utility span { display: inline-flex; align-items: center; gap: 6px; }
.utility svg { color: var(--accent); }
@media (max-width: 640px) { .utility .u-hide { display: none; } .utility .wrap { justify-content: center; font-size: 0.8rem; } }
.site-head { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 3px solid var(--green); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand-text span { font-size: 0.82rem; font-weight: 600; color: var(--green); letter-spacing: 0.04em; margin-top: 3px; }
.brand-dark .brand-text strong { color: #fff; }
.brand-dark .brand-text span { color: #a8d5bd; }
.nav { display: flex; gap: 4px 24px; align-items: center; font-size: 0.98rem; font-weight: 600; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand-text strong { font-size: 1.05rem; } .brand svg { width: 32px; height: 32px; } }

/* Buttons: amber is the only colour that means "do this" */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--ink); text-decoration: none; padding: 13px 22px; border-radius: var(--r); border: 1px solid var(--accent-dark); font: 700 1rem/1.2 var(--sans); cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-dark); color: var(--ink); text-decoration: none; }
.nav .btn, .nav .btn:hover { color: var(--ink); text-decoration: none; }
.btn-small { padding: 9px 16px; font-size: 0.95rem; white-space: nowrap; }
.btn-ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--tint); color: var(--green-dark); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; color: var(--green); font: 600 0.95rem var(--sans); cursor: pointer; padding: 6px 0; text-decoration: underline; }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.hero h1 { max-width: 15em; }
.hero-example { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); max-width: 36em; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "card" "lede"; }
  .hero > div:first-child { display: contents; }
  .hero h1 { grid-area: title; margin-bottom: 0; }
  .hero .start-card { grid-area: card; }
  .hero .lede-wrap { grid-area: lede; }
}

/* The rebate check panel: reads like a form, not a widget */
.start-card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 0 18px; }
.start-card h2 { background: var(--green); color: #fff; font-size: 1.15rem; margin: 0 0 12px; padding: 12px 18px; border-radius: var(--r) var(--r) 0 0; }
.start-card > p, .start-card .fuel-grid, .start-card .start-foot { margin-left: 18px; margin-right: 18px; }
.start-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.start-card .btn { display: flex; width: calc(100% - 36px); margin: 14px 18px 0; }
.start-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 420px) { .fuel-grid { grid-template-columns: 1fr 1fr; } }
.fuel-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.fuel-grid a:hover { border-color: var(--accent-dark); background: var(--accent-soft); }
.fuel-grid a svg { color: var(--green); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px 24px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust svg { color: var(--green); flex: none; }
@media (max-width: 1100px) { .trust ul { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (max-width: 640px) { .trust ul { grid-template-columns: 1fr; } }

/* Sections: ruled, left-aligned, editorial */
section { padding: clamp(28px, 5vw, 52px) 0; }
section + section { border-top: 1px solid var(--line); }
.band { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: 22px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--line-strong); border-top-color: var(--accent); color: inherit; }
.card-link:hover h3 { text-decoration: underline; }
.card-link h3 { color: var(--ink); }
.card-feature { border: 1px solid var(--green); border-top: 5px solid var(--green); }
.card-muted { border-top-color: var(--accent); }
.icon-badge { color: var(--green); margin-bottom: 10px; }
.figure { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--green-dark); line-height: 1.1; margin: 6px 0 10px; }
.card-muted .figure { color: var(--ink); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--green-dark); background: var(--tint); border-radius: 2px; padding: 3px 8px; }
.tag-soon, .tag-open { background: var(--accent-soft); color: #6b4a00; }
.note { background: var(--warn); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 14px 16px; font-size: 0.98rem; }
.note p:last-child { margin-bottom: 0; }
.illus { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--surface); }

/* Who you'll hear from */
.hear { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .hear { grid-template-columns: 1fr; } }
.promise { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--ink); line-height: 1.35; }
.checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.checklist li svg { color: #fff; background: var(--green); border-radius: 2px; padding: 3px; flex: none; margin-top: 3px; }
.checklist strong { display: block; }

/* Worked example */
.example-band { background: var(--green-dark); color: #d4e6dc; border-radius: var(--r); padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px 36px; align-items: center; margin-bottom: 28px; }
@media (max-width: 860px) { .example-band { grid-template-columns: 1fr 1fr; } .example-band .ex-text, .example-band .btn { grid-column: 1 / -1; } }
.example-band h3 { color: #fff; margin: 0 0 4px; }
.example-band p { margin: 0; }
.example-band .num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; color: #fff; line-height: 1.05; }
.example-band .btn { background: transparent; color: #fff; border: 1.5px solid #fff; }
.example-band .btn:hover { background: rgba(255,255,255,0.1); }

/* Sources */
.sources-band { border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 40px; align-items: start; }
@media (max-width: 860px) { .sources-band { grid-template-columns: 1fr; } }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .source-list { grid-template-columns: 1fr; } }
.source-list li { margin: 0; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.source-list li strong { display: block; }
.source-list li span { color: var(--muted); font-size: 0.88rem; }
.factbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; padding: 10px 14px; font-size: 0.93rem; color: var(--ink); margin: 0 0 24px; }
.factbox svg { color: var(--green); }
.factbox a { font-weight: 600; }
.sources { font-size: 0.88rem; color: var(--muted); border-top: 2px solid var(--ink); margin-top: 40px; padding-top: 16px; }
.sources h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; }
.sources ol { padding-left: 1.2em; }
.sources a { word-break: break-word; }
sup a { text-decoration: none; font-size: 0.75em; padding: 0 1px; font-weight: 700; }
.src-note { font-size: 0.85rem; color: var(--muted); margin-top: -6px; }

/* Towns */
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.towns li { margin: 0; }
.towns a { display: block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.towns a:hover { border-color: var(--green); color: var(--green); }
.town-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) {
  .town-hero { grid-template-columns: 1fr; }
  .town-hero > div:first-child { display: contents; }
  .town-hero .lede { order: 0; margin: 0; }
  .town-hero .townline { order: 1; margin: 0; }
  .town-hero .start-card { order: 2; }
  .town-hero .angle { order: 4; }
}

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 0 0 1em; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); background: #fff; }
tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.table-scroll { overflow-x: auto; margin-bottom: 1em; }
@media (max-width: 560px) {
  .article-body table.stack, .article-body table.stack tbody, .article-body table.stack tr, .article-body table.stack td { display: block; width: 100%; }
  .article-body table.stack tr:first-child { display: none; }
  .article-body table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .article-body table.stack td { border: 0; padding: 4px 0; }
  .article-body table.stack td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 32px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -3px; font-size: 1.4rem; font-weight: 400; color: var(--green); }
details[open] summary::after { content: "\2212"; }
details > div { padding-top: 8px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line-strong); border-top: 5px solid var(--green); border-radius: var(--r); padding: clamp(20px, 4vw, 32px); max-width: 680px; margin: 0 auto; }
.form-card h2 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field > label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 0.98rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--tint); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23073268' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.field .choice, .choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; font-weight: 600; cursor: pointer; background: #fff; margin: 0; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--green); background: var(--tint); }
.out-note { display: none; margin: -4px 0 16px; padding: 10px 12px; border-left: 3px solid var(--line-strong); background: #fff; font-size: 0.93rem; color: var(--body); }
form:has(#town option.out:checked) .out-note { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; font-weight: 400; color: var(--body); }
.consent input { margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.more-details { border: 1px solid var(--line); border-radius: var(--r); padding: 2px 14px; margin-bottom: 16px; }
.more-details summary { font-weight: 700; color: var(--green); padding: 10px 0; }
.fee-note { font-size: 0.86rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Rebate checker */
.checker-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .checker-wrap { grid-template-columns: 1fr; } }
.checker { background: #fff; border: 1px solid var(--line-strong); border-top: 5px solid var(--green); border-radius: var(--r); padding: clamp(20px, 4vw, 32px); }
.progress { height: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--accent); width: 0; }
.estimate { display: inline-block; background: var(--accent-soft); color: #6b4a00; font-weight: 700; font-size: 0.93rem; border-radius: 2px; padding: 5px 10px; margin-bottom: 16px; }
.q h2 { font-size: 1.45rem; margin: 0 0 6px; }
.q h2:focus, .result h2:focus { outline: none; }
.q .hint { display: block; margin-bottom: 14px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.opt { text-align: left; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 16px; min-height: 60px; font: 700 1rem/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--accent-dark); background: var(--accent-soft); }
.opt[aria-pressed="true"] { border-color: var(--green); background: var(--tint); }
.opt small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: 0.88rem; }
.opt .opt-icon { display: inline-flex; vertical-align: -5px; margin-right: 8px; color: var(--green); }
.checker-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.result h2 { margin-top: 0; }
.result-total { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.result-total .card { flex: 1 1 220px; padding: 18px; }
.get-list { list-style: none; padding: 0; margin: 0; }
.get-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.get-list svg { color: var(--green); flex: none; margin-top: 3px; }

/* Calculator */
.calc-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 1000px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-layout aside { position: sticky; top: 100px; }
.calc-wrap { max-width: 760px; }
.calc { background: #fff; border: 1px solid var(--line-strong); border-top: 5px solid var(--green); border-radius: var(--r); padding: clamp(20px, 4vw, 32px); }
.example-flag { display: inline-block; font-size: 0.85rem; font-weight: 700; background: var(--warn); color: #6b4a00; border-radius: 2px; padding: 4px 10px; margin-bottom: 12px; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 20px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
@media (max-width: 640px) { .calc-out { grid-template-columns: 1fr; } }
.calc-out div { background: none; padding: 0; }
.calc-out > div { padding: 16px; border-right: 1px solid var(--line); }
.calc-out > div:last-child { border-right: 0; }
.calc-out > div.accent { background: var(--green-dark); }
.calc-out > div.accent p, .calc-out > div.accent .figure { color: #fff; }
.calc-out .figure { font-size: 1.8rem; margin-bottom: 0; }
.combined { font-weight: 700; color: var(--ink); text-align: center; margin: 14px 0 0; }
.calc-rebate { margin-top: 8px; text-align: center; font-size: 0.97rem; }
.calc-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* Articles */
.page-head { padding-top: 20px; padding-bottom: 6px; }
.page-head h1 { margin-bottom: 0.3em; }
.crumbs { font-size: 0.88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-body { max-width: var(--measure); }
.article-body h2 { scroll-margin-top: 100px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.93rem; color: var(--muted); margin: -2px 0 18px; }
.article-meta .author { color: var(--ink); font-weight: 700; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.toc { font-size: 0.95rem; }
.toc ol { padding-left: 1.1em; margin: 0; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; padding: 18px 20px; margin: 0 0 24px; }
.answer p { margin: 0; color: var(--ink); font-size: 1.08rem; }
.answer strong { display: block; font-size: 0.88rem; color: var(--green-dark); margin-bottom: 4px; letter-spacing: 0.02em; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px 16px; margin: 0 0 28px; }
.inline-cta p { margin: 0; font-weight: 700; color: var(--ink); }
.cta-card { background: var(--green-dark); color: #d4e6dc; border-radius: var(--r); padding: 20px; }
.cta-card h3 { color: #fff; margin: 0 0 6px; }
.cta-card .btn { width: 100%; margin-top: 8px; }
.cta-wide { background: var(--green-dark); color: #d4e6dc; border-radius: var(--r); padding: clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 32px 0; }
.cta-wide h2, .cta-wide h3 { color: #fff; margin: 0 0 4px; }
.cta-wide p { margin: 0; }
.publisher { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: 18px 20px; margin: 28px 0; }
.publisher .initials { flex: none; width: 52px; height: 52px; border-radius: 2px; background: var(--green); color: #fff; font: 700 1.2rem/52px var(--serif); text-align: center; }
.publisher p { margin: 0 0 4px; }

/* Phone action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--green); transform: translateY(110%); transition: transform 0.2s; }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { flex: 1; min-height: 48px; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
}

/* Footer */
.site-foot { background: var(--ink); color: #b4c3bb; margin-top: 56px; padding: 44px 0 48px; font-size: 0.95rem; border-top: 5px solid var(--green); }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #d7e3dd; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand { margin-bottom: 12px; }
.site-foot .small { color: #93a49c; }

/* Plain lists in place of card grids */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.link-list li { display: grid; grid-template-columns: 260px 1fr; gap: 6px 24px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .link-list li { grid-template-columns: 1fr; } }
.link-list a { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.req-list { margin: 0; padding-left: 1.4em; border-top: 1px solid var(--line); }
.req-list li { padding: 10px 0 10px 4px; margin: 0; border-bottom: 1px solid var(--line); }
.trust ul { grid-template-columns: repeat(3, auto); }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr; } }

/* Photo hero: real rural winter photo under a green overlay; text stays white and readable */
.hero-photo { position: relative; isolation: isolate; background: var(--green-dark); overflow: hidden; }
.hero-photo picture, .hero-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo picture img { object-fit: cover; object-position: 62% 45%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10,36,25,0.92) 0%, rgba(10,36,25,0.82) 42%, rgba(10,36,25,0.35) 75%, rgba(10,36,25,0.2) 100%); }
.hero-photo picture { z-index: -1; }
.hero-photo .hero { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 84px); }
.hero-photo h1 { color: #fff; }
.hero-photo .lede { color: #e2eee8; }
.hero-photo .hero-example { color: #fff; border-top-color: rgba(255,255,255,0.3); }
.hero-photo .hero-example sup a { color: var(--accent); }
.hero-photo .start-card { border-color: transparent; }
@media (max-width: 900px) {
  .hero-photo::before { background: linear-gradient(180deg, rgba(10,36,25,0.74) 0%, rgba(10,36,25,0.86) 45%, rgba(10,36,25,0.94) 100%); }
  .hero-photo picture img { object-position: 64% 30%; }
}


/* Logo: Dan's "ON" icon image + live wordmark in the logo's style (Montserrat), so nothing is clipped */
.brand { gap: 12px; }
.brand-icon { height: 40px; width: auto; display: block; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: "Montserrat", var(--sans); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.015em; color: var(--green); }
.brand-text span { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-family: "Montserrat", var(--sans); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--leaf); }
.brand-text span::before, .brand-text span::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: currentColor; }
.brand-text span::after { margin-left: -0.3em; }
.brand-dark .brand-text strong, .brand-dark .brand-text span { color: #fff; }
@media (max-width: 420px) { .brand-icon { height: 32px; } .brand-text strong { font-size: 1.1rem; } .brand-text span { font-size: 0.52rem; } }

/* Palette accents from the logo */
.utility svg { color: #85bd19; }
.trust svg, .factbox svg, .get-list svg { color: var(--leaf-dark); }
.site-foot { border-top-color: var(--sky); }
.hero-photo::before { background: linear-gradient(90deg, rgba(4,26,58,0.93) 0%, rgba(4,26,58,0.84) 42%, rgba(4,26,58,0.36) 75%, rgba(4,26,58,0.2) 100%); }
@media (max-width: 900px) { .hero-photo::before { background: linear-gradient(180deg, rgba(4,26,58,0.76) 0%, rgba(4,26,58,0.87) 45%, rgba(4,26,58,0.95) 100%); } }
.tag { background: #e8f5e0; color: #2f6c12; }
.tag-soon, .tag-open { background: var(--accent-soft); color: #6b4a00; }
