/* ==========================================================================
   The McGee Family Hub — design system
   Modern farmhouse × Apple. iPad-landscape first, scales to phone + desktop.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Surfaces */
  --ivory: #FBF8F2;
  --cream: #F4EEE3;
  --linen: #EDE5D6;
  --card: rgba(255, 253, 249, 0.86);
  --card-solid: #FFFDF9;
  --glass: rgba(251, 248, 242, 0.72);
  /* Ink */
  --ink: #2B2620;
  --ink-2: #5E554A;
  --ink-3: #8F8577;
  --hair: rgba(80, 64, 44, 0.10);
  --hair-2: rgba(80, 64, 44, 0.16);
  /* Brand */
  --forest: #3E5E4A;
  --forest-2: #2F4A3A;
  --sage: #8DA88F;
  --sage-pale: #E6EEE3;
  --clay: #B9785A;
  --clay-pale: #F4E3D8;
  --wheat: #D9B977;
  --wheat-pale: #F6ECD4;
  --sky: #7FA6B8;
  --sky-pale: #E2EDF1;
  /* Status */
  --good: #4F8A5B;
  --warn: #C18A2E;
  --bad: #B5523F;
  /* People (overridden from data) */
  --ben: #4E7A93;
  --brittney: #C07A68;
  --levi: #D5A13A;
  --lila: #A98BB8;
  --family: #3E5E4A;
  /* Type */
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(60, 44, 24, 0.04), 0 4px 14px rgba(60, 44, 24, 0.05);
  --shadow-2: 0 2px 6px rgba(60, 44, 24, 0.05), 0 16px 40px rgba(60, 44, 24, 0.10);
  --shadow-3: 0 24px 80px rgba(40, 28, 14, 0.22);
  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* Layout */
  --rail: 92px;
  --gap: 20px;
  --tap: 52px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --ivory: #171511; --cream: #1E1B16; --linen: #2A251E;
    --card: rgba(36, 32, 26, 0.88); --card-solid: #24201A; --glass: rgba(28, 25, 20, 0.72);
    --ink: #F3EDE3; --ink-2: #CFC5B6; --ink-3: #998F80;
    --hair: rgba(243, 237, 227, 0.08); --hair-2: rgba(243, 237, 227, 0.14);
    --forest: #9CC2A6; --forest-2: #B9D6C0; --sage-pale: #233128;
    --clay-pale: #3A2A22; --wheat-pale: #3A3122; --sky-pale: #1F2D33;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #171511; --cream: #1E1B16; --linen: #2A251E;
  --card: rgba(36, 32, 26, 0.88); --card-solid: #24201A; --glass: rgba(28, 25, 20, 0.72);
  --ink: #F3EDE3; --ink-2: #CFC5B6; --ink-3: #998F80;
  --hair: rgba(243, 237, 227, 0.08); --hair-2: rgba(243, 237, 227, 0.14);
  --forest: #9CC2A6; --forest-2: #B9D6C0; --sage-pale: #233128;
  --clay-pale: #3A2A22; --wheat-pale: #3A3122; --sky-pale: #1F2D33;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 17px/1.45 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(141, 168, 143, 0.18), transparent 60%),
    radial-gradient(900px 600px at 105% 110%, rgba(217, 185, 119, 0.16), transparent 60%),
    var(--ivory);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--forest) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100svh; }
.rail {
  position: sticky; top: 0; height: 100svh; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: calc(16px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom));
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-right: 1px solid var(--hair);
}
.rail .mark { width: 52px; height: 52px; margin-bottom: 10px; }
.rail nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.rail nav::-webkit-scrollbar { display: none; }
.rail a, .rail button.nav {
  width: 72px; min-height: 60px; border-radius: 18px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); text-decoration: none; font: 600 11px/1.1 var(--sans); letter-spacing: .01em;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.rail a svg, .rail button.nav svg { width: 26px; height: 26px; }
