/* ============================================================================
   HFP Website — design system v2 "Modern Pediatric Healthcare"
   Bright · warm · clean · friendly · professional · minimalist.
   Sky blue primary, mint green secondary, sunshine yellow accent, airy white.
   Nunito (self-hosted variable). CSP: no inline styles anywhere.
   Staff CMS / pinpad / OSK class names are unchanged from v1 (reskinned here).
   ============================================================================ */

@font-face {
  font-family: 'Nunito';
  src: url('nunito.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* palette */
  --sky-50:  #eef8fe;
  --sky-100: #d9eefb;
  --sky-200: #b5def6;
  --sky-300: #7cc4ee;
  --sky-500: #2e9bde;
  --sky-600: #1f7ec2;
  --sky-700: #17618f;
  --mint-50:  #e9f9f2;
  --mint-100: #d7f4e8;
  --mint-300: #9adec6;
  --mint-600: #1e9a78;
  --mint-700: #17795f;
  --sun-100: #fff3d1;
  --sun-300: #ffd97a;
  --sun-400: #ffc845;
  --sun-ink: #5b4300;
  --ink:   #22384a;
  --slate: #51677a;
  --bg:    #f7fafc;
  --card:  #ffffff;
  --line:  #e4eaf0;
  --danger: #c2453a;
  --danger-bg: #fdeeec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 56, 74, .05), 0 8px 24px rgba(46, 155, 222, .10);
  --shadow-lift: 0 2px 4px rgba(34, 56, 74, .06), 0 14px 34px rgba(46, 155, 222, .16);
  --speed: .18s;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--sky-700); }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 .45em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sky-200); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--ink); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus-visible { left: 0; }

/* icons (outline, 1.8 stroke, injected by icons.js) */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .card-hover { transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease; }
  .card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .hero-art .float-a { animation: floaty 7s ease-in-out infinite; }
  .hero-art .float-b { animation: floaty 9s ease-in-out 1.2s infinite; }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--sky-600); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; min-height: 48px;
  transition: background var(--speed) ease, transform var(--speed) ease;
}
.btn:hover { background: var(--sky-700); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--sun-400); color: var(--sun-ink); }
.btn-accent:hover { background: var(--sun-300); }
.btn-mint { background: var(--mint-600); }
.btn-mint:hover { background: var(--mint-700); }
.btn-quiet { background: transparent; color: var(--sky-700); border: 2px solid var(--sky-200); }
.btn-quiet:hover { background: var(--sky-50); border-color: var(--sky-300); }
.btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .28); }
.btn-sm { padding: 9px 18px; min-height: 42px; font-size: .93rem; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-weight: 900; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.01em; }
.brand-sub { display: block; font-weight: 600; font-size: .72rem; color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 9px 13px; border-radius: 999px; min-height: 42px; display: inline-flex; align-items: center;
  transition: background var(--speed) ease, color var(--speed) ease;
}
.nav-links a:hover { background: var(--sky-50); color: var(--sky-700); }
.nav-links a.active { background: var(--sky-100); color: var(--sky-700); }
.nav-cta { margin-left: 8px; }

.lang-btn {
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; font-size: .85rem;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; min-height: 42px;
  transition: border-color var(--speed) ease, background var(--speed) ease;
}
.lang-btn:hover { border-color: var(--sky-300); background: var(--sky-50); }

