/* /solar-panels-barnsley/ (16 Oct 2026): two kinds of Barnsley, either side of the M1. The hero is the page's own
   figures as tiles; the borough's two halves are a pair of contrasting panels with the motorway between them. */

/* ---------- Hero: the figures as tiles, on the left ---------- */
.ba-tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-tile { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border-radius: 18px; background: var(--paper);
  box-shadow: var(--ak-shadow); }
.ba-tile dt { color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.ba-tile dd { margin: 0; }
.ba-fig { order: -1; margin-bottom: 8px !important; font: 500 clamp(2.4rem, 1.7rem + 1.8vw, 3.25rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.ba-fig small { font: 500 1rem/1 var(--text); color: var(--ink-soft); letter-spacing: 0; margin-right: 6px; }
.ba-tile--miles .ba-fig small { margin: 0 0 0 4px; font: 500 1.375rem/1 var(--display); color: var(--ink); }
.ba-tile--wide { grid-column: 1 / -1; padding: 26px 26px 22px; border: 3px solid transparent;
  background: url("../sun-arc.svg") right -110px top -130px / 240px 240px no-repeat padding-box, linear-gradient(var(--paper), var(--paper)) padding-box, var(--ak-sun) border-box; }
.ba-tile--wide .ba-fig { font-size: clamp(3.25rem, 2.2rem + 3vw, 4.75rem); letter-spacing: -0.03em; }
.ba-tile--wide dt { color: var(--ink); font-weight: 500; font-size: 1.125rem; }
.ba-cmp { display: grid; gap: 10px; margin-top: 18px !important; }
.ba-cmp-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 3.4rem; gap: 12px; align-items: center; font-size: .9375rem; color: var(--ink-soft); }
.ba-cmp-row strong { font: 600 1rem/1 var(--display); color: var(--ink); text-align: right; }
.ba-cmp-track { position: relative; height: 10px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.ba-cmp-track span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--sun-coral), var(--sun-amber)); }
.ba-cmp-row--eng .ba-cmp-track span { background: var(--line-strong); }
.ba-src { order: 9; margin-top: 14px !important; font-size: .875rem; color: var(--ink-soft); }
.ba-tile--miles { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; padding: 16px 22px; background: var(--paper); }
.ba-tile--miles .ba-fig { margin: 0 !important; font-size: 2.125rem; white-space: nowrap; }
.ba-tile--miles dt { position: relative; flex: 1 1 auto; padding-left: 18px; border-left: 2px dashed var(--line-strong); }
.ba-hero .ak-acc { max-width: 38rem; }
@media (min-width: 1000px) {
  .ba-hero .ak-hero-aside { margin-top: 46px; }
  .ba-hero .ak-hero-aside::before { left: -260px; top: -150px; }
}
@media (max-width: 999px) {
  .ba-hero .ak-hero-grid { display: flex; flex-direction: column; }
  .ba-hero .ak-hero-act { order: 2; }
  .ba-hero .ak-hero-aside { order: 3; margin-top: 8px; }
}
@media (max-width: 420px) {
  .ba-tile { padding: 18px 16px 16px; }
  .ba-tile--wide { padding: 22px 18px 18px; }
  .ba-tile dt { font-size: .9375rem; }
  .ba-cmp-row { grid-template-columns: 4.6rem minmax(0, 1fr) 3.2rem; gap: 8px; }
}

/* ---------- Two kinds of Barnsley: the pair of panels, with the M1 between ---------- */
.ba-two .section-head { margin-bottom: 18px; }
.ba-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ba-lead { margin: 0 0 18px; font: 500 clamp(1.375rem, 1.1rem + .9vw, 1.75rem)/1.3 var(--display); color: var(--ink); }
.ba-cell { padding: 22px 22px 20px; border-radius: 18px; }
.ba-cell p { color: var(--ink); font-size: 1.125rem; line-height: 1.6; }
.ba-cell--east { background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--ak-shadow); }
.ba-cell--west { background: var(--sky); }
.ba-side { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 .9375rem/1.2 var(--text) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft) !important; }
.ba-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ak-sun); }
.ba-cell--west .ba-dot { background: var(--paper); border: 3px solid var(--ink); width: 13px; height: 13px; }
.ba-mid { margin: 8px 0; text-align: center; }
.ba-mid span { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 12px 26px -16px rgba(38, 40, 42, .45);
  font: 500 1.125rem/1.3 var(--display); color: var(--ink); }
.ba-pair-bg, .ba-road { display: none; }
.ba-art { display: block; width: 100%; max-width: 330px; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-art .warm { stroke: var(--sun-coral); stroke-width: 1.8; }

@media (min-width: 900px) {
  .ba-pair { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 0; }
  .ba-lead { grid-column: 1 / -1; grid-row: 1; margin-bottom: 30px; }
  .ba-pair-bg { display: block; grid-row: 2 / 5; border-radius: 26px; padding: 34px 38px 0; }
  .ba-pair-bg--east { grid-column: 1; border: 3px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ak-sun) border-box; box-shadow: var(--ak-shadow); }
  .ba-pair-bg--west { grid-column: 3; background: var(--sky); }
  .ba-road { display: block; position: relative; grid-column: 2; grid-row: 2 / 5; margin: 26px 22px; border-radius: 6px; background: var(--line);
    background-image: linear-gradient(var(--paper) 50%, transparent 50%); background-size: 2px 22px; background-repeat: repeat-y; background-position: center top; }
  .ba-road span { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 .9375rem/1 var(--text); letter-spacing: .02em; }
  .ba-cell { position: relative; z-index: 1; padding: 0 40px; border-radius: 0; background: none !important; box-shadow: none !important; }
  .ba-cell--east { grid-column: 1; } .ba-cell--west { grid-column: 3; }
  .ba-r1 { grid-row: 2; padding-top: 146px; padding-bottom: 6px; }
  .ba-r3 { grid-row: 4; padding-top: 6px; padding-bottom: 40px; }
  .ba-side--m { display: none !important; }
  .ba-cell p:not(.ba-side) { font-size: 1.1875rem; }
  .ba-r1 p:not(.ba-side) { font: 500 clamp(1.25rem, 1rem + .6vw, 1.4375rem)/1.45 var(--display); }
  .ba-mid { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 3; margin: 26px 0; }
  .ba-mid::before { content: ""; position: absolute; left: 40px; right: 40px; top: 50%; border-top: 1px solid var(--line); z-index: -1; }
}
@media (min-width: 900px) and (max-width: 1100px) { .ba-cell { padding-left: 30px; padding-right: 30px; } .ba-pair-bg { padding: 30px 30px 0; } }

/* ---------- Planning ---------- */
.ba-planning .ak-ticks--cards { margin-top: 20px; }
.ba-planning .ak-aside { display: grid; gap: 18px; }
@media (min-width: 900px) { .ba-planning .ak-aside { position: sticky; top: 110px; margin-top: 78px; } }
.ba-rule-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--ink) !important; }
.ba-rule-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ak-sun); }
.ba-rules > p:not(.ba-rule-label) { color: var(--ink); font-size: 1.125rem; line-height: 1.6; }
.ba-who { display: grid; gap: 0; padding: 6px 22px; border-radius: 18px; background: var(--paper); box-shadow: var(--ak-shadow); }
.ba-who-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--ink-soft); line-height: 1.35; }
.ba-who-row + .ba-who-row { border-top: 1px solid var(--line); }
.ba-who-row .ak-ring { width: 44px; height: 44px; } .ba-who-row .sp-icon { width: 24px; height: 24px; }
.ba-who-row strong { display: block; font-weight: 600; color: var(--ink); }

/* ---------- Solar is already big in Barnsley: the strip ---------- */
.ba-strip { margin-bottom: clamp(32px, 4vw, 48px); padding: clamp(26px, 3vw, 38px) clamp(22px, 3vw, 40px); border-radius: 24px;
  background: url("../sun-arc.svg") right -150px bottom -210px / 380px 380px no-repeat, var(--sky); }
.ba-strip > div { padding-top: 4px; padding-bottom: 4px; }
.ba-strip dd:not(.ak-stats-src) { font-size: clamp(2.5rem, 1.7rem + 2.4vw, 3.75rem); letter-spacing: -0.03em; }
.ba-strip dt { max-width: 17rem; color: var(--ink); }
.ba-strip > div { border-left-color: var(--line-strong); }
.ba-local-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .ba-local-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: center; } }
.ba-local-text { font-size: 1.1875rem; line-height: 1.65; color: var(--ink-soft); max-width: 40rem; }
.ba-quote-note { box-shadow: 0 0 0 1px var(--line), var(--ak-shadow); }

/* ---------- Getting connected: one line, so a slim band ---------- */
.ba-grid { padding: clamp(48px, 6vw, 80px) 0; }
.ba-grid .wrap { display: grid; gap: 18px; }
.ba-grid .section-head { margin: 0; display: flex; align-items: center; gap: 18px; }
.ba-grid .section-head .ak-ring--lg { margin: 0; }
.ba-grid .wrap > p { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; max-width: 44rem; }
@media (min-width: 900px) { .ba-grid .wrap { grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; } .ba-grid h2 { white-space: nowrap; } }

/* ---------- Reviews: a stepped stack beside the heading ---------- */
.ba-reviews .ak-ratings { margin-top: 18px; flex-direction: column; gap: 8px; }
.ba-reviews .ak-reviews { gap: 14px; }
@media (min-width: 900px) {
  .ba-reviews .ak-text { position: sticky; top: 120px; padding-top: 12px; }
  .ba-reviews .ak-review:nth-child(2) { margin-left: 56px; }
  .ba-reviews .ak-review:nth-child(3) { margin-left: 112px; }
}

/* ---------- FAQs: numbered cards, two by two ---------- */
.area-barnsley .ak-faq .faq { counter-reset: ba-q; }
.area-barnsley .ak-faq .faq details { counter-increment: ba-q; }
.area-barnsley .ak-faq .faq summary { display: flex; align-items: center; gap: 16px; }
.area-barnsley .ak-faq .faq summary::before { content: counter(ba-q); flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid transparent; background: var(--ak-ring-bg); font: 600 1rem/1 var(--display); color: var(--ink); }
.area-barnsley .ak-faq .faq details p { padding-left: 54px; }
@media (min-width: 900px) { .area-barnsley .ak-faq .faq summary { min-height: 104px; } }

/* ---------- Nearby ---------- */
.ba-near .ak-near-list { max-width: none; }
.ba-near .ak-map { box-shadow: var(--ak-lift); }
/* Between 1000 and 1180px the words' column is too narrow for the ratings pill on one line, so it is set a size smaller */
@media (min-width: 1000px) and (max-width: 1179px) { .ba-hero .hh-rating { font-size: .8125rem; gap: 6px 10px; padding: 7px 14px; } .ba-hero .hh-rating-g { padding-left: 10px; } .ba-hero .hh-rating .stars { font-size: .875rem; } }
