/* MyPHU 2026 visual system
   Inspired by contemporary wellness dashboards, but grounded in MyPHU's
   actual job: information, urgency signposting and local support. */

:root {
  --ink: #163238;
  --ink-soft: #526d72;
  --navy: #12363b;
  --navy-deep: #082b31;
  --teal: #08777d;
  --teal-mid: #15969a;
  --teal-bright: #79dfd9;
  --mint: #def6f1;
  --blue: #dff1f8;
  --lilac: #ece9ff;
  --sand: #fff0cf;
  --paper: #ffffff;
  --cloud: #f4faf8;
  --line: #d7e7e4;
  --lime: #e3ff57;
  --coral: #ff806f;
  --danger: #d44652;
  --danger-deep: #8f2630;
  --danger-soft: #fff0f1;
  --warning: #996000;
  --warning-soft: #fff7df;
  --shadow: 0 30px 80px rgba(8, 43, 49, .14);
  --shadow-small: 0 14px 38px rgba(8, 43, 49, .10);
  --radius: 28px;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", Aptos, "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

html { background: var(--navy-deep); }
body { background: var(--cloud); color: var(--ink); }
main { overflow: clip; background: var(--paper); }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; }
p { text-wrap: pretty; }

.container { width: min(1240px, calc(100% - 48px)); }

.safety-bar {
  background: #082b31;
  color: #dff6f3;
  font-size: .78rem;
  letter-spacing: .01em;
}
.safety-inner { min-height: 38px; }
.safety-inner p { display: flex; align-items: center; gap: 7px; }
.safety-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255,128,111,.14);
}
.safety-inner a { color: var(--lime); }

.site-header {
  background: rgba(255,255,255,.90);
  border-bottom-color: rgba(17,78,82,.10);
  backdrop-filter: blur(22px) saturate(1.2);
}
.nav-shell { min-height: 82px; gap: 28px; }
.brand { min-width: 190px; gap: 11px; }
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 14px;
  background: var(--navy-deep);
}
.brand-mark svg path:first-child { fill: var(--lime); }
.brand-mark svg .brand-pulse { stroke: var(--navy-deep); }
.brand b { color: var(--navy-deep); font-size: 1.28rem; font-weight: 900; }
.brand small { color: #60777b; font-size: .68rem; font-weight: 650; }

.site-nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(8,119,125,.10);
  border-radius: 999px;
  background: #f1f8f6;
}
.site-nav a {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: #31555a;
  font-size: .82rem;
  font-weight: 750;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.site-nav a::after { display: none; }
.site-nav a:hover { color: var(--navy-deep); background: #fff; }
.site-nav a[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--lime);
  box-shadow: 0 5px 14px rgba(94,123,0,.12);
}

.country-control {
  gap: 7px;
  padding-left: 0;
  border-left: 0;
}
.country-control label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.country-control select {
  max-width: 160px;
  min-height: 46px;
  border-color: rgba(8,119,125,.18);
  border-radius: 14px;
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 7px 18px rgba(8,43,49,.06);
}

.hero-dashboard {
  position: relative;
  padding: 72px 0 76px;
  background:
    radial-gradient(circle at 86% 16%, rgba(227,255,87,.42), transparent 24%),
    radial-gradient(circle at 13% 88%, rgba(121,223,217,.35), transparent 27%),
    #dff3f1;
}
.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(8,43,49,.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, transparent 45%, #000);
  opacity: .45;
}
.hero-dashboard::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(8,119,125,.16);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
  gap: 66px;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.eyebrow span {
  width: 30px;
  height: 3px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: var(--coral);
}
.hero h1,
.page-hero h1,
.detail-hero h1 {
  color: var(--navy-deep);
  font-size: clamp(3.25rem, 5.6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.hero h1 em {
  position: relative;
  z-index: 0;
  display: inline;
  color: var(--navy-deep);
  font-style: normal;
}
.hero h1 em::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -.08em;
  bottom: .04em;
  left: -.05em;
  height: .42em;
  border-radius: 999px 18px 999px 20px;
  background: var(--lime);
  transform: rotate(-1.2deg);
}
.hero-lead {
  max-width: 650px;
  margin: 27px 0 28px;
  color: #416268;
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-search {
  max-width: 680px;
  padding: 8px 8px 8px 18px;
  border-color: rgba(8,119,125,.16);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(8,43,49,.12);
}
.hero-search input { font-size: .94rem; }
.hero-search button,
.page-search button {
  min-height: 48px;
  padding-inline: 21px;
  border-radius: 13px;
  background: var(--navy-deep);
  transition: transform .18s ease, background .18s ease;
}
.hero-search button:hover,
.page-search button:hover {
  background: var(--teal);
  transform: translateY(-1px);
}
.quick-searches { color: #668084; }
.quick-searches a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(8,119,125,.26);
}
.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #3f6065;
  font-size: .76rem;
  font-weight: 750;
}
.hero-assurances span { display: inline-flex; align-items: center; gap: 6px; }
.hero-assurances svg {
  width: 17px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-route { min-height: 520px; }
.hero-route::before {
  width: 92%;
  border-color: rgba(8,119,125,.13);
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 30px rgba(255,255,255,.12);
}
.health-console {
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(8,119,125,.16);
  border-radius: 34px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 35px 90px rgba(8,43,49,.17);
}
.health-console::before { display: none; }
.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.console-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #37595e;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.console-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39c997;
  box-shadow: 0 0 0 6px rgba(57,201,151,.14);
}
.console-country {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--navy-deep);
  color: var(--lime);
  font-size: .74rem;
  font-weight: 900;
}
.console-pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 18px;
  padding: 14px 15px 12px;
  border-radius: 20px;
  background: var(--navy-deep);
  color: #b9d2d3;
}
.console-pulse svg { grid-column: 1 / -1; width: 100%; height: 74px; }
.pulse-grid { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1; }
.pulse-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 650;
  animation: draw-pulse 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.console-pulse span { font-size: .62rem; font-weight: 750; text-align: center; }
