/* ==========================================================================
   HealthKeystone — web design system

   Two lineages meet here, on purpose:

   • The iOS app supplies the vocabulary. Grouped gray backdrop, white cards at
     a 20px continuous radius with a hairline border and a soft shadow, tinted
     icon badges, capsule meta and status pills, uppercase count rows. The six
     category tints are the SwiftUI system colors `HealthRecordCategory.tint`
     resolves to, light and dark variants both, so a record that is pink on the
     phone is the same pink in a doctor's browser.

   • Noii Consulting supplies the marketing voice. Deep navy sections with a
     tropical bloom wash, the orange call-to-action, Plus Jakarta Sans over
     Inter, the eyebrow-with-a-dot, the shadow and radius scale. The landing
     page reads as a Noii property; the portal behind it reads as the app.

   Body type leads with -apple-system so the portal renders in SF Pro on Apple
   hardware — the same face the app uses — and falls back to Inter elsewhere.
   ========================================================================== */

/* --- Tokens: light -------------------------------------------------------- */

:root {
  /* Noii brand */
  --navy-900: #08111f;
  --navy-800: #0b1729;
  --navy-700: #0d1b33;
  --navy-600: #14243f;
  --navy-500: #1b3157;
  --navy-line: #233a61;

  --orange-600: #e0631a;
  --orange-500: #f2762a;
  --orange-400: #ff9d4d;
  --coral: #f4633f;
  --leaf: #2f9e63;

  /* iOS semantic surfaces (systemGroupedBackground family) */
  --bg-grouped: #f2f2f7;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --bg-field: #ffffff;
  --hairline: rgba(60, 60, 67, 0.13);
  --card-border: rgba(0, 0, 0, 0.06);

  /* iOS label colors */
  --label: #11141a;
  --label-secondary: rgba(60, 60, 67, 0.62);
  --label-tertiary: rgba(60, 60, 67, 0.34);

  /* Category tints — SwiftUI system colors, light appearance */
  --tint-medical_history: #ff2d55;
  --tint-symptoms: #ff3b30;
  --tint-surgical_history: #30b0c7;
  --tint-allergies: #ff9500;
  --tint-family_medical_history: #af52de;
  --tint-immunization_record: #34c759;
  --tint-lab_tests: #5856d6;

  --tint-accent: #30b0c7;
  --tint-positive: #34c759;
  --tint-warning: #ff9500;
  --tint-danger: #ff3b30;

  /* On-dark text, for navy sections */
  --on-dark: #ffffff;
  --on-dark-soft: #b9c6dc;
  --on-dark-faint: #8697b4;

  /* Type */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  /* Shape — the card radius is the app's 20pt continuous corner */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-card: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 3px 8px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(13, 27, 51, .06), 0 2px 8px rgba(13, 27, 51, .04);
  --shadow: 0 8px 24px rgba(13, 27, 51, .08), 0 2px 6px rgba(13, 27, 51, .04);
  --shadow-lg: 0 24px 60px rgba(8, 17, 31, .18);
  --shadow-orange: 0 10px 30px rgba(242, 118, 42, .28);

  --header-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- Tokens: dark --------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-grouped: #000000;
    --bg-card: #1c1c1e;
    --bg-raised: #2c2c2e;
    --bg-field: #1c1c1e;
    --hairline: rgba(84, 84, 88, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);

    --label: #f2f2f7;
    --label-secondary: rgba(235, 235, 245, 0.6);
    --label-tertiary: rgba(235, 235, 245, 0.3);

    --tint-medical_history: #ff375f;
    --tint-symptoms: #ff453a;
    --tint-surgical_history: #40c8e0;
    --tint-allergies: #ff9f0a;
    --tint-family_medical_history: #bf5af2;
    --tint-immunization_record: #30d158;
    --tint-lab_tests: #5e5ce6;

    --tint-accent: #40c8e0;
    --tint-positive: #30d158;
    --tint-warning: #ff9f0a;
    --tint-danger: #ff453a;

    --shadow-card: 0 3px 8px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
    --shadow: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg-grouped: #000000;
  --bg-card: #1c1c1e;
  --bg-raised: #2c2c2e;
  --bg-field: #1c1c1e;
  --hairline: rgba(84, 84, 88, 0.5);
  --card-border: rgba(255, 255, 255, 0.08);

  --label: #f2f2f7;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.3);

  --tint-medical_history: #ff375f;
  --tint-symptoms: #ff453a;
  --tint-surgical_history: #40c8e0;
  --tint-allergies: #ff9f0a;
  --tint-family_medical_history: #bf5af2;
  --tint-immunization_record: #30d158;
  --tint-lab_tests: #5e5ce6;

  --tint-accent: #40c8e0;
  --tint-positive: #30d158;
  --tint-warning: #ff9f0a;
  --tint-danger: #ff453a;

  --shadow-card: 0 3px 8px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--label);
  background: var(--bg-card);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--label);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--orange-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--orange-500);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 820px; }
