/* ============ Ron's Home — calm, large, high-contrast ============ */
:root {
  --cream: #FBF5EA;
  --paper: #FFFDF8;
  --sand: #F1E7D6;
  --line: #E6D9C3;
  --navy: #1B2540;
  --ink-soft: #4A5168;
  --red: #C62F2F;
  --green: #2E7D4F;
  --gold: #E9B949;
  --radius: 28px;
  --shadow: 0 2px 0 rgba(27,37,64,.06), 0 10px 24px -12px rgba(27,37,64,.25);
  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  background:
    radial-gradient(1200px 500px at 0% -10%, #FFF3DC 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #F7EBE0 0%, transparent 55%),
    var(--cream);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
button, a.btn { font-family: inherit; color: inherit; cursor: pointer; }
button { border: 0; background: none; padding: 0; }
:focus-visible { outline: 5px solid #E9B949; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .new-card:hover, .btn:hover, .took:hover, .back:hover,
  .phone-btn:hover, .link-btn:hover, .mail:hover, .chip:hover, a.headline:hover, .t-row:hover {
    filter: brightness(1.05);
  }
  .phone-btn:hover, .link-btn:hover, .mail:hover, .chip:hover, a.headline:hover {
    border-color: var(--navy);
  }
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 0;
}
/* Space reserved for the fixed Help button so nothing is stuck under it */
:root { --help-h: 92px; --help-gap: 24px; }
body { padding-bottom: calc(var(--help-h) + var(--help-gap) * 2 + env(safe-area-inset-bottom)); }

/* ---------- Top bar ---------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.35fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}
.topbar > * {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 26px;
  box-shadow: var(--shadow);
}
.hello { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--ink-soft); }
.hello__name { display: block; font-size: 52px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; }
.clock { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.clock__time { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.clock__date { font-size: 27px; margin-top: 6px; color: var(--ink-soft); }
.weather { display: flex; align-items: center; gap: 4px; padding-left: 8px !important; padding-right: 8px !important; min-width: 0; }
.wx-arrow {
  flex: none; width: 48px; height: 64px; border-radius: 16px;
  font-size: 40px; font-weight: 700; line-height: 1; color: var(--navy);
  background: var(--sand); border: 2px solid var(--line);
}
.wx-arrow:active { transform: scale(.94); }
.wx-viewport { flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.wx-track { display: flex; transition: transform .35s ease; }
.wx-slide { flex: 0 0 100%; min-width: 0; padding: 0 6px; }
.wx-place { font-size: 22px; font-weight: 700; color: #2F5F8F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.wx-main { display: flex; align-items: center; justify-content: center; gap: 8px; }
.weather__icon { font-size: 44px; line-height: 1; }
.weather__temp { font-size: 44px; font-weight: 700; line-height: 1; }
.wx-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.weather__sum { font-size: 20px; font-weight: 700; white-space: nowrap; }
.weather__hl { font-size: 19px; color: var(--ink-soft); white-space: nowrap; }
.wx-dots { display: flex; justify-content: center; gap: 2px; margin: 0 0 -6px; }
.wx-dot { width: 26px; height: 22px; position: relative; }
.wx-dot::after { content: ""; position: absolute; inset: 6px 8px; border-radius: 50%; background: #CDBFA6; }
.wx-dot--on::after { background: var(--navy); inset: 5px 7px; }

/* ---------- Sections ---------- */
.section { margin-bottom: 18px; }
.section__title { font-size: 32px; margin: 0 0 10px 6px; line-height: 1.1; }

/* What's New */
.news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.new-card {
  display: flex; align-items: stretch; text-align: left;
  min-height: 108px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s;
}
.new-card:active, .tile:active, .btn:active, .took:active, .back:active, .mail:active, .phone-btn:active { transform: scale(.97); }
.new-card__art {
  flex: 0 0 104px;
  display: grid; place-items: center;
  font-size: 54px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, white), var(--c));
}
.new-card__body { padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.new-card__title { font-size: 25px; font-weight: 700; line-height: 1.2; }
.new-card__sub { font-size: 22px; color: var(--ink-soft); line-height: 1.25; }

.badge {
  align-self: flex-start;
  display: inline-block;
  font-size: 19px; font-weight: 700; letter-spacing: .3px;
  padding: 4px 14px; border-radius: 999px;
  color: #fff; white-space: nowrap;
}
.badge--red { background: var(--red); }
.badge--blue { background: #2F5F9F; }
.badge--gold { background: var(--gold); color: var(--navy); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tile {
  position: relative;
  min-height: 136px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 82%, white) 0%, var(--c) 70%);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, black), 0 14px 26px -14px rgba(27,37,64,.5);
  transition: transform .12s;
}
.tile__icon {
  font-size: 54px; line-height: 1;
  width: 84px; height: 84px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); border-radius: 50%;
}
.tile__label { font-size: 28px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.25); line-height: 1.1; text-align: center; padding: 0 6px; }
.count {
  position: absolute; top: -12px; right: -10px;
  min-width: 58px; height: 58px; padding: 0 12px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-size: 30px; font-weight: 700;
  border-radius: 999px; border: 4px solid var(--cream);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

/* ---------- Footer & Help ---------- */
.footer {
  text-align: center; font-size: 16px; color: #8A8270;
  padding: 8px 140px 0; letter-spacing: .3px;
}
.footer a { color: inherit; }
.footer__links { display: block; margin-top: 4px; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }

/* Privacy and terms. Same colors and type as the home screen, quieter layout. */
body.legal-page { padding-bottom: 28px; }
.legal { max-width: 760px; margin: 0 auto; padding: 28px 22px 12px; }
.legal__home {
  display: inline-block; margin-bottom: 14px;
  font-weight: 700; font-size: 20px; text-decoration: none; color: var(--navy);
}
.legal__card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 28px 12px;
}
.legal h1 { font-size: 48px; line-height: 1.1; margin: 0 0 8px; }
.legal .kicker { color: var(--ink-soft); font-size: 20px; margin: 0 0 8px; }
.legal p { font-size: 22px; line-height: 1.45; margin: 0 0 18px; }
.legal a { color: #2F5F8F; }
.legal .footer { padding: 18px 12px 8px; }
.help-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  min-height: 92px; padding: 0 34px 0 24px;
  background: var(--red); color: #fff;
  font-size: 34px; font-weight: 700;
  border-radius: 999px;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px -6px rgba(198,47,47,.6);
}
.help-fab__icon { font-size: 40px; }

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(27,37,64,.55);
  display: grid; place-items: center; padding: 24px;
}
.modal[hidden] { display: none; }
.modal__card {
  background: var(--paper); border-radius: 36px;
  width: min(620px, 100%); padding: 40px 36px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.modal__emoji { font-size: 72px; }
.modal__title { font-size: 40px; margin: 6px 0 10px; }
.modal__text { margin: 0 0 28px; color: var(--ink-soft); }
.modal__buttons { display: grid; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 84px; padding: 0 28px;
  font-size: 28px; font-weight: 700; text-decoration: none;
  border-radius: 22px; transition: transform .12s;
}
.btn--yes { background: var(--green); color: #fff; }
.btn--no { background: var(--sand); color: var(--navy); border: 2px solid var(--line); }
.btn--call { background: var(--green); color: #fff; }
.btn--video { background: #2F5F9F; color: #fff; }
.btn--soft { background: var(--paper); border: 3px solid var(--line); color: var(--navy); }

/* ---------- Sub pages ---------- */
.backbar {
  position: sticky; top: 0; z-index: 10;
  margin: -28px -32px 18px; padding: 18px 32px;
  background: linear-gradient(var(--cream) 80%, rgba(251,245,234,0));
}
.back {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%; min-height: 96px;
  background: var(--navy); color: #fff;
  font-size: 34px; font-weight: 700;
  border-radius: 26px;
  box-shadow: 0 4px 0 #0c1225;
}
.back span { font-size: 44px; line-height: 1; }
.page__title {
  display: flex; align-items: center; gap: 18px;
  font-size: 48px; margin: 8px 0 22px; color: var(--navy);
}
.page__icon {
  width: 84px; height: 84px; flex: none; display: grid; place-items: center;
  font-size: 48px; border-radius: 24px;
  background: color-mix(in srgb, var(--c) 18%, white);
  border: 3px solid color-mix(in srgb, var(--c) 35%, white);
}
.lead { font-size: 26px; margin: 0 0 20px; }
.muted { color: #7A7363; font-size: 20px; }
.center { text-align: center; margin-top: 24px; }
.stack { display: grid; gap: 16px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 20px; }
.card__title { font-size: 34px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.tz { font-size: 20px; font-weight: 400; color: var(--ink-soft); background: var(--sand); padding: 2px 12px; border-radius: 999px; }

/* Calendar */
.day { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.day--today { border: 4px solid #2F6F9F; background: #F4F8FC; }
.day__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.day__name { font-size: 34px; font-weight: 700; }
.day--today .day__name { color: #2F6F9F; }
.day__date { font-size: 24px; color: var(--ink-soft); }
.event { display: flex; gap: 20px; align-items: center; padding: 12px 0; border-top: 2px dashed var(--line); }
.event__icon { font-size: 52px; width: 76px; text-align: center; flex: none; }
.event__time { font-size: 24px; font-weight: 700; color: var(--ink-soft); }
.event__title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.event__note { font-size: 22px; color: var(--ink-soft); }
.event--empty { color: #8A8270; font-style: italic; }

/* Family */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.person {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow);
}
.avatar {
  width: 128px; height: 128px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 52px; font-weight: 700;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c, #3F5A73) 70%, white), var(--c, #3F5A73));
  border: 6px solid #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
.avatar--sm { width: 72px; height: 72px; font-size: 28px; margin: 0; border-width: 3px; flex: none; }
.person__name { font-size: 36px; font-weight: 700; line-height: 1.1; }
.person__rel { font-size: 24px; color: var(--ink-soft); margin-bottom: 18px; }
.person__btns { display: grid; gap: 12px; }

/* Photos */
.slideshow { display: grid; grid-template-columns: 110px 1fr 110px; gap: 18px; align-items: center; }
.arrow {
  height: 220px; border-radius: 28px; font-size: 96px; line-height: 1; font-weight: 700;
  background: var(--paper); border: 3px solid var(--line); color: var(--navy); box-shadow: var(--shadow);
}
.slide {
  margin: 0; position: relative; aspect-ratio: 16/10; max-height: 62vh; width: 100%;
  border-radius: 32px; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.slide__emoji { font-size: clamp(110px, 18vw, 200px); filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.slide__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 28px;
  font-size: 34px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.slide__count { text-align: center; font-size: 26px; color: var(--ink-soft); margin: 18px 0 0; }
.slide__nav-phone { display: none; }

/* Medications */
.progress {
  font-size: 28px; padding: 18px 24px; border-radius: 22px; margin-bottom: 20px;
  background: #FCEFF1; border: 2px solid #EFC9D0;
}
.progress--done { background: #E6F4EA; border-color: #A9D8B8; font-weight: 700; color: var(--green); }
.med {
  display: grid; grid-template-columns: 170px 1fr 260px; align-items: center; gap: 22px;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow); transition: background .2s, border-color .2s;
}
.med--taken { background: #F0F8F2; border-color: #A9D8B8; }
.med__time {
  font-size: 30px; font-weight: 700; text-align: center;
  background: var(--sand); border-radius: 18px; padding: 14px 8px; line-height: 1.1;
}
.med--taken .med__time { background: #D7EEDD; }
.med__name { font-size: 32px; font-weight: 700; line-height: 1.15; }
.med__dose { font-size: 23px; color: var(--ink-soft); margin-top: 4px; }
.took {
  min-height: 88px; border-radius: 24px;
  font-size: 30px; font-weight: 700;
  background: var(--paper); color: var(--navy);
  border: 4px solid var(--navy);
  transition: transform .12s, background .2s;
}
.took--yes { background: var(--green); border-color: var(--green); color: #fff; font-size: 34px; }

/* NFL */
.nfl { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.game {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 14px; border-top: 2px solid var(--sand); border-radius: 18px;
}
.card__title + .game { border-top: 0; }
.game__time { font-size: 29px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.game__teams { font-size: 28px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tm { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { width: 46px; height: 46px; object-fit: contain; flex: none; display: block; }
.logo--big { width: 120px; height: 120px; margin: 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.team__logo .logo--big { background: rgba(255,255,255,.95); border-radius: 50%; padding: 8px; box-sizing: content-box; }
.matchup { display: flex; flex-direction: column; align-items: center; gap: 0; }
.matchup .logo { width: 46px; height: 46px; }
.matchup__vs { font-size: 15px; font-weight: 700; color: #4F2683; line-height: 1; }
.new-card__art--light { background: linear-gradient(160deg, #FFFFFF, #ECE4F7) !important; border-right: 2px solid #E0D4F0; }
.game__time .badge { font-size: 17px; padding: 3px 12px; }
.at { color: var(--ink-soft); font-size: 22px; }
.chan {
  display: inline-block; min-width: 110px; text-align: center;
  font-size: 28px; font-weight: 700; padding: 8px 16px;
  background: var(--navy); color: #fff; border-radius: 16px; white-space: nowrap;
}
.game--mine { background: #F3EEFB; border: 3px solid #4F2683; margin: 6px 0; }
.game--mine + .game { border-top-color: transparent; }
.myteam { color: #4F2683; }
.subday { font-size: 26px; margin: 18px 0 4px; color: var(--ink-soft); }
.subday:first-of-type { margin-top: 0; }
.team {
  position: static;
  background: linear-gradient(170deg, var(--team), color-mix(in srgb, var(--team) 70%, black));
  color: #fff; border-radius: var(--radius); padding: 18px 20px; text-align: center;
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.6);
  border-bottom: 8px solid var(--accent);
}
.team__label { display: inline-block; font-size: 20px; font-weight: 700; color: var(--navy); background: var(--accent); padding: 4px 16px; border-radius: 999px; }
.team__logo { font-size: 52px; margin: 10px 0 6px; line-height: 1; }
.team__name { font-size: 26px; line-height: 1.15; }
.team__name strong { font-size: 44px; }
.team__record { font-size: 22px; opacity: .9; margin: 4px 0 8px; }
.team__box { background: rgba(255,255,255,.13); border-radius: 18px; padding: 10px 14px; margin-top: 10px; text-align: left; }
.team__k { font-size: 18px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.team__v { font-size: 25px; font-weight: 700; line-height: 1.2; }
.team__v2 { font-size: 22px; opacity: .92; }

/* News */
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.chip {
  min-height: 84px; padding: 0 28px; border-radius: 999px;
  font-size: 28px; font-weight: 700;
  background: var(--paper); border: 3px solid var(--line);
}
.chip--on { background: var(--c); border-color: var(--c); color: #fff; }
.headline {
  background: var(--paper); border: 2px solid var(--line); border-left: 12px solid var(--c);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
.headline__topic { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c); }
.headline__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.source { font-size: 18px; font-weight: 700; color: var(--navy); background: var(--sand); border: 2px solid var(--line); padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.headline__text { font-size: 32px; margin: 4px 0 0; line-height: 1.25; }
a.headline { display: block; text-decoration: none; color: inherit; }
.headline__meta-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.headline__time { font-size: 18px; color: var(--ink-soft); font-weight: 700; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* YouTube / Shows / tips */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.vcard, .tip, .show {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.vcard__thumb, .tip__video {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c, #3F5A73) 70%, white), var(--c, #3F5A73));
}
.tip__video { --c: #5E7F3A; }
.vcard__icon, .tip__icon { font-size: 76px; opacity: .9; }
.play {
  position: absolute; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 6px;
  background: rgba(255,255,255,.95); color: var(--red); font-size: 38px;
  right: 16px; bottom: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.play--big { position: absolute; width: 110px; height: 110px; font-size: 50px; right: auto; bottom: auto; color: #3F6A2A; }
.tip__icon { opacity: .35; font-size: 110px; }
.vcard__len { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: 19px; padding: 3px 12px; border-radius: 10px; }
.vcard__body, .show__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.vcard__title, .show__title, .tip__title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.tip__title { padding: 18px 22px 22px; }
.vcard__chan, .show__when { font-size: 23px; color: var(--ink-soft); }
.show { display: flex; }
.show__art {
  flex: 0 0 120px; display: grid; place-items: center; font-size: 60px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, white), var(--c));
}
.show__where { font-size: 23px; }

/* Email */
.mail {
  display: flex; align-items: center; gap: 20px; width: 100%; text-align: left;
  min-height: 110px; padding: 18px 22px;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mail--new { border: 3px solid #2F5F8F; background: #F4F8FC; }
.mail__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail__from { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mail__subj { font-size: 25px; color: var(--ink-soft); }
.mail__when { font-size: 22px; color: var(--ink-soft); flex: none; }
.letter { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px; margin-top: 20px; box-shadow: var(--shadow); }
.letter__from { font-size: 24px; color: var(--ink-soft); }
.letter__subj { font-size: 38px; margin: 8px 0 16px; }
.letter__body { font-size: 30px; line-height: 1.5; margin: 0; }

/* Phone help */
.question { font-size: 40px; margin: 0 0 22px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phone-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 20px; min-height: 240px;
  background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.phone-btn__icon { font-size: 80px; line-height: 1; }
.phone-btn__label { font-size: 32px; font-weight: 700; line-height: 1.15; text-align: center; }
.phone-btn__sub { font-size: 21px; color: var(--ink-soft); }
.chosen { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; font-size: 28px; }

/* Fun Tidbits: big cards, large type, no outbound links */
.tidbits { display: grid; gap: 18px; }
.tidbit {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 26px; box-shadow: var(--shadow);
}
.tidbit__label {
  margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: #9A5B22;
}
.tidbit__text { margin: 0; font-size: 30px; line-height: 1.35; }
.tidbit__img {
  display: block; width: 100%; max-height: 460px; object-fit: contain;
  border-radius: 16px; margin: 0 0 14px; background: #F3EBDD;
}
.tidbit__note { margin: 18px 6px 0; font-size: 20px; color: var(--ink-soft); }
.section__title .muted { font-weight: 400; }

/* Today's Verse card (home) */
.verse-card {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  text-align: left; padding: 16px 30px; min-height: 142px;
  border-radius: var(--radius); color: #3A2A14;
  background: linear-gradient(120deg, #FFF4DE 0%, #FBDDB8 55%, #F4BFA0 100%);
  border: 2px solid #EBC9A0; box-shadow: var(--shadow);
}
.verse-card__label { font-size: 20px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #9A5B22; }
.verse-card__text { font-family: "Lora", Georgia, serif; font-size: 27px; line-height: 1.3; font-weight: 500; }
.verse-card__ref { font-size: 21px; font-weight: 700; color: #7A4A1E; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.verse-card__more { font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }

/* Devotional page */
.odb-card {
  background: var(--paper); border: 2px solid #EBC9A0; border-radius: 32px;
  padding: 28px 32px 32px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.odb-card__brand { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #9A5B22; }
.odb-card__title { margin: 0 0 8px; font-size: 40px; line-height: 1.15; }
.odb-card__date { margin: 0 0 6px; font-size: 24px; color: var(--ink-soft); font-weight: 700; }
.odb-card__ref { margin: 0 0 12px; font-size: 26px; font-weight: 700; }
.odb-card__excerpt { margin: 0 0 18px; font-size: 26px; line-height: 1.4; }
.odb-card__btn { width: 100%; }
.devo-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.devo-arrow:disabled { opacity: .35; }
.devo-date { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.15; }
.devo-date span { display: block; font-size: 23px; font-weight: 400; color: var(--ink-soft); }
.devo {
  background: var(--paper); border: 2px solid var(--line); border-radius: 32px;
  padding: 34px 40px; box-shadow: var(--shadow);
}
.devo__title { font-size: 40px; margin: 0 0 18px; text-align: center; }
.devo__verse {
  margin: 0 0 24px; padding: 34px 40px; border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, #FFF6E4, #FBE1C2 70%, #F6CDAE);
  border: 2px solid #EFD3AE;
}
.devo__verse p { font-family: "Lora", Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1.4; margin: 0 0 16px; color: #2C2216; }
.devo__verse cite { font-style: normal; font-size: 28px; font-weight: 700; color: #8A4E1C; }
.devo__verse cite span { font-weight: 400; font-size: 22px; }
.btn--share { width: 100%; min-height: 96px; font-size: 32px; background: #A0702A; color: #fff; box-shadow: 0 4px 0 #6E4A16; }
.share-panel { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin-top: 18px; padding: 18px; background: #F0F8F2; border: 2px solid #A9D8B8; border-radius: 24px; }
.share-panel__img { width: 100%; border-radius: 18px; display: block; }
.share-panel__body { display: grid; gap: 12px; }
.share-panel__msg { margin: 0; font-weight: 700; color: var(--green); }
.devo__section { margin-top: 28px; }
.devo__section h3 { font-size: 30px; margin: 0 0 8px; }
.devo__section p { font-size: 26px; line-height: 1.55; margin: 0 0 12px; max-width: 46ch; }
.devo__prayer { background: #F6F1E7; border-radius: 24px; padding: 22px 26px; }
.devo__prayer p { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 27px; max-width: none; }

/* My Links */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.link-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 210px; padding: 22px; text-decoration: none; color: var(--navy);
  background: var(--paper); border: 3px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s;
}
.link-btn:active { transform: scale(.97); }
.link-btn__icon { font-size: 56px; line-height: 1; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: #E3F0F2; margin-bottom: 6px; }
.link-btn__name { font-size: 30px; font-weight: 700; line-height: 1.15; }
.link-btn__note { font-size: 21px; color: var(--ink-soft); }
.links-admin { margin-top: 48px; text-align: center; }
.gear { font-size: 18px; color: #8A8270; padding: 10px 16px; border-radius: 12px; text-decoration: underline; text-underline-offset: 3px; }
.pin { display: inline-grid; gap: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 20px 24px; text-align: left; }
.pin label { font-size: 22px; font-weight: 700; }
.pin__row { display: flex; gap: 12px; flex-wrap: wrap; }
.pin input, .edit-row input {
  font: inherit; font-size: 24px; min-height: 64px; padding: 0 16px; width: 100%;
  border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--navy);
}
.pin input { width: 180px; letter-spacing: 6px; }
.pin__err { color: var(--red); font-weight: 700; margin: 0; }
.edit-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; padding: 18px 20px; }
.edit-row__fields { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; }
.edit-row__fields label { font-size: 18px; font-weight: 700; color: var(--ink-soft); display: grid; gap: 4px; }
.edit-row__fields .wide { grid-column: 1 / -1; }
.edit-row__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-row__btns .btn--remove { grid-column: 1 / -1; }
.edit-row__btns .btn { min-height: 72px; font-size: 26px; }
.edit-row__btns .btn:disabled { opacity: .35; }
.btn--remove { background: #FCEBEB; color: var(--red); border: 2px solid #EFC2C2; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }


/* Home layout: Today list beside the tiles */
.home-main { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 22px; align-items: start; margin-bottom: 22px; }
.home-main .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 12px; }
.home-main .tile { min-height: 112px; gap: 4px; }
.home-main .tile__icon { width: 68px; height: 68px; font-size: 42px; }
.verse-card { width: 100%; }

/* Today timeline */
.today { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow); }
.today__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px 8px; }
.today .section__title { margin: 0; }
.t-list { display: grid; gap: 6px; }
.t-row {
  display: grid; grid-template-columns: 84px 52px minmax(0, 1fr); align-items: center; gap: 10px;
  width: 100%; min-height: 82px; padding: 6px 12px 6px 6px; text-align: left;
  border-radius: 20px; border: 2px solid transparent; background: transparent;
}
.t-row + .t-row { border-top-color: var(--sand); border-top-left-radius: 0; border-top-right-radius: 0; }
.t-time { font-size: 25px; font-weight: 700; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.t-time small { display: block; font-size: 16px; color: var(--ink-soft); margin-top: 3px; }
.t-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--sand); }
.t-icon .logo { width: 40px; height: 40px; }
.t-body { display: flex; flex-direction: column; min-width: 0; }
.t-title { font-size: 23px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row--devo .t-title, .t-row--devo .t-sub { white-space: normal; }
.t-sub { font-size: 18px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-badge { display: flex; line-height: 1; margin-bottom: 3px; }
.t-badge .badge { font-size: 16px; padding: 3px 12px; }
.badge--next { background: #2F6F9F; }
.badge--due { background: #F6D7B6; color: #7A3E0A; }
.t-done { font-size: 17px; font-weight: 700; color: var(--green); white-space: nowrap; }
.t-row--past .t-time, .t-row--past .t-body, .t-row--past .t-icon,
.t-row--done .t-time, .t-row--done .t-title, .t-row--done .t-icon { opacity: .5; }
.t-row--done .t-icon { background: #D7EEDD; opacity: .8; }
.t-row--next { background: #EEF4FA; border: 3px solid #2F6F9F !important; border-radius: 20px !important; }
.t-row--due { background: #FFF6EC; border: 2px solid #F3D3AE !important; border-radius: 20px !important; }
.t-row--live { background: #F3EEFB; border: 2px solid #CDBDEA !important; border-radius: 20px !important; }
.t-row--allday .t-time { font-size: 21px; color: #B5543C; }
.t-divider { font-size: 20px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; padding: 10px 12px 2px; border-top: 2px dashed var(--line); margin-top: 4px; }
.t-more { min-height: 56px; padding: 0 18px; border-radius: 16px; font-size: 21px; font-weight: 700; background: var(--sand); border: 2px solid var(--line); color: var(--navy); }

/* Bottom safe zone under the Help button on the first tablet screen */
@media (min-width: 1051px) { .home-main { margin-bottom: 110px; } }

/* ================= Responsive ================= */

/* iPad portrait & small laptops */
@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr 1fr; }
  .topbar__hello { grid-column: 1 / -1; }
  .hello__name { display: inline; font-size: 54px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .home-main { grid-template-columns: 1fr; }
  .home-main .tile { min-height: 140px; }
  .home-main .tile__icon { width: 84px; height: 84px; font-size: 54px; }
  .verse-card { grid-column: 1 / -1; padding: 16px 24px; }
  .verse-card__text { font-size: 25px; }
  .news-strip { grid-template-columns: 1fr; }
  .tidbit__text { font-size: 28px; }
  .new-card { min-height: 120px; }
  .nfl { grid-template-columns: 1fr; }
  .team { position: static; display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px 20px; text-align: left; align-items: center; }
  .team__label { grid-column: 1 / -1; justify-self: start; }
  .team__logo { grid-row: span 2; margin: 0; }
  .team__record { margin: 0; }
  .team__box { margin: 0; }
  .med { grid-template-columns: 150px 1fr; }
  .med .took { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .phones { grid-template-columns: 1fr; }
  .phone-btn { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; flex-wrap: wrap; padding: 24px; }
  .phone-btn__label { text-align: left; }
  .team { grid-template-columns: 1fr; text-align: center; }
  .team__label { justify-self: center; }
  .team__logo { grid-row: auto; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 22px; }
  #app { padding: 16px 16px 20px; }
  .topbar { gap: 12px; margin-bottom: 22px; }
  .topbar > * { padding: 16px 20px; }
  .hello { font-size: 26px; }
  .hello__name { display: inline; font-size: 44px; }
  .section__title { font-size: 30px; }
  .new-card__art { flex-basis: 84px; font-size: 44px; }
  .new-card__title { font-size: 24px; }
  .tiles, .home-main .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .t-row { grid-template-columns: 70px 46px minmax(0,1fr); }
  .t-icon { width: 46px; height: 46px; font-size: 26px; }
  .t-time { font-size: 22px; }
  .t-title { font-size: 21px; white-space: normal; }
  .wx-main { flex-wrap: wrap; row-gap: 0; }
  .wx-text { align-items: center; }
  .today__head { flex-wrap: wrap; }
  .t-more { font-size: 19px; padding: 0 14px; }
  .at { display: none; }
  .game__teams { flex-direction: column; align-items: flex-start; }
  .verse-card { padding: 16px 18px; }
  .verse-card__text { font-size: 23px; }
  .verse-card__label { font-size: 19px; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .topbar__hello { grid-column: 1 / -1; }
  .clock { flex-direction: column; align-items: flex-start; justify-content: center; }
  .clock__time { font-size: 34px; white-space: nowrap; }
  .clock__date { font-size: 21px; }
  .topbar { grid-template-columns: 1fr; }
  .clock { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
  .devo-nav { grid-template-columns: 1fr 1fr; }
  .devo-date { grid-column: 1 / -1; grid-row: 1; }
  .devo-arrow { padding: 0 12px; font-size: 24px; }
  .devo { padding: 22px 18px; }
  .devo__verse { padding: 24px 18px; }
  .devo__verse p { font-size: 30px; }
  .odb-card { padding: 20px 18px 22px; }
  .odb-card__title { font-size: 32px; }
  .odb-card__excerpt, .odb-card__ref { font-size: 23px; }
  .share-panel { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr 1fr; gap: 14px; }
  .link-btn { min-height: 170px; padding: 16px 10px; }
  .link-btn__name { font-size: 25px; }
  .link-btn__note { font-size: 19px; }
  .edit-row { grid-template-columns: 1fr; }
  .tile { min-height: 156px; }
  .tile__icon { width: 84px; height: 84px; font-size: 52px; }
  .count { min-width: 50px; height: 50px; font-size: 26px; top: -10px; right: -6px; }
  .backbar { margin: -16px -16px 12px; padding: 12px 16px; }
  .back { min-height: 84px; font-size: 30px; }
  .page__title { font-size: 38px; }
  .page__icon { width: 68px; height: 68px; font-size: 38px; }
  .people, .cards { grid-template-columns: 1fr; }
  .tidbit { padding: 18px 16px 20px; }
  .tidbit__text { font-size: 26px; }
  .tidbit__img { max-height: 320px; }
  .slideshow { grid-template-columns: 1fr; }
  .slideshow .arrow { display: none; }
  .slide { aspect-ratio: 4/5; }
  .slide__nav-phone { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
  .med { grid-template-columns: 1fr; gap: 14px; }
  .med__time { justify-self: start; padding: 8px 18px; }
  .game { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 10px; }
  .game__teams { grid-column: 1 / -1; grid-row: 2; font-size: 28px; }
  .game__time { font-size: 28px; }
  .chan { font-size: 24px; min-width: 0; }
  .show__art { flex-basis: 90px; }
  .mail { flex-wrap: wrap; }
  .mail__when { width: 100%; padding-left: 92px; margin-top: -8px; }
  .help-fab { right: 14px; bottom: 14px; min-height: 84px; font-size: 30px; padding: 0 28px 0 20px; }
  .footer { font-size: 15px; padding: 4px 16px 0; }
  :root { --help-h: 84px; --help-gap: 14px; }
  .logo { width: 46px; height: 46px; }
  .tile__label { font-size: 25px; }
}
