/* Snapback Health — patient Today screen, recovery library, and readability pass */

body { font-size: 16px; }

.nav-item { font-size: 0.9375rem !important; }

.nav-group-label,
.topbar-sub,
.tl-time,
.med-info,
.appt-meta,
.food-detail,
.ex-detail,
.reading-notes,
.team-role,
.edu-tab-card-label {
  font-size: 0.875rem !important;
  line-height: 1.5;
}

.card-title,
.tl-title,
.med-name,
.appt-name,
.ex-name,
.team-name {
  font-size: 1rem !important;
  line-height: 1.45;
}

.today-home { max-width: 1180px; margin: 0 auto; }
.today-home .wb-hero { padding: 22px 24px; margin-bottom: 16px; }
.today-home .wb-fade-1 { margin-bottom: 12px !important; }
.today-home .wb-hero [style*="font-size:10px"],
.today-home .wb-hero [style*="font-size:11px"],
.today-home .wb-hero [style*="font-size:12px"],
.today-home .wb-hero [style*="font-size:13px"] { font-size: 0.9375rem !important; }
.today-home .two-col { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); align-items: start; margin-bottom: 16px; }
.today-home .card-title,
.today-home .check-item-label,
.today-home .ai-text,
.today-home .tl-title { font-size: 1rem !important; line-height: 1.55; }
.today-home .tl-time,
.today-home .pill,
.today-home .ai-label,
.today-home [style*="font-size:11px"],
.today-home [style*="font-size:12px"],
.today-home [style*="font-size:13px"] { font-size: 0.875rem !important; line-height: 1.5; }
.today-home .check-item { min-height: 52px; padding-top: 12px; padding-bottom: 12px; }
.today-secondary { opacity: 0.96; }

.text-size-toggle {
  min-width: 42px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text-2);
  font: 700 14px/1 'DM Sans', sans-serif;
  cursor: pointer;
}
.text-size-toggle:hover,
.text-size-toggle:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }
html.snapback-large-text { font-size: 112.5%; }
html.snapback-large-text .content,
html.snapback-large-text .welcome-card,
html.snapback-large-text .modal-content { line-height: 1.65; }

.welcome-label,
.welcome-input,
.welcome-sub,
#tour-body,
.welcome-card button { font-size: 0.9375rem !important; }
.welcome-input,
.welcome-btn { min-height: 46px; }

.sms-consent-visible {
  border: 1px solid var(--blue-mid) !important;
  border-radius: 10px;
  background: var(--blue-light) !important;
  padding: 12px !important;
}

.snapback-install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.snapback-install-card p { margin-top: 6px; color: var(--text-2); line-height: 1.55; }
.snapback-install-note { min-height: 1.4em; font-weight: 600; color: var(--blue) !important; }

.recovery-library { max-width: 1120px; margin: 0 auto; }
.recovery-library-nav-icon { font-size: 18px; line-height: 1; text-align: center; }
.recovery-library-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(115deg, rgba(0,87,91,.96), rgba(0,133,133,.83)), url('/images/snapback/procedure-education-hero.webp') center/cover;
  box-shadow: 0 16px 38px rgba(26,43,60,.14);
}
.recovery-library-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .86; }
.recovery-library-hero h2 { margin-top: 6px; font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.recovery-library-hero p { max-width: 620px; margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.recovery-library-search-wrap { margin-bottom: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.recovery-library-search-wrap label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.recovery-library-search-wrap input { width: 100%; }
.recovery-library-search-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--text-3); font-size: .875rem; }
.recovery-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.recovery-library-card { display: flex; min-height: 185px; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 7px 20px rgba(26,43,60,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.recovery-library-card:hover { transform: translateY(-2px); border-color: var(--blue-mid); box-shadow: 0 12px 28px rgba(26,43,60,.09); }
.recovery-library-card h3 { font-size: 1.05rem; line-height: 1.3; }
.recovery-library-card p { margin: 8px 0 18px; color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.recovery-library-card .btn { margin-top: auto; }
.recovery-library-empty,
.recovery-library-note { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); line-height: 1.55; }
.recovery-library-note { margin-top: 16px; font-size: .9rem; }

@media (max-width: 900px) {
  .today-home .two-col { grid-template-columns: 1fr; }
  .recovery-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .today-home .wb-hero { padding: 18px; }
  .text-size-toggle { order: -1; }
  .topbar-right .pill:not(#topbar-day) { display: none; }
  .snapback-install-card { align-items: flex-start; flex-direction: column; }
  .recovery-library-hero { min-height: 170px; padding: 22px; }
  .recovery-library-grid { grid-template-columns: 1fr; }
  .recovery-library-search-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece { display: none !important; }
  .recovery-library-card { transition: none; }
}
