/* ============================================================
   Preceptor Network — site styles
   Layered ON TOP of Bootstrap 5.3.x — only brand styling here.
   Layout/grid/spacing/responsiveness are Bootstrap's job.
   ============================================================ */

:root {
  --navy: #112240;
  --teal: #0a7b6e;
  --teal-light: #0d9688;
  --cream: #f8f5f0;
  --warm-white: #fdfcfa;
  --coral: #c9553a;
  --mid: #6b7a8d;
  --border: #ddd8d0;

  /* spacing rhythm — used by sections + cards for the "spaced feel" */
  --sec-pad-y: 5rem;
  --hero-pad-t: 7rem;
  --hero-pad-b: 6rem;

  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-color: #112240;
  --bs-body-bg: #fdfcfa;
}

/* root font-size scales with viewport — bumps every rem-based size
   automatically, mobile-first */
html {
  scroll-behavior: smooth;
  font-size: 112.5%;          /* 18px base on mobile */
  overflow-x: clip;           /* kill sub-pixel horizontal scroll on mobile */
}
body { overflow-x: clip; }
@media (min-width: 768px) {
  html { font-size: 118.75%; } /* 19px tablet */
  :root { --sec-pad-y: 6.5rem; --hero-pad-t: 8rem; --hero-pad-b: 7rem; }
}
@media (min-width: 992px) {
  html { font-size: 125%; }    /* 20px desktop */
  :root { --sec-pad-y: 8rem;   --hero-pad-t: 9rem; --hero-pad-b: 8rem; }
}
/* 1080p laptops: compress hero so email form + meta links stay above the fold */
@media (min-width: 992px) and (max-height: 1100px) {
  /* Hero fills viewport minus navbar (84px) and ticker (~60px) so the
     ticker lands flush with the bottom of the viewport */
  .hero { min-height: calc(100vh - 84px - 70px); }
  :root { --hero-pad-t: 1.4rem; --hero-pad-b: 1.6rem; }
  .hero-eyebrow { margin-bottom: 0.5rem; font-size: 0.72rem; }
  .eq-word { font-size: clamp(40px, 5.5vw, 80px); }
  .eq-op   { font-size: clamp(28px, 4vw, 52px); padding: 0 0.5rem; }
  .hero > .container { max-width: 1600px; padding-left: 72px; padding-right: 72px; }
  .hero-sub { margin-top: 0.8rem; font-size: 0.82rem; line-height: 1.5; max-width: none; width: 100%; }
  .hero-form { margin-top: 0.8rem; }
  .hero-form .btn-primary, .hero-input { padding-top: 0.55rem; padding-bottom: 0.55rem; font-size: 0.9rem; }
  .hero-meta { margin-top: 0.7rem; font-size: 0.85rem; }
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: body is a flex column, footer auto-pushed to bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .site-footer { margin-top: auto; }

/* ---------- SCROLLBAR ---------- */
/* Firefox + modern standards */
html {
  scrollbar-width: auto;             /* "thin" | "auto" — default is too narrow */
  scrollbar-color: var(--teal) var(--cream);
}
/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 3px solid var(--cream);    /* visible padding around the thumb */
  border-radius: 10px;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}
::-webkit-scrollbar-corner {
  background: var(--cream);
}

p { line-height: 1.75; }

.serif { font-family: 'Cormorant Garamond', serif; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

/* Offset anchor targets so the fixed navbar doesn't cover them */
[id] { scroll-margin-top: 5rem; }

/* ---------- NAV ---------- */
.site-nav {
  background: rgba(253,252,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy) !important;
}
.nav-logo span { color: var(--teal); }

.site-nav .nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--mid) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav .nav-link:hover { color: var(--navy) !important; }

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.2s;
}
.site-nav .nav-cta:hover { background: var(--teal); color: #fff !important; }

/* push content below the fixed navbar */
body { padding-top: 84px; }
@media (max-width: 991.98px) { body { padding-top: 72px; } }

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-primary:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.22s, transform 0.15s;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--navy);
  background: transparent;
  border: none;
  padding: 1rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(10, 50, 80, 0.04);
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: var(--hero-pad-t) 0 var(--hero-pad-b);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(10,123,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(17,34,64,0.04) 0%, transparent 60%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--teal);
}