.rail a:hover { color: var(--ink-2); background: var(--hair); }
.rail a.on { color: var(--forest); background: var(--sage-pale); }
.rail a:active { transform: scale(.94); }
.rail .soon { opacity: .38; pointer-events: none; }
.rail .foot { display: flex; flex-direction: column; gap: 4px; }

.main { min-width: 0; padding: calc(24px + env(safe-area-inset-top)) clamp(18px, 3vw, 40px) calc(40px + env(safe-area-inset-bottom)); }
.view { max-width: 1440px; margin: 0 auto; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Typography ---------- */
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.display { font: 600 clamp(34px, 4vw, 52px)/1.04 var(--serif); letter-spacing: -.01em; margin: 6px 0 0; }
.h1 { font: 600 clamp(28px, 3vw, 38px)/1.1 var(--serif); margin: 0; letter-spacing: -.005em; }
.h2 { font: 600 22px/1.2 var(--serif); margin: 0; }
.h3 { font: 650 17px/1.25 var(--sans); margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: var(--gap); }
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  border: 1px solid var(--hair); padding: 22px; position: relative; min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .h2 { display: flex; align-items: center; gap: 10px; }
.card-head .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--sage-pale); color: var(--forest); flex: none; }
.card-head .ico svg { width: 20px; height: 20px; }
.link { background: none; border: 0; color: var(--forest); font-weight: 600; font-size: 15px; padding: 8px 4px; }

/* ---------- Buttons ---------- */
.btn {
  min-height: var(--tap); padding: 0 20px; border-radius: 16px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); background: var(--card-solid); color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--forest); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--forest) 30%, transparent); }
.btn.soft { background: var(--sage-pale); color: var(--forest); box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.icon { width: var(--tap); padding: 0; }
.btn.sm.icon { width: 40px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; background: color-mix(in srgb, var(--linen) 70%, transparent); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; min-height: 42px; padding: 0 18px; border-radius: 11px; font: 600 15px var(--sans); color: var(--ink-2); transition: all .25s var(--ease); white-space: nowrap; }
.seg button.on { background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- Chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 13px/1.2 var(--sans); background: var(--hair); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.demo { background: var(--wheat-pale); color: #8A6A22; }
.pchip { --c: var(--family); background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 82%, var(--ink)); }

/* ---------- Avatars ---------- */
.av {
  --c: var(--family); --s: 44px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  color: #fff; font: 700 calc(var(--s) * .38)/1 var(--round);
  box-shadow: 0 0 0 3px var(--card-solid), 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent);
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-stack { display: flex; }
.av-stack .av { --s: 30px; margin-left: -8px; }
.av-stack .av:first-child { margin-left: 0; }

/* ---------- Checkbox ---------- */
.check {
  --c: var(--forest);
  appearance: none; margin: 0; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--hair-2); background: var(--card-solid); display: grid; place-items: center;
  transition: all .25s var(--spring); cursor: pointer;
}
.check:checked { background: var(--c); border-color: var(--c); transform: scale(1.04); }
.check:checked::after { content: ""; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.check.lg { width: 44px; height: 44px; }
.check.lg:checked::after { width: 11px; height: 20px; border-width: 0 4px 4px 0; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 4px; position: relative; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; border-top: 1px solid var(--hair); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item.done .title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair-2); }
.item.tap { cursor: pointer; border-radius: 14px; }
.item.tap:hover { background: color-mix(in srgb, var(--linen) 40%, transparent); }

/* ---------- Progress ---------- */
.bar { height: 10px; border-radius: 99px; background: var(--hair); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--forest)); transition: width .8s var(--ease); }
.ring { --p: 0; --c: var(--forest); --s: 72px; --t: 8px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--hair) 0); position: relative; flex: none; transition: --p 1s var(--ease); }
.ring::before { content: ""; position: absolute; inset: var(--t); border-radius: 50%; background: var(--card-solid); }
.ring > * { position: relative; font: 700 calc(var(--s) * .24)/1 var(--round); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .field .lbl { font: 600 13px var(--sans); color: var(--ink-2); letter-spacing: .01em; }
.input, select.input, textarea.input {
  min-height: var(--tap); border-radius: 14px; border: 1px solid var(--hair-2); background: var(--card-solid);
  padding: 12px 14px; font-size: 17px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 14%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick button {
  min-height: 48px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card-solid);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; transition: all .2s var(--ease);
}
.pick button .av { --s: 34px; box-shadow: none; }
.pick button.on { border-color: transparent; background: color-mix(in srgb, var(--c, var(--forest)) 16%, transparent); box-shadow: inset 0 0 0 2px var(--c, var(--forest)); }
.pick.text button { padding: 0 16px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card-solid); box-shadow: 0 0 0 1px var(--hair-2); }
.swatches button.on { box-shadow: 0 0 0 3px var(--ink); }