.menu-btn {
  display: none; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; padding: 7px 13px; border-radius: 999px; cursor: pointer; min-height: 42px;
  align-items: center; gap: 7px;
}
.menu-btn .ico { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; font-size: 1.02rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ------------------------------------------------------------ alert banner */
.alert-banner { display: none; padding: 11px 0; }
.alert-banner.show { display: block; }
.alert-banner .wrap { display: flex; gap: 10px; align-items: flex-start; }
.alert-banner .ico { margin-top: 3px; }
.alert-banner.info { background: var(--sky-100); color: var(--sky-700); }
.alert-banner.warn { background: var(--sun-100); color: var(--sun-ink); }
.alert-banner p { margin: 0; font-weight: 700; }

/* -------------------------------------------------------------------- hero */
.hero { background: linear-gradient(160deg, var(--sky-50) 0%, var(--mint-50) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding-top: 46px; padding-bottom: 52px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .82rem; color: var(--mint-700); box-shadow: var(--shadow); margin-bottom: 16px; }
.hero h1 { letter-spacing: -.015em; margin-bottom: .35em; }
.hero-sub { font-size: 1.12rem; color: var(--slate); max-width: 32em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { text-align: center; }
.hero-art svg { width: min(100%, 380px); height: auto; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 38px; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(70%, 260px); }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 52px 0; }
.section-alt { background: #fff; }
.section-mint { background: var(--mint-50); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 6px; }
.section-head p { color: var(--slate); margin: 0; }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 20px; border: 1.5px solid transparent;
}
a.card { display: block; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--sky-300); }
.card .card-ico {
  width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-100); color: var(--sky-700); margin-bottom: 12px;
}
.card.tint-mint .card-ico { background: var(--mint-100); color: var(--mint-700); }
.card.tint-sun .card-ico { background: var(--sun-100); color: var(--sun-ink); }
.card h3 { margin-bottom: .25em; }
.card p { margin: 0; color: var(--slate); font-size: .95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; color: var(--sky-700); font-size: .92rem; }
.card .card-link .ico { width: 18px; height: 18px; }

/* quick actions */
.qa-card { text-align: center; padding: 18px 12px; }
.qa-card .card-ico { margin: 0 auto 10px; }
.qa-card h3 { font-size: .98rem; margin: 0; }

/* provider & testimonial */
.provider-card .prov-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.prov-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: var(--sky-100); color: var(--sky-700); font-weight: 900; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.prov-cred { color: var(--slate); font-size: .88rem; font-weight: 700; }
.prov-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prov-bio { color: var(--slate); font-size: .95rem; margin-top: 8px; }
.testimonial-card { position: relative; }
.testimonial-card .stars { color: var(--sun-400); letter-spacing: 2px; font-size: 1.05rem; }
.testimonial-card blockquote { margin: 8px 0 10px; font-size: 1rem; color: var(--ink); }
.testimonial-card cite { color: var(--slate); font-style: normal; font-weight: 700; font-size: .9rem; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  min-height: 42px; text-decoration: none;
  transition: border-color var(--speed) ease, background var(--speed) ease;
}
.chip:hover { border-color: var(--sky-300); background: var(--sky-50); }
.chip.selected { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-soft { background: var(--mint-100); border-color: var(--mint-100); color: var(--mint-700); font-size: .82rem; min-height: 32px; padding: 4px 12px; cursor: default; }

/* ------------------------------------------------------------- search bar */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 8px 6px 18px; box-shadow: var(--shadow); max-width: 560px;
}
.search-bar:focus-within { border-color: var(--sky-500); }
.search-bar .ico { color: var(--slate); }
.search-bar input {
  flex: 1; border: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; min-width: 0; min-height: 44px;
}
.search-bar input:focus { outline: none; }

