/* Solentra Solar Brief: the hub (/solar-brief/) and story pages, written by
   scripts/solar-brief.mjs. Brand tokens only (the generator refuses a hex
   colour here). Loaded after styles.css and legal.css. */

/* ---------- level tag ---------- */
.bf-level{display:inline-flex;align-items:center;font-family:var(--font-display);font-weight:600;font-size:11.5px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--green-deep);background:var(--green-tint);
  border-radius:100px;padding:4px 10px;line-height:1.2}
.bf-level.is-global{color:var(--ink-soft);background:rgba(245,194,12,.2)}
.bf-level.is-local{color:var(--bg);background:var(--green-deep)}

/* ---------- story hero ---------- */
.bf-hero{padding-bottom:36px}
.bf-eyebrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bf-hero h1{text-wrap:balance;max-width:24ch}
.bf-hero .lead{text-wrap:pretty}
.bf-byline{margin:18px 0 0;font-size:14px;line-height:1.6;color:var(--text-soft);display:flex;flex-wrap:wrap;gap:4px 14px}
.bf-author{font-weight:600;color:var(--ink-soft)}
.bf-dates time,.bf-date{white-space:nowrap}
/* the current crumb is the headline: one line, ending in an ellipsis */
.bf-hero .breadcrumbs [aria-current]{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a hyphenated word never breaks at its hyphen */
.bf-nw{white-space:nowrap}
.bf-hero-stat{display:flex;align-items:center;gap:20px;margin-top:24px;padding:18px 22px;max-width:620px;
  background:var(--white,white);border:1px solid var(--border);border-left:4px solid var(--yellow);border-radius:18px;
  box-shadow:0 1px 2px rgba(15,26,20,.04),0 20px 44px -30px rgba(14,80,34,.3)}
.bf-hero-stat b{font-family:var(--font-display);font-weight:800;font-size:clamp(40px,6vw,60px);line-height:1;letter-spacing:-.035em;
  color:var(--green-deep);white-space:nowrap}
.bf-hero-stat span{font-size:15px;line-height:1.5;color:var(--ink-mute);max-width:34ch}

/* ---------- story body: the 840px reading column ---------- */
.bf-body{padding:clamp(36px,5vw,64px) 0 clamp(56px,8vw,96px)}
.container.bf-read{max-width:840px}
.bf-sec{margin:0 0 clamp(34px,4.5vw,48px)}
.bf-sec h2{font-family:var(--font-display);font-weight:700;font-size:clamp(22px,2.4vw,26px);line-height:1.2;letter-spacing:-.015em;
  color:var(--ink);margin:0 0 14px;text-wrap:balance}
/* a topic line under each fixed heading, so the headings say what the story is about */
.bf-h2-topic{display:block;text-wrap:pretty;margin-top:4px;font-size:.62em;font-weight:600;letter-spacing:0;line-height:1.35;color:var(--text-soft)}
.bf-sec p{font-size:17px;line-height:1.75;color:var(--ink-mute);margin:0 0 16px;max-width:36em}
.bf-sec p:last-child{margin-bottom:0}
.bf-sec strong{color:var(--ink-soft);font-weight:600}
.bf-sec a{color:var(--green-deep);font-weight:600;text-decoration-color:rgba(46,158,58,.45);text-underline-offset:3px}
.bf-sec a:hover{text-decoration-color:currentColor}
.bf-sec a:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:3px}

/* interpretation sits in its own panel, so fact and reading never blur */
.bf-could{background:var(--green-tint);border-left:3px solid var(--green);border-radius:0 18px 18px 0;padding:24px 26px}
.bf-could h2::before{content:'Our reading';display:block;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-ink);margin-bottom:8px}
.bf-you{border:1px solid var(--border);border-radius:18px;padding:24px 26px}

.bf-field-note{margin:0;padding:4px 0 4px 22px;border-left:3px solid var(--yellow)}
.bf-field-note p{font-size:18px;font-style:italic;color:var(--ink-soft)}
.bf-field-note footer{margin-top:10px;font-size:14px;font-weight:600;color:var(--text-soft)}