.health-console h2 {
  margin: 0 0 18px;
  color: var(--navy-deep);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.console-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.console-route li {
  display: block;
  min-height: 158px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f7fbfa;
}
.console-route li:first-child { background: var(--mint); }
.console-route li:nth-child(2) { background: var(--sand); }
.console-route li:nth-child(3) { background: var(--blue); }
.console-route li::after,
.console-route li:not(:last-child)::after { display: none; }
.console-route .route-number {
  width: auto;
  height: auto;
  display: inline-block;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font-size: .7rem;
}
.console-route strong { font-size: .82rem; }
.console-route small { font-size: .69rem; line-height: 1.45; }
.console-actions {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
  margin-top: 10px;
}
.console-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy-deep);
  font-size: .75rem;
  font-weight: 850;
}
.console-actions a:first-child { border-color: var(--lime); background: var(--lime); }
.health-console .care-route-note { margin-top: 15px; padding-top: 13px; }

.trust-strip { background: #fff; }
.trust-grid { min-height: 104px; }
.trust-grid div { gap: 10px; }
.trust-grid strong {
  color: var(--navy-deep);
  font-size: 1.5rem;
  font-weight: 900;
}
.trust-grid span { color: #667f83; font-size: .78rem; }

.section { padding: 104px 0; }
.help-start-section { background: #fff; }
.section-heading h2,
.split-panel h2,
.emergency-inner h2,
.help-title-grid h1 {
  color: var(--navy-deep);
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.split-heading { align-items: flex-end; }
.split-heading > p { color: #5a7378; }

.bento-feature-grid {
  grid-template-columns: 1.16fr .84fr .84fr;
  grid-template-rows: repeat(2, minmax(210px, auto));
  gap: 14px;
}
.feature-card {
  min-height: 0;
  padding: 27px;
  overflow: hidden;
  border: 0;
  border-top: 0;
  border-radius: 26px;
  background: var(--feature-tint, var(--mint));
  box-shadow: inset 0 0 0 1px rgba(8,43,49,.06);
}
.feature-card-large { grid-row: 1 / 3; }
.feature-card:nth-child(2) { grid-column: 2 / 4; }
.feature-card:nth-child(3) { grid-column: 2; }
.feature-card:nth-child(4) { grid-column: 3; }
a.feature-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 20px 45px rgba(8,43,49,.10), inset 0 0 0 1px rgba(8,43,49,.08);
}
.feature-icon {
  min-width: 58px;
  width: 58px;
  height: 58px;
  padding: 15px;
  border-radius: 19px;
  background: rgba(255,255,255,.72);
}
.feature-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon-type { width: auto; min-width: 68px; padding-inline: 15px; }
.card-label { margin-top: 29px; }
.feature-card h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.feature-card-large h3 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.feature-card-large > p:not(.card-label) { max-width: 420px; font-size: .96rem; }
.card-link { padding-top: 12px; border-top: 1px solid rgba(8,43,49,.10); }

.self-check-promo {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
}
.self-check-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(227,255,87,.16), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(121,223,217,.18), transparent 27%);
}
.self-check-promo .split-panel { position: relative; z-index: 1; }
.self-check-promo .eyebrow { color: var(--teal-bright); }
.self-check-promo h2 { color: #fff; }
.self-check-promo .split-panel > div:first-child > p:not(.eyebrow) { color: #c5d8da; }
.self-check-promo .button-primary { background: var(--lime); color: var(--navy-deep); }
.steps-card {
  padding: 0 34px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.steps-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 17px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #bfd4d6;
  font-size: .72rem;
}
.steps-card-heading strong { color: var(--lime); }
.steps-card li { border-color: rgba(255,255,255,.12); }
.steps-card li > span { background: var(--lime); color: var(--navy-deep); }
.steps-card strong { color: #fff; }
.steps-card small { color: #afc6c8; }

.symptom-preview-section { background: #f7fbfa; }
.symptom-preview-section .split-heading .text-link { margin-bottom: 7px; }
.list-card {
  min-height: 132px;
  border: 0;
  border-radius: 23px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.list-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 17px 38px rgba(8,43,49,.10), inset 0 0 0 1px rgba(8,119,125,.20);
}
.list-card-icon { border-radius: 18px; background: var(--lime); color: var(--navy-deep); }

.emergency-panel {
  position: relative;
  padding: 70px 0;
  background: #8f2630;
}
.emergency-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.05), transparent 35% 65%, rgba(255,255,255,.05));
}
.emergency-inner { position: relative; }
.emergency-icon { background: var(--coral); color: var(--navy-deep); }
.emergency-action { border-left-color: rgba(255,255,255,.26); }
.emergency-action a { color: var(--lime); }

/* Interior pages: retain a calm dashboard rhythm without inventing patient data. */
.page-hero,
.detail-hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 88% 20%, rgba(227,255,87,.34), transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(121,223,217,.28), transparent 26%),
    #e5f5f2;
}
.compact-hero h1,
.detail-hero h1 { font-size: clamp(3rem, 5.2vw, 5rem); }
.page-search,
.source-banner,
.safety-note,
.check-form,
.next-step-card,
.help-card,
.directory-item,
.product-grid .feature-card {
  border-color: rgba(8,119,125,.15);
  border-radius: 22px;
}
.page-search { box-shadow: 0 15px 42px rgba(8,43,49,.10); }
.source-banner { border-radius: 20px; }
.alphabet {
  top: 82px;
  gap: 6px;
  padding-block: 12px;
  border-color: rgba(8,119,125,.12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}
.alphabet a { border-radius: 13px; }
.alphabet a:hover { background: var(--lime); color: var(--navy-deep); }
.directory-group > h2 { color: var(--navy-deep); font-weight: 900; }
.directory-item {
  min-height: 136px;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.directory-item:hover { box-shadow: var(--shadow-small), inset 0 0 0 1px rgba(8,119,125,.2); }
.tag { background: var(--lime); color: var(--navy-deep); }
.button { border-radius: 14px; }
.button-primary { background: var(--navy-deep); }
.button-primary:hover { background: var(--teal); }
.choice-grid label > span,
.warning-choices label { border-radius: 16px; }
.choice-grid input:checked + span { border-color: var(--teal); background: var(--mint); }
.help-card { border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.site-footer {
  padding-top: 78px;
  background:
    radial-gradient(circle at 86% 22%, rgba(227,255,87,.08), transparent 24%),
    #082b31;
}
.brand-footer .brand-mark svg path:first-child { fill: var(--lime); }
.footer-grid h2 { color: var(--teal-bright); }
.footer-grid > div:not(:first-child) a:hover,
.footer-licence a { color: var(--lime); }

@keyframes draw-pulse {
  from { stroke-dashoffset: 650; opacity: .25; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 1120px) {
  .site-nav a { padding-inline: 11px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr); gap: 36px; }
  .bento-feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-card-large { grid-row: auto; }
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) { grid-column: auto; }
}

@media (max-width: 850px) {
  .container { width: min(100% - 34px, 1240px); }
  .nav-shell { min-height: 72px; }
  .site-nav {
    border-radius: 22px;
    background: #f4faf8;
  }
  .site-nav.is-open { gap: 5px; padding: 8px; }
  .site-nav a { justify-content: center; }
  .hero-dashboard { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { max-width: 720px; }
  .hero-route { min-height: 0; }
  .health-console { margin-inline: auto; }
  .split-panel { gap: 50px; }
  .alphabet { top: 72px; }
}

@media (max-width: 660px) {
  .container,
  .container.narrow,
  .prose { width: min(100% - 28px, 1240px); }
  .safety-inner { min-height: 48px; }
  .safety-inner p { max-width: 240px; }
  .safety-inner a span { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .country-control select { width: 104px; max-width: 104px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.3rem); }
  .hero-lead { font-size: 1rem; }
  .hero-assurances { display: grid; grid-template-columns: 1fr 1fr; }
  .health-console { padding: 17px; border-radius: 26px; }
  .console-pulse { margin-top: 17px; }
  .console-route { grid-template-columns: 1fr; }
  .console-route li { min-height: 0; display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
  .console-route .route-number { margin: 2px 0 0; }
  .console-actions { grid-template-columns: 1fr; }
  .trust-grid div { padding: 10px; text-align: center; }
  .trust-grid strong,
  .trust-grid span { display: block; }
  .section { padding: 78px 0; }
  .section-heading h2,
  .split-panel h2 { font-size: clamp(2.3rem, 10vw, 3.3rem); }
  .bento-feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  .feature-card-large h3 { font-size: 2.35rem; }
  .steps-card { padding-inline: 20px; }
  .steps-card-heading { display: grid; gap: 4px; }
  .emergency-panel { padding: 58px 0; }
  .page-hero,
  .detail-hero { padding: 62px 0 55px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line { animation: none; stroke-dasharray: none; }
}