.hero-equation {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  row-gap: 0;
}
.eq-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 12vw, 168px);
  font-weight: 700;
  line-height: 0.92;
  color: var(--navy);
  letter-spacing: -0.025em;
}
.eq-op {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 7.5vw, 108px);
  font-weight: 300;
  color: var(--teal);
  line-height: 0.92;
  padding: 0 0.7rem;
  font-style: italic;
}
.eq-result { color: var(--coral); font-style: italic; display: block; }

/* Multi-word eq-word: keeps "School Email" together as one inline
   phrase that never breaks between the words. The whole equation
   can still wrap at the operators on narrow viewports. */
.eq-phrase {
  white-space: nowrap;
}

.hero-sub {
  margin-top: 2.6rem;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
}
.hero-sub strong { color: var(--navy); font-weight: 500; }

.hero-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- TICKER ---------- */
.ticker {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { display: inline-flex; gap: 2.4rem; animation: ticker 28s linear infinite; }
.ticker-inner span { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.ticker-inner .dot { color: var(--teal-light); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: var(--sec-pad-y) 0; }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px; background: var(--teal);
  display: inline-block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 4rem;
  max-width: 1100px;
  letter-spacing: -0.015em;
}
.section-title em { font-style: italic; color: var(--teal); }
/* line break inside section-title only kicks in at desktop where
   there's room — on mobile/tablet the break is hidden and the title
   wraps naturally to 2-3 lines based on viewport */
.section-title br { display: none; }
@media (min-width: 992px) { .section-title br { display: inline; } }

/* ---------- STEPS ---------- */
.step-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 2.4rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.step-card:hover { background: var(--cream); transform: translateY(-3px); box-shadow: 0 14px 38px rgba(17,34,64,0.07); }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.4rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.step-icon {
  width: 48px; height: 48px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.step-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.step-card p { font-size: 1rem; line-height: 1.75; color: var(--mid); font-weight: 300; margin: 0; }

/* ---------- SPLIT ---------- */
.split { background: var(--navy); color: #fff; }
.split .container { padding-top: var(--sec-pad-y); padding-bottom: var(--sec-pad-y); }

.split .section-label { color: rgba(255,255,255,0.42); }
.split .section-label::before { background: rgba(255,255,255,0.42); }
.split .section-title { color: #fff; margin-bottom: 1.5rem; }
.split .section-title em { color: var(--teal-light); }
.split p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2.4rem;
}

.moat-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2rem; }
.moat-point { display: flex; gap: 1.4rem; align-items: flex-start; }
.moat-point-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  min-width: 28px;
}
.moat-point-text h4 { font-size: 1.1rem; font-weight: 500; color: #fff; margin: 0 0 0.4rem; letter-spacing: 0.01em; }
.moat-point-text p { font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin: 0; max-width: none; }

/* ---------- AUDIENCES ---------- */
.audiences { background: var(--cream); }

.audience-card {
  height: 100%;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.6rem 2.2rem;
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.audience-card:hover { box-shadow: 0 16px 48px rgba(17,34,64,0.1); transform: translateY(-4px); }
.audience-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(10,123,110,0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.4rem;
  align-self: flex-start;
}
.audience-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.audience-card > p { font-size: 1rem; line-height: 1.78; color: var(--mid); font-weight: 300; }
.audience-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.audience-card li { font-size: 0.95rem; color: var(--mid); padding-left: 1.2rem; position: relative; line-height: 1.55; }
.audience-card li::before { content: '—'; position: absolute; left: 0; color: var(--teal); font-size: 0.85rem; }
.audience-card .btn-primary { align-self: flex-start; margin-top: auto; }

/* ---------- PRICING ---------- */
.price-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1;            /* tight line box — no half-leading whitespace */
}
.price-big sup {
  font-size: 0.42em;
  font-weight: 400;
  color: var(--teal);
}
.price-label {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0;             /* sits flush under the digit */
  font-weight: 400;
}
.price-example {
  margin-top: 2.4rem;
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border-left: 3px solid var(--teal);
  border-radius: 0 3px 3px 0;
}
.price-example p { font-size: 1rem; line-height: 1.75; color: var(--mid); margin: 0; }
.price-example strong { color: var(--navy); }

/* ---------- CTA ---------- */
.cta-banner { background: var(--teal); padding: var(--sec-pad-y) 0; }
.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 2.2rem;
  letter-spacing: -0.015em;
}
.cta-banner h2 em { font-style: italic; color: rgba(255,255,255,0.65); }

/* two-column CTA layout */
.cta-col-primary   { /* left: headline + email form */ }
.cta-col-secondary {
  /* right: secondary CTAs */
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 2.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 992px) {
  .cta-col-secondary {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-top: 0;
    padding-left: 3rem !important;
    margin-top: 0;
  }
}
.cta-side-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.cta-side-title em { font-style: italic; color: rgba(255,255,255,0.65); }
.cta-side-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 380px;
}
.cta-banner .btn-white {
  background: #fff;
  color: var(--teal);
  padding: 1.1rem 2.6rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); color: var(--teal); }
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 1.05rem 2.2rem;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: inline-block;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.cta-banner .btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 1.05rem 2.2rem;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.cta-banner .btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  padding: 3.5rem 0;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.footer-logo span { color: var(--teal-light); }
.site-footer p { font-size: 0.86rem; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; line-height: 1.6; }

