/* Shared styles for /resources pages. Colors and fonts match index.html. */
:root {
  color-scheme: dark;
  --background: #091613;
  --surface: #0d1f1a;
  --surface-low: #111e1b;
  --surface-raised: #10251f;
  --border: #1a2e28;
  --border-strong: #294039;
  --text: #d7e6e0;
  --muted: #a1b0ad;
  --primary: #67dbb5;
  --primary-container: #2fab88;
  --primary-tint: #133b2e;
  --on-primary: #00382a;
  --accent: #f6ff00;
  --on-accent: #191e00;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --card-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 60%);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "Open Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .eyebrow, .button, .badge, .site-header .header-cta, .footer-links a { font-family: Lexend, system-ui, sans-serif; }
h1, h2, h3 { color: #fff; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-bottom: 20px; }
h3 { font-size: 1.25rem; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: #a3f4d9; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--primary-container); color: var(--on-primary); padding: 8px 16px; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; color: var(--on-primary); }

.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.logo { display: block; height: 56px; width: auto; }
.site-header .header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 28px; border-radius: 8px; background: var(--primary-container); color: var(--on-primary); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; transition: background-color 0.15s; }
.site-header .header-cta:hover { background: var(--primary); color: var(--on-primary); }

/* Page backdrop: a soft brand-green light behind the hero, fading out before the content */
main { position: relative; isolation: isolate; }
main::before { content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(103, 219, 181, 0.13), transparent 70%),
    radial-gradient(700px 360px at 8% 0%, rgba(47, 171, 136, 0.08), transparent 70%); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 18px; }
.hero .eyebrow { padding: 6px 14px 6px 10px; border: 1px solid rgba(103, 219, 181, 0.28); border-radius: 999px; background: rgba(19, 59, 46, 0.55); font-size: 0.75rem; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(103, 219, 181, 0.18); }
.hero { padding: 80px 0 56px; }
.hero h1 { max-width: 880px; }
.intro { max-width: 720px; margin-top: 22px; color: var(--muted); font-size: 1.1875rem; line-height: 1.65; }
.intro + .intro { margin-top: 14px; }
.note { max-width: 760px; margin-top: 24px; padding: 14px 18px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-low); color: var(--text); }

/* Key facts under the hero intro */
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 0.9375rem; }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions-note { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

.section { padding: 40px 0 64px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-intro { max-width: 760px; margin-bottom: 24px; color: var(--muted); font-size: 1.0625rem; }
.section-head .section-intro { margin-bottom: 0; }
.subhead { margin: 40px 0 6px; font-size: 1.0625rem; }
.subhead + .section-intro { font-size: 0.9375rem; margin-bottom: 16px; }

/* Downloads */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.download { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 20px 24px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card-shine), var(--surface); box-shadow: var(--card-shadow); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s, background-color 0.15s; }
.download:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.download.primary { border-color: rgba(103, 219, 181, 0.55); background: linear-gradient(120deg, rgba(103, 219, 181, 0.09), rgba(103, 219, 181, 0) 55%), var(--surface); }
.dl-icon { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(103, 219, 181, 0.18); }
.dl-icon svg { width: 22px; height: 22px; }
/* Tint the icon by file type, so a list of files scans at a glance */
.download[data-file$=".pdf"] .dl-icon { background: #3a1d19; color: #ff9b8a; box-shadow: inset 0 0 0 1px rgba(255, 155, 138, 0.2); }
.download[data-file$=".docx"] .dl-icon { background: #15243d; color: #8fb6ff; box-shadow: inset 0 0 0 1px rgba(143, 182, 255, 0.2); }
.dl-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.dl-label { font-family: Lexend, system-ui, sans-serif; font-weight: 600; color: #fff; font-size: 1.0625rem; }
.dl-desc { color: var(--muted); font-size: 0.9375rem; }
.dl-meta { color: var(--primary); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.badge { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
/* Secondary files: a quieter, tighter list */
.downloads.compact { gap: 10px; }
.downloads.compact .download { min-height: 0; padding: 14px 18px; gap: 16px; background: var(--surface-low); box-shadow: none; }
.downloads.compact .dl-icon { width: 38px; height: 38px; border-radius: 10px; }
.downloads.compact .dl-icon svg { width: 18px; height: 18px; }
.downloads.compact .dl-label { font-size: 0.96875rem; }
.downloads.compact .dl-desc { font-size: 0.875rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; counter-increment: step; padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card-shine), var(--surface); box-shadow: var(--card-shadow); color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--primary); font-family: Lexend, system-ui, sans-serif; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; padding-bottom: 14px; border-bottom: 1px solid var(--border-strong); }
.steps strong { display: block; margin-bottom: 8px; color: #fff; font-family: Lexend, system-ui, sans-serif; font-weight: 600; font-size: 1.125rem; }

/* Call to action */
.cta { position: relative; overflow: hidden; isolation: isolate; margin-block: 32px 96px; padding: 56px; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(135deg, #0d1f1a 0%, #133b2e 100%); box-shadow: var(--card-shadow); }
.cta::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(closest-side, rgba(103, 219, 181, 0.18), transparent); pointer-events: none; }
.cta p { max-width: 680px; color: var(--text); font-size: 1.0625rem; }
.cta .cta-facts { margin-top: 18px; color: var(--accent); font-family: Lexend, system-ui, sans-serif; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.875rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border: 1px solid var(--primary-container); border-radius: 8px; background: var(--primary-container); color: var(--on-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; box-shadow: 0 8px 24px -12px rgba(47, 171, 136, 0.7); transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.button:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--primary); border-color: var(--primary); box-shadow: none; }
.button.secondary:hover { background: var(--primary); color: var(--on-primary); }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner .logo { margin-bottom: 16px; }
.footer-inner p { color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-block; padding: 8px 0; color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 48px); }
  .logo { height: 44px; }
  .site-header .header-cta { padding: 10px 16px; font-size: 0.75rem; }
  .hero { padding: 40px 0 32px; }
  .hero .eyebrow { border-radius: 16px; letter-spacing: 0.08em; font-size: 0.6875rem; }
  .intro { font-size: 1.0625rem; }
  .facts { flex-direction: column; gap: 10px; }
  .section { padding: 28px 0 48px; }
  .steps li { padding: 22px; }
  .download { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .download .badge { margin-left: auto; }
  .dl-text { flex-basis: 100%; order: 1; }
  .downloads.compact .download { flex-wrap: nowrap; }
  .downloads.compact .dl-text { flex-basis: auto; order: 0; }
  .cta { padding: 32px 22px; margin-block-end: 56px; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download, .button { transition: none; }
  .download:hover, .button:hover { transform: none; }
}
