/* ============================================================
   POLICIES — public policy library styling
   Uses the global design tokens from styles.css.
   Loaded only on policies.html and policies/*.html
   ============================================================ */

/* ---------- shared ---------- */
.pol-wrap { background: var(--midnight-blue); }
.pol-section { padding: 96px 40px; }
.pol-section.tight { padding: 64px 40px; }
.pol-divider { height: 1px; background: rgba(183,192,210,0.14); border: none; margin: 0; }

/* ---------- hub: hero ---------- */
.pol-hub-hero { padding: 170px 40px 70px; background: var(--midnight-blue); position: relative; overflow: hidden; }
.pol-hub-hero .hero-lead { margin-top: 4px; }

/* ---------- hub: category + cards ---------- */
.pol-cat { margin-top: 72px; }
.pol-cat:first-of-type { margin-top: 40px; }
.pol-cat-head {
  font-family: 'Silka Mono','IBM Plex Mono',monospace;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--lazer-green); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.pol-cat-head::after { content:''; flex:1; height:1px; background: rgba(1,233,10,0.22); }

.pol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pol-card {
  display: flex; flex-direction: column;
  background: var(--midnight-deeper);
  border: 1px solid rgba(183,192,210,0.12);
  border-radius: 16px; padding: 30px 30px 26px;
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s, background .2s;
}
.pol-card:hover { border-color: rgba(1,233,10,0.45); transform: translateY(-3px); background: #161d31; }
.pol-card-eyebrow {
  font-family: 'Silka Mono','IBM Plex Mono',monospace;
  font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--stone-blue); margin-bottom: 14px;
}
.pol-card h3 { font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--soft-white); }
.pol-card p { font-size: 14.5px; line-height: 1.6; color: var(--iceberg-blue); margin: 0 0 22px; flex: 1; }
.pol-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pol-card-meta {
  font-family: 'Silka Mono','IBM Plex Mono',monospace;
  font-size: 11px; letter-spacing: 0.5px; color: var(--stone-blue);
}
.pol-card-go { font-size: 13px; font-weight: 600; color: var(--lazer-green); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pol-card-go::after { content: '\2192'; transition: transform .2s; }
.pol-card:hover .pol-card-go::after { transform: translateX(4px); }

/* ---------- request-a-copy band ---------- */
.pol-request {
  background: var(--midnight-darker);
  border: 1px solid rgba(183,192,210,0.12);
  border-radius: 18px; padding: 44px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.pol-request-text { max-width: 640px; }
.pol-request h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--soft-white); }
.pol-request p { font-size: 15.5px; line-height: 1.62; color: var(--iceberg-blue); margin: 0; }
.pol-request p a { color: var(--lazer-green); text-decoration: none; }
.pol-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--lazer-green); color: #06210a; font-weight: 700;
  font-size: 14.5px; letter-spacing: 0.2px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; transition: filter .2s, transform .2s; border: none; cursor: pointer;
}
.pol-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pol-btn.ghost { background: transparent; color: var(--soft-white); border: 1px solid rgba(183,192,210,0.32); }
.pol-btn.ghost:hover { border-color: var(--lazer-green); color: var(--lazer-green); }

/* ============================================================
   INDIVIDUAL POLICY PAGE
   ============================================================ */
.pol-doc-hero { padding: 168px 40px 56px; background: var(--midnight-blue); position: relative; overflow: hidden; }
.pol-doc-hero .display-h2 { max-width: 16ch; }
.pol-doc-hero .hero-lead { margin-top: 6px; }

/* cover spec cards (the 4-up row from the PDF cover) */
.pol-spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 48px 0 0; background: rgba(183,192,210,0.14); border: 1px solid rgba(183,192,210,0.14); border-radius: 14px; overflow: hidden; }
.pol-spec-item { background: var(--midnight-blue); padding: 22px 24px; }
.pol-spec-label { font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--stone-blue); margin-bottom: 9px; }
.pol-spec-val { font-size: 17px; font-weight: 700; color: var(--soft-white); line-height: 1.2; }

/* meta strip (classification / version / effective / applies to) */
.pol-meta-strip { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(183,192,210,0.14); font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 12px; letter-spacing: .4px; color: var(--iceberg-blue); }
.pol-meta-strip b { color: var(--soft-white); font-weight: 700; }

/* layout: sticky TOC + content */
.pol-body { padding: 64px 40px 110px; background: var(--midnight-deeper); }
.pol-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; max-width: 1320px; margin: 0 auto; }
.pol-toc { position: sticky; top: 96px; }
.pol-toc-title { font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--stone-blue); margin-bottom: 16px; }
.pol-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.pol-toc li { margin: 0; }
.pol-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid rgba(183,192,210,0.16); color: var(--iceberg-blue); text-decoration: none; font-size: 13.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.pol-toc a:hover { color: var(--soft-white); }
.pol-toc a.active { color: var(--lazer-green); border-left-color: var(--lazer-green); font-weight: 600; }

