/* /areas/yorkshire/ (16 Oct 2026): four parts of one big county, all a short way north of Retford. The hero is the map of
   every Yorkshire town page bleeding off the right; "Where we install" is a card for each part with the miles to scale. */

/* Every grid of this page's own: one column that can shrink, on a phone */
.yk-regions, .yk-homes-grid, .yk-sun-grid, .yk-cost-top, .yk-cols, .yk-grants-grid, .yk-grants-side { grid-template-columns: minmax(0, 1fr); }

/* Hero: the map runs off the right edge */
@media (min-width: 1000px) { .yk-hero .ak-hero-grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); column-gap: 32px; }
  .yk-hero .ak-hero-aside { margin-top: 8px; } }
.yk-hero-map { position: relative; }
.yk-spokes line { stroke: var(--sun-coral); opacity: .3; stroke-linecap: round; }
.yk-parts text { font-family: var(--text); font-weight: 600; fill: #8a949c; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-linejoin: round; }
/* Two drawings of the one map: the phone one is drawn smaller, so its names come out at a size you can read */
.yk-map--phone { display: none; }
@media (max-width: 640px) { .yk-map--wide { display: none; } .yk-map--phone { display: block; } }
.yk-hero-map .ak-map + .ak-map { margin-top: 0; }
.yk-hero .ak-map { padding: 0; border-radius: 28px 0 0 28px; overflow: hidden; box-shadow: var(--ak-lift); }
.yk-hero .ak-map-svg { border-radius: 0; }
.yk-hero-badge { position: absolute; z-index: 2; left: 18px; bottom: 18px; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 10px 22px -14px rgba(38, 40, 42, .5); font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.yk-hero-badge::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--ak-sun); }
@media (max-width: 999px) { .yk-hero .ak-map { border-radius: 20px; } }
@media (max-width: 520px) { .yk-hero-badge { left: 10px; bottom: 10px; font-size: .8125rem; padding: 6px 12px; } }

