/* Fortune Climate 500 v2 — dark, restrained. Signal colors (red/green/amber)
   reserved for data; purple gradients for structure; boxes stay neutral. */
.climate-page {
  --bg: #0b1020;
  --panel: #111730;
  --panel-2: #0e1428;
  --border: #232b4a;
  --text: #e2e8f0;
  --dim: #94a3b8;
  --dimmer: #64748b;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --purple-2: #818cf8;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(129, 140, 248, .12), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(167, 139, 250, .08), transparent 55%),
    var(--bg);
  min-height: 100vh;
  padding: 1.4rem 0 4rem;
  font-size: .92rem;
}
.climate-container { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; }

.climate-header h1 {
  font-size: 1.9rem; margin: 0 0 .3rem;
  background: linear-gradient(100deg, #e2e8f0 20%, var(--purple) 75%, var(--purple-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.climate-header p { color: var(--dim); margin: .15rem 0; }
#vintage-badge { font-size: .72rem; color: var(--dimmer); letter-spacing: .02em; }

/* hero stats */
.cl-hero {
  display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.1rem 0 1rem;
}
.cl-stat {
  flex: 1 1 120px; background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
  transition: border-color .18s, transform .18s;
}
.cl-stat:hover { border-color: rgba(167, 139, 250, .45); transform: translateY(-1px); }
.cl-stat b { font-size: 1.5rem; font-weight: 700; }
.cl-stat b.up { color: var(--green); }
.cl-stat b.down { color: var(--red); }
.cl-stat span { font-size: .72rem; color: var(--dimmer); }
.cl-stat-chart { flex: 0 0 220px; align-items: center; }
.cl-hist { width: 200px; height: 62px; }
.cl-hist .hnum { fill: var(--dim); font-size: 10px; }
.cl-hist .hlbl { fill: var(--dimmer); font-size: 10px; }

/* toolbar */
.cl-toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .9rem;
}
.cl-toolbar input[type=search] {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .45rem .7rem; min-width: 220px; outline: none;
  transition: border-color .15s;
}
.cl-toolbar input[type=search]:focus { border-color: var(--purple); }
.cl-chip {
  background: var(--panel); border: 1px solid var(--border); color: var(--dim);
  border-radius: 8px; padding: .4rem .7rem; cursor: pointer; font-size: .8rem;
  transition: all .15s;
}
.cl-chip:hover { border-color: var(--purple); color: var(--text); }
.cl-chip.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, .25), rgba(129, 140, 248, .18));
  border-color: var(--purple); color: #ddd6fe;
}
.cl-chipgroup { display: inline-flex; gap: .25rem; }
.chip-g { padding: .4rem .55rem; font-weight: 700; }
.cl-count { margin-left: auto; color: var(--dimmer); font-size: .78rem; }

/* table */
.cl-table-wrap {
  border: 1px solid var(--border); border-radius: 12px; overflow: auto;
  background: var(--panel-2);
}
.cl-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cl-table th {
  text-align: left; padding: .55rem .65rem; color: var(--dimmer);
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
  white-space: nowrap; position: sticky; top: 0; background: var(--panel-2); z-index: 1;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
}
.cl-table th:hover { color: var(--purple); }
.cl-table th .arrow { color: var(--purple); margin-left: .2rem; }
.cl-table td { padding: .5rem .65rem; border-bottom: 1px solid rgba(35, 43, 74, .55); }
.cl-table tbody tr { cursor: pointer; transition: background .12s; }
.cl-table tbody tr:hover { background: rgba(129, 140, 248, .08); }
.cl-table tbody tr:hover .cl-name { color: var(--purple); }
.cl-table tr.shallow td { color: var(--dim); }
.cl-name { font-weight: 600; transition: color .12s; }
.cl-sparkcell { white-space: nowrap; }
.cl-spark { width: 84px; height: 24px; vertical-align: middle; margin-right: .3rem; }
.cl-spark path { fill: none; stroke-width: 1.6; }
.ax-hi { color: var(--green); font-variant-numeric: tabular-nums; }
.ax-mid { color: var(--amber); font-variant-numeric: tabular-nums; }
.ax-lo { color: var(--red); font-variant-numeric: tabular-nums; }

