/* vulnerability-program.css — Vulnerability Program page
   ================================================================
   global.css already provides:
     - All design tokens
     - .rv / .rv.v reveal animation
     - .wrap max-width and padding
     - .section-tag (amber, mono, 9px, uppercase)
     - .section-header h2 / p
     - .btn-primary / .btn-secondary
     - Nav, footer, and all shared component styles

   DO NOT redefine anything listed above.
   This file contains ONLY vulnerability-program-page-specific styles.
*/

/* ═══════════════════════════════════════════════════════
   PAGE HERO
   Typographic only. No background images. No photos.
   Exact values from COMPONENT-SPEC §5 / PAGE-TEMPLATE.css
   ═══════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(136px + env(safe-area-inset-top, 0px)) 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--warm-200);
  position: relative;
}

/* Crosshatch grid — matches homepage hero, fades out downward */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--warm-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--warm-100) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Content sits above the grid */
.page-hero .wrap {
  position: relative;
  z-index: 1;
}

/* section-tag colour override — hero context only */
.section-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-hero .section-tag {
  color: var(--amber);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink-900);
  max-width: 720px;
  margin: 0 0 20px;
}

.page-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════════
   VULNERABILITY PROGRAM BODY — two-column layout
   ═══════════════════════════════════════════════════════ */
.vp-outer {
  padding: 104px 0;
}

.vp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── Sticky subnav ── */
.subnav {
  position: sticky;
  top: 84px;
}

.subnav-heading {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-400);
  display: block;
  margin-bottom: 14px;
}

.subnav-list {
  list-style: none;
  border-left: 1px solid var(--warm-200);
}

.subnav-list li a {
  display: block;
  padding: 5px 0 5px 16px;
  margin-left: -1px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.subnav-list li a:hover {
  color: var(--ink-900);
  border-left-color: var(--warm-300);
}
.subnav-list li a.active {
  color: var(--ink-900);
  font-weight: 500;
  border-left-color: var(--blue);
}

/* ── Policy content ── */
.vp-content {
  min-width: 0;
}

.policy-section {
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--warm-200);
  scroll-margin-top: 80px;
}
.policy-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* section-tag colour inside content sections */
.policy-section .section-tag {
  color: var(--amber);
  margin-bottom: 8px;
}

.policy-section h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink-900);
  margin-bottom: 22px;
}

.policy-section h3 {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 28px 0 10px;
}

.policy-section p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-600);
  line-height: 1.8;
  margin-bottom: 14px;
}
.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section a {
  color: var(--blue);
  transition: opacity .15s;
}
.policy-section a:hover {
  opacity: .75;
  text-decoration: underline;
}

/* ── Policy list ── */
.policy-list {
  list-style: none;
  margin: 8px 0 20px;
  border-top: 1px solid var(--warm-100);
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--warm-100);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-600);
  line-height: 1.75;
}

.policy-list li .bullet {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--warm-400);
  margin-top: 9px;
}

.policy-list li .item-body {
  flex: 1;
  min-width: 0;
}

.policy-list li strong {
  font-weight: 500;
  color: var(--ink-700);
}

/* Nested policy list (submission-license sub-items) gets no top border
   of its own — it reads as a continuation of the parent item-body. */
.policy-list li .policy-list {
  margin: 8px 0 0;
  border-top: none;
}
.policy-list li .policy-list li {
  padding: 6px 0;
}

/* ═══════════════════════════════════════════════════════
   HIGH CONTRAST MODE
   The hero and content use only var(--ink-*) and var(--warm-*)
   tokens, so the global body.hc token overrides handle most things
   automatically. Only the non-token signal colour (var(--blue) on
   the active subnav indicator) needs an explicit override.
   ═══════════════════════════════════════════════════════ */
body.hc .subnav-list li a.active {
  border-left-color: var(--ink-900);
  color: var(--ink-900);
}

body.hc .policy-section .section-tag,
body.hc .page-hero .section-tag {
  color: var(--amber); /* amber token adjusts via hc root override if needed */
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — desktop-first, max-width only
   Breakpoints match COMPONENT-SPEC §12 exactly.
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vp-outer { padding: 80px 0; }
  .vp-layout { grid-template-columns: 190px 1fr; gap: 52px; }
}

@media (max-width: 860px) {
  /* Subnav collapses to a card above content at this width —
     narrower than 1024 but before full mobile at 768 */
  .vp-layout { grid-template-columns: 1fr; gap: 0; }
  .subnav {
    position: static;
    background: var(--white);
    border: 1px solid var(--warm-200);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 52px;
  }
  .subnav-list {
    border-left: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .subnav-list li a {
    border-left: none;
    margin-left: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--warm-100);
    font-size: 12px;
  }
  .subnav-list li:nth-last-child(-n+2) a { border-bottom: none; }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(88px + env(safe-area-inset-top, 0px)) 0 56px;
  }
  .vp-outer { padding: 64px 0; }
  .subnav-list { grid-template-columns: 1fr; }
  .subnav-list li:nth-last-child(-n+2) a { border-bottom: 1px solid var(--warm-100); }
  .subnav-list li:last-child a { border-bottom: none; }
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .vp-outer { padding: 52px 0; }
  .policy-section { padding-bottom: 44px; margin-bottom: 44px; }
  .wrap { padding: 0 16px; }
}
