

/* Homepage scenario cards */
.sp-scene-grid > a.sp-card { min-height: 20rem; display:flex; flex-direction:column; }
.sp-scene-grid > a.sp-card > p { min-height:5.5rem; }
.sp-scene-grid > a.sp-card .sp-scene-cta,
.sp-scene-grid > a.sp-card > span.inline-block { margin-top:auto; display:inline-flex; align-items:center; gap:.35rem; font-weight:800; color:#0b1f2a; text-decoration:underline; text-underline-offset:3px; }
.sp-scene-grid > a.sp-card:hover .sp-scene-cta,
.sp-scene-grid > a.sp-card:hover > span.inline-block { color:#b83f1a; }
@media (max-width:800px) {
  .sp-scene-grid > a.sp-card { min-height:unset; }
  .sp-scene-grid > a.sp-card > p { min-height:unset; }
}

/* Existing homepage scenario card styles */
.sp-scene-grid .sp-card { min-height: 15rem; display:flex; flex-direction:column; }
.sp-scene-grid .sp-card p { max-width: 32ch; }
.sp-scene-grid .sp-card > a, .sp-scene-grid .sp-card > span:last-child { margin-top:auto; }
.sp-scene-grid .sp-card.border-signal { box-shadow: 0 10px 26px rgba(239,100,55,.12); }
.sp-scene-grid .sp-card:hover { box-shadow: 0 18px 40px rgba(11,31,42,.14); }

.sp-hero-summary { display:grid; grid-template-columns:1fr 1fr auto; gap:1rem; align-items:end; margin-top:2rem; padding:1rem; border:1px solid rgba(255,255,255,.22); border-radius:1rem; background:rgba(255,255,255,.08); }
.sp-hero-summary > div { display:grid; gap:.35rem; }
.sp-hero-summary .sp-kicker { color:#f6c9bb; }
.sp-hero-summary strong { color:#fff; font-size:1rem; line-height:1.35; }
.sp-hero-summary .sp-btn { white-space:nowrap; }
.sp-scenario-content h2 { padding-top:1.2rem; }
.sp-scenario-content h2::before { content:""; display:block; width:2.5rem; height:3px; margin-bottom:.8rem; background:var(--color-signal); border-radius:999px; }
.sp-scenario-content h2:first-of-type::before { display:none; }
.sp-scenario-content h3 { color:#274f5d; }
.sp-scenario-content table tr:nth-child(even) td { background:#faf8f2; }
.sp-scenario-content table td:first-child { font-weight:700; color:#0b1f2a; }
.sp-scenario-content strong { color:#163d49; }
.sp-scenario-content hr { margin:2.5rem 0; border-color:#d8d2c5; }
.sp-scenario-content > h2[id], .sp-scenario-content > h3[id] { scroll-margin-top:2rem; }

.sp-methodology-page .sp-prose { max-width: none; }
.sp-methodology-page .sp-prose > .lead { font-size:1.3rem; line-height:1.65; color:#38515c; max-width:52rem; }
.sp-callout { margin:1.5rem 0; padding:1rem 1.2rem; border-left:4px solid var(--color-signal); border-radius:0 .75rem .75rem 0; background:#eef3ed; color:#274f5d; }
.sp-callout--warm { background:#fff4ef; }
.sp-method-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.5rem 0 2rem; }
.sp-method-steps > div, .sp-label-grid > div { background:#fffdf7; border:1px solid var(--color-line); border-radius:1rem; padding:1.15rem; box-shadow:0 8px 20px rgba(11,31,42,.05); }
.sp-method-steps span { display:inline-flex; width:2rem; height:2rem; align-items:center; justify-content:center; border-radius:50%; background:var(--color-signal); color:#fff; font:700 .75rem var(--font-mono); }
.sp-method-steps h3 { margin-top:.7rem; color:#0b1f2a; }
.sp-label-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.5rem 0 2rem; }
.sp-label-grid strong { color:#b83f1a; }
.sp-status-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 2rem; }
.sp-status-row span { padding:.45rem .7rem; border-radius:999px; background:#edf1ee; color:#274f5d; font-size:.85rem; font-weight:700; }
.sp-cta-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.5rem; }
.sp-cta-grid a { display:grid; gap:.5rem; padding:1.1rem; border:1px solid var(--color-line); border-radius:1rem; background:#fffdf7; text-decoration:none; }
.sp-cta-grid a:hover { border-color:var(--color-signal); transform:translateY(-2px); }
.sp-cta-grid span { color:var(--color-muted); font-size:.95rem; }
@media (max-width:800px) { .sp-method-steps,.sp-label-grid,.sp-cta-grid { grid-template-columns:1fr; } }

/* Compact reading rhythm and mobile-safe calls to action */
.sp-scenario-content.sp-prose { font-size:1.04rem; line-height:1.68; }
.sp-scenario-content.sp-prose p { margin-top:1rem; margin-bottom:1rem; }
.sp-scenario-content.sp-prose ul, .sp-scenario-content.sp-prose ol { margin-top:.8rem; margin-bottom:1rem; }
.sp-scenario-content.sp-prose li { margin:.3rem 0; }
.sp-scenario-content.sp-prose h2 { margin-top:2rem; margin-bottom:.55rem; }
.sp-scenario-content.sp-prose h3 { margin-top:1.35rem; margin-bottom:.4rem; }
.sp-hero-summary .sp-btn { min-width:0; max-width:100%; text-align:center; white-space:normal; }
@media (max-width:800px) {
  .sp-hero-summary { grid-template-columns:1fr; align-items:stretch; gap:.8rem; padding:.9rem; }
  .sp-hero-summary .sp-btn { width:100%; min-height:2.75rem; line-height:1.25; padding:.7rem .85rem; }
  .sp-scenario-lede { font-size:1.05rem; }
  .sp-scenario-content.sp-prose { font-size:1rem; line-height:1.62; }
  .sp-scenario-content.sp-prose h2 { margin-top:1.65rem; }
  .sp-scenario-content.sp-prose h3 { margin-top:1.1rem; }
}

/* Scenario Planning Hub components */
.sp-scenario-hero { background: linear-gradient(135deg, #0b1f2a 0%, #153746 68%, #214655 100%); color: #fffdf7; }
.sp-status-pill { display:inline-flex; align-items:center; border:1px solid rgba(239,100,55,.7); color:#ffd2c3; border-radius:999px; padding:.35rem .7rem; font:700 .68rem/1.1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.sp-scenario-lede { max-width: 48rem; margin-top: 1.25rem; color:#dce8e8; font-size:1.18rem; line-height:1.65; }
.sp-step-row { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.8rem; }
.sp-step-row span { border:1px solid rgba(255,255,255,.25); color:#c7d5d7; border-radius:999px; padding:.55rem .75rem; font-size:.8rem; }
.sp-step-row span.is-active { border-color:#ef6437; background:#ef6437; color:#fff; }
.sp-scenario-layout { display:grid; grid-template-columns: minmax(12rem, .28fr) minmax(0, .72fr); gap:3.5rem; padding-top:3.5rem; padding-bottom:5rem; align-items:start; }
.sp-scenario-aside { position:sticky; top:1.5rem; display:grid; gap:1rem; }
.sp-aside-card { background:#fffdf7; border:1px solid #d8d2c5; border-radius:1rem; padding:1.2rem; box-shadow:0 8px 24px rgba(11,31,42,.06); }
.sp-aside-note { background:#eef3ed; border-color:#cbd8ca; color:#38513c; }
.sp-anchor-nav { display:grid; gap:.7rem; margin-top:1rem; }
.sp-anchor-nav a { color:#0b1f2a; font-weight:700; text-decoration:none; border-left:2px solid #d8d2c5; padding-left:.7rem; }
.sp-anchor-nav a:hover { color:#b83f1a; border-color:#ef6437; }
.sp-scenario-content { min-width:0; }
.sp-scenario-content > :first-child { margin-top:0; }
.sp-scenario-content h2 { scroll-margin-top:1.5rem; }
.sp-scenario-content h2:first-of-type { margin-top:0; }
.sp-scenario-content table { width:100%; display:table; font-size:.95rem; border:1px solid #d8d2c5; border-radius:.75rem; overflow:hidden; }
.sp-scenario-content th { background:#0b1f2a; color:#fff; text-align:left; font-size:.8rem; letter-spacing:.04em; text-transform:uppercase; }
.sp-scenario-content th, .sp-scenario-content td { padding:.8rem .9rem; border-bottom:1px solid #d8d2c5; vertical-align:top; }
.sp-scenario-content tr:last-child td { border-bottom:0; }
.sp-scenario-content blockquote { background:#fff4ef; border-left-color:#ef6437; border-radius:0 .75rem .75rem 0; padding:1rem 1.2rem; }
.sp-scenario-content code { background:#edf1ee; border:1px solid #d8d2c5; border-radius:.45rem; padding:.12rem .35rem; font-size:.9em; }
.sp-scenario-content a { font-weight:700; }
.sp-scenario-content ul, .sp-scenario-content ol { padding-left:1.35rem; }
.sp-scenario-content li { margin:.45rem 0; }
@media (max-width: 800px) {
  .sp-scenario-layout { grid-template-columns:1fr; gap:1.5rem; padding-top:2rem; }
  .sp-scenario-aside { position:static; grid-template-columns:1fr; }
  .sp-scenario-hero .sp-display { font-size:clamp(2.6rem, 12vw, 4.5rem); }
  .sp-step-row { display:grid; grid-template-columns:1fr 1fr; }
  .sp-step-row span { text-align:center; }
  .sp-scenario-content table { display:block; overflow-x:auto; white-space:normal; }

/* Solar guide reading aids: emphasize the answer and keep FAQ scannable. */
.sp-summary-box { background:#fff4ef; border:1px solid #f0b6a4; border-radius:1rem; padding:1.25rem 1.35rem; margin:1.5rem 0 2rem; }
.sp-summary-box h2 { margin-top:0 !important; }
.sp-summary-box pre { background:#0b1f2a; color:#fffdf7; border-radius:.75rem; padding:1rem; overflow:auto; }
.sp-faq { border-top:1px solid #d8d2c5; margin-top:2.5rem; padding-top:.5rem; }
.sp-faq h2 { margin-top:1rem !important; }
.sp-faq h3 { background:#fffdf7; border:1px solid #d8d2c5; border-radius:.75rem; padding:.85rem 1rem; margin-top:1rem !important; margin-bottom:.35rem !important; }
.sp-faq h3 + p { padding:0 .25rem; }
}