/* ============================================================
   APP PAGES (dashboards, profiles, forms)
   ============================================================ */
.app { padding: 3.5rem 0 5rem; }
@media (min-width: 992px) { .app { padding: 4.5rem 0 6rem; } }

.app h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 0.4rem;
}
.app h1 em { font-style: italic; color: var(--teal); }
.app .lede {
  color: var(--mid);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

/* card override (still works without conflicting with Bootstrap .card) */
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  margin-bottom: 1.8rem;
}
@media (min-width: 768px) { .app-card { padding: 2.8rem; } }

.app-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.2rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.app-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

/* form overrides — still using Bootstrap form-control underneath */
.app form label,
.app .form-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.app form label:has(input[type="checkbox"]),
.app form label:has(input[type="radio"]),
.app form .checkbox-group label {
  font-weight: 400;
  color: var(--bs-body-color, #212529);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
}
.app .form-control,
.app .form-select {
  border: 1px solid var(--border);
  background: var(--warm-white);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--navy);
}
.app .form-control:focus,
.app .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.15rem rgba(10,123,110,0.15);
  background: #fff;
}
.app textarea.form-control { min-height: 90px; }

/* match cards (rich version) */
.match-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--card-accent, var(--teal));
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.1rem;
}
.match-rich {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 768px) {
  .match-rich { grid-template-columns: 1fr 220px; gap: 1.8rem; align-items: start; }
}
.match-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.25; }

/* (match-card avatar removed — avatar lives only in the details panel) */
.match-card .meta { color: var(--mid); font-size: 0.9rem; margin-top: 6px; }
.match-card .reasons { color: var(--mid); font-size: 0.82rem; margin-top: 10px; line-height: 1.55; }