.container--form { max-width: 520px; }

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--bg-card);
  overflow: hidden;
}
.section--tint { background: var(--bg-grouped); }
.section--navy {
  background:
    radial-gradient(120% 80% at 15% 0%, #16294a 0%, transparent 55%),
    linear-gradient(165deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--on-dark-soft);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--on-dark); }

.section__head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.section__lede {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--label-secondary);
  line-height: 1.7;
}
.section--navy .section__lede { color: var(--on-dark-soft); }

/* The tropical bloom wash Noii uses behind dark sections. */
.bloom {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  pointer-events: none;
}
.bloom--coral { background: radial-gradient(circle, var(--coral) 0%, transparent 68%); }
.bloom--teal  { background: radial-gradient(circle, #30b0c7 0%, transparent 68%); }
.bloom--orange { background: radial-gradient(circle, var(--orange-500) 0%, transparent 68%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(242, 118, 42, .2);
}
.eyebrow--ink { color: var(--orange-600); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(242, 118, 42, .38); }

.btn--outline {
  background: transparent;
  color: var(--label);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--label-tertiary); }

.section--navy .btn--outline,
.hero .btn--outline {
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}
.section--navy .btn--outline:hover,
.hero .btn--outline:hover { background: rgba(255, 255, 255, .07); }

/* The app's `.borderedProminent` capsule, tinted per category. */
.btn--tinted {
  background: var(--tint, var(--tint-accent));
  color: #fff;
}
.btn--tinted:hover { filter: brightness(1.05); }

.btn--quiet {
  background: color-mix(in srgb, var(--label) 7%, transparent);
  color: var(--label);
}
.btn--quiet:hover { background: color-mix(in srgb, var(--label) 12%, transparent); }

.btn--danger { background: transparent; color: var(--tint-danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tint-danger) 40%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--tint-danger) 10%, transparent); }

.btn--sm { padding: 9px 17px; font-size: .85rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__icon { width: 17px; height: 17px; flex: none; }
.btn--primary:hover .btn__icon--arrow { transform: translateX(3px); }
.btn__icon--arrow { transition: transform .18s var(--ease); }

/* --- Marketing header ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--navy-900);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  color: var(--on-dark);
}
.brand__sub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__actions .btn--outline { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); }
.site-header__actions .btn--outline:hover { background: rgba(255, 255, 255, .08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 22px;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-nav[data-open] { display: flex; }
.mobile-nav a {
  padding: 13px 0;
  color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 14px; color: #fff; border-bottom: 0; }

/* --- Theme toggle ----------------------------------------------------------
   Flips the `data-theme` override on <html> between "light" and "dark",
   which the token blocks above already know how to honour. Leaving the
   attribute unset (the default) keeps following the OS setting. */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
  transition: background .16s var(--ease);
}
.theme-toggle__icon { width: 19px; height: 19px; flex: none; }
.theme-toggle__label { display: none; }

.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__icon--moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

.site-header .theme-toggle { color: var(--on-dark); }
.site-header .theme-toggle:hover { background: rgba(255, 255, 255, .08); }

.portal-header .theme-toggle { color: var(--label-secondary); }
.portal-header .theme-toggle:hover { background: color-mix(in srgb, var(--label) 6%, transparent); color: var(--label); }

