/* Ocean Climate Fund: the server-rendered pages (About, Data) in the same
   design as the front page. They load /ocean-data-initiative/style.css for
   the shared pieces (.ocf-hero, .ocf-btn, .ocf-band, .ocf-h2, ...) and this
   file for their own. */

/* Hero without WebAssembly: the same contour rings as a static image. */
.ocf-hero-static {
  background:
    url('/img/ocf-contours.svg') center / cover no-repeat,
    radial-gradient(120% 90% at 75% 40%, #164a7c 0%, #0b1a36 62%);
}
.ocf-hero-static .ocf-hero-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
.ocf-hero-static .ocf-hero-copy { max-width: 760px; }
.ocf-page a.ocf-back { color: rgba(255, 255, 255, 0.75); font-size: 14px; display: inline-block; margin-bottom: 18px; }
.ocf-page a.ocf-back:hover { color: #ffffff; }

/* Stat chips in a hero */
.ocf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ocf-chip { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #ffffff; }
.ocf-chip b { font-variant-numeric: tabular-nums; }
.ocf-chip-alert { background: rgba(138, 28, 28, 0.85); border-color: rgba(255, 255, 255, 0.3); }

/* Timeline */
.ocf-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.ocf-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, #1470af, #1aa3e9); opacity: 0.35; }
.ocf-step { position: relative; padding: 36px 20px 0 0; }
.ocf-step::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; border: 3px solid #1470af; }
.ocf-step-now::before { background: #1470af; }
.ocf-step-when { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #1470af; font-weight: 600; }
.ocf-step-title { font-family: var(--ocf-display); font-size: 24px; line-height: 1.2; margin: 6px 0 8px; color: var(--ocf-navy); }
.ocf-step p { font-size: 15px; color: var(--ocf-ink-2); margin: 0; }
.ocf-step a { color: var(--ocf-blue); font-weight: 600; }

/* Quote band */
.ocf-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.ocf-quote p { font-family: var(--ocf-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ocf-navy); }

/* Team */
.ocf-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ocf-person { background: #ffffff; border: 1px solid var(--ocf-rule); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ocf-person-head { display: flex; gap: 14px; align-items: center; }
.ocf-monogram { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ocf-display); font-size: 20px; color: #ffffff; background: radial-gradient(120% 120% at 30% 20%, #1aa3e9, #1b2a4e); }
.ocf-person-name { font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ocf-navy); }
.ocf-person-role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocf-blue); font-weight: 600; }
.ocf-person p { font-size: 15px; color: var(--ocf-ink-2); margin: 0 0 10px; }
.ocf-person details summary { cursor: pointer; color: var(--ocf-blue); font-weight: 600; font-size: 14px; list-style: none; }
.ocf-person details summary::-webkit-details-marker { display: none; }
.ocf-person details summary::after { content: " ↓"; }
.ocf-person details[open] summary::after { content: " ↑"; }
.ocf-person details[open] summary { margin-bottom: 10px; }
.ocf-person a { color: var(--ocf-blue); }

/* Data: actions and source groups */
.ocf-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ocf-btn-outline { border: 1px solid var(--ocf-rule); color: var(--ocf-navy); background: #ffffff; }
.ocf-btn-outline:hover { border-color: var(--ocf-blue); color: var(--ocf-navy); }
.ocf-odi-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--ocf-tint); border-radius: 24px; padding: 40px; }
.ocf-odi-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ocf-odi-stat { background: #ffffff; border-radius: 14px; padding: 16px 18px; }
.ocf-odi-stat b { display: block; font-family: var(--ocf-display); font-size: 30px; line-height: 1.1; color: var(--ocf-navy); font-variant-numeric: tabular-nums; }
.ocf-odi-stat span { font-size: 13px; color: var(--ocf-ink-2); }
.ocf-group { margin-top: 56px; }
.ocf-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ocf-group-head h3 { font-family: var(--ocf-display); font-weight: 400; font-size: 26px; margin: 0; color: var(--ocf-navy); }
.ocf-group-count { font-size: 14px; color: var(--ocf-ink-2); }
.ocf-group > p { color: var(--ocf-ink-2); font-size: 15px; max-width: 760px; }
.ocf-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.ocf-source { display: flex; flex-direction: column; gap: 8px; background: #ffffff; border: 1px solid var(--ocf-rule); border-radius: 14px; padding: 18px; transition: border-color 0.2s, transform 0.2s; color: var(--ocf-ink); }
.ocf-source:hover { border-color: var(--ocf-blue); transform: translateY(-2px); color: var(--ocf-ink); }
.ocf-source-name { font-weight: 700; color: var(--ocf-navy); line-height: 1.3; }
.ocf-source p { font-size: 14px; color: var(--ocf-ink-2); margin: 0; flex: 1; }
.ocf-source-host { font-size: 13px; color: var(--ocf-blue); word-break: break-word; }
.ocf-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ocf-ink-2); }
.ocf-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3c2b7; }
.ocf-tag-on::before { background: #0ca30c; }
.ocf-tag-next::before { background: #1aa3e9; }
.ocf-tag-key::before { background: #fab219; }

@media (max-width: 980px) {
  .ocf-timeline { grid-template-columns: 1fr; gap: 8px; }
  .ocf-timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .ocf-step { padding: 0 0 20px 36px; }
  .ocf-step::before { top: 2px; }
  .ocf-odi-card { grid-template-columns: 1fr; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ocf-source { transition: none; }
}

/* Portfolio: the three funding categories */
.ocf-cats { display: grid; gap: 20px; }
.ocf-cat { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; background: #ffffff; border: 1px solid var(--ocf-rule); border-radius: 24px; padding: 40px; }
.ocf-cat-side { display: flex; flex-direction: column; gap: 18px; }
.ocf-cat-n { font-family: var(--ocf-display); font-size: 56px; line-height: 1; color: var(--ocf-blue); }
.ocf-cat-icon { width: 64px; height: 64px; fill: none; stroke: var(--ocf-navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ocf-cat-body p { color: var(--ocf-ink-2); max-width: 760px; }
.ocf-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; background: var(--ocf-tint); color: var(--ocf-navy); }
.ocf-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3c2b7; }
.ocf-status-live::before { background: #0ca30c; }
.ocf-status-progress::before { background: #fab219; }
.ocf-cat-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 22px; }
.ocf-cat-facts div { background: var(--ocf-tint); border-radius: 14px; padding: 12px 16px; min-width: 150px; }
.ocf-cat-facts b { display: block; font-family: var(--ocf-display); font-size: 28px; line-height: 1.1; color: var(--ocf-navy); font-variant-numeric: tabular-nums; }
.ocf-cat-facts span { font-size: 13px; color: var(--ocf-ink-2); }
.ocf-invest { border-top: 1px solid var(--ocf-rule); padding-top: 18px; }
.ocf-invest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ocf-invest-name { font-weight: 700; font-size: 20px; color: var(--ocf-navy); }
.ocf-invest-what { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocf-blue); font-weight: 600; }
.ocf-reeftile { margin: 18px 0 0; border-radius: 16px; overflow: hidden; }
.ocf-reeftile svg { display: block; width: 100%; height: auto; }
.rt-water { fill: #dcecf9; }
.rt-surface { fill: none; stroke: #9cc9ec; stroke-width: 2; }
.rt-wall { fill: #b9b8b2; }
.rt-tile { fill: #1470af; }
.rt-coral { fill: none; stroke: #ec835a; stroke-width: 3; stroke-linecap: round; }
.rt-label { font-family: var(--ocf-sans); font-size: 18px; font-weight: 600; fill: #1b2a4e; }
.rt-label-sub { font-size: 14px; font-weight: 400; fill: #52514e; }

@media (max-width: 760px) {
  .ocf-cat { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  .ocf-cat-side { flex-direction: row; align-items: center; }
  .ocf-cat-n { font-size: 44px; }
}
.ocf-invest + .ocf-invest { margin-top: 22px; }
.ocf-btn + .ocf-invest { margin-top: 28px; }