.match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.match-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-wrap: wrap;
}
.stars { color: var(--coral); font-size: 1.05rem; letter-spacing: 0.05em; }
.stars-empty { color: rgba(201,85,58,0.22); }
.rating-num { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.rating-count { color: var(--mid); font-size: 0.82rem; }

/* clickable triggers for the details panel */
.details-trigger {
  background: none;
  border: none;
  padding: 0.1rem 0.35rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.details-trigger:hover { color: var(--navy); }
.details-arrow { display: inline-block; transition: transform 0.2s; font-size: 0.7rem; margin-left: 0.15rem; }
.details-trigger.is-open .details-arrow { transform: rotate(180deg); }

/* "More details" trigger styled like a ghost button (in match-side) */
.details-more-btn {
  width: 100%;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  text-align: center;
  background: #fff;
  color: var(--navy);
}
.details-more-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* expanded panel below the match card */
.match-card-wrap { margin-bottom: 1.1rem; }
.match-card-wrap .match-card { margin-bottom: 0; }
.details-panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
  padding: 1.6rem 1.8rem;
  border-left: 5px solid var(--card-accent, var(--teal));
}
.details-panel[hidden] { display: none; }

.details-loading,
.reviews-empty {
  color: var(--mid);
  font-size: 0.92rem;
  text-align: center;
  padding: 0.6rem 0;
}

.details-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.details-head-text { flex: 1; min-width: 0; }
.details-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--card-accent, var(--teal));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.22),
    0 4px 16px rgba(17,34,64,0.12);
}
.details-avatar-img {
  background: #fff;
  padding: 0;
}
.details-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.details-practice {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.details-sub {
  color: var(--mid);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}
.details-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  color: var(--mid);
  cursor: pointer;
  flex-shrink: 0;
}
.details-close:hover { color: var(--coral); border-color: var(--coral); }

.details-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 576px) { .details-stats { grid-template-columns: repeat(4, 1fr); } }
.details-stats > div { text-align: center; }
.details-stats .ds-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}
.details-stats .ds-lbl {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.3rem;
}

/* nursing license sub-grid */
.lic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.lic-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lic-lbl {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}
.lic-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.lic-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lic-status-active     { background: rgba(10,123,110,0.14); color: var(--teal); }
.lic-status-expired    { background: rgba(201,85,58,0.16); color: var(--coral); }
.lic-status-suspended  { background: rgba(201,85,58,0.16); color: var(--coral); }
.lic-status-pending    { background: rgba(107,122,141,0.18); color: var(--mid); }
.lic-expired           { color: var(--coral); }
@media (max-width: 575.98px) {
  .lic-grid { grid-template-columns: 1fr; }
}

.details-section {
  margin-bottom: 1.4rem;
}
.details-section:last-child { margin-bottom: 0; }
.details-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.details-section p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0;
}

.details-pm-row {
  margin-top: 0.6rem;
  font-size: 0.82rem;
}
.details-pm-row .pm-label {
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 0.4rem;
  font-weight: 500;
}

/* business hours weekly grid */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  font-size: 0.78rem;
}
.hours-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.5rem 0.3rem;
  text-align: center;
}
.hours-cell.is-closed { background: var(--cream); color: var(--mid); }
.hours-day { display: block; font-weight: 600; color: var(--navy); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hours-cell.is-closed .hours-day { color: var(--mid); }
.hours-time { display: block; margin-top: 0.2rem; font-size: 0.78rem; }

.reviews-count-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.reviews-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review-item {
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--border);
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }

.review-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.review-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.review-body {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--navy);
}
.review-attr {
  color: var(--mid);
  font-size: 0.8rem;
  font-style: italic;
}

.match-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.match-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.78rem;
  color: var(--navy);
}
.match-pill-fee {
  background: rgba(201,85,58,0.12);
  border-color: rgba(201,85,58,0.40);
  color: var(--coral);
  font-weight: 600;
}
.match-pill-free {
  background: rgba(10,123,110,0.14);
  border-color: rgba(10,123,110,0.40);
  color: var(--teal);
  font-weight: 600;
}