/* Where we install: one card per part of the county, the miles drawn to scale (52 miles = the full bar) */
.yk-regions { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .yk-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yk-region { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--ak-shadow); }
.yk-region-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.yk-region-span { margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--sky); font-weight: 600; font-size: .875rem; color: var(--ink); }
.yk-region h3 { font-size: 1.375rem; font-weight: 500; font-family: var(--display); letter-spacing: -0.01em; line-height: 1.2; }
@media (min-width: 900px) { .yk-region h3 { min-height: 2.4em; } }
.yk-places { list-style: none; margin: 14px 0 0; padding: 0; }
.yk-places li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 13px 0 12px; border-top: 1px solid var(--line); }
.yk-places a, .yk-place { font-weight: 600; color: var(--ink); }
.yk-places a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.yk-places a:hover { text-decoration-color: var(--sun-coral); }
.yk-mi { color: var(--ink-soft); font-size: .9375rem; white-space: nowrap; }
.yk-mi-bar { grid-column: 1 / -1; position: relative; height: 4px; margin-top: 8px; border-radius: 999px; background: var(--sky); }
.yk-mi-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--m) * 100%); border-radius: 999px; background: linear-gradient(90deg, var(--sun-coral), var(--sun-amber)); }
.yk-mi-note { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.yk-same { align-items: center; }

/* Homes: words and the census bars, then the roofs of panels, then roof direction and sunshine */
.yk-homes-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .yk-homes-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: center; } }
.yk-homes .ak-bars li { grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) 3.25rem; }
@media (max-width: 520px) { .yk-homes .ak-bars li { grid-template-columns: minmax(0, 1fr) 3.5rem; } }
.yk-roofs { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .yk-roofs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.yk-roofs li { display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: 18px; background: var(--paper); box-shadow: var(--ak-shadow); }
.yk-roof-art { display: block; width: 100%; height: auto; margin-bottom: 12px; }
.yk-roof-line { fill: var(--sky); stroke: var(--line-strong); stroke-width: 1.4; stroke-linejoin: round; }
.yk-roof-panels rect { fill: var(--ink); }
.yk-roofs strong { font-weight: 600; line-height: 1.3; }
.yk-roofs span { margin-top: 2px; color: var(--ink-soft); font-size: .9375rem; }
.yk-sun-grid { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(28px, 3.4vw, 40px); }
@media (min-width: 900px) { .yk-sun-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.yk-sun-card { padding: clamp(22px, 2.8vw, 32px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.yk-sun-card .ak-ring { margin-bottom: 16px; }
.yk-sun-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.yk-sun-card p { margin-top: 10px; color: var(--ink-soft); line-height: 1.65; }
.yk-dir-figs { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.yk-dir-figs div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.yk-dir-figs dt { color: var(--ink-soft); }
.yk-dir-figs dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* Cost: the words beside the big numbers in a sun-ringed panel, then two columns, newspaper style */
.yk-cost-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .yk-cost-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: start; } }
.yk-cost-main > p { max-width: 42rem; font-size: 1.1875rem; line-height: 1.65; color: var(--ink); }
.yk-col--lead { margin-top: clamp(28px, 3.4vw, 40px); padding-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--line); }
.yk-price { margin: 0; display: grid; gap: 0; }
.yk-price div { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.yk-price div:first-child { padding-top: 0; }
.yk-price dt { margin-bottom: 6px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.yk-price dd { margin: 0; font: 500 1.875rem/1.05 var(--display); letter-spacing: -0.02em; }
.yk-price .yk-price-ours dd { font-size: clamp(2.6rem, 1.9rem + 2.4vw, 3.5rem); }
.yk-price .yk-price-ours dt { color: var(--ink); font-weight: 600; }
.yk-price-panel .btn { margin-top: 22px; }
@media (min-width: 900px) { .yk-price-panel { position: sticky; top: 110px; } }
.yk-cols { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .yk-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .yk-cols .yk-col:first-child { padding-right: clamp(28px, 3.4vw, 48px); }
  .yk-cols .yk-col:last-child { padding-left: clamp(28px, 3.4vw, 48px); border-left: 1px solid var(--line); } }
.yk-col-fig { margin: 0 0 16px; font: 500 clamp(2rem, 1.6rem + 1.2vw, 2.6rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.yk-col-fig span { display: block; margin-top: 8px; font: 500 .9375rem/1.4 var(--text); letter-spacing: 0; color: var(--ink-soft); }
.yk-col-fig::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--ak-sun); }
.yk-col h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.yk-col p:not(.yk-col-fig) { margin-top: 10px; max-width: 42rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.65; }

/* Grants: the councils with funding as pills, the West Yorkshire deadline as a date card */
.yk-grants-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .yk-grants-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 36px); align-items: start; } }
.yk-whlg-panel .ak-ring { margin-bottom: 14px; }
.yk-whlg-panel > p { color: var(--ink) !important; font-size: 1.0625rem; }
.yk-whlg { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.yk-whlg-label { margin: 0 0 10px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.yk-whlg-label + .ak-chips { margin-bottom: 18px; }
.yk-whlg .ak-chips:last-child { margin-bottom: 0; }
.yk-chips-yes span { background: var(--sky); box-shadow: none; }
.yk-chips-yes span::before { content: ""; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ak-sun); }
.yk-chips-no span { background: transparent; box-shadow: 0 0 0 1px var(--line-strong); color: var(--ink-soft); }
.yk-grants-side { display: grid; gap: 18px; }
.yk-hewy { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.yk-hewy p:not(.yk-hewy-date) { margin-top: 14px; color: var(--ink-soft); line-height: 1.6; font-size: 1.0625rem; }
.yk-hewy-date { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 500 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.015em; }
.yk-hewy-date span { display: block; margin-bottom: 6px; font: 600 .875rem/1.3 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--star); }

/* Battery */
.yk-battery .ak-aside { display: grid; gap: 18px; }
.yk-batt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yk-batt-stats dd:not(.ak-stats-src) { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.375rem); }
@media (max-width: 600px) { .yk-batt-stats { gap: 12px; } .yk-batt-stats > div { padding: 16px; } .yk-batt-stats dd:not(.ak-stats-src) { font-size: 1.5rem; } .yk-batt-stats dt { font-size: .9375rem; } }
@media (max-width: 340px) { .yk-batt-stats { grid-template-columns: minmax(0, 1fr); } }

/* Planning and councils: one sky band, two sections */
.yk-plan-cards { margin-bottom: 20px; }
.yk-plan-cards .ak-card p { font-size: 1rem; }
.yk-councils { padding-top: 0; }
.yk-councils::before { content: ""; display: block; width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); height: 1px; margin: 0 auto clamp(40px, 5vw, 64px); background: var(--sky-deep); }
.yk-dir { list-style: none; margin: 0; padding: 6px clamp(20px, 2.6vw, 32px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.yk-dir li { display: grid; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.yk-dir li:last-child { border-bottom: 0; }
@media (min-width: 640px) { .yk-dir li { grid-template-columns: 11rem minmax(0, 1fr); } }
.yk-dir strong { font: 500 1.1875rem/1.35 var(--display); color: var(--ink); }
.yk-dir li > span { color: var(--ink-soft); line-height: 1.55; }

/* Network */
.yk-grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: clamp(22px, 2.6vw, 30px); border-radius: var(--ak-radius); background: var(--sky); }
.yk-grid-stats > div:first-child { padding-left: 0; }
.yk-grid-stats dd:not(.ak-stats-src) { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.25rem); }
@media (max-width: 600px) { .yk-grid-stats > div, .yk-grid-stats > div:first-child { padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .yk-grid-stats > div:first-child { padding-left: 0; border-left: 0; } .yk-grid-stats dd:not(.ak-stats-src) { font-size: 1.875rem; } }

/* Reviews: three cards, the middle one set lower, like quotes pinned up */
@media (min-width: 800px) { .yk-reviews .ak-reviews { align-items: start; padding-bottom: 36px; }
  .yk-reviews .ak-review:nth-child(2) { transform: translateY(36px); } }
.yk-reviews .ak-review { padding: 24px 26px 20px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--sun-coral), var(--sun-amber)) 1; border-radius: 0 0 16px 16px; }
.yk-reviews .ak-review blockquote p { font-size: 1.25rem; }

/* Steps as numbered cards */
.yk-steps li { box-shadow: var(--ak-shadow); }

/* Installer */
.yk-installer .ak-aside { display: grid; gap: 20px; }
.yk-us .ak-ring { margin-bottom: 14px; }
.yk-us p { color: var(--ink) !important; }
.yk-farms { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--sky); }
.yk-farms h3 { margin: 0; font-size: 1.125rem; }
.yk-farms p { margin-top: 6px; color: var(--ink-soft); line-height: 1.6; }

/* Read next: a compact row of links */
.area-yorkshire .ak-related .section-head h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.area-yorkshire .ak-related .related li a::after { content: " \2192"; color: var(--sun-coral); }

/* Tablets: no card left on its own */
@media (min-width: 700px) and (max-width: 999px) { .yk-plan-cards .ak-card:last-child { grid-column: 1 / -1; } }