.mobile-nav .theme-toggle {
  width: 100%;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  padding: 13px 0;
  color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mobile-nav .theme-toggle:hover { background: transparent; color: #fff; }
.mobile-nav .theme-toggle .theme-toggle__label { display: inline; font-weight: 500; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(120% 90% at 12% -10%, #16294a 0%, transparent 58%),
    linear-gradient(168deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--on-dark-soft);
  overflow: hidden;
}
.hero__bloom--a { top: -180px; right: -120px; }
.hero__bloom--b { bottom: -280px; left: -160px; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: var(--on-dark);
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--orange-400), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin-top: 22px;
  max-width: 40ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--on-dark-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: .92rem;
  color: var(--on-dark-faint);
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof-icon { width: 17px; height: 17px; color: var(--leaf); flex: none; }

/* --- Phone mock: the app's own card language, shrunk ---------------------- */

.hero__panel { position: relative; }

.phone {
  position: relative;
  margin-inline: auto;
  max-width: 340px;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b3b57, #101b2e);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone__screen {
  border-radius: 34px;
  background: #f2f2f7;
  padding: 18px 14px 20px;
  overflow: hidden;
}
.phone__notch {
  width: 96px; height: 6px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: rgba(60, 60, 67, .22);
}
.phone__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #11141a;
  letter-spacing: -.02em;
}
.phone__summary {
  margin: 12px 0 10px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(60, 60, 67, .6);
}
.phone__card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  margin-bottom: 9px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .05);
}
.phone__badge {
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  color: var(--tint);
}
.phone__badge svg { width: 16px; height: 16px; }
.phone__card-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.phone__card-title {
  font-size: .82rem;
  font-weight: 600;
  color: #11141a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone__card-meta {
  display: block;
  font-size: .68rem;
  color: rgba(60, 60, 67, .6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone__pill {
  margin-left: auto;
  flex: none;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: .6rem;
  font-weight: 700;
  background: rgba(52, 199, 89, .14);
  color: #248a3d;
}
.phone__pill--muted { background: rgba(60, 60, 67, .1); color: rgba(60, 60, 67, .6); }

.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}
.floating-card strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--label); }
.floating-card span { font-size: .76rem; color: var(--label-secondary); }
.floating-card--shares { right: -12px; top: -22px; }
.floating-card--consent { left: -12px; bottom: -22px; }

/* --- Cards (marketing) ---------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__title { margin-top: 16px; font-size: 1.15rem; font-weight: 700; }
.card__body { margin-top: 10px; font-size: .97rem; color: var(--label-secondary); }
.card__list { margin-top: 14px; display: grid; gap: 8px; font-size: .93rem; color: var(--label-secondary); }
.card__list li { display: flex; align-items: flex-start; gap: 9px; }
.card__check { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--tint-positive); }

.section--navy .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}
.section--navy .card__title { color: var(--on-dark); }
.section--navy .card__body, .section--navy .card__list { color: var(--on-dark-soft); }

/* --- Pricing tabs ----------------------------------------------------------
   Plain radio inputs; the checked one drives both the active panel and the
   active label through sibling selectors alone. Works with JavaScript off —
   see static/js/hiw.js's own rule: reach for JS only where CSS can't do it. */

.pricing-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pricing-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

/* A whole card is the click target, not a pill inside one. */
.pricing-choice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  user-select: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pricing-choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pricing-choice__text { display: grid; gap: 3px; min-width: 0; }
.pricing-choice__who { font-size: .88rem; font-weight: 600; color: var(--label-secondary); }
.pricing-choice__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pricing-choice__per { font-size: .85rem; font-weight: 600; color: var(--label-secondary); }

/* Only the selected card shows its tick. */
.pricing-choice__tick {
  width: 22px;
  height: 22px;
  flex: none;
  margin-left: auto;
  color: var(--tint, var(--tint-accent));
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.pricing-tabs__panel { display: none; }

#pricing-tab-patients:checked ~ .pricing-tabs__panel--patients,
#pricing-tab-clinicians:checked ~ .pricing-tabs__panel--clinicians {
  display: block;
  animation: pricing-tab-in .2s var(--ease);
}

#pricing-tab-patients:checked ~ .pricing-choices label[for="pricing-tab-patients"],
#pricing-tab-clinicians:checked ~ .pricing-choices label[for="pricing-tab-clinicians"] {
  border-color: var(--tint, var(--tint-accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint, var(--tint-accent)) 18%, transparent);
}

#pricing-tab-patients:checked ~ .pricing-choices label[for="pricing-tab-patients"] .pricing-choice__tick,
#pricing-tab-clinicians:checked ~ .pricing-choices label[for="pricing-tab-clinicians"] .pricing-choice__tick {
  opacity: 1;
  transform: scale(1);
}