/* payment methods row on each match card */
.payment-methods {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pm-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 0.4rem;
  font-weight: 500;
}
.pm-chip {
  background: rgba(13,150,136,0.08);
  color: var(--teal);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}

.match-side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}
.score-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  text-align: center;
}
.score-pill .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-pill .num-pct {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--mid);
  margin-left: 0.05em;
  vertical-align: 0.45em;
}
.score-pill .lbl {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-top: 0.35rem;
}
.score-pill .fit-badge { display: inline-block; margin-top: 0.5rem; }
.score-pill .raw-score {
  display: block;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  font-family: 'DM Sans', sans-serif;
  cursor: help;
}

.fit-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fit-strong { background: rgba(10,123,110,0.16); color: var(--teal); }
.fit-good   { background: rgba(42,98,168,0.12); color: #2a62a8; }
.fit-fair   { background: rgba(201,85,58,0.10); color: var(--coral); }
.fit-low    { background: rgba(107,122,141,0.16); color: var(--mid); }

.match-request { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; }
.match-request button { width: 100%; padding: 0.85rem 1rem; font-size: 0.85rem; }
.match-fee-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--mid);
  text-align: center;
  letter-spacing: 0.04em;
}

/* filter form on matches page */
.filter-details summary {
  cursor: pointer;
  padding: 0.6rem 0;
  color: var(--navy);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}
.filter-details[open] summary { padding-bottom: 1rem; }
.filter-details summary::marker { color: var(--teal); }
.filter-form { padding-top: 0.4rem; }

/* score explainer */
.how-matching-works {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.how-matching-works summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 0.92rem;
}
.how-matching-works summary::marker { color: var(--teal); }
.match-explainer { padding-top: 0.8rem; }
.match-explainer table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.86rem; }
.match-explainer th, .match-explainer td { text-align: left; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--border); }
.match-explainer th { font-weight: 500; color: var(--mid); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.match-explainer td:first-child { font-family: 'Cormorant Garamond', serif; color: var(--teal); font-weight: 600; white-space: nowrap; }

/* flash */
.flash {
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.flash-error { background: #fdecea; color: #8a1f12; border-left: 3px solid var(--coral); }
.flash-success { background: #e7f5f3; color: #075e54; border-left: 3px solid var(--teal); }
.flash-action {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.25rem 0.7rem;
  background: #fff;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.flash-action:hover { background: var(--coral); color: #fff; }

/* ----- Program detail page ----- */
.program-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1rem;
}

.program-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2rem;
  row-gap: 0.85rem;
  margin: 0 0 1rem;
}
.program-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  align-self: center;
}
.program-facts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
  align-self: center;
}
.program-facts strong { font-weight: 600; }

.verify-banner {
  margin-top: 1.5rem;
  padding: 0.9rem 1.2rem;
  background: rgba(201,85,58,0.08);
  border-left: 3px solid var(--coral);
  border-radius: 0 3px 3px 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--mid);
}
.verify-banner strong { color: var(--coral); }

.pass-rate {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.pass-rate:last-of-type { border-bottom: none; padding-bottom: 0; }
.pass-rate .pr-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.pass-rate .pr-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.4;
}
.pr-source {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  color: var(--mid);
  line-height: 1.5;
}

.data-provenance ul { list-style: none; padding: 0; margin: 0; }
.data-provenance li {
  font-size: 0.86rem;
  color: var(--mid);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}
.data-provenance li:last-child { border-bottom: none; }
.data-provenance strong { color: var(--navy); margin-right: 0.4rem; }

.cta-inset {
  background: var(--cream);
  border-color: var(--teal);
  border-left: 4px solid var(--teal);
}