/* ------------------------------------------------------------- breadcrumbs */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .88rem; font-weight: 700; padding: 16px 0 0; color: var(--slate); }
.breadcrumbs a { color: var(--sky-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .crumb-sep { color: var(--line); }

/* ------------------------------------------------------------- page header */
.page-head { background: linear-gradient(160deg, var(--sky-50), #fff); padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead { color: var(--slate); font-size: 1.05rem; max-width: 44em; margin: 0; }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; margin: 18px 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }

/* faq accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; font-weight: 800; padding: 15px 4px; font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--sky-600); font-weight: 800; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--sky-700); }
.faq-item .faq-a { padding: 0 4px 16px; color: var(--slate); white-space: pre-line; }

/* hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:first-child { font-weight: 800; white-space: nowrap; padding-right: 18px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 10px; padding: 9px 0; align-items: baseline; }
.contact-list .c-label { font-weight: 800; min-width: 6.4em; flex: none; color: var(--slate); font-size: .9rem; }
.tel-link { font-weight: 800; font-size: 1.2rem; }

.empty-note { color: var(--slate); font-style: italic; padding: 10px 0; }

/* --------------------------------------------------------- resource center */
.res-detail { max-width: 760px; }
.res-summary { font-size: 1.08rem; color: var(--slate); }
.res-body h2 { font-size: 1.2rem; margin-top: 1.3em; }
.res-body p { color: var(--ink); white-space: pre-line; }
.redflag {
  background: var(--danger-bg); border: 1.5px solid #f0c4bf; border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 18px 0;
}
.redflag h2, .redflag h3 { color: var(--danger); display: flex; align-items: center; gap: 8px; margin: 0 0 .5em; font-size: 1.05rem; }
.redflag ul { margin: 0; padding-left: 20px; color: var(--ink); }
.redflag li { margin: 4px 0; }
.res-links { list-style: none; padding: 0; margin: 14px 0 0; }
.res-links li { margin: 8px 0; }
.res-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.res-links .ico { width: 18px; height: 18px; }
.res-note { background: var(--sky-50); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--slate); font-size: .9rem; margin-top: 26px; }

/* insurance / band */
.band { background: linear-gradient(135deg, var(--sky-600), var(--mint-600)); color: #fff; border-radius: 22px; padding: 34px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.band h2 { color: #fff; margin: 0; }
.band p { color: #eaf6ff; margin: 4px 0 0; }
.band .band-text { flex: 1 1 320px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #c3d2de; margin-top: 40px; padding: 40px 0 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #9ec7e8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; margin-bottom: 10px; }
.foot-brand svg { width: 34px; height: 34px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; font-size: .84rem; }
.foot-legal p { margin: 0 0 .7em; max-width: 70em; }
.foot-emergency { font-weight: 800; color: #ffd9cc; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lift);
  z-index: 300; max-width: min(92vw, 30em); text-align: center;
}

/* ============================================================ STAFF PAGE == */
.staff-locked { text-align: center; padding: 56px 0; }
.staff-locked .lock-ico { font-size: 3rem; }
.staff-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.staff-topbar h1 { margin: 0 auto 0 0; font-size: 1.4rem; }

.cm-section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; margin: 16px 0; }
.cm-section > h2 { margin-top: 0; }
.cm-hint { color: var(--slate); font-size: .9rem; margin-top: -4px; }
.cm-field { margin: 12px 0; }
.cm-field label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.cm-field input[type="text"], .cm-field textarea, .cm-field input[type="tel"] {
  width: 100%; font: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff;
}
.cm-field textarea { min-height: 96px; resize: vertical; }
.cm-field input:focus, .cm-field textarea:focus { border-color: var(--sky-500); outline: none; box-shadow: 0 0 0 3px var(--sky-100); }

.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-list-row {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.cm-list-row:last-of-type { border-bottom: 0; }
.cm-remove {
  background: transparent; border: 2px solid var(--line); color: var(--slate);
  font: inherit; font-size: .85rem; font-weight: 700; border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 42px;
}
.cm-remove:hover { border-color: var(--danger); color: var(--danger); }
.cm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.cm-status { font-weight: 800; }
.cm-status.ok { color: var(--mint-600); }
.cm-status.err { color: var(--danger); }

.cm-typehere {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  background: var(--sky-50); color: var(--sky-700); border: 2px solid var(--sky-200);
  font: inherit; font-size: .85rem; font-weight: 800; padding: 7px 12px; border-radius: 10px; cursor: pointer; min-height: 40px;
}
.cm-typehere:hover { background: var(--sky-100); }

.cm-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cm-form-row .f-body { flex: 1 1 200px; min-width: 0; }
.cm-cat-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-cat-btn {
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  font: inherit; font-size: .88rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 42px;
}
.cm-cat-btn.selected { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }
.cm-file-label { display: inline-block; }
.cm-file-name { color: var(--slate); font-size: .9rem; margin-left: 10px; }
input[type="file"].visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.visually-hidden-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* forms page rows */
.form-cat h2 { margin-top: 26px; padding-bottom: 6px; border-bottom: 2px solid var(--sky-100); }
.form-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px 16px; margin: 10px 0;
}
.form-row .f-ico { color: var(--sky-600); }
.form-row .f-body { flex: 1 1 200px; min-width: 0; }
.form-row .f-title { font-weight: 800; }
.form-row .f-meta { color: var(--slate); font-size: .85rem; }
.form-row .btn { flex: none; }

/* ------------------------------------------------------- on-screen keyboard */
.osk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
  background: var(--ink); padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
}
.osk-target { color: #bcd2e6; font-size: .8rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.osk-rows { max-width: 720px; margin: 0 auto; }
.osk-row { display: flex; gap: 5px; justify-content: center; margin-bottom: 5px; }
.osk-key {
  flex: 1 1 0; max-width: 58px; min-height: 46px;
  background: #3a5670; color: #fff; border: 0; border-radius: 10px;
  font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.osk-key:hover { background: #48688a; }
.osk-key-wide { max-width: 130px; flex: 2 1 0; font-size: .9rem; }
.osk-key-done { background: var(--mint-600); }
.osk-key-done:hover { background: var(--mint-700); }
body.osk-open { padding-bottom: 300px; }

/* ----------------------------------------------------------------- pin pad */
.pinpad-overlay, .pw-overlay {
  position: fixed; inset: 0; z-index: 260; background: rgba(34, 56, 74, .72);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
}
.pinpad-card, .pw-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift);
  padding: 28px 24px; width: min(92vw, 360px); text-align: center;
}
.pinpad-icon { font-size: 2rem; }
.pinpad-title { font-weight: 900; font-size: 1.15rem; margin-top: 6px; }
.pinpad-sub { color: var(--slate); font-size: .9rem; margin: 4px 0 12px; }
.pinpad-dots { display: flex; gap: 12px; justify-content: center; margin: 10px 0; min-height: 18px; }
.pinpad-dot { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--sky-600); }
.pinpad-dot.filled { background: var(--sky-600); }
.pinpad-dots.shake { animation: pin-shake .35s; }
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
.pinpad-err { color: var(--danger); font-weight: 700; font-size: .9rem; min-height: 1.4em; margin-bottom: 6px; }
.pinpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 8px 0 4px; }
.pinpad-key {
  min-height: 58px; font: inherit; font-size: 1.35rem; font-weight: 800;
  background: var(--sky-50); color: var(--ink); border: 0; border-radius: 14px; cursor: pointer;
}
.pinpad-key:hover { background: var(--sky-100); }
.pinpad-key-blank { visibility: hidden; }
.pinpad-key-fn { font-size: 1.15rem; }
.pinpad-alt, .pinpad-cancel {
  display: block; width: 100%; margin-top: 10px; background: transparent; border: 0;
  font: inherit; font-weight: 800; cursor: pointer; padding: 11px; min-height: 46px; border-radius: 12px;
}
.pinpad-alt { color: var(--sky-700); }
.pinpad-alt:hover { background: var(--sky-50); }
.pinpad-cancel { color: var(--slate); }
.pinpad-cancel:hover { background: var(--bg); }

.pw-card { text-align: left; }
.pw-card h2 { margin-top: 0; }
.pw-field { margin: 14px 0; }
.pw-field input { width: 100%; font: inherit; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
.pw-field input:focus { border-color: var(--sky-500); outline: none; }
.pw-err { color: var(--danger); font-weight: 700; font-size: .9rem; min-height: 1.4em; }
.pw-actions { display: flex; gap: 10px; margin-top: 8px; }
.pw-actions .btn { flex: 1; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 38px 0; }
  .cm-row, .cm-list-row { grid-template-columns: 1fr; }
  .cm-list-row { gap: 6px; }
  .form-row .btn { flex: 1 1 100%; }
  .band { padding: 26px 20px; }
}

/* --------------------------------------------------------------- printing */
@media print {
  .site-header, .site-footer, .alert-banner, .btn, .breadcrumbs, .search-bar, .chip-row { display: none !important; }
  body { background: #fff; }
  .panel, .card { box-shadow: none; border: 1px solid #ccc; }
}
