/* Nurse Exam Hub content pages (guides, exam hubs, topic pages).
   Same palette as the app; tuned for reading, not tapping. */

:root {
  --ink: #10233f;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --sunken: #e9edf3;
  --line: #dde3eb;
  --muted: #5a6b80;
  --marigold: #f5a524;
  --marigold-soft: #fdf0d6;
  --good: #1f8a5b;
  --good-soft: #e2f3ea;
  --text: #10233f;
  --link: #1d4f91;
  --font: "Noto Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0b1626;
    --paper: #0f1a2b;
    --surface: #17253b;
    --sunken: #1d2d47;
    --line: #2a3b57;
    --muted: #9fb0c6;
    --marigold-soft: #3a2e14;
    --good: #5fd39b;
    --good-soft: #15392b;
    --text: #e9eff7;
    --link: #8cb8f2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 17px/1.65 var(--font); background: var(--paper); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

/* Header */
.site-head { background: #10233f; color: #fff; }
.site-head__in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.site-head__in > .btn { margin-left: auto; }
@media (max-width: 640px) {
  .site-head__in { gap: 8px 12px; }
  .site-nav { order: 3; flex: 0 0 100%; margin: 0 -10px; }
}
.site-nav a { color: #d7e0ec; text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  background: var(--marigold); color: #10233f; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 0.95rem; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); }

/* Layout */
main { max-width: 760px; margin: 0 auto; padding: 8px 20px 64px; }
main.wide { max-width: 1040px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; margin: 16px 0 12px; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 20px; }
.meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 6px; }

/* Facts table and tables in guides */
table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 0.95rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--sunken); }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Call to action band */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 28px 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta p { margin: 0; }
.cta b { display: block; font-size: 1.05rem; }

/* Question cards */
.q { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.q__num { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.q__stem { font-weight: 600; margin: 0 0 10px; }
.q ol { list-style: none; padding: 0; margin: 0 0 12px; }
.q ol li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.q ol li b { margin-right: 6px; }
.q details { border-top: 1px dashed var(--line); padding-top: 10px; }
.q summary { cursor: pointer; font-weight: 700; color: var(--link); }
.q .answer { background: var(--good-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0 6px; }
.q .ref { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* Cards grid (home, hubs) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--marigold); }
.card b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 0.95rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--marigold-soft); margin-bottom: 8px; }

/* Home hero */
.hero { background: #10233f; color: #fff; }
.hero__in { max-width: 1040px; margin: 0 auto; padding: 40px 20px 48px; }
.hero h1 { margin-top: 0; max-width: 18ch; }
.hero p { color: #c9d4e3; font-size: 1.1rem; max-width: 56ch; }
.hero .btn--line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.returning-only { display: none; }
.returning .returning-only { display: inline-flex; }

.note { background: var(--marigold-soft); border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; }
.sources { font-size: 0.9rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-foot__in { max-width: 1040px; margin: 0 auto; padding: 24px 20px 40px; display: grid; gap: 10px; }
.site-foot a { color: var(--muted); }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
