/* dive-cycles.css: the hub's cycles data story (dive_cycles_story.py).
   One dark RTNS "terminal" band, full bleed. Donor tokens where they exist
   (--gold2, --dark); dark-surface text is pure #fff per rendered-deliverable QA.
   Two SVGs ship: .dv-cyc-svg-w (wide) and .dv-cyc-svg-n (narrow); one shows. */

.dv-cyc {
  position: relative;
  background: #091211;
  color: #fff;
  padding: 64px 0 56px;
  border-top: 4px solid var(--gold, #b98132);
  overflow: hidden;
}
.dv-cyc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(36, 255, 188, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 255, 188, .025) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dv-cyc-shell {
  position: relative;
  max-width: var(--max, 1480px);
  margin: 0 auto;
  padding: 0 34px;
}
.dv-cyc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  grid-template-areas: "head fig" "ctx fig";
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
}
.dv-cyc-head { grid-area: head; }
.dv-cyc-ctxs { grid-area: ctx; }
.dv-cyc-fig { grid-area: fig; }

/* ---- words -------------------------------------------------------------- */
.dv-cyc-eyebrow {
  margin: 0 0 14px;
  font: 700 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold2, #d8ad63);
}
.dv-cyc-h {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 1.12;
  color: #fff;
}
.dv-cyc-hl {
  display: block;
  text-wrap: balance;
}
.dv-cyc-dek {
  margin: 0 0 14px;
  font: 400 18px/1.5 Arial, Helvetica, sans-serif;
  color: #fff;
  max-width: 34em;
}
.dv-cyc-by {
  margin: 0 0 28px;
  font: 700 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.dv-cyc-ctxs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #23453f;
}
.dv-cyc-ctx {
  padding: 14px 0;
  border-bottom: 1px solid #23453f;
}
.dv-cyc-ctx-k {
  display: block;
  margin-bottom: 5px;
  font: 700 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold2, #d8ad63);
}
.dv-cyc-ctx-v {
  display: block;
  font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  color: #fff;
}