/* grades */
.cl-grade {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.7rem; height: 1.7rem; border-radius: 7px; font-weight: 800; font-size: .95rem;
}
.cl-grade.gA { background: rgba(52, 211, 153, .18); color: var(--green); }
.cl-grade.gB { background: rgba(163, 230, 53, .15); color: #a3e635; }
.cl-grade.gC { background: rgba(251, 191, 36, .16); color: var(--amber); }
.cl-grade.gD { background: rgba(251, 146, 60, .16); color: #fb923c; }
.cl-grade.gF { background: rgba(248, 113, 113, .16); color: var(--red); }
.cl-grade.gN { background: #1e293b; color: var(--dimmer); font-weight: 400; }
.cl-grade.reg { outline: 1px dashed rgba(148, 163, 184, .5); outline-offset: 1px; }
.cl-editorial-label { font-size: .6rem; color: var(--dimmer); display: block; }
.cl-tag {
  font-size: .68rem; border: 1px solid var(--border); border-radius: 4px;
  padding: .05rem .35rem; color: var(--dimmer); margin-left: .4rem;
}

/* detail layout */
.cl-back {
  background: none; border: 1px solid var(--border); color: var(--dim);
  border-radius: 8px; padding: .35rem .7rem; cursor: pointer; margin-bottom: .8rem;
  transition: all .15s;
}
.cl-back:hover { border-color: var(--purple); color: var(--text); }
.cl-company-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: .7rem; }
.cl-company-head h2 { margin: 0; font-size: 1.5rem; }
.cl-basis-banner {
  border: 1px solid var(--border); border-left: 3px solid var(--purple);
  background: linear-gradient(90deg, rgba(167, 139, 250, .08), transparent 65%);
  border-radius: 8px; padding: .55rem .8rem; color: var(--dim); font-size: .82rem;
  margin-bottom: .7rem;
}
.cl-warn {
  border: 1px solid rgba(251, 191, 36, .4); border-left: 3px solid var(--amber);
  background: rgba(251, 191, 36, .06); border-radius: 8px;
  padding: .5rem .8rem; color: var(--amber); font-size: .8rem; margin-bottom: .5rem;
}

/* company hero */
.cl-cohero { display: flex; flex-wrap: wrap; gap: .8rem; margin: .3rem 0 1rem; align-items: stretch; }
.cl-ring { display: flex; flex-direction: column; align-items: center; gap: .1rem;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 12px; padding: .6rem .9rem; }
.cl-ring svg { width: 74px; height: 74px; }
.cl-ring .track { fill: none; stroke: #1e2749; stroke-width: 7; }
.cl-ring .fill { fill: none; stroke-width: 7; stroke-linecap: round; }
.cl-ring .val { fill: var(--text); font-size: 1.25rem; font-weight: 700; }
.cl-ring-lbl { font-size: .72rem; color: var(--dim); text-align: center; }
.cl-ring-lbl span { display: block; color: var(--dimmer); font-size: .62rem; }
.cl-bigstat {
  flex: 1 1 130px; background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 12px; padding: .7rem 1rem;
  display: flex; flex-direction: column; justify-content: center; gap: .15rem;
}
.cl-bigstat b { font-size: 1.35rem; }
.cl-bigstat b.up, .cl-bigstat em.up { color: var(--green); }
.cl-bigstat b.down, .cl-bigstat em.down { color: var(--red); }
.cl-bigstat span { font-size: .7rem; color: var(--dimmer); }
.cl-bigstat em { font-style: normal; font-size: .78rem; }

/* panels */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: .9rem; }
.cl-panel {
  background: linear-gradient(170deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem;
  transition: border-color .18s;
}
.cl-panel:hover { border-color: rgba(129, 140, 248, .35); }
.cl-span2 { grid-column: span 2; }
@media (max-width: 760px) { .cl-span2 { grid-column: span 1; } }
.cl-panel h3 {
  margin: 0 0 .6rem; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--purple);
}
.cl-panel table td { padding: .3rem 0; font-size: .84rem; }
.cl-panel table td:first-child { color: var(--dim); }
.cl-vint { color: var(--dimmer); font-size: .68rem; text-transform: none; letter-spacing: 0; }
.cl-null { color: var(--dimmer); font-style: italic; font-size: .82em; }
.cl-meta { color: var(--dimmer); font-size: .74rem; margin: .35rem 0 0; }
.cl-links a { color: var(--purple-2); font-size: .8rem; margin-right: .8rem; }

/* axis rows */
.cl-axis-row { margin-bottom: .7rem; }
.cl-axis-row .lbl { display: flex; justify-content: space-between; cursor: pointer; font-size: .86rem; padding: .15rem 0; }
.cl-axis-row .lbl:hover span:first-child { color: var(--purple); }
.cl-bar { height: 7px; background: #1a2142; border-radius: 4px; overflow: hidden; margin: .25rem 0; }
.cl-bar div { height: 100%; border-radius: 4px; transition: width .5s ease; }
.cl-components { display: none; margin: .4rem 0 0; padding: 0; list-style: none; }
.cl-axis-row.open .cl-components { display: block; }
.cl-components li {
  display: flex; justify-content: space-between; font-size: .76rem; color: var(--dim);
  padding: .18rem 0; border-bottom: 1px dashed rgba(35, 43, 74, .6);
}
.cl-components li b { color: var(--text); }
.cl-missing { display: none; font-size: .72rem; color: var(--amber); margin-top: .3rem; }
.cl-axis-row.open .cl-missing { display: block; }

/* charts */
.cl-chart { width: 100%; height: auto; }
.cl-chart text { fill: var(--dimmer); font-size: 10px; }
.cl-chart .grid { stroke: #1a2142; stroke-width: 1; }
.cl-chart .axis { stroke: var(--border); stroke-width: 1; }
.cl-chart .path-line { fill: none; stroke: var(--purple-2); stroke-width: 1.6; stroke-dasharray: 6 4; }
.cl-chart .base-dot { fill: var(--purple-2); }
.cl-chart .tl-lbl { font-size: 9.5px; fill: var(--dim); }
.cl-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .72rem; color: var(--dim); margin-top: .4rem; }
.cl-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.cl-legend .sw-dash { height: 3px; vertical-align: 2px; }
.cl-legend .sw-hollow { background: transparent; border: 1.6px solid var(--dim); border-radius: 50%; }
.cl-legend .sw-solid { background: var(--dim); border-radius: 50%; }
.cl-ontrack { font-size: .8rem; margin-top: .4rem; font-weight: 600; }
.cl-ontrack.ok { color: var(--green); }
.cl-ontrack.bad { color: var(--red); }

/* disclosure history table */
.cl-hist-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.cl-hist-table th {
  text-align: right; color: var(--dimmer); font-weight: 600; padding: .25rem .4rem;
  border-bottom: 1px solid var(--border); font-size: .68rem; text-transform: uppercase;
}
.cl-hist-table th:first-child, .cl-hist-table td:first-child { text-align: left; }
.cl-hist-table td { text-align: right; padding: .28rem .4rem; border-bottom: 1px dashed rgba(35, 43, 74, .5); font-variant-numeric: tabular-nums; }
.cl-src { font-size: .64rem; border-radius: 4px; padding: .05rem .3rem; }
.cl-src.cdu { background: rgba(129, 140, 248, .15); color: var(--purple-2); }
.cl-src.extraction { background: rgba(52, 211, 153, .14); color: var(--green); }

/* scope 3 bars + compare bars */
.cl-s3bars { display: flex; flex-direction: column; gap: .3rem; }
.cl-s3row { display: grid; grid-template-columns: 175px 1fr 52px; gap: .5rem; align-items: center; font-size: .76rem; }
.cl-s3row .lbl { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-s3row .bar { height: 9px; background: #1a2142; border-radius: 4px; overflow: hidden; }
.cl-s3row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-2)); border-radius: 4px; }
.cl-s3row .val { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }

/* cheap talk gauge */
.cl-gauge { margin-bottom: .6rem; }
.cl-gauge-track {
  position: relative; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(52,211,153,.5), rgba(251,191,36,.5), rgba(248,113,113,.5));
}
.cl-gauge-track i {
  position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px;
  transform: translateX(-50%);
}
.cl-gauge-lbls { display: flex; justify-content: space-between; font-size: .68rem; color: var(--dimmer); margin-top: .25rem; }
.cl-gauge-lbls .v { font-weight: 700; }

/* targets */
.cl-target {
  border-left: 3px solid var(--purple); padding: .4rem .6rem; margin: .45rem 0;
  background: rgba(167, 139, 250, .05); border-radius: 0 8px 8px 0; font-size: .84rem;
}
.cl-state { font-size: .66rem; border-radius: 4px; padding: .1rem .35rem; margin-left: .3rem; }
.cl-state.active_promoted { background: rgba(52, 211, 153, .15); color: var(--green); }
.cl-state.active_quiet { background: rgba(251, 191, 36, .15); color: var(--amber); }
.cl-state.weakened { background: rgba(251, 146, 60, .15); color: #fb923c; }
.cl-state.removed_unacknowledged { background: rgba(248, 113, 113, .15); color: var(--red); }

/* notes */
.cl-notes { list-style: none; padding: 0; margin: 0; }
.cl-notes li { padding: .22rem 0; font-size: .82rem; }
.cl-note-s { color: var(--green); }
.cl-note-w { color: var(--red); }

/* citations */
.cl-cite {
  background: none; border: none; color: var(--purple-2); cursor: pointer;
  font-size: .7rem; padding: 0 .15rem;
}
.cl-cite:hover { text-decoration: underline; }
.cl-cite-pop {
  position: absolute; z-index: 50; max-width: 380px;
  background: var(--panel); border: 1px solid var(--purple); border-radius: 10px;
  padding: .7rem .9rem; font-size: .8rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.cl-cite-pop q { display: block; color: var(--dim); margin: .3rem 0; font-style: italic; }
.cl-cite-pop a { color: var(--purple-2); }

.cl-hide-m { display: table-cell; }
@media (max-width: 720px) { .cl-hide-m { display: none; } }

/* methodology page reuses panel look */
.climate-page .cl-method h2 { color: var(--purple); font-size: 1.05rem; margin-top: 1.4rem; }
.climate-page .cl-method table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.climate-page .cl-method th, .climate-page .cl-method td {
  border: 1px solid var(--border); padding: .4rem .6rem; text-align: left;
}