/* ----- Signup wizard ----- */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}
.wstep {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.4rem 1.2rem;
  border-bottom: 3px solid transparent;
  text-align: center;
  color: var(--mid);
  position: relative;
  margin-bottom: -1px;
}
.wstep.is-active {
  color: var(--navy);
  border-bottom-color: var(--teal);
}
.wstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--mid);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.wstep.is-active .wstep-num { background: var(--teal); color: #fff; }
.wstep-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.school-banner { background: var(--cream); border-color: var(--teal); border-left: 4px solid var(--teal); }
.school-banner-icon {
  width: 44px; height: 44px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}
.banner-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.2rem;
}

/* disabled/readonly rule moved after type selectors for specificity — see below */

/* tag chips */
.chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  background: rgba(10,123,110,0.08);
  color: var(--teal);
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
  margin-bottom: 4px;
}
.chip-online {
  background: rgba(201,85,58,0.1);
  color: var(--coral);
  margin-left: 0.5rem;
}
.chip-demo {
  background: rgba(107,122,141,0.18);
  color: var(--mid);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-left: 0.6rem;
  vertical-align: middle;
}
.chip-warning {
  background: rgba(201,85,58,0.12);
  color: var(--coral);
  font-weight: 600;
}
.chip-ok {
  background: rgba(10,123,110,0.12);
  color: var(--teal);
  font-weight: 600;
}

/* payment page */
.commitment-card {
  background: #fffaf3;
  border: 1px solid var(--coral);
  border-left: 4px solid var(--coral);
  margin-bottom: 1.6rem;
}
.commitment-card h2 {
  color: var(--coral);
  margin-bottom: 0;
}
.commitment-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.commitment-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--navy);
}
.commitment-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--coral);
  font-weight: 600;
}
.commitment-list strong { color: var(--navy); }

.pay-card { background: var(--cream); border-color: var(--teal); border-left: 4px solid var(--teal); }
.pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 1.1rem 1.4rem;
}
.pay-btn-cashapp {
  background: #00d54b !important;
  border-color: #00d54b !important;
}
.pay-btn-cashapp:hover {
  background: #00b840 !important;
  border-color: #00b840 !important;
}
.pay-secure {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--mid);
  text-align: center;
}

/* admin curate filter row */
.curate-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.curate-filters input[type=text] { flex: 1 1 320px; }
.curate-filters select { flex: 0 1 220px; }
.curate-filters .btn { flex: 0 0 auto; }

/* geolocation hint above the city/state fields */
.geo-hint {
  background: rgba(10,123,110,0.06);
  border-left: 3px solid var(--teal);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  color: var(--mid);
  margin-bottom: 1rem;
  border-radius: 0 3px 3px 0;
  line-height: 1.6;
}
.geo-hint strong { color: var(--navy); }
.geo-hint-muted { background: var(--cream); border-left-color: var(--border); }
.geo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: geo-pulse 2s ease-in-out infinite;
}
@keyframes geo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* hero email-first form */
.hero-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.6rem;
  max-width: 960px;
  flex-wrap: wrap;
  position: relative;
}
.hero-input {
  flex: 1 1 520px;
  padding: 1.35rem 1.6rem;
  border: 2px solid var(--teal);
  background: #fff;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  min-width: 0;
  position: relative;
  z-index: 1;
  /* breathing glow — pulses out from the field when idle */
  box-shadow:
    0 0 0 0   rgba(10,123,110,0.45),
    0 0 24px  rgba(10,123,110,0.15);
  animation: hero-input-glow 2.6s ease-in-out infinite;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.15s;
}
.hero-input::placeholder { color: #9aa6b2; font-weight: 300; }
.hero-input:hover {
  border-color: var(--teal-light);
  transform: translateY(-1px);
}
.hero-input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  /* solid focus ring + stop the breathing glow */
  box-shadow: 0 0 0 0.25rem rgba(10,123,110,0.22), 0 8px 28px rgba(17,34,64,0.08);
  animation: none;
  transform: translateY(-1px);
}
.hero-input:focus::placeholder { color: var(--border); }