/* Keyboard focus lands on the (visually hidden) radio, so the ring has to be
   drawn on the card it controls. */
#pricing-tab-patients:focus-visible ~ .pricing-choices label[for="pricing-tab-patients"],
#pricing-tab-clinicians:focus-visible ~ .pricing-choices label[for="pricing-tab-clinicians"] {
  outline: 2px solid var(--tint-accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .pricing-choices { grid-template-columns: 1fr; gap: 12px; }
}

/* The benefit lead-ins have to out-weigh the sentence they open, or the list
   reads as one grey block and nobody scans it. */
.pricing-benefits { margin-top: 22px; }
.pricing-benefits b { color: var(--label); font-weight: 700; }

/* Two columns once there is room: the point of the tabs was less scrolling,
   and seven benefits in one column gives it straight back. */
@media (min-width: 720px) {
  .pricing-benefits .card__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 28px;
  }
}

@keyframes pricing-tab-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- The app's IconBadge -------------------------------------------------- */

.icon-badge {
  display: grid;
  place-items: center;
  width: var(--badge-size, 40px);
  height: var(--badge-size, 40px);
  flex: none;
  border-radius: calc(var(--badge-size, 40px) * 0.32);
  background: color-mix(in srgb, var(--tint, var(--tint-accent)) 16%, transparent);
  color: var(--tint, var(--tint-accent));
}
.icon-badge svg { width: calc(var(--badge-size, 40px) * 0.46); height: calc(var(--badge-size, 40px) * 0.46); }
.icon-badge--sm { --badge-size: 32px; }
.icon-badge--lg { --badge-size: 56px; }
.icon-badge--xl { --badge-size: 76px; }

/* --- The app's MetaPill / StatusPill -------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
  background: color-mix(in srgb, var(--tint, var(--label-secondary)) 12%, transparent);
  color: var(--tint, var(--label-secondary));
  white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; flex: none; }
.pill--muted { --tint: var(--label-secondary); }
.pill--status { background: color-mix(in srgb, var(--tint) 14%, transparent); }
.pill--active { --tint: var(--tint-positive); }
.pill--ended { --tint: var(--label-secondary); }
.pill--warning { --tint: var(--tint-warning); }
.pill--danger { --tint: var(--tint-danger); }

/* Severity climbs green → orange → red, so a column of symptoms can be skimmed
   for the bad ones. The gauge glyph carries the same ranking without color. */
.pill--severity { background: color-mix(in srgb, var(--tint) 14%, transparent); }
.pill--severity-mild { --tint: var(--tint-positive); }
.pill--severity-moderate { --tint: var(--tint-warning); }
.pill--severity-severe { --tint: var(--tint-danger); }

.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

/* --- Category tints ------------------------------------------------------- */

.t-medical_history { --tint: var(--tint-medical_history); }
.t-symptoms { --tint: var(--tint-symptoms); }
.t-surgical_history { --tint: var(--tint-surgical_history); }
.t-allergies { --tint: var(--tint-allergies); }
.t-family_medical_history { --tint: var(--tint-family_medical_history); }
.t-immunization_record { --tint: var(--tint-immunization_record); }
.t-lab_tests { --tint: var(--tint-lab_tests); }
.t-prescription { --tint: var(--tint-accent); }

/* --- Portal chrome -------------------------------------------------------- */

body.portal { background: var(--bg-grouped); }

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.portal-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.portal-header .brand__name { color: var(--label); }
.portal-header .brand__sub { color: var(--label-tertiary); }

.portal-nav { display: flex; align-items: center; gap: 3px; margin-left: 14px; }
.portal-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 500;
  color: var(--label-secondary);
}
.portal-nav a:hover { background: color-mix(in srgb, var(--label) 6%, transparent); color: var(--label); text-decoration: none; }
.portal-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--tint-accent) 14%, transparent);
  color: var(--tint-accent);
  font-weight: 600;
}

.portal-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint-accent) 16%, transparent);
  color: var(--tint-accent);
  font-size: .8rem;
  font-weight: 700;
  flex: none;
}

.portal-main { padding: 28px 0 72px; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head__text { min-width: 0; flex: 1 1 300px; }
.page-head__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.page-head__lede { margin-top: 6px; color: var(--label-secondary); font-size: .98rem; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tint-accent);
}
.back-link svg { width: 15px; height: 15px; }