/* ---------- Sheet (modal) ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(30, 22, 12, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; animation: fade .25s var(--ease); }
.sheet { width: min(640px, 100%); max-height: min(88svh, 900px); overflow: auto; background: var(--ivory); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  animation: rise .4s var(--spring); display: flex; flex-direction: column; }
.sheet.wide { width: min(880px, 100%); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sheet-body { padding: 4px 24px 8px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: space-between; padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--hair); }
.sheet-foot .r { display: flex; gap: 10px; margin-left: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: #2B2620; color: #FBF8F2; box-shadow: var(--shadow-2); font-weight: 600; animation: rise .35s var(--spring); }
.toast button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 34px 18px; color: var(--ink-3); }
.empty .art { font-size: 40px; margin-bottom: 8px; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; top: -20px; z-index: 100; pointer-events: none; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }
.celebrate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.celebrate .burst { background: var(--card-solid); border-radius: var(--r-xl); padding: 28px 36px; box-shadow: var(--shadow-3); text-align: center; animation: pop .6s var(--spring); }
.celebrate .burst .big { font-size: 56px; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* ==========================================================================
   HOME
   ========================================================================== */
.home { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.hero {
  grid-column: span 8; border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: clamp(380px, 52vh, 560px);
  background: #2B2620; color: #fff; box-shadow: var(--shadow-2);
}
/* Each slide = blurred fill behind + the whole photo in front, so portraits are never cropped */
.hero .slides .sl { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero .slides .sl.on { opacity: 1; }
.hero .slides .sl img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .slides .bg { object-fit: cover; filter: blur(32px) saturate(1.1) brightness(.62); transform: scale(1.2); }
.hero .slides .fg { object-fit: contain; }
.hero .slides .fg.fill { object-fit: cover; object-position: 50% 30%; }
.hero .slides .sl.on .fg { animation: kb 12s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,8,.15) 0%, transparent 35%, rgba(20,14,8,.72) 100%); pointer-events: none; }
.hero .art { position: absolute; inset: 0; }
.hero-in { position: absolute; inset: auto 0 0 0; padding: 30px 32px; z-index: 2; }
.hero-in .date { font: 600 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero-in .greet { font: 600 clamp(34px, 3.6vw, 50px)/1.05 var(--serif); margin: 8px 0 6px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-in .say { font-size: 18px; opacity: .92; }
.hero .hero-top { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; gap: 8px; }
.glass-pill { background: rgba(30,22,14,.34); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; min-height: 40px; padding: 0 14px; font: 600 14px var(--sans); display: inline-flex; align-items: center; gap: 6px; }
.weather { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(160deg, var(--sky-pale), var(--card-solid) 70%); }
.weather .now { display: flex; align-items: center; gap: 16px; }
.weather .temp { font: 300 72px/1 var(--round); letter-spacing: -.03em; }
.weather .wico { font-size: 58px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.12)); }
.weather .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; margin-top: 14px; }
.weather .days div { padding: 10px 2px; border-radius: 14px; background: color-mix(in srgb, var(--card-solid) 60%, transparent); }
.weather .days b { display: block; font: 600 15px var(--round); }