/* content */
.pol-content { min-width: 0; }
.pol-content > section { scroll-margin-top: 92px; padding-bottom: 14px; margin-bottom: 40px; }
.pol-content > section + section { border-top: 1px solid rgba(183,192,210,0.1); padding-top: 40px; }
.pol-sec-num { font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 12px; letter-spacing: 2.5px; color: var(--lazer-green); margin-bottom: 10px; }
.pol-content h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 18px; color: var(--soft-white); }
.pol-content h4 { font-size: 15px; font-weight: 700; color: var(--soft-white); margin: 26px 0 10px; letter-spacing: .1px; }
.pol-content p { font-size: 15.5px; line-height: 1.68; color: var(--iceberg-blue); margin: 0 0 16px; max-width: 70ch; }
.pol-content a { color: var(--lazer-green); }
.pol-content ul { margin: 0 0 18px; padding: 0; list-style: none; max-width: 72ch; }
.pol-content ul li { position: relative; padding: 0 0 0 24px; margin-bottom: 11px; font-size: 15px; line-height: 1.62; color: var(--iceberg-blue); }
.pol-content ul li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--lazer-green); }
.pol-content ul li b, .pol-content p b { color: var(--soft-white); font-weight: 600; }

/* tables */
.pol-table-wrap { overflow-x: auto; margin: 4px 0 22px; }
.pol-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.pol-table th { text-align: left; font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone-blue); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid rgba(183,192,210,0.22); vertical-align: bottom; }
.pol-table td { padding: 13px 16px; border-bottom: 1px solid rgba(183,192,210,0.1); color: var(--iceberg-blue); line-height: 1.5; vertical-align: top; }
.pol-table td:first-child { color: var(--soft-white); font-weight: 600; white-space: nowrap; }
.pol-table.wrap-first td:first-child { white-space: normal; min-width: 160px; }

/* definitions */
.pol-dl { margin: 0; }
.pol-dl div { padding: 13px 0; border-bottom: 1px solid rgba(183,192,210,0.1); }
.pol-dl dt { font-weight: 700; color: var(--soft-white); font-size: 14.5px; margin-bottom: 4px; }
.pol-dl dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--iceberg-blue); }

/* callout / note */
.pol-callout { border-left: 3px solid var(--lazer-green); background: rgba(1,233,10,0.05); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 4px 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--soft-white); }

/* CEO letter */
.pol-letter { background: var(--midnight-darker); border: 1px solid rgba(183,192,210,0.12); border-radius: 16px; padding: 38px 40px; }
.pol-letter .pol-sec-num { color: var(--stone-blue); }
.pol-letter h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; color: var(--soft-white); }
.pol-letter p { font-size: 15px; line-height: 1.7; color: var(--iceberg-blue); margin: 0 0 14px; max-width: 74ch; }
.pol-sign { margin-top: 22px; font-size: 14px; line-height: 1.5; }
.pol-sign b { color: var(--soft-white); display: block; font-size: 15px; }
.pol-sign span { color: var(--stone-blue); font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 12px; }

/* KPI row (renewable policy) */
.pol-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 6px 0 22px; }
.pol-kpi { background: var(--midnight-blue); border: 1px solid rgba(183,192,210,0.12); border-radius: 12px; padding: 20px; }
.pol-kpi-num { font-size: 26px; font-weight: 800; color: var(--lazer-green); letter-spacing: -0.02em; line-height: 1; }
.pol-kpi-label { font-size: 12.5px; color: var(--iceberg-blue); margin-top: 8px; line-height: 1.4; }

/* breadcrumb */
.pol-crumb { font-family: 'Silka Mono','IBM Plex Mono',monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone-blue); margin-bottom: 26px; }
.pol-crumb a { color: var(--stone-blue); text-decoration: none; }
.pol-crumb a:hover { color: var(--lazer-green); }
.pol-crumb span { color: var(--iceberg-blue); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pol-grid { grid-template-columns: 1fr; }
  .pol-spec { grid-template-columns: repeat(2,1fr); }
  .pol-kpis { grid-template-columns: repeat(2,1fr); }
  .pol-layout { grid-template-columns: 1fr; gap: 0; }
  .pol-toc { position: static; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(183,192,210,0.14); }
  .pol-toc ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
  .pol-toc a { border-left: none; padding: 6px 12px; border: 1px solid rgba(183,192,210,0.18); border-radius: 999px; font-size: 12.5px; }
  .pol-toc a.active { border-color: var(--lazer-green); }
}
@media (max-width: 640px) {
  .pol-section, .pol-body { padding-left: 22px; padding-right: 22px; }
  .pol-doc-hero, .pol-hub-hero { padding-left: 22px; padding-right: 22px; }
  .pol-spec { grid-template-columns: 1fr 1fr; }
  .pol-kpis { grid-template-columns: 1fr 1fr; }
  .pol-request { padding: 30px 26px; }
  .pol-letter { padding: 28px 24px; }
}
