/* nf24u.com — shared styles. Big text, high contrast, large touch targets. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #10293A;
  --navy-2: #1B3B50;
  --teal: #0B6E6E;
  --teal-dark: #084F4F;
  --teal-tint: #E6F2F2;
  --orange: #B4501C;
  --orange-tint: #FFF4EC;
  --ink: #10293A;
  --ink-soft: #3A5363;
  --muted: #5B7382;
  --line: #DCE5E8;
  --bg: #F4F7F8;
  --card: #FFFFFF;
  --radius: 18px;
  --base: 18px;
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
}
html.text-lg { --base: 21px; }
html.text-xl { --base: 24px; }
html.contrast {
  --ink: #000; --ink-soft: #000; --muted: #1a1a1a; --line: #000;
  --bg: #fff; --card: #fff; --teal: #004d4d; --orange: #8a3300; --teal-tint: #fff; --orange-tint: #fff;
}

* { box-sizing: border-box; }
html { font-size: var(--base); }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.35rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 0; display: inline-block; }
.main-nav a[aria-current="page"] { color: var(--teal); border-bottom: 3px solid var(--teal); }
.access-bar { background: var(--navy); color: #E6F0F2; font-size: 0.82rem; }
.access-bar .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.access-bar button { background: none; border: 1px solid #6E8A96; color: #E6F0F2; border-radius: 6px; padding: 4px 12px; font: inherit; cursor: pointer; min-height: 34px; }
.access-bar button[aria-pressed="true"] { background: #E6F0F2; color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(0.92); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { color: #fff; background: var(--teal-dark); }
.btn-soft { background: var(--teal-tint); color: var(--teal-dark); }
.btn-outline { background: var(--card); color: var(--teal); border-color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.hero { background: var(--card); padding: 64px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-grid > * { flex: 1 1 420px; min-width: 0; }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; }
.section { padding: 56px 0; }
.section-dark { background: var(--navy); color: #E6F0F2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #8FD3D1; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-soft); }
.panel { background: var(--teal-tint); border-radius: 24px; padding: 30px; }
.panel-warm { background: var(--orange-tint); border-radius: 24px; padding: 30px; }
.note { background: var(--orange-tint); border: 1px solid #F1D3BF; border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; }
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.review-stamp { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }

/* Chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid #C9D8DD; color: var(--ink); text-decoration: none; font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F0F3F5; color: var(--ink-soft); margin: 0 6px 6px 0; }
.tag-trial { background: #E0F1EC; color: #145C45; }
.tag-cohort { background: #E3ECF8; color: #23407A; }
.tag-review { background: #EDE6F7; color: #4B2C7A; }
.tag-lab { background: #F6EBD9; color: #7A4B0E; }
.tag-report { background: #F7E3E3; color: #7A1F1F; }
.tag-guideline { background: #DFF0F7; color: #0E4F6B; }

/* Search */
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-row input { flex: 1 1 260px; min-height: 56px; padding: 0 18px; border: 2px solid #9FB8C1; border-radius: 12px; font: inherit; background: #fff; color: #10293A; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-family: var(--head); font-weight: 700; margin-bottom: 8px; }
.filters label { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 0.9rem; }
.filters input[type=checkbox] { width: 20px; height: 20px; }
.layout-side { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-side > .side { flex: 1 1 240px; max-width: 300px; }
.layout-side > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.result-count { color: var(--muted); font-size: 0.9rem; }
.entry h3 { margin-bottom: 6px; }
.entry .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.conflict { background: var(--orange-tint); border: 1px solid #F1D3BF; border-radius: var(--radius); padding: 22px; }
.conflict .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.conflict .pair > div { background: var(--card); border-radius: 12px; padding: 16px; }

/* Directory */
.dir-card h3 a { text-decoration: none; color: var(--ink); }
.dir-card h3 a:hover { color: var(--teal); }
.dir-card .where { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* Forms */
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid #9FB8C1; border-radius: 10px; font: inherit; background: #fff; color: #10293A; }
.form textarea { min-height: 120px; }
.form .check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.form .check input { width: 22px; min-height: 22px; height: 22px; margin-top: 3px; flex: none; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D8DD; font-size: 0.85rem; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.access-bar .wrap { justify-content: flex-start; }
.section-dark .btn-outline { color: var(--teal); }
.section-dark .btn-outline:hover { color: var(--teal-dark); }
.logo-text span { color: var(--teal); }