.family { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.person {
  --c: var(--family); border-radius: var(--r-lg); padding: 18px; display: flex; gap: 14px; align-items: center; text-align: left; border: 1px solid var(--hair);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 13%, var(--card-solid)), var(--card-solid) 70%); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-height: 104px;
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.person:active { transform: scale(.98); }
.person .av { --s: 64px; }
.person .name { font: 600 22px/1.1 var(--serif); }
.person .meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.person .mini { display: flex; gap: 10px; margin-top: 8px; }
.person .mini span { font: 600 12px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }

.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }

.quick { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick button {
  min-height: 76px; border-radius: var(--r-md); border: 1px solid var(--hair); background: var(--card); box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 14px; padding: 0 18px; font: 600 17px var(--sans); text-align: left; transition: transform .2s var(--ease);
}
.quick button:active { transform: scale(.97); }
.quick .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quick .qi svg { width: 24px; height: 24px; }

.sched .ev { display: grid; grid-template-columns: 76px 4px 1fr; gap: 12px; align-items: stretch; padding: 10px 0; }
.sched .ev .t { font: 600 14px var(--sans); color: var(--ink-2); text-align: right; padding-top: 2px; }
.sched .ev .ln { border-radius: 4px; background: var(--c, var(--forest)); }
.sched .ev .title { font-weight: 600; }

.meal-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.meal-tile { border-radius: var(--r-md); overflow: hidden; background: var(--cream); position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; border: 0; padding: 0; }
.meal-tile .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; background: var(--g, linear-gradient(150deg, var(--wheat-pale), var(--clay-pale))); }
.meal-tile .cap { position: relative; padding: 12px 14px; background: linear-gradient(transparent, rgba(255,253,249,.96) 40%); }
.meal-tile .cap .eyebrow { font-size: 10px; }
.meal-tile .cap .title { font: 600 15px/1.25 var(--sans); margin-top: 3px; }