/* ---------- chart ---------- */
.bf-figure{margin:22px 0 0;padding:20px 20px 16px;border:1px solid var(--border);border-radius:18px;background:var(--bg)}
.bf-fig-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 14px}
.bf-fig-head b{font-family:var(--font-display);font-weight:600;font-size:16px;color:var(--ink)}
.bf-fig-head span{font-size:13.5px;color:var(--text-soft)}
.bf-chart{display:block;width:100%;height:auto;overflow:visible}
.bf-chart-wide{max-width:680px}
.bf-chart-narrow{display:none}
.bf-chart text{font-family:var(--font-body);fill:var(--ink-soft)}
.bf-chart .bf-lab{font-weight:500}
.bf-chart .bf-val{font-family:var(--font-display);font-weight:700;fill:var(--ink)}
.bf-chart .bf-tick{fill:var(--text-faint)}
.bf-chart .bf-band-lab{fill:var(--ink-mute);font-weight:600}
.bf-chart-wide .bf-lab,.bf-chart-wide .bf-val{font-size:15px}
.bf-chart-wide .bf-tick,.bf-chart-wide .bf-band-lab{font-size:12.5px}
.bf-chart-narrow .bf-lab,.bf-chart-narrow .bf-val{font-size:13px}
.bf-chart-narrow .bf-tick,.bf-chart-narrow .bf-band-lab{font-size:11px}
.bf-bar{fill:var(--green);fill-opacity:.36}
.bf-chart:not(:has(.is-hi)) .bf-bar{fill-opacity:.85}
.is-hi .bf-bar{fill-opacity:1}
.bf-grid{stroke:var(--border);stroke-width:1}
.bf-band{fill:var(--yellow);fill-opacity:.14}
.bf-line{fill:none;stroke:var(--green);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.bf-line.s2{stroke:var(--green-deep);stroke-dasharray:6 5}
.bf-dot{fill:var(--green);stroke:var(--bg);stroke-width:2}
.bf-dot.s2{fill:var(--green-deep)}
.bf-key-sw{fill:var(--green)}
.bf-key-sw.s2{fill:var(--green-deep)}
.bf-sec .bf-fig-note{font-size:13px;line-height:1.6;color:var(--text-faint);margin:12px 0 0}
.bf-data{margin-top:10px}
.bf-data summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;font-family:var(--font-display);
  font-weight:600;font-size:13.5px;color:var(--green-deep);padding:4px 0}
.bf-data summary::-webkit-details-marker{display:none}
.bf-data summary i{font-size:14px;transition:transform .2s ease}
.bf-data[open] summary i{transform:rotate(180deg)}
.bf-data summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:6px}
.bf-data-scroll{max-height:320px;overflow:auto;margin-top:8px;border:1px solid var(--border);border-radius:12px;background:var(--white,white)}
.bf-data-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.bf-data-table th,.bf-data-table td{padding:7px 12px;border-bottom:1px solid var(--border-faint);text-align:right}
.bf-data-table th[scope="row"],.bf-data-table thead th:first-child{text-align:left;font-weight:500;color:var(--ink-soft)}
.bf-data-table thead th{position:sticky;top:0;background:var(--bg);font-family:var(--font-display);font-size:12px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;color:var(--text-faint)}

/* ---------- sources, related, more ---------- */
.bf-src-list{margin:0;padding-left:22px}
.bf-src-list li{font-size:15px;line-height:1.65;color:var(--ink-mute);margin:0 0 8px;overflow-wrap:anywhere}
.bf-src-pub{font-weight:600;color:var(--ink-soft)}
.bf-src-list time{white-space:nowrap}
.bf-sec .bf-src-list a{font-weight:500}
.bf-sources .bf-about{max-width:none;font-size:13.5px;line-height:1.65;color:var(--text-faint);margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
.bf-rel-list,.bf-more-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bf-sec .bf-rel-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;height:100%;padding:14px 16px;
  border:1px solid var(--border);border-radius:14px;background:var(--white,white);text-decoration:none;font-size:15px;line-height:1.4;color:var(--green-deep);
  transition:border-color .15s ease,box-shadow .15s ease}
.bf-sec .bf-rel-list a:hover,.bf-sec .bf-more-list a:hover{border-color:var(--green);box-shadow:0 18px 36px -24px rgba(14,80,34,.45)}
.bf-rel-list i{flex:none;font-size:15px}
.bf-rel-list li:last-child:nth-child(odd),.bf-more-list li:last-child:nth-child(odd){grid-column:1/-1}
.bf-sec .bf-more-list a{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px;border:1px solid var(--border);border-radius:14px;
  background:var(--white,white);text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease}
.bf-more-list b{font-family:var(--font-display);font-weight:600;font-size:15.5px;line-height:1.35;color:var(--ink)}
.bf-more-meta{font-size:12.5px;color:var(--text-faint);font-weight:500}
.bf-sec p.bf-all{margin-top:18px}
.bf-sec .bf-all a{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.bf-cta{margin-top:8px}
.bf-cta .btn-ghost-light{padding:14.5px 20px}
.bf-cta .cta-sub{font-family:var(--font-body);font-weight:400;font-size:14.5px;color:rgba(255,255,255,.78);margin:6px 0 0}

/* worked example under "What happened" */
.bf-example{margin:20px 0 0;max-width:36em}
.bf-ex-box{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--white,white)}
.bf-ex-table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.bf-ex-table caption{caption-side:top;text-align:left;font-family:var(--font-display);font-weight:600;font-size:15px;color:var(--ink);padding:13px 14px 11px}
.bf-ex-table th,.bf-ex-table td{padding:10px 14px;border-bottom:1px solid var(--border-faint);text-align:right}
.bf-ex-table tr:last-child th,.bf-ex-table tr:last-child td{border-bottom:0}
.bf-ex-table th[scope="row"],.bf-ex-table thead th:first-child{text-align:left;font-weight:500;color:var(--ink-soft)}
.bf-ex-table thead th{background:var(--bg);font-family:var(--font-display);font-size:12px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--text-faint)}
.bf-ex-table td{font-family:var(--font-display);font-weight:700;color:var(--ink)}
.bf-sec .bf-ex-note{font-size:13px;line-height:1.6;color:var(--text-faint);margin:8px 0 0}

