/* Devyn - BridgeCare contact card.
   Brand from bridgecarestaffing.com (template_bridgecare-brand.min.css): navy #082e49,
   teal #009993, lime #8dc63f, body #42464b, soft background #f4f4f4. Layout follows the
   BridgeCare carousel: white space, small gradient logo, letter-spaced teal label, bold navy
   headline, soft grey-blue panels. Brand teal #009993 is only 3.5:1 on white, so it is used
   for fills and icons; small text uses the darker teal #007a75 (5.2:1). */
:root {
  --navy: #082e49;
  --navy-2: #2d4d5e;
  --brand-teal: #009993;
  --teal: #007a75;
  --teal-dark: #006560;
  --teal-on-navy: #8fe0d6;
  --teal-tint: #e6f3f2;
  --lime: #8dc63f;
  --white: #ffffff;
  --page: #f4f4f4;
  --panel: #eff4f5;
  --ink: #082e49;
  --muted: #4f5459;
  --line: #e3e8eb;
  --inert-bg: #f1f3f4;
  --inert-ink: #42464b;
  --chip-bg: #fef3c7;
  --chip-ink: #78350f;
  --chip-dot: #d97706;
  --banner-bg: #082e49;
  --banner-ink: #ffffff;
  --focus: #082e49;
  --focus-halo: #ffffff;
  --radius: 24px;
  --shadow: 0 4px 12px rgb(8 46 73 / 0.06), 0 18px 40px rgb(8 46 73 / 0.08);
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--muted);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
}

/* Two-tone ring: white halo + navy outline, visible on white, navy and the status bar. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-halo);
}

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

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

/* Status bar for preview / sample builds only. */
.statusbar {
  background: var(--banner-bg);
  color: var(--banner-ink);
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px 16px;
}

.statusbar p {
  margin: 0;
}

.statusbar a {
  color: var(--banner-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main {
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 12px calc(32px + env(safe-area-inset-bottom));
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* BridgeCare's navy-to-teal band, as on their site. */
.card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0, var(--brand-teal) 55%, var(--brand-teal) 100%);
}

/* Header */
.card-head {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 28px 8px;
}

/* The row takes the full line; the image keeps its own aspect ratio (raster logos included). */
.logo-row {
  flex-basis: 100%;
  margin-bottom: 20px;
}

.logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-tint);
}

.ident {
  min-width: 0;
  flex: 1;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2.375rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.role {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.role .org {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.role .muted {
  color: var(--muted);
}

.sep::before {
  content: "\00b7";
  margin: 0 8px;
  opacity: 0.7;
}

/* Section labels: small, letter-spaced, teal - the carousel's eyebrow style. */
h2 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

section {
  padding: 20px 28px;
}

/* Actions */
.actions {
  padding-top: 20px;
  padding-bottom: 8px;
}

.actions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.actions ul + ul {
  margin-top: 10px;
}

@media (min-width: 380px) {
  .actions ul.secondary {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
}

.btn {
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-inert {
  background: var(--inert-bg);
  color: var(--inert-ink);
  border-color: var(--line);
  cursor: not-allowed;
}

.why {
  margin: 6px 4px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Pending marker: a small amber dot; the words are screen-reader only. */
.chip {
  display: inline-block;
  vertical-align: middle;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--chip-dot);
  box-shadow: 0 0 0 2px var(--chip-bg);
}

.muted {
  color: var(--muted);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact rows: soft panels like the carousel's list, the whole row is the tap target. */
.contacts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 120ms ease;
}

a.contact:hover {
  background: var(--teal-tint);
}

.c-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-teal);
}

.c-icon .icon {
  width: 20px;
  height: 20px;
}

.c-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.c-value {
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.contact-pending .c-value {
  color: var(--muted);
  font-weight: 500;
}

/* Coverage */
.summary p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

/* Share */
.qr {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
}

.qr figcaption {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.qr figcaption strong {
  color: var(--navy);
  font-size: 1rem;
}

.qr figcaption span {
  overflow-wrap: anywhere;
}

.qr img {
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: var(--white);
}

.card > section:last-child {
  padding-bottom: 28px;
}

/* Review checklist page (preview only). */
.review-page main {
  max-width: 920px;
  padding-top: 24px;
}

.back {
  margin: 0 0 16px;
}

.owner {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.owner h1 {
  font-size: 1.375rem;
}

.owner p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

code {
  overflow-wrap: anywhere;
  background: var(--page);
  padding: 1px 4px;
  border-radius: 4px;
}

.foot {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 16px 0 0;
}

/* Owner table: stacked rows on phones instead of a tall three-column squeeze. */
@media (max-width: 599px) {
  .owner thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .owner tr {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .owner th,
  .owner td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .owner td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--ink);
  }
}

@media (max-width: 400px) {
  .card-head {
    padding: 24px 20px 8px;
  }

  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 2.125rem;
  }

  .contact {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 10px 12px;
  }

  .c-icon {
    width: 40px;
    height: 40px;
  }

  .c-email {
    font-size: 0.875rem;
  }

  .qr {
    flex-direction: column;
    text-align: center;
  }

  .qr img {
    width: 156px;
    height: 156px;
  }
}

@media (min-width: 600px) {
  main {
    padding-top: 56px;
  }
}

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

@media print {
  .statusbar,
  .skip {
    display: none;
  }

  .card {
    box-shadow: none;
  }
}

/* ---- Event greeting, intro, provider/facility paths (2026-10-15) ---- */
.greeting {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.chooser {
  padding: 20px 28px 4px;
}

.chooser h2 {
  margin-bottom: 12px;
  font-size: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.chooser ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--brand-teal);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.choice:hover {
  background: var(--teal-tint);
}

.path {
  margin: 12px 20px 0;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--panel);
  scroll-margin-top: 16px;
}

.path:target {
  outline: 3px solid var(--brand-teal);
  outline-offset: 2px;
}

.path h2 {
  margin-bottom: 4px;
}

.path-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.path-cta {
  margin: 12px 0 0;
}

.path-cta:first-of-type {
  margin-top: 4px;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.path-cta + .links {
  margin-top: 12px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: break-word;
}

.link-row::after {
  content: "\2197";
  flex: none;
  color: var(--teal);
  font-weight: 700;
}

.link-row .l-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.link-row .l-host {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.link-row:hover {
  background: var(--teal-tint);
}

@media (max-width: 359px) {
  .chooser ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}