/* /solar-panels-lincoln/ (16 Oct 2026): our LN4 job in the hero, running off the edge of the page; the city's two
   halves as contrasting cards; the homes as three figures; the checklist as ticked cards; the reviews climbing. */

/* ---------- Hero: the LN4 roof, bleeding off the right edge ---------- */
.li-hero-photo { padding: clamp(10px, 1.2vw, 14px); }
.li-hero-photo .ak-photo-img { height: clamp(380px, 40vw, 560px); object-fit: cover; object-position: 50% 42%; }
@media (min-width: 1000px) {
  .li-hero .ak-hero-aside { margin-top: 18px; }
  .li-hero-photo { border-radius: 26px 0 0 26px; border-right: 0; padding-right: 0; }
  .li-hero-photo .ak-photo-img { border-radius: 16px 0 0 16px; }
  .li-hero-photo figcaption { padding-right: 24px; }
}
@media (max-width: 999px) { .li-hero-photo { max-width: 34rem; } .li-hero-photo .ak-photo-img { height: auto; aspect-ratio: 4 / 4.2; } .li-hero .ak-hero-act { order: 1; } .li-hero .ak-hero-aside { order: 2; } }

/* ---------- The LN4 job: the map and the other two photos ---------- */
.li-install .section-head p { color: var(--ink); }
.li-install-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .li-install-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; } }
.li-install-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 520px) { .li-install-photos { grid-template-columns: minmax(0, 1fr); } }
.li-step-photo { box-shadow: var(--ak-shadow); }
.li-step-photo .ak-photo-tag { font-size: .875rem; padding: 5px 12px; }
.li-map { box-shadow: var(--ak-lift); }

/* ---------- Uphill and downhill: two contrasting cards joined by Steep Hill ---------- */
.li-hill .section-head { max-width: 48rem; }
.li-hill .section-head p { color: var(--ink); font-size: 1.1875rem; line-height: 1.65; }
.li-halves { display: grid; gap: 16px; }
.li-half { padding: clamp(24px, 3vw, 36px); border-radius: var(--ak-radius); }
.li-half .ak-ring { margin-bottom: 18px; }
.li-half-name { font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
.li-half-fig { margin-top: 6px; font: 500 clamp(2.75rem, 1.6rem + 2.6vw, 4.5rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.li-half-where { margin-top: 10px; color: var(--ink); font-size: 1.125rem; line-height: 1.5; max-width: 20rem; }
.li-half--down { background: var(--sky); }
.li-half--up { border: 3px solid transparent; background: url("../sun-arc.svg") right -110px top -120px / 240px 240px no-repeat padding-box, linear-gradient(var(--paper), var(--paper)) padding-box, var(--ak-sun) border-box; box-shadow: var(--ak-lift); }
.li-link { display: flex; justify-content: center; }
.li-link svg { display: none; }
.li-link-label { padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem; line-height: 1.3; text-align: center; }
@media (min-width: 900px) {
  .li-halves { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 5fr); gap: 0; align-items: end; }
  .li-half--up { margin-bottom: 96px; }
  .li-link { position: relative; align-self: stretch; display: block; }
  .li-link svg { display: block; position: absolute; left: 0; right: 0; top: 24%; width: 100%; height: 52%; overflow: visible; }
  .li-link path { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-dasharray: 3 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .li-link-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% + 28px); border-radius: 18px; padding: 8px 16px; }
}

/* ---------- City homes and village homes: three figures ---------- */
.li-homes .section-head { max-width: 48rem; }
.li-home-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .li-home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.li-home-cards li { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.li-home-fig { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.li-home-fig strong { display: block; margin-bottom: 6px; font: 500 clamp(2.25rem, 1.8rem + 1.6vw, 3rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.li-home-cards li > p:last-child { color: var(--ink-soft); line-height: 1.6; font-size: 1.0625rem; }
.li-home-cards li > p:last-child strong { color: var(--ink); }

/* ---------- The checklist ---------- */
@media (min-width: 900px) { .li-choose .ak-text { position: sticky; top: 110px; } }
.li-choose .ak-text > p { color: var(--ink); font-size: 1.1875rem; }
.li-choose .ak-ticks--cards li { padding: 20px 22px 20px 56px; color: var(--ink-soft); line-height: 1.6; }
.li-choose .ak-ticks--cards li::before { left: 20px; top: 23px; }
.li-choose .ak-ticks--cards strong { display: block; margin-bottom: 4px; font: 600 1.125rem/1.35 var(--display); color: var(--ink); }

/* ---------- Planning: the eleven areas as names ---------- */
.li-planning .ak-aside { display: grid; gap: 16px; }
.li-ca-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.li-ca-head p { font: 600 1.1875rem/1.3 var(--display); color: var(--ink) !important; }
.li-ca-chips { gap: 8px; }
.li-ca-chips span { min-height: 36px; padding: 5px 14px; font-size: .9375rem; background: var(--sky); box-shadow: none; }
.li-ca-chips li:first-child span { background: var(--ak-sun); }

/* ---------- Battery: the figures, and where one can and can't go ---------- */
.li-batt-top { display: grid; gap: 28px; }
@media (min-width: 900px) { .li-batt-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 64px); align-items: center; } }
.li-batt-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.li-batt-rings dd:not(.ak-stats-src) { font-size: 1.625rem; text-align: center; line-height: 1.1; padding: 0 12px; }
.li-where { display: grid; gap: 22px; margin-top: clamp(36px, 4vw, 56px); padding: clamp(24px, 3vw, 36px); border-radius: var(--ak-radius); background: var(--sky); }
@media (min-width: 900px) { .li-where { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 48px); align-items: start; } }
.li-where-text h3 { font-size: 1.3125rem; }
.li-where-text p { margin-top: 10px; color: var(--ink-soft); line-height: 1.65; }
.li-where-cols { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .li-where-cols { grid-template-columns: minmax(0, 1fr); } }
.li-where-col { padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: var(--ak-shadow); }
.li-where-col .ak-ring { width: 44px; height: 44px; margin-bottom: 12px; }
.li-where-col .sp-icon { width: 24px; height: 24px; }
.li-where-head { font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.li-where-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.li-where-col li { padding-left: 18px; position: relative; color: var(--ink-soft); line-height: 1.4; }
.li-where-col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-amber); }
.li-where-col--no li::before { background: var(--line-strong); }

/* ---------- Bills: the words, and a rail of figures ---------- */
.li-energy-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .li-energy-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .li-rail-wrap { position: sticky; top: 110px; } }
.li-energy .ak-body > h3 { font-size: 1.3125rem; }
.li-energy .ak-body a { color: var(--ink); font-weight: 500; }
.li-rail-wrap { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.li-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
.li-rail > div { padding: 16px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
.li-rail > div:first-child { border-top: 0; padding-top: 0 !important; }
.li-rail > div:last-child { padding-bottom: 0 !important; }
.li-rail dd:not(.ak-stats-src) { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); }
.li-rail > div:first-child dd:not(.ak-stats-src) { color: transparent; background: var(--ak-sun); -webkit-background-clip: text; background-clip: text; }
.li-rail dt { font-size: .9375rem; }

/* ---------- Grants and the network ---------- */
.li-grant-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .li-grant-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; } }
.li-grant .ak-ring { margin-bottom: 14px; }
.li-grant p { color: var(--ink) !important; font-size: 1.125rem; line-height: 1.65; }
.li-network { padding: clamp(22px, 2.8vw, 34px); border-radius: var(--ak-radius); background: var(--sky); }
.li-network .ak-ring { margin-bottom: 14px; }
.li-network p { color: var(--ink); line-height: 1.65; font-size: 1.0625rem; }

/* ---------- Process ---------- */
.li-process .ak-text > p:first-of-type { color: var(--ink); font-size: 1.1875rem; }
.li-proc-card { display: grid; gap: 22px; padding: clamp(22px, 2.8vw, 32px); border-radius: var(--ak-radius); background: var(--paper); box-shadow: var(--ak-shadow); }
.li-journey { background: var(--sky); box-shadow: none; }
.li-proc-stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
.li-proc-stats > div { padding: 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
.li-proc-stats > div:first-child { border-top: 0; padding-top: 0 !important; }
.li-proc-stats dd:not(.ak-stats-src) { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
@media (max-width: 480px) { .li-journey { flex-direction: column; border-radius: 20px; gap: 8px; } .li-journey .ak-journey-end, .li-journey .ak-journey-end--to { text-align: center; }
  .li-journey .ak-journey-line { flex: none; width: 2px; height: 44px; min-width: 0; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 11px); } }

/* ---------- Reviews: climbing, like Steep Hill ---------- */
@media (min-width: 800px) {
  .li-reviews .ak-reviews--grid { align-items: start; padding-top: 48px; }
  .li-reviews .ak-review:nth-child(2) { transform: translateY(-24px); }
  .li-reviews .ak-review:nth-child(3) { transform: translateY(-48px); }
  .li-reviews .ak-review:nth-child(3) { border: 3px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ak-sun) border-box; }
}
