/* Nurse Singles modern visual layer (2026-10-31).
   Loaded after each page's own styles; changes appearance only, never content. */
:root {
  color-scheme: light;
  --ink: #0b1b2b;
  --muted: #4b5b6b;
  --soft: #64748b;
  --line: #e4e9f0;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --rose: #e11d48;
  --rose-soft: #fff1f3;
  --blue: #2563eb;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 36px -14px rgba(15, 23, 42, .22);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px -18px rgba(15, 23, 42, .30);
  --grad: linear-gradient(135deg, #0f766e 0%, #0e9f97 45%, #2563eb 100%);
  --grad-warm: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(20, 184, 166, .16), transparent 62%),
    radial-gradient(900px 480px at 100% -4%, rgba(225, 29, 72, .09), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(20, 184, 166, .22); }

a { color: var(--teal); font-weight: 700; text-decoration-color: rgba(15, 118, 110, .35); }
a:hover { color: #0b5f59; text-decoration-color: currentColor; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.022em; }
h1 { line-height: 1.04; }
h2 { letter-spacing: -.016em; }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  background: rgba(20, 184, 166, .10);
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--grad-warm);
}

/* ---------- Top navigation (all page families) ---------- */
.topbar,
.ns-topbar {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom: 1px solid rgba(15, 23, 42, .07) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 24px -18px rgba(15, 23, 42, .35);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav, .ns-nav { padding-top: 12px; padding-bottom: 12px; }
/* Legal pages ship no layout for their nav; give them the same one */
.ns-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.ns-brand { display: inline-flex; align-items: center; gap: 10px; }
.ns-brand, .ns-links a { font-family: inherit !important; }
.ns-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
.ns-links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nav-links, .ns-links { min-width: 0; }
.contact-box { overflow-wrap: anywhere; }

.brand, .ns-brand {
  color: var(--ink) !important;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-mark, .ns-brand-mark {
  background: var(--grad) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px -8px rgba(15, 118, 110, .7);
  color: #fff !important;
  font-weight: 800;
}

.nav-links, .ns-links { gap: 4px !important; align-items: center; }
.nav-links a, .ns-links a {
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"],
.ns-links a:hover, .ns-links a:focus-visible, .ns-links a[aria-current="page"] {
  background: rgba(15, 118, 110, .09);
  color: var(--teal) !important;
}
.nav-links a[href="/welcome"], .ns-links a[href="/welcome"] {
  background: var(--grad);
  color: #fff !important;
  padding: 9px 16px;
  box-shadow: 0 10px 20px -10px rgba(15, 118, 110, .8);
}
.nav-links a[href="/welcome"]:hover, .ns-links a[href="/welcome"]:hover { filter: brightness(1.06); color: #fff !important; }

/* ---------- Buttons ---------- */
.button, .tool-button {
  background: var(--grad) !important;
  border: 0;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px -12px rgba(15, 118, 110, .75);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -.005em;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button:hover, .tool-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 28px -12px rgba(15, 118, 110, .85); }
.button.secondary, .tool-button.secondary {
  background: #fff !important;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  color: var(--ink) !important;
}
.button.secondary:hover, .tool-button.secondary:hover { border-color: rgba(15, 118, 110, .35); color: var(--teal) !important; }

/* ---------- Surfaces ---------- */
.panel, .card, .article-card, .notice, .hub-intro, .contact-box, .tool-shell, .planner-grid div, .table-scroll {
  background: var(--card);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
.card, .article-card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift) !important; }
.card img, .article-card img, .panel img { border-radius: 0; }
.panel img { border-radius: var(--radius-sm) !important; border: 0 !important; }
.card img, .article-card img { height: 196px !important; transition: transform .35s ease; }
.card:hover img, .article-card:hover img { transform: scale(1.035); }
.card h2, .article-body h3 { letter-spacing: -.015em; }
.card h2 a, .article-body h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .article-body h3 a:hover { color: var(--teal); }

.hub-intro {
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(225, 29, 72, .08), transparent 70%),
    radial-gradient(700px 300px at 0% 100%, rgba(20, 184, 166, .12), transparent 70%),
    #fff;
}

/* Feature lists become checkmark rows */
.signal-list li {
  position: relative;
  border-left: 0 !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  padding: 12px 14px 12px 46px !important;
  color: var(--ink);
}
.signal-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--grad) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E"), var(--grad);
}

.compact-list li::before { background: var(--grad-warm) !important; }

.notice { border-left: 0 !important; background: linear-gradient(0deg, #fff, #fff) padding-box, var(--grad-warm) border-box; border: 1px solid transparent !important; }

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
}

/* Callouts, editorial notes, reviewer note */
.callout, .editorial-note {
  background: linear-gradient(135deg, rgba(20, 184, 166, .08), rgba(37, 99, 235, .05)) !important;
  border: 1px solid rgba(20, 184, 166, .25) !important;
  border-left: 1px solid rgba(20, 184, 166, .25) !important;
  border-radius: var(--radius) !important;
  box-shadow: none;
}
.reviewer-note {
  background: linear-gradient(135deg, var(--rose-soft), #fff) !important;
  border-color: rgba(225, 29, 72, .18) !important;
}
.reviewer-note h2::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #fff;
  font-size: 14px;
  vertical-align: 3px;
}

/* CTA band */
.cta {
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
    var(--grad) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 50px -24px rgba(15, 118, 110, .75);
  padding: clamp(24px, 4vw, 36px) !important;
}
.cta h2 { color: #fff; }
.cta a {
  border-radius: 999px !important;
  font-weight: 800;
  padding: 0 20px !important;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
.cta a:hover { transform: translateY(-1px); }

/* ---------- Articles ---------- */
.article h1 { font-size: clamp(34px, 5.4vw, 54px); }
.article p, .article li { color: #334155; font-size: 18px; line-height: 1.78; }
.article h2 { margin-top: 44px; }
.dek { color: var(--soft) !important; font-size: 20px; line-height: 1.6; }
.byline {
  border: 0 !important;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  outline: 1px solid var(--line);
  display: inline-flex !important;
  padding: 10px 18px !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
.byline span + span::before { content: "\2022"; margin-right: 12px; color: #cbd5e1; }
.hero-image {
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-height: none !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45) !important;
}
.article blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal-2);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.comparison-table thead th { background: #f1f5f9 !important; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, .6);
  color: var(--soft) !important;
  font-size: 14px;
}
.footer a { color: #334155; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .article-card, .button, .tool-button, .cta a, .card img, .article-card img { transition: none !important; }
  .card:hover, .article-card:hover, .button:hover { transform: none !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .nav, .ns-nav { flex-direction: column; flex-wrap: nowrap !important; align-items: stretch !important; gap: 8px !important; }
  .brand, .ns-brand { align-self: flex-start; }
  .nav-links, .ns-links {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav-links::-webkit-scrollbar, .ns-links::-webkit-scrollbar { display: none; }
  .nav-links a, .ns-links a { white-space: nowrap; flex: 0 0 auto; }
  .byline { border-radius: var(--radius-sm); }
  .card img, .article-card img { height: 180px !important; }
  .article p, .article li { font-size: 17px; }
}