/* The app's ListSummaryRow: an uppercase count above the cards. */
.summary-row {
  padding: 4px 4px 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--label-secondary);
}

/* --- The app's entry card ------------------------------------------------- */

.entry-list { display: grid; gap: 12px; }

.entry-card {
  display: block;
  position: relative;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  color: inherit;
}
a.entry-card { transition: transform .18s var(--ease), opacity .18s var(--ease); }
a.entry-card:hover { text-decoration: none; transform: translateY(-2px); }
/* EntryTileButtonStyle: a slight shrink and fade, nothing else. */
a.entry-card:active { transform: scale(.985); opacity: .9; }

.entry-card__row { display: flex; align-items: flex-start; gap: 13px; }
.entry-card__body { min-width: 0; flex: 1; }
.entry-card__title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--label);
}
.entry-card__subtitle { margin-top: 2px; font-size: .9rem; color: var(--label-secondary); }
.entry-card__detail {
  margin-top: 8px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--label-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card__chevron { flex: none; width: 16px; height: 16px; margin-top: 12px; color: var(--label-tertiary); }

.detail-card { padding: 24px; }
.detail-card__detail { margin-top: 14px; font-size: 1rem; line-height: 1.7; color: var(--label); white-space: pre-wrap; }

.field-list { display: grid; gap: 0; margin-top: 20px; }
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  font-size: .95rem;
}
.field-row__label { color: var(--label-secondary); }
.field-row__value { font-weight: 600; text-align: right; }

/* --- Section header inside the portal ------------------------------------- */

.stack { display: grid; gap: 26px; }
.group { display: grid; gap: 12px; }
.group__head { display: flex; align-items: center; gap: 10px; }
.group__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.group__count {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--tint, var(--label-secondary)) 14%, transparent);
  color: var(--tint, var(--label-secondary));
}

/* --- Filter bar (mirrors EntryFilters) ------------------------------------ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.search-field {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}
.search-field svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--label-tertiary);
  pointer-events: none;
}
.search-field input[type="search"] { padding-left: 42px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: .84rem;
  font-weight: 600;
  color: var(--label-secondary);
  background: color-mix(in srgb, var(--label) 6%, transparent);
  border: 0;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--label) 10%, transparent); }
.chip[aria-pressed="true"], .chip.is-on {
  background: color-mix(in srgb, var(--tint, var(--tint-accent)) 16%, transparent);
  color: var(--tint, var(--tint-accent));
}
.chip svg { width: 13px; height: 13px; }

/* --- Forms ---------------------------------------------------------------- */

.form-card {
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.form-card__head { text-align: center; margin-bottom: 24px; }
.form-card__title { font-size: 1.5rem; font-weight: 800; margin-top: 14px; }
.form-card__lede { margin-top: 8px; color: var(--label-secondary); font-size: .95rem; }

.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: grid; gap: 6px; }
.field__label { font-size: .85rem; font-weight: 600; color: var(--label-secondary); }
.field__help { font-size: .82rem; color: var(--label-tertiary); }
.field__error { font-size: .84rem; font-weight: 500; color: var(--tint-danger); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="search"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .96rem;
  color: var(--label);
  background: var(--bg-field);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--tint-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint-accent) 18%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--label-tertiary); }
textarea { resize: vertical; min-height: 96px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--label-secondary);
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--tint-accent); }

.form-footer {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  text-align: center;
  font-size: .92rem;
  color: var(--label-secondary);
}

/* The invite code field: monospaced, spaced out, shouty. */
.code-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.4rem !important;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  background: color-mix(in srgb, var(--tint-accent) 12%, transparent);
  color: var(--tint-accent);
}

/* --- Alerts / messages ---------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .93rem;
  background: color-mix(in srgb, var(--tint, var(--tint-accent)) 12%, transparent);
  color: var(--label);
  border: 1px solid color-mix(in srgb, var(--tint, var(--tint-accent)) 28%, transparent);
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--tint, var(--tint-accent)); }
.alert--success { --tint: var(--tint-positive); }
.alert--warning { --tint: var(--tint-warning); }
.alert--error { --tint: var(--tint-danger); }
.alert-stack { display: grid; gap: 10px; margin-bottom: 20px; }

/* --- Empty state (the app's EmptyEntriesView) ----------------------------- */

