/* /areas/derbyshire/ (16 Oct 2026): a real install, hills, more councils than most and three network operators. The
   DE11 photo leads the hero; the Peak District is one big highlighted panel; councils and operators are cards. */

/* Every grid of this page's own: one column that can shrink, on a phone */
.db-where-grid, .db-cost-grid, .db-us-grid, .db-peak-cols, .db-peak-rules, .db-council-cards, .db-council-foot { grid-template-columns: minmax(0, 1fr); }

/* Hero: the DE11 photo in the sun-ringed frame */
@media (min-width: 1000px) { .db-hero .ak-hero-grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); column-gap: 40px; }
  .db-hero .ak-hero-aside { margin-top: 44px; } }
.db-hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* The install: the second photo, straight down on the roof */
.db-install .ak-text > p:first-of-type { font-size: 1.1875rem; color: var(--ink); }
.db-de11-chips { margin-top: 22px; }
.db-de11-chips li:first-child span { background: var(--ak-sun); box-shadow: none; font-weight: 600; }
.db-roof-photo { box-shadow: var(--ak-shadow); }

/* Where we install: a ruled list beside the map */
.db-where-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .db-where-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
}
.db-map-wrap { position: relative; }
@media (min-width: 900px) { .db-map-wrap { position: sticky; top: 110px; } }
.db-map-badge { position: absolute; z-index: 2; left: 18px; top: 18px; margin: 0; padding: 7px 14px; 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; }
.db-map-badge::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--ak-sun); }
.db-map { padding-top: 58px; }
.db-places { list-style: none; margin: 0; padding: 4px clamp(18px, 2.4vw, 28px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.db-places li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.db-places li:last-child { border-bottom: 0; }
.db-places .ak-ring { width: 44px; height: 44px; } .db-places .sp-icon { width: 24px; height: 24px; }
.db-places p { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 14px; margin: 0; }
.db-places a, .db-places .place { font: 500 1.25rem/1.3 var(--display); color: var(--ink); }
.db-places a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.db-places a:hover { text-decoration-color: var(--sun-coral); }
.db-mi { padding: 3px 11px; border-radius: 999px; background: var(--sky); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.db-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.db-dronfield { margin-top: 22px; padding: clamp(20px, 2.6vw, 28px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); border-left: 5px solid transparent;
  border-image: linear-gradient(var(--sun-coral), var(--sun-amber)) 1; border-radius: 0 var(--ak-radius) var(--ak-radius) 0; }
.db-dronfield h3 { font-size: 1.25rem; }
.db-dronfield p { margin-top: 8px; color: var(--ink-soft); line-height: 1.65; }

/* A recent Derbyshire install: the job and Mike's words */
.db-job-card { max-width: 56rem; margin: 0 auto; }
.db-job .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.db-job-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.db-job-head h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 500; }
.db-job .ak-reviews--quote .ak-review blockquote p { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

/* Roofs and hillsides: the compass of roof directions */
.db-roofs .ak-aside { display: grid; gap: 18px; }
@media (min-width: 900px) { .db-roofs .ak-aside { position: sticky; top: 110px; } }
.db-compass { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.db-compass svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.db-c-s { fill: url(#db-sun); }
.db-c-ew { fill: #f8d9b8; }
.db-c-n { fill: #fbeee0; }
.db-compass path:not(.db-c-roof) { stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.db-c-hub { fill: #fff; }
.db-c-roof { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.db-c-l { font: 600 17px/1 var(--display); fill: var(--ink); text-anchor: middle; }
.db-c-v { font: 600 14px/1 var(--text); fill: var(--ink); text-anchor: middle; }
.db-compass figcaption { margin-top: 14px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.db-sun-figs { margin: 0; padding: 6px clamp(18px, 2.4vw, 26px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.db-sun-figs div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.db-sun-figs div:last-child { border-bottom: 0; }
.db-sun-figs dt { color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.db-sun-figs dd { margin: 0; font: 500 1.5rem/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }

/* The Peak District: one highlighted panel under the hills icon */
.db-peak-panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(100px, 10vw, 140px);
  background: url("../sun-arc.svg") right -180px top -200px / 420px 420px no-repeat padding-box, linear-gradient(var(--paper), var(--paper)) padding-box, var(--ak-sun) border-box; }
.db-peak-head { display: flex; align-items: center; gap: 20px; }
.db-peak-head h2 { margin: 0; }
.db-peak-cols { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .db-peak-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); } }
.db-peak-cols p { color: var(--ink) !important; font-size: 1.125rem; line-height: 1.65; }
.db-peak-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .db-peak-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.db-peak-rules li { padding: 16px 18px; border-radius: 14px; background: var(--sky); }
.db-peak-rules strong { display: block; font-weight: 600; }
.db-peak-rules span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.db-peak-note { position: relative; z-index: 1; margin-top: 20px; }
.db-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 9vw, 110px); }
.db-ridge-back { fill: #fbeee0; }
.db-ridge-front { fill: #f8d9b8; }

/* Councils: one card each */
.db-lead { max-width: 44rem; margin: 0 0 22px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
.db-council-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .db-council-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .db-council-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.db-council-cards li { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--ak-shadow);
  font: 500 1.125rem/1.3 var(--display); color: var(--ink); }
.db-council-cards .ak-ring { width: 44px; height: 44px; } .db-council-cards .sp-icon { width: 24px; height: 24px; }
.db-council-cards .db-city { box-shadow: 0 0 0 2px var(--sun-amber), var(--ak-shadow); }
@media (max-width: 599px) { .db-council-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-council-cards li { padding: 12px 14px; font-size: 1rem; border-radius: 14px; }
  .db-council-cards .ak-ring { display: none; }
  .db-council-cards .db-city { grid-column: 1 / -1; } }
.db-council-foot { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .db-council-foot { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: center; } }
.db-pd { margin: 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }

/* Cost: the figures in sun rings, then the words, with "cheaper?" in its own card */
.db-cost-rings { margin-bottom: clamp(36px, 4.5vw, 56px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.db-cost-rings dd:not(.ak-stats-src) { width: 140px; height: 140px; font-size: 2rem; }
.db-cost-rings dt { max-width: 14rem; margin-top: 12px; }
@media (max-width: 899px) { .db-cost-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 420px) { .db-cost-rings dd:not(.ak-stats-src) { width: 118px; height: 118px; font-size: 1.625rem; } }
.db-cost-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .db-cost-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; } }
.db-cheaper { padding: clamp(22px, 2.8vw, 32px); border-radius: var(--ak-radius); background: var(--sky); }
.db-cheaper .ak-ring { margin-bottom: 14px; }
.db-cheaper h3 { font-size: 1.25rem; }
.db-cheaper p { margin-top: 8px; color: var(--ink-soft); line-height: 1.65; }
.db-cheaper .btn { margin-top: 20px; }

/* Battery: the three things to compare, as cards */
.db-batt-lead { margin-bottom: clamp(28px, 3.4vw, 40px); }
.db-batt-lead p { max-width: 52rem; }
.db-batt-cards .ak-card p { font-size: 1rem; }
.db-batt-foot { max-width: 52rem; margin: clamp(24px, 3vw, 36px) 0 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.65; }

/* Three network operators: three cards, numbered */
.db-grid .section-head { max-width: 52rem; }
.db-dno { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .db-dno { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.db-dno li { position: relative; 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); overflow: hidden; }
.db-dno li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--ak-sun); }
.db-dno-n { position: absolute; top: 14px; right: 22px; font: 500 4.5rem/1 var(--display); letter-spacing: -0.04em; color: var(--sky-deep); }
.db-dno .ak-ring { position: relative; }
.db-dno-where { margin: 18px 0 6px; font: 600 .875rem/1.3 var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--star); }
.db-dno h3 { font: 500 1.375rem/1.25 var(--display); }

/* Grants: 0% VAT */
.db-vat .ak-ring { margin-bottom: 12px; }
.db-vat-fig { font: 500 clamp(2.6rem, 1.9rem + 2.4vw, 3.5rem)/1 var(--display) !important; letter-spacing: -0.02em; color: var(--ink) !important; }
.db-vat p:not(.db-vat-fig) { margin-top: 10px !important; color: var(--ink) !important; }

/* Installer: the checks as numbered cards, then us and the day */
.db-checks { margin-bottom: 24px; }
.db-checks .ak-card h3 { padding-right: 32px; }
.db-us-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .db-us-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: stretch; } }
.db-us .ak-ring { margin-bottom: 14px; }
.db-us p { color: var(--ink) !important; }
.db-day { padding: clamp(22px, 2.8vw, 34px); border-radius: var(--ak-radius); background: var(--sky); }
.db-day .ak-ring { margin-bottom: 14px; }
.db-day h3 { font-size: 1.25rem; }
.db-day p { margin-top: 8px; color: var(--ink-soft); line-height: 1.65; }

/* Reviews: the rating beside the customers' words */
.db-score { display: flex; flex-direction: column; gap: 6px; margin-top: 26px !important; }
.db-score strong { font: 500 clamp(4rem, 3rem + 4vw, 6rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.db-score span { color: var(--ink-soft); font-size: 1.0625rem; }
.db-score .stars { color: var(--star); letter-spacing: 3px; font-size: 1.25rem; }
.db-reviews .ak-reviews--stack .ak-review { padding: 22px 26px 18px; }
.db-reviews .ak-reviews--stack .ak-review blockquote p { font-size: 1.25rem; }
@media (min-width: 900px) { .db-reviews .ak-reviews--stack .ak-review:nth-child(2) { margin-left: 48px; } .db-reviews .ak-reviews--stack .ak-review:nth-child(3) { margin-left: 96px; } }

/* The map: Peak District set faint across the hills */
.db-peak-label text { font-family: var(--text); font-weight: 600; fill: #8a949c; }

/* Tablets: no card left on its own, and the map kept to a sensible size */
@media (min-width: 700px) and (max-width: 999px) { .db-batt-cards .ak-card:last-child { grid-column: 1 / -1; } }
@media (min-width: 600px) and (max-width: 999px) { .db-council-cards .db-city { grid-column: 1 / -1; } }
@media (max-width: 899px) { .db-map-wrap { max-width: 460px; margin: 0 auto; width: 100%; } }