/* ---------- hub ---------- */
/* the hub hero lines up with the card grid below it (1120px of content) */
.page-hero.bf-hub-hero .container{max-width:calc(1120px + 2 * clamp(20px,5vw,48px))}
.bf-hub-hero h1{text-wrap:balance}
.bf-hub-hero h1 em{font-style:normal;color:var(--green)}
.bf-hub{padding:clamp(34px,5vw,60px) 0 clamp(64px,8vw,104px)}
.bf-hub-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(28px,4vw,52px);align-items:start;max-width:1120px;margin:0 auto}
.bf-cards{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.bf-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top top" "title stat" "dek stat" "go stat";
  column-gap:24px;padding:24px 26px;background:var(--white,white);border:1px solid var(--border);border-radius:20px;
  box-shadow:0 1px 2px rgba(15,26,20,.04),0 20px 44px -30px rgba(14,80,34,.3);transition:border-color .15s ease,transform .2s ease}
.bf-card:hover{border-color:var(--green);transform:translateY(-2px)}
.bf-card:focus-within{outline:2px solid var(--green);outline-offset:2px}
.bf-card-top{grid-area:top;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--text-faint);margin-bottom:12px}
.bf-card-title{grid-area:title;font-family:var(--font-display);font-weight:700;font-size:clamp(19px,2vw,23px);line-height:1.25;
  letter-spacing:-.015em;margin:0 0 8px;text-wrap:balance}
.bf-card-title a{color:var(--ink);text-decoration:none}
.bf-card-title a::after{content:'';position:absolute;inset:0;border-radius:20px}
.bf-card-title a:focus-visible{outline:none}
.bf-card-dek{grid-area:dek;font-size:15.5px;line-height:1.6;color:var(--ink-mute);margin:0 0 14px;max-width:62ch}
.bf-card-stat{grid-area:stat;align-self:center;display:flex;flex-direction:column;gap:6px;width:204px;padding:14px 16px;
  border-left:3px solid var(--yellow);background:var(--bg);border-radius:0 14px 14px 0}
.bf-card-stat b{font-family:var(--font-display);font-weight:800;font-size:34px;line-height:1;letter-spacing:-.03em;color:var(--green-deep);white-space:nowrap}
.bf-card-stat span{font-size:12.5px;line-height:1.45;color:var(--text-soft)}
.bf-card-go{grid-area:go;display:inline-flex;align-items:center;gap:6px;font-family:var(--font-display);font-weight:600;font-size:14px;color:var(--green-deep)}
.bf-card-go i{transition:transform .2s ease}
.bf-card:hover .bf-card-go i{transform:translateX(3px)}
.bf-empty{font-size:16px;color:var(--ink-mute)}
.bf-hub-about{position:sticky;top:96px;padding:24px;border-radius:20px;background:var(--green-tint);border:1px solid var(--border)}
.bf-hub-about h2{font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--ink);margin:0 0 12px}
.bf-hub-about p{font-size:15px;line-height:1.65;color:var(--ink-mute);margin:0 0 12px}
.bf-hub-about .bf-by{font-size:13.5px;color:var(--text-soft)}
.bf-hub-btn{margin-top:6px;width:100%;justify-content:center}
.bf-hub-link{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-family:var(--font-display);font-weight:600;font-size:14.5px;
  color:var(--green-deep);text-decoration:none}
.bf-hub-link:hover{text-decoration:underline}

/* ---------- breakpoints: the brand's 919 / 640 / 560 ---------- */
@media (max-width:919px){
  .bf-hub-grid{grid-template-columns:1fr}
  .bf-hub-about{position:static}
}
@media (max-width:640px){
  .bf-chart-wide{display:none}
  .bf-chart-narrow{display:block}
  .bf-figure{padding:16px 14px 14px}
  .bf-could,.bf-you{padding:20px 18px}
  .bf-sec p{font-size:16.5px}
  .bf-rel-list,.bf-more-list{grid-template-columns:1fr}
  .bf-card{grid-template-columns:1fr;grid-template-areas:"top" "title" "dek" "stat" "go";padding:20px}
  .bf-card-stat{width:auto;flex-direction:row;align-items:center;gap:14px;margin:0 0 14px}
  .bf-card-stat b{font-size:30px;flex:none}
  .bf-hero-stat{gap:14px;padding:14px 16px}
  .bf-cta .cta-actions{width:100%}
  .bf-cta .btn{flex:1 1 100%;justify-content:center}
}
@media (max-width:560px){
  .bf-hero-stat{flex-direction:column;align-items:flex-start;gap:8px}
  .bf-hero-stat span{max-width:none}
}
@media (prefers-reduced-motion:reduce){
  .bf-card,.bf-card-go i,.bf-data summary i{transition:none}
  .bf-card:hover{transform:none}
}