.empty-state {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.empty-state__title { font-size: 1.2rem; font-weight: 700; }
.empty-state__message { max-width: 44ch; color: var(--label-secondary); font-size: .96rem; }

/* Search and filters leaving nothing on screen: quieter, no card. */
.no-results {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--label-secondary);
}
.no-results svg { width: 30px; height: 30px; color: var(--label-tertiary); }
.no-results__title { font-size: 1.05rem; font-weight: 700; color: var(--label); }
.no-results__message { font-size: .94rem; max-width: 40ch; }

/* --- Stat tiles ----------------------------------------------------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.stat__label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--label-secondary);
}
.stat__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--tint, var(--label));
}
.stat__note { margin-top: 2px; font-size: .82rem; color: var(--label-tertiary); }

/* --- Timeline (mirrors HealthTimelineView) -------------------------------- */

.timeline { position: relative; display: grid; gap: 14px; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--hairline);
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: -26px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tint, var(--tint-accent));
  box-shadow: 0 0 0 4px var(--bg-grouped);
}
.timeline__year {
  position: sticky;
  top: 74px;
  z-index: 2;
  margin-left: -26px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--label-secondary);
}

/* --- Audit table ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--card-border); background: var(--bg-card); box-shadow: var(--shadow-card); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; }
table.data th {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--label-secondary);
  border-bottom: 1px solid var(--hairline);
}
table.data td { border-bottom: 1px solid var(--hairline); }
table.data tr:last-child td { border-bottom: 0; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding: 60px 0 34px;
  background: var(--navy-900);
  color: var(--on-dark-faint);
  font-size: .93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 14px;
}
.site-footer a { color: var(--on-dark-faint); }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer__blurb { margin-top: 16px; max-width: 34ch; line-height: 1.7; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .86rem;
}
.site-footer__noii { color: var(--on-dark-soft); }
.site-footer__noii a { color: var(--orange-400); font-weight: 600; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .nav, .site-header__actions { display: none; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 480px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .portal-nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .floating-card { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .card, .form-card { padding: 22px; }
  .field-row { justify-content: flex-start; }
  .field-row__value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Print sheet ---------------------------------------------------------- */
/*
   The one page in the portal built to leave the browser. On screen it is a
   plain document on the grouped backdrop; on paper the toolbar goes, the ink
   goes black, and entries are kept off page breaks — a condition split across
   two sheets is how a doctor misses half of it.
*/

.print-sheet {
  max-width: 900px;
  margin: 24px auto 80px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.print-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--label);
}
.print-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; }
.print-sub { margin-top: 4px; color: var(--label-secondary); font-size: .95rem; }
.print-meta {
  /* Bounded so it stays a right-hand column: the scope line is long enough to
     push itself onto its own row otherwise, and the header stops reading as
     two columns. */
  flex: 0 1 340px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--label-secondary);
  text-align: right;
}
.print-meta b { color: var(--label); font-weight: 600; }

.print-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tint-accent) 10%, transparent);
  font-size: .93rem;
}

.print-section { margin-top: 30px; }
.print-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hairline);
}
.print-empty { margin-top: 10px; font-size: .9rem; color: var(--label-tertiary); }

.print-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .87rem; }
.print-table th {
  text-align: left;
  padding: 7px 10px 7px 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--label-secondary);
}
.print-table td { padding: 9px 10px 9px 0; border-top: 1px solid var(--hairline); vertical-align: top; }

.print-foot {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: .78rem;
  color: var(--label-secondary);
}

@media print {
  @page { margin: 14mm; }

  body.print-page {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .print-toolbar, .site-header, .portal-header, .site-footer, .skip-link { display: none !important; }

  .print-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .print-title, .print-section__title, .print-table th, .print-table td, .print-meta b { color: #000; }
  .print-sub, .print-meta, .print-foot, .print-empty { color: #333; }
  .print-note { background: #f2f2f2; border: 1px solid #ccc; }

  /* Keep an entry, and a section's heading, off a page break. */
  .print-section { break-inside: auto; }
  .print-section__title { break-after: avoid; }
  .print-table thead { display: table-header-group; }
  .print-table tr { break-inside: avoid; }

  a { color: #000; text-decoration: none; }
}