/* ---- figure ------------------------------------------------------------- */
.dv-cyc-fig {
  margin: 0;
  min-width: 0;
}
.dv-cyc-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 16px;
  padding: 0;
}
.dv-cyc-key {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
  color: #fff;
}
.dv-cyc-sw {
  flex: 0 0 28px;
  height: 0;
  border-top: 4px solid var(--gold2, #d8ad63);
  border-radius: 2px;
}
.dv-cyc-sw-old {
  border-top: 2px solid #8fa9a1;
}
.dv-cyc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.dv-cyc-svg-n {
  display: none;
}
.dv-cyc-cap {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid #23453f;
  font: 400 12px/1.55 Arial, Helvetica, sans-serif;
  color: #fff;
}
.dv-cyc-src {
  color: var(--gold2, #d8ad63);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dv-cyc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- SVG marks ---------------------------------------------------------- */
.dv-cyc-svg text {
  font-family: Arial, Helvetica, sans-serif;
  fill: #fff;
}
.dv-cyc-ptitle {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 22px;
}
.dv-cyc-strip-h {
  font-size: 17px;
}
.dv-cyc-psub,
.dv-cyc-ytick,
.dv-cyc-gap,
.dv-cyc-end {
  font-size: 13px;
}
.dv-cyc-note {
  font-size: 14px;
}
.dv-cyc-note-old {
  fill: #cfe0da;
}
.dv-cyc-big {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 38px;
  fill: var(--gold2, #d8ad63) !important;
}
.dv-cyc-next {
  fill: var(--gold2, #d8ad63) !important;
  font-weight: 700;
}
.dv-cyc-gl {
  stroke: #1f3a34;
  stroke-width: 1;
}
.dv-cyc-rec {
  stroke: #8fa9a1;
  stroke-width: 1;
}
.dv-cyc-gapline {
  stroke: #8fa9a1;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.dv-cyc-old {
  fill: none;
  stroke: #8fa9a1;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dv-cyc-old-dot {
  fill: #8fa9a1;
  stroke: #091211;
  stroke-width: 2;
}
.dv-cyc-new {
  fill: none;
  stroke: var(--gold2, #d8ad63);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dv-cyc-new-dot {
  fill: var(--gold2, #d8ad63);
  stroke: #091211;
  stroke-width: 2;
}
.dv-cyc-cell-next {
  stroke: #fff;
  stroke-width: 2;
}
.dv-cyc-cell-x {
  fill: none;
  stroke: #3a5a52;
  stroke-width: 1;
}
.dv-cyc-cy {
  font-size: 12px;
}
.dv-cyc-cv {
  font-size: 14px;
  font-weight: 700;
}
.dv-cyc-cv-x {
  font-weight: 400;
  font-size: 12px;
}
.dv-cyc-svg .dv-cyc-ink {
  fill: #11120f;
}
.dv-cyc-svg .dv-cyc-paper {
  fill: #fff;
}

/* ---- See the data -------------------------------------------------------- */
.dv-cyc-data {
  margin-top: 40px;
  border-top: 1px solid #23453f;
  border-bottom: 1px solid #23453f;
}
.dv-cyc-sum {
  cursor: pointer;
  padding: 16px 0;
  min-height: 44px;
  font: 700 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold2, #d8ad63);
}
.dv-cyc-dgrid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 24px;
}
.dv-cyc-dh {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
  color: #fff;
}
.dv-cyc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dv-cyc-ul-rates {
  columns: 2;
  column-gap: 24px;
}
.dv-cyc-li {
  padding: 6px 0;
  border-bottom: 1px solid #1a302b;
  font: 400 13px/1.45 Arial, Helvetica, sans-serif;
  color: #fff;
  break-inside: avoid;
}
.dv-cyc-li-d {
  display: inline-block;
  min-width: 7.5em;
  font-weight: 700;
  color: var(--gold2, #d8ad63);
}
.dv-cyc-li-y {
  display: inline-block;
  min-width: 4.5em;
  font-weight: 700;
  color: var(--gold2, #d8ad63);
}
.dv-cyc-q {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #fff;
}
.dv-cyc-dnote {
  margin: 0 0 10px;
  font: 400 12px/1.55 Arial, Helvetica, sans-serif;
  color: #fff;
}

/* ---- progressive enhancement: draw-on (dive-cycles.js adds the classes) --- */
.dv-cyc-armed .dv-cyc-new {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s ease-out .2s;
}
.dv-cyc-armed .dv-cyc-new-dot,
.dv-cyc-armed .dv-cyc-big {
  opacity: 0;
  transition: opacity .6s ease-out 1.4s;
}
.dv-cyc-armed.dv-cyc-drawn .dv-cyc-new {
  stroke-dashoffset: 0;
}
.dv-cyc-armed.dv-cyc-drawn .dv-cyc-new-dot,
.dv-cyc-armed.dv-cyc-drawn .dv-cyc-big {
  opacity: 1;
}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .dv-cyc-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "fig" "ctx";
    grid-template-rows: auto;
    row-gap: 32px;
  }
  .dv-cyc-head {
    max-width: 760px;
  }
  .dv-cyc-h {
    font-size: 60px;
  }
  .dv-cyc-ctxs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .dv-cyc-fig {
    max-width: 980px;
  }
}
@media (max-width: 700px) {
  .dv-cyc {
    padding: 44px 0 40px;
  }
  .dv-cyc-shell {
    padding: 0 16px;
  }
  .dv-cyc-h {
    font-size: 38px;
  }
  .dv-cyc-dek {
    font-size: 16px;
  }
  .dv-cyc-ctxs {
    display: block;
  }
  .dv-cyc-svg-w {
    display: none;
  }
  .dv-cyc-svg-n {
    display: block;
  }
  .dv-cyc-dgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dv-cyc-ul-rates {
    columns: 1;
  }
  .dv-cyc-svg .dv-cyc-ptitle {
    font-size: 20px;
  }
  .dv-cyc-svg .dv-cyc-strip-h {
    font-size: 15px;
  }
  .dv-cyc-svg .dv-cyc-big {
    font-size: 30px;
  }
  .dv-cyc-svg .dv-cyc-psub,
  .dv-cyc-svg .dv-cyc-ytick,
  .dv-cyc-svg .dv-cyc-gap,
  .dv-cyc-svg .dv-cyc-note {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .dv-cyc-h {
    font-size: 33px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dv-cyc-armed .dv-cyc-new,
  .dv-cyc-armed .dv-cyc-new-dot,
  .dv-cyc-armed .dv-cyc-big {
    transition: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@media (forced-colors: active) {
  .dv-cyc-new { stroke: Highlight; }
  .dv-cyc-old { stroke: CanvasText; }
}