.cheer { background: linear-gradient(150deg, var(--forest), var(--forest-2)); color: #F4EEE3; border: 0; }
.cheer .h2 { color: #fff; }
.cheer .muted { color: rgba(244,238,227,.82); }
.cheer .stat { display: flex; align-items: baseline; gap: 6px; }
.cheer .stat b { font: 600 40px/1 var(--round); color: #fff; }
.cheer .bar { background: rgba(255,255,255,.18); }
.cheer .bar > i { background: linear-gradient(90deg, #CFE0C8, #fff); }

.levi-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(150deg, var(--wheat-pale), var(--card-solid) 75%); }
.levi-card .big { font-size: 46px; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--card-solid); box-shadow: var(--shadow-1); flex: none; }

/* ==========================================================================
   CALENDAR
   ========================================================================== */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-bar .nav { display: flex; align-items: center; gap: 8px; }
.cal-bar .ttl { font: 600 26px var(--serif); min-width: 230px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button { min-height: 42px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--card-solid); padding: 0 14px 0 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.filters button .av { --s: 28px; box-shadow: none; }
.filters button.off { opacity: .4; }

/* Month */
.month { display: grid; grid-template-columns: repeat(7, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--hair); gap: 1px; border: 1px solid var(--hair); }
.month .dow { background: var(--cream); padding: 10px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.month .day { background: var(--card-solid); min-height: 128px; padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; position: relative; transition: background .2s; overflow: hidden; }
.month .day:hover { background: color-mix(in srgb, var(--cream) 60%, var(--card-solid)); }
.month .day.out { background: color-mix(in srgb, var(--cream) 55%, var(--card-solid)); }
.month .day.out .dn { color: var(--ink-3); }
.month .dn { font: 600 15px var(--round); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.month .day.today .dn { background: var(--forest); color: #fff; }
.month .levi { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.month .ev-pill { --c: var(--forest); font: 600 12px/1.2 var(--sans); padding: 4px 7px; border-radius: 7px; background: color-mix(in srgb, var(--c) 15%, transparent); color: color-mix(in srgb, var(--c) 78%, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); }
.month .more { font: 600 12px var(--sans); color: var(--ink-3); padding-left: 4px; }

/* Week */
.week { display: grid; grid-template-columns: 64px repeat(7, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--card-solid); border: 1px solid var(--hair); }
.week .wh { position: sticky; top: 0; z-index: 3; background: var(--cream); padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.week .wh .d { font: 600 22px var(--round); }
.week .wh.today .d { color: var(--forest); }
.week .wh .levi-tag { margin-top: 4px; }
.week .allday { grid-column: 1 / -1; display: grid; grid-template-columns: 64px repeat(7, 1fr); border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--cream) 50%, var(--card-solid)); }
.week .allday > div { padding: 6px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 4px; min-height: 40px; }
.week .allday .lbl { font: 600 11px var(--sans); color: var(--ink-3); justify-content: center; align-items: flex-end; border-left: 0; }
.week .body { grid-column: 1 / -1; display: grid; grid-template-columns: 64px repeat(7, 1fr); max-height: 62svh; overflow-y: auto; position: relative; }
.week .hours div { height: 56px; font: 600 11px var(--sans); color: var(--ink-3); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.week .col { position: relative; border-left: 1px solid var(--hair); background-image: repeating-linear-gradient(to bottom, transparent 0 55px, var(--hair) 55px 56px); cursor: pointer; }
.week .col.today { background-color: color-mix(in srgb, var(--sage-pale) 45%, transparent); }
.week .blk { --c: var(--forest); position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font: 600 12px/1.25 var(--sans); overflow: hidden;
  background: color-mix(in srgb, var(--c) 16%, var(--card-solid)); color: color-mix(in srgb, var(--c) 75%, var(--ink)); border-left: 4px solid var(--c); box-shadow: var(--shadow-1); cursor: pointer; }
.week .blk .tm { font-weight: 500; opacity: .8; }
.week .nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 2; }
.week .nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }

/* Year */
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.mini-m { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-1); cursor: pointer; transition: transform .2s var(--ease); }
.mini-m:hover { transform: translateY(-2px); }
.mini-m .mt { font: 600 17px var(--serif); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.mini-m .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-m .g span { aspect-ratio: 1; display: grid; place-items: center; font: 600 11px var(--round); border-radius: 7px; position: relative; }
.mini-m .g .h { color: var(--ink-3); font-size: 9px; }
.mini-m .g .t { background: var(--forest); color: #fff; }
.mini-m .g .mk::after { content: ""; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }
.mini-m .hl { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.mini-m .hl div { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

/* ==========================================================================
   CHORES
   ========================================================================== */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.board .col-card { --c: var(--family); background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--hair); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; }
.board .col-top { padding: 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, var(--card-solid)), var(--card-solid)); }
.board .col-top .av { --s: 48px; }
.board .col-list { padding: 4px 14px 14px; flex: 1; }
.chore { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--hair); }
.chore:last-child { border-bottom: 0; }
.chore .grow { flex: 1; min-width: 0; }
.chore .title { font-weight: 600; font-size: 16px; }
.chore.done .title { color: var(--ink-3); text-decoration: line-through; }
.chore .by { font-size: 12px; color: var(--ink-3); }
.chore .edit { opacity: 0; transition: opacity .2s; }
.chore:hover .edit { opacity: 1; }
@media (hover: none) { .chore .edit { opacity: .55; } }

/* Levi kid mode */
.kid { background: linear-gradient(160deg, #FFF5DB, #FCE9D9 60%, #E9F2E3); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-2); }
.kid-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.kid-head .av { --s: 84px; }
.kid-head .hey { font: 800 34px/1.1 var(--round); color: #5A3E12; }
.kid-stars { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-1); font: 800 24px var(--round); color: #B07A12; margin-left: auto; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.kcard {
  --c: var(--levi); border: 0; border-radius: 26px; padding: 18px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 40%, #fff), var(--shadow-1); transition: transform .2s var(--spring), box-shadow .2s; text-align: center;
}
.kcard:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 40%, #fff); }
.kcard .ke { font-size: 60px; line-height: 1; transition: transform .4s var(--spring); }
.kcard .kt { font: 800 19px/1.2 var(--round); color: #3F2E14; }
.kcard .kbox { width: 46px; height: 46px; border-radius: 15px; border: 4px solid color-mix(in srgb, var(--c) 55%, #fff); display: grid; place-items: center; font-size: 26px; color: #fff; transition: all .3s var(--spring); }
.kcard.done { background: color-mix(in srgb, var(--c) 18%, #fff); }
.kcard.done .ke { transform: scale(1.12) rotate(-6deg); }
.kcard.done .kbox { background: var(--good); border-color: var(--good); }
.kid-prog { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; background: rgba(255,255,255,.7); border-radius: 22px; padding: 14px 18px; }
.kid-prog .bar { height: 18px; flex: 1; }
.kid-prog .bar > i { background: linear-gradient(90deg, #F2C14E, #E58E3A); }
.reward { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-1); }

/* ==========================================================================
   MEALS
   ========================================================================== */
.mweek { display: grid; grid-template-columns: 120px repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.mweek .dh { text-align: center; padding: 10px 4px; border-radius: 14px; }
.mweek .dh.today { background: var(--sage-pale); color: var(--forest); }
.mweek .dh .d { font: 600 22px var(--round); }
.mweek .rh { display: flex; align-items: center; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.slot { min-height: 108px; border-radius: 16px; border: 1.5px dashed var(--hair-2); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-weight: 600; font-size: 14px; transition: all .2s var(--ease); position: relative; }
.slot.drop { border-color: var(--forest); background: var(--sage-pale); }
.mcard { width: 100%; height: 100%; min-height: 108px; border-radius: 16px; border: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: left; background: var(--card-solid); box-shadow: var(--shadow-1); cursor: grab; position: relative; }
.mcard:active { cursor: grabbing; }
.mcard .ph { height: 56px; display: grid; place-items: center; font-size: 30px; background: var(--g, linear-gradient(150deg, var(--wheat-pale), var(--clay-pale))); flex: none; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard .tx { padding: 8px 10px; flex: 1; }
.mcard .tx .title { font: 600 13px/1.25 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .tx .tiny { color: var(--ink-3); margin-top: 3px; }
.mcard .fav { position: absolute; top: 6px; right: 6px; font-size: 14px; }
.mcard.dragging { opacity: .4; }
.recipe-ph { height: 180px; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 80px; background: var(--g, linear-gradient(150deg, var(--wheat-pale), var(--clay-pale))); overflow: hidden; margin-bottom: 16px; position: relative; }
.recipe-ph img { width: 100%; height: 100%; object-fit: cover; }
.ing-row { display: grid; grid-template-columns: 90px 110px 1fr 120px 40px; gap: 8px; margin-bottom: 8px; }
.ing-row .input { min-height: 46px; padding: 8px 10px; font-size: 16px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--hair-2); background: var(--card-solid); font-size: 24px; }
.emoji-pick button.on { box-shadow: 0 0 0 3px var(--forest); border-color: transparent; }

/* ==========================================================================
   GROCERY
   ========================================================================== */
.gro { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); align-items: start; }
.gcat { margin-bottom: 18px; }
.gcat-h { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; }
.gcat-h .e { font-size: 20px; }
.gitem { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 8px 14px; border-radius: 16px; background: var(--card-solid); margin-bottom: 6px; box-shadow: var(--shadow-1); border: 1px solid var(--hair); transition: opacity .3s, transform .3s var(--ease); }
.gitem .grow { flex: 1; min-width: 0; }
.gitem .title { font-weight: 600; }
.gitem .sub { font-size: 13px; color: var(--ink-3); }
.gitem.got { opacity: .55; }
.gitem.got .title { text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; background: var(--cream); border-radius: 12px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; font-weight: 600; color: var(--ink-2); }
.qty span { min-width: 30px; text-align: center; font: 700 15px var(--round); }
.add-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.add-bar .input { flex: 1; }
/* Shopping mode */
.shop { position: fixed; inset: 0; z-index: 70; background: var(--ivory); overflow: auto; padding: calc(20px + env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 40px; animation: fade .3s; }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; position: sticky; top: 0; background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(10px); padding: 10px 0; z-index: 2; }
.shop-item { display: flex; align-items: center; gap: 20px; min-height: 88px; padding: 14px 22px; border-radius: 22px; background: var(--card-solid); margin-bottom: 10px; box-shadow: var(--shadow-1); border: 0; width: 100%; text-align: left; font: 600 24px/1.2 var(--sans); }
.shop-item .check { width: 52px; height: 52px; pointer-events: none; }
.shop-item .check:checked::after { width: 13px; height: 24px; border-width: 0 5px 5px 0; }
.shop-item .sub { font: 500 16px var(--sans); color: var(--ink-3); }
.shop-item.got { opacity: .45; }
.shop-item.got .t { text-decoration: line-through; }

/* ==========================================================================
   KIOSK
   ========================================================================== */
.kiosk { position: fixed; inset: 0; z-index: 60; background: var(--ivory); display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; padding: calc(22px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom)); }
.kiosk .k-left { display: grid; grid-template-rows: auto 1fr; gap: 22px; min-height: 0; }
.kiosk .k-right { display: grid; grid-template-rows: auto auto 1fr; gap: 22px; min-height: 0; }
.kiosk .hero { min-height: 0; grid-column: auto; }
.kiosk .clock { font: 200 clamp(60px, 8vw, 110px)/.95 var(--round); letter-spacing: -.04em; }
.kiosk .scroll { overflow: auto; min-height: 0; }
.kiosk .exit { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 5; }
.kiosk .who { display: flex; gap: 10px; flex-wrap: wrap; }
.kiosk .who button { border: 0; background: var(--card-solid); border-radius: 999px; padding: 6px 16px 6px 6px; min-height: 56px; display: flex; align-items: center; gap: 10px; font: 600 17px var(--sans); box-shadow: var(--shadow-1); }
.kiosk .who button .av { --s: 44px; box-shadow: none; }
.kiosk .who button.on { box-shadow: inset 0 0 0 3px var(--c); }

/* ==========================================================================
   SETTINGS & misc
   ========================================================================== */
.set-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.member-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.member-row:last-child { border-bottom: 0; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: var(--wheat-pale); color: #6E5418; margin-bottom: var(--gap); font-weight: 500; }
.banner .btn { margin-left: auto; }
.search-res .item { cursor: pointer; }
.who-picker { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 10px 0 6px; }
.who-picker button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 16px var(--sans); padding: 8px; border-radius: 20px; min-width: 96px; }
.who-picker button .av { --s: 72px; }
.who-picker button:active { transform: scale(.95); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .hero { grid-column: span 12; min-height: clamp(380px, 55vh, 600px); }
  .weather { grid-column: span 12; flex-direction: row; align-items: center; gap: 20px; }
  .weather .days { margin-top: 0; flex: 1; }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .year { grid-template-columns: repeat(3, 1fr); }
  .gro { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --rail: 0px; --gap: 14px; }
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--hair); }
  .rail .mark, .rail .foot { display: none; }
  .rail nav { flex-direction: row; justify-content: space-around; overflow-x: auto; }
  .rail a { width: 64px; min-height: 54px; flex: none; }
  .rail .soon { display: none; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .family { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .year { grid-template-columns: repeat(2, 1fr); }
  .month .day { min-height: 84px; }
  .month .ev-pill { font-size: 10px; padding: 2px 4px; }
  .kiosk { grid-template-columns: 1fr; overflow: auto; }
  .set-grid { grid-template-columns: 1fr; }
  .meal-today { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .family, .board { grid-template-columns: 1fr; }
  .weather { flex-direction: column; align-items: stretch; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .month .ev-pill { display: none; }
  .month .day { min-height: 58px; }
  .year { grid-template-columns: 1fr; }
  .ing-row { grid-template-columns: 70px 80px 1fr 36px; }
  .ing-row .aisle { display: none; }
  .scrim { padding: 0; align-items: end; }
  .sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Icon sizing fallbacks (inline SVGs have no intrinsic size) */
button svg:not([width]), a.btn svg:not([width]), label.btn svg:not([width]) { width: 20px; height: 20px; flex: none; }
.glass-pill svg { width: 18px; height: 18px; }
.item > svg { width: 22px; height: 22px; flex: none; color: var(--ink-3); }
.ev svg, .mini svg { flex: none; }

/* ==========================================================================
   TOUCH / iPAD
   ========================================================================== */
/* No double-tap zoom delay; no grey flash; no accidental text selection on controls */
button, a, label, .check, .kcard, .shop-item, .mcard, .month .day, .week .col, [data-act] { touch-action: manipulation; }
button, .kcard, .shop-item, .mcard, .rail a, .person, .quick button, .seg button, .pick button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Apple HIG minimum hit target is 44pt: grow small controls on touch screens */
@media (pointer: coarse) {
  .check { width: 36px; height: 36px; }
  .check:checked::after { width: 10px; height: 17px; }
  .btn.sm { min-height: 44px; }
  .btn.sm.icon { width: 44px; }
  .qty button { width: 44px; height: 44px; }
  .link { min-height: 44px; display: inline-flex; align-items: center; }
  .month .day { min-height: 112px; }
  .glass-pill { min-height: 44px; min-width: 44px; justify-content: center; }
  .filters button { min-height: 44px; }
}
/* Press feedback (touch screens have no hover) */
.item.tap:active, .month .day:active, .mini-m:active, .gitem:active, .chore:active { background: color-mix(in srgb, var(--linen) 55%, transparent); }
/* iPad landscape: keep the sidebar but tighten spacing so nothing scrolls sideways */
@media (min-width: 901px) and (max-width: 1366px) {
  .rail nav { gap: 2px; }
  .rail a, .rail button.nav { min-height: 56px; }
  .main { padding-left: 22px; padding-right: 22px; }
}
/* iPad portrait (768–900px) uses the bottom tab bar: keep it clear of the home indicator */
@media (max-width: 900px) { .rail nav a { min-height: 56px; } }
/* Sidebar must fit an iPad in landscape (768pt tall): let the nav scroll, hide not-yet-built sections, compact on short screens */
.rail nav { min-height: 0; }
.rail .soon { display: none; }
@media (min-width: 901px) and (max-height: 860px) {
  .rail { gap: 2px; padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .rail .mark { width: 44px; height: 44px; margin-bottom: 4px; }
  .rail a, .rail button.nav { min-height: 52px; }
  .rail a svg, .rail button.nav svg { width: 24px; height: 24px; }
}

/* Weather can't load: shrink to a slim strip instead of a full-height card */
.weather.wx-off { min-height: 0; padding: 14px 18px; justify-content: center; background: var(--card); }
@media (max-width: 1180px) { .weather.wx-off { flex-direction: column; } }
/* Portrait photos sit right-of-center on wide screens so the greeting reads over the soft blur, not over faces */
@media (min-width: 901px) { .hero .slides .fg:not(.fill) { object-position: 72% 50%; } }
