/* /solar-panels-derby/ (16 Oct 2026): our DE21 install. The finished roof in the hero; the job's photos beside what
   customers say; the services as three large cards; the nearby towns on the map. */

/* Hero: the finished roof, framed in the sun ring, with its tag */
.db-hero-photo img { aspect-ratio: 3 / 2.3; object-fit: cover; object-position: center 45%; }
@media (min-width: 1000px) { .db-hero .ak-hero-aside { margin-top: 44px; } .db-hero-photo { transform: rotate(1.2deg); } }

/* Intro: the words with the homes as tiles, the price beside, then the three services large */
.db-stats { margin-top: 26px !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.db-stats > div { padding: 18px 18px 16px; }
.db-stats dd:not(.ak-stats-src) { font-size: clamp(1.875rem, 1.5rem + 1vw, 2.375rem); }
.db-stats dt { font-size: .9375rem; color: var(--ink); }
@media (max-width: 560px), (min-width: 900px) and (max-width: 1149px) {
  .db-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .db-stats > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; }
  .db-stats dd:not(.ak-stats-src) { grid-column: 1; grid-row: 1 / span 2; }
  .db-stats dt { grid-column: 2; margin: 0; }
  .db-stats dd.ak-stats-src { grid-column: 2; order: 0; margin-top: 2px; }
}
.db-what { margin-top: clamp(40px, 5vw, 64px); }
.db-what h3 { font-size: 1.5rem; margin-bottom: 20px; }
.db-what .ak-services { gap: clamp(14px, 2vw, 22px); }
.db-what .ak-services a { flex-direction: column; align-items: flex-start; gap: 22px; min-height: 100%; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--ak-radius); font: 500 clamp(1.375rem, 1.15rem + .7vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.01em;
  background: linear-gradient(var(--paper), var(--paper)) padding-box; position: relative; overflow: hidden; }
.db-what .ak-services a::before { content: ""; position: absolute; right: -110px; bottom: -130px; width: 240px; height: 240px;
  background: url("../sun-arc.svg") center / contain no-repeat; opacity: .55; pointer-events: none; }
.db-what .ak-services a::after { position: absolute; right: clamp(24px, 3vw, 34px); top: clamp(28px, 3.4vw, 40px); margin: 0; padding: 0; font-size: 1.5rem; }
.db-what .ak-services .ak-ring { width: 68px; height: 68px; border-width: 3px; }
.db-what .ak-services .sp-icon { width: 34px; height: 34px; }
.db-what .ak-services li { display: flex; }
.db-what .ak-services li > a { width: 100%; }
@media (max-width: 799px) {
  .db-what .ak-services a { flex-direction: row; align-items: center; gap: 18px; padding: 18px 56px 18px 18px; font-size: 1.3125rem; }
  .db-what .ak-services a::after { top: 50%; transform: translateY(-50%); right: 22px; }
  .db-what .ak-services .ak-ring { width: 58px; height: 58px; }
  .db-what .ak-services .sp-icon { width: 30px; height: 30px; }
}

/* The install beside the reviews */
.db-proof-grid { display: grid; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 960px) { .db-proof-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; } }
.db-proof .section-head { margin-bottom: 26px; }
.db-says .section-head { margin-bottom: 26px; }
.db-job-photos { display: grid; gap: 18px; }
@media (min-width: 600px) { .db-job-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.db-job-photos figure { margin: 0; padding: 10px; border-radius: 20px; background: var(--paper); box-shadow: var(--ak-shadow); }
.db-job-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 13px; background: var(--line); }
@media (min-width: 960px) { .db-job-img { aspect-ratio: 4 / 5; } .db-job-photos figure:first-child .db-job-img { object-position: 38% center; } .db-job-photos figure:last-child .db-job-img { object-position: 58% center; } }
.db-job-photos figcaption { padding: 12px 8px 4px; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
@media (min-width: 960px) { .db-says { padding-top: 0; } }

/* Costs: the grant on the left, the guides on the right */
.db-costs .ak-text > p { color: var(--ink); font-size: 1.1875rem; }
.db-costs-lead { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; margin-bottom: 16px; }
.db-costs .ak-ticks--cards a { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .db-costs .ak-aside { padding-top: 8px; } }

/* How it works, with the milestone and the warranties */
.db-how .ak-text > p:first-of-type { color: var(--ink); font-size: 1.1875rem; }
.db-how .ak-text a { font-weight: 600; }
.db-how .ak-aside { display: grid; gap: 18px; }
.db-mile { padding: 18px 22px 18px 18px; border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.db-mile .ak-mile-dial { width: 104px; }
.db-mile .ak-mile-dial svg { filter: none; }

/* Planning: the places as chips */
.db-planning .ak-text > p:first-of-type { color: var(--ink); }
.db-planning .ak-aside { display: grid; gap: 16px; }
.db-places { padding: clamp(22px, 2.8vw, 32px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--ak-lift);
  border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--sun-coral), var(--sun-amber)) 1; }
.db-places-fig { margin-bottom: 16px; color: var(--ink-soft); line-height: 1.5; }
.db-places-fig strong { display: block; margin-bottom: 6px; font: 500 clamp(3rem, 2.4rem + 2vw, 4rem)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
@media (min-width: 900px) { .db-planning .ak-aside { margin-top: 40px; } }

/* Questions: two across, the longest across the full width under them */
@media (min-width: 900px) {
  .area-derby .ak-faq--two .faq details:nth-child(3) { grid-column: 1 / -1; }
}

/* Nearby: the map beside the cards */
.db-near .ak-near-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