@keyframes hero-input-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0    rgba(10,123,110,0.40),
      0 0 18px   rgba(10,123,110,0.12);
  }
  50% {
    box-shadow:
      0 0 0 0.5rem rgba(10,123,110,0.0),
      0 0 32px     rgba(10,123,110,0.30);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-input { animation: none; }
}

.hero-form .btn-primary {
  white-space: nowrap;
  font-size: 1rem;
  padding: 1.2rem 1.8rem;
}

.hero-meta {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--mid);
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta a {
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-meta a:hover { color: var(--navy); border-color: var(--mid); }
.hero-meta-sep { color: var(--border); }

/* CTA email form */
.cta-form {
  max-width: 560px;
  margin: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cta-input {
  flex: 1 1 260px;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  min-width: 0;
}
.cta-input::placeholder { color: rgba(255,255,255,0.65); }
.cta-input:focus { outline: none; background: #fff; color: var(--navy); box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25); }
.cta-input:focus::placeholder { color: var(--mid); }
.cta-alt {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* table */
.app .table {
  --bs-table-bg: #fff;
  --bs-table-color: var(--navy);
  font-size: 0.9rem;
}
.app .table thead th {
  font-weight: 500;
  color: var(--mid);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.app .table td { border-bottom: 1px solid var(--border); vertical-align: middle; }

/* legacy table-style class kept for app forms */
.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.list th { font-weight: 500; color: var(--mid); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   FORM ROWS — mobile-first 1-col, scoped INSIDE .app form so they
   override Bootstrap's flex .row without touching every page's
   markup.
   ============================================================ */
.app form .row {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px 22px;
  margin: 0 0 18px;
}
@media (min-width: 768px) {
  .app form .row             { grid-template-columns: 1fr 1fr; }
  .app form .row.three       { grid-template-columns: 1fr 1fr 1fr; }
}
.app form .row.full          { grid-template-columns: 1fr; }
.app form .row > *           { width: auto; }
.app form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* style raw inputs/selects/textareas inside .app forms (no
   .form-control class needed — fewer markup edits) */
.app form input[type="text"],
.app form input[type="email"],
.app form input[type="password"],
.app form input[type="number"],
.app form input[type="date"],
.app form input[type="time"],
.app form input[type="search"],
.app form input[type="tel"],
.app form select,
.app form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--navy);
  box-sizing: border-box;
}
.app form input:focus,
.app form select:focus,
.app form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 0.15rem rgba(10,123,110,0.12);
}
.app form textarea { min-height: 90px; height: auto; resize: vertical; }
.app form input::placeholder,
.app form textarea::placeholder {
  color: #b0b8c2;
  font-weight: 300;
}
.app form input:disabled,
.app form select:disabled,
.app form textarea:disabled,
.app form input[readonly],
.app form select[readonly],
.app form textarea[readonly] {
  background: #edeae5 !important;
  color: #6b7a8d !important;
  cursor: default;
  border-color: #ddd8d0;
}
.app form select[multiple] { min-height: 180px; height: auto; }

/* button helpers used by app pages */
.app form button.btn-primary,
.app form .btn-primary {
  cursor: pointer;
  border: none;
}

/* small grey hint under a form field */
.app form .field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.45;
  font-style: italic;
}

/* ============================================================
   SCROLL-DRIVEN REVEAL — mirror of HANDLEMY.WORLD's .hm-reveal
   pattern, but triggered by IntersectionObserver in pn-anim.js
   so each element animates as it scrolls into view.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s ease var(--reveal-delay, 0s),
    transform .85s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* a couple of stagger helpers (parallels HANDLEMY's --hm-reveal-delay) */
.reveal-d1 { --reveal-delay: .08s; }
.reveal-d2 { --reveal-delay: .18s; }
.reveal-d3 { --reveal-delay: .28s; }
.reveal-d4 { --reveal-delay: .38s; }
.reveal-d5 { --reveal-delay: .48s; }

/* honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
