/* ==========================================================================
   widgets.css — shared/global layer: email-capture tab, waitlist modal,
   secondary button + quiet nav link. Self-contained; loaded on every page.
   ========================================================================== */

/* --- Secondary (ghost) pill + quiet nav link ------------------------------ */
.btn--ghost {
  background: #FFFFFF;
  color: #17181A;
  border: 1px solid #E1E7E7;
}
.btn--ghost:hover {
  background: #E3F4F2;
  border-color: #E1E7E7;
  color: #17181A;
}

.nav-link {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .9375rem;
  font-weight: 500;
  color: #6E7276;
  text-decoration: none;
  transition: color .15s ease;
}
.nav-link:hover { color: #17181A; }
/* The page you're on wears a subtle pill outline; it moves as you switch. */
.nav-link[aria-current="page"] {
  border: 1px solid rgba(43, 179, 163, .55);
  border-radius: 999px;
  padding: .375rem .8125rem;
  color: #17181A;
}

/* --- Shared form primitives ---------------------------------------------- */
.pios-label {
  display: block;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6E7276;
  margin-bottom: .375rem;
}
.pios-input {
  display: block;
  width: 100%;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  color: #17181A;
  background: #FFFFFF;
  border: 1px solid #E1E7E7;
  border-radius: 12px;
  padding: .625rem .875rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pios-input:focus {
  border: 1.5px solid #2BB3A3;
  box-shadow: 0 0 0 3px #E3F4F2;
}
select.pios-input { appearance: auto; }

.pios-field { margin-top: .875rem; }
.pios-field:first-child { margin-top: 0; }

.pios-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0F7A6E;
  background: #E3F4F2;
  border: 1px solid #E3F4F2;
  border-radius: 999px;
  padding: .6875rem 1.5rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pios-submit:hover { background: #D3EEEA; border-color: #D3EEEA; }
.pios-submit:disabled { opacity: .6; cursor: default; }

.pios-error {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .875rem;
  color: #C0503C;
  margin-top: .625rem;
  line-height: 1.5;
}
.pios-error a { color: inherit; }

.pios-confirm {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  color: #17181A;
  line-height: 1.55;
  padding: 1rem 0 .5rem;
}

/* Honeypot — visually hidden, still in the DOM for bots */
.pios-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Slide-out email-capture tab ------------------------------------------ */
.pios-tab {
  position: fixed;
  z-index: 900;
  right: 0;
  top: 50%;
  transform: translate(110%, -50%);
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: #FFFFFF;
  border: 1px solid #E8ECEC;
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 18px 44px rgba(23,24,26,.10);
  padding: 1.125rem 1.25rem 1.25rem;
  transition: transform .4s ease-out;
}
.pios-tab.is-open { transform: translate(0, -50%); }

.pios-tab__controls {
  position: absolute;
  top: .625rem;
  right: .75rem;
  display: flex;
  gap: .25rem;
}
.pios-tab__ctrl {
  appearance: none;
  background: none;
  border: 0;
  padding: .25rem;
  line-height: 1;
  font-size: 1rem;
  color: #6E7276;
  cursor: pointer;
  border-radius: 8px;
}
.pios-tab__ctrl:hover { color: #17181A; background: #E3F4F2; }

.pios-tab__lead {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: .875rem;
  padding-right: 3rem;
}

/* Branded thumbnail placeholder: white tile, teal-mist page glyph */
.tab-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 114px;
  background: #FFFFFF;
  border: 1px solid #E8ECEC;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(23,24,26,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-thumb__glyph {
  width: 30px;
  height: 40px;
  background: #E3F4F2;
  border-radius: 4px;
  position: relative;
}
.tab-thumb__glyph::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 9px;
  height: 3px;
  border-radius: 2px;
  background: #2BB3A3;
  box-shadow: 0 8px 0 0 rgba(43,179,163,.45), 0 16px 0 0 rgba(43,179,163,.45);
}

.pios-tab__copy {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .9375rem;
  line-height: 1.5;
  color: #4B5254;
  margin: 0;
}

.pios-tab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}
.pios-tab__grid .pios-field { margin-top: 0; }
.pios-tab__grid .pios-field--full { grid-column: 1 / -1; }
.pios-tab form .pios-submit { margin-top: .875rem; }

/* Minimized edge tab — pops from the upper LEFT, anchored just below the
   hero panel's top edge (top set by widgets.js from the hero's position). */
.pios-tab-min {
  position: fixed; /* follows the scroll */
  z-index: 900;
  left: 0;
  top: 220px; /* fallback; JS anchors it to the hero's on-load position */
  transform: translate(-110%, 0);
  appearance: none;
  background: #17181A;
  color: #FFFFFF;
  border: 0;
  border-radius: 0 10px 10px 0;
  padding: .875rem .5rem;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  cursor: pointer;
  transition: transform .4s ease-out, background .15s ease;
}
.pios-tab-min.is-open { transform: translate(0, 0); }
.pios-tab-min:hover { background: #2A2C2F; }

/* Mobile: compact bottom-anchored bar */
@media (max-width: 767px) {
  .pios-tab {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    transform: translateY(110%);
    border-radius: 16px 16px 0 0;
    border-right: 1px solid #E8ECEC;
    border-bottom: none;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .pios-tab.is-open { transform: translateY(0); }
  .tab-thumb { width: 66px; height: 85px; }
  .tab-thumb__glyph { width: 24px; height: 32px; }

  .pios-tab-min {
    transform: translate(-110%, 0);
    writing-mode: horizontal-tb;
    border-radius: 0 999px 999px 0;
    padding: .5rem .875rem;
  }
  .pios-tab-min.is-open { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pios-tab, .pios-tab-min { transition: none; }
}

/* --- Waitlist modal ------------------------------------------------------- */
.pios-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(23,24,26,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pios-modal-backdrop.is-open { display: flex; }

.pios-modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E8ECEC;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(23,24,26,.16);
  padding: 1.75rem;
  position: relative;
}

.pios-modal__close {
  position: absolute;
  top: .875rem;
  right: .875rem;
  appearance: none;
  background: none;
  border: 0;
  padding: .375rem;
  line-height: 1;
  font-size: 1.125rem;
  color: #6E7276;
  cursor: pointer;
  border-radius: 8px;
}
.pios-modal__close:hover { color: #17181A; background: #E3F4F2; }

.pios-modal__title {
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #17181A;
  margin: 0 2rem .375rem 0;
  line-height: 1.25;
}
.pios-modal__sub {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .9375rem;
  color: #6E7276;
  line-height: 1.5;
  margin: 0 0 1.125rem;
}
.pios-modal form .pios-submit { margin-top: 1.125rem; }

/* Specialty filter-as-you-type dropdown */
.pios-combo { position: relative; }
.pios-combo__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E1E7E7;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23,24,26,.10);
  list-style: none;
  margin: 0;
  padding: .25rem;
  display: none;
}
.pios-combo__list.is-open { display: block; }
.pios-combo__opt {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: .9375rem;
  color: #17181A;
  padding: .4375rem .625rem;
  border-radius: 8px;
  cursor: pointer;
}
.pios-combo__opt:hover,
.pios-combo__opt.is-active { background: #E3F4F2; color: #0F7A6E; }

/* --- Header nav fit ------------------------------------------------------- */
.site-header__nav .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .wrap { padding-inline: var(--s3, 1rem); }
  .site-header .wordmark { font-size: .9375rem; }
  .site-header__inner { gap: .5rem; }
  .site-header__nav { gap: .625rem !important; }
  .site-header__nav .btn--sm { font-size: .78125rem; padding: .4375rem .8125rem; }
  .site-header__nav .nav-link { font-size: .84375rem; }
}

/* Phones: no edge tab (it overlapped the hero label). William, 2026-09-30. */
@media (max-width: 700px) { .pios-tab-min { display: none !important; } }
