/*
 * A mosque's own page on Baab. The same hand as the dashboard and the
 * masjids page: teal on a cool pale ground, hairline cards, rounded figures,
 * one accent. Dark mode is a tinted teal night, never black.
 */
:root {
  --ground: #F3F8F8;
  --card: #FFFFFF;
  --chip: #E6F0F1;
  --ink: #0D2428;
  --ink-soft: #4B6B70;
  --line: rgba(13, 36, 40, 0.10);
  --line-strong: rgba(13, 36, 40, 0.18);
  --teal: #157987;
  --teal-hover: #106673;
  --teal-wash: rgba(21, 121, 135, 0.08);
  --on-teal: #FFFFFF;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B2024;
    --card: #122D32;
    --chip: #1B3F45;
    --ink: #EEF6F6;
    --ink-soft: #A9C3C7;
    --line: rgba(238, 246, 246, 0.09);
    --line-strong: rgba(238, 246, 246, 0.18);
    --teal: #3CB8C9;
    --teal-hover: #5CC6D4;
    --teal-wash: rgba(60, 184, 201, 0.12);
    --on-teal: #06262B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0B2024; --card: #122D32; --chip: #1B3F45; --ink: #EEF6F6; --ink-soft: #A9C3C7;
  --line: rgba(238, 246, 246, 0.09); --line-strong: rgba(238, 246, 246, 0.18);
  --teal: #3CB8C9; --teal-hover: #5CC6D4; --teal-wash: rgba(60, 184, 201, 0.12); --on-teal: #06262B;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.page { max-width: 640px; margin: 0 auto; padding: 40px 16px 64px; }

.status { padding-top: 24vh; text-align: center; color: var(--ink-soft); }
.status-block { padding-top: 20vh; text-align: center; }
.status-block .muted { margin-top: 10px; color: var(--ink-soft); }

/* ── Name ─────────────────────────────────────────────────────────── */
.logo {
  display: block; width: 64px; height: 64px; margin-bottom: 16px;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--chip); object-fit: cover;
}
.title {
  font-family: var(--round);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.legal { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.place { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.place .maps { white-space: nowrap; }
.place .maps a + a::before { content: " · "; color: var(--ink-soft); }
.phone { margin-top: 4px; font-size: 15px; }

/* ── Sections ─────────────────────────────────────────────────────── */
section { margin-top: 56px; }
.masthead + section { margin-top: 40px; }
h2 {
  font-family: var(--round);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.dates { font-size: 14px; color: var(--ink-soft); }
.section-note { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

.card { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }

/* ── Today ────────────────────────────────────────────────────────── */
.next { margin-top: 20px; }
.next-label { font-size: 15px; font-weight: 600; color: var(--teal); }
.next-count {
  font-family: var(--round);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.times-head, .time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.6em 5.6em;
  gap: 8px;
  align-items: baseline;
  padding: 0 18px;
}
.times-head {
  padding-top: 12px; padding-bottom: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.times-head span, .time-row .adhan, .time-row .iqama { text-align: end; }
.times { list-style: none; }
.time-row { padding-top: 14px; padding-bottom: 14px; }
.time-row + .time-row { border-top: 1px solid var(--line); }
.time-row .prayer { font-family: var(--round); font-size: 18px; font-weight: 650; min-width: 0; }
.time-row .sub { display: block; font-family: var(--text); font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.time-row .adhan { font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.time-row .iqama { font-family: var(--round); font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.time-row .meridiem { font-size: 0.72em; font-weight: 500; margin-inline-start: 2px; }
.time-row[data-state="past"] .prayer,
.time-row[data-state="past"] .iqama { color: var(--ink-soft); font-weight: 500; }
.time-row[data-state="next"] { background: var(--teal-wash); }
.time-row[data-state="next"] .prayer,
.time-row[data-state="next"] .iqama { color: var(--teal); }
.time-row[data-kind="jummah-week"] { background: var(--chip); }
/* Jumuʻah has no adhan of its own: its name and notes take that column. */
.time-row[data-kind^="jummah"] .prayer { grid-column: 1 / 3; }
.time-row[data-kind^="jummah"] .adhan { display: none; }
.time-row[data-kind="jummah-week"] .iqama { font-size: 17px; line-height: 1.35; }
.trust { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.trust[data-tone="warn"] { color: #8A5A00; }
/* Sponsor a night: one quiet line under today's times, and a small link. */
.iftar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.iftar-line { flex: 1 1 240px; min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; text-wrap: pretty; }
.iftar-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.iftar-link::after { content: " \2192"; white-space: pre; }
[dir="rtl"] .iftar-link::after { content: " \2190"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust[data-tone="warn"] { color: #F0C36A; } }

/* ── This week ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.week th, .week td { padding: 10px 6px; text-align: end; white-space: nowrap; }
.week th:first-child, .week td:first-child { text-align: start; padding-inline-start: 14px; }
.week th:last-child, .week td:last-child { padding-inline-end: 14px; }
.week thead th { font-size: 12px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.week tbody tr + tr td { border-top: 1px solid var(--line); }
.week tbody td:first-child { font-weight: 600; }
.week tr[data-today="true"] td { background: var(--teal-wash); }
.week tr[data-today="true"] td:first-child { color: var(--teal); }
.week .j { font-size: 11px; font-weight: 700; color: var(--teal); margin-inline-end: 3px; }
.week .none { color: var(--ink-soft); }

/* ── Events and announcements ─────────────────────────────────────── */
.events, .notes { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.event, .note { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.event-when { font-size: 14px; font-weight: 600; color: var(--teal); }
.event h3, .note h3 { margin-top: 4px; font-family: var(--round); font-size: 18px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.event-where { margin-top: 2px; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.event-line {
  margin-top: 8px; font-size: 15px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.event-actions { margin-top: 12px; }
.event-actions button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--teal);
  background: var(--chip); border: 0; border-radius: 10px; padding: 8px 14px; min-height: 36px; cursor: pointer;
}
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-register {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border-radius: 10px;
  background: var(--teal); color: var(--on-teal); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.note-date { font-size: 13px; color: var(--ink-soft); }
.note-body { margin-top: 6px; font-size: 15px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.empty { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ── Give ─────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px; border-radius: 14px; border: 0;
  background: var(--teal); color: var(--on-teal);
  font: inherit; font-size: 17px; font-weight: 650; cursor: pointer;
  max-width: 100%; text-align: center;
}
.button:hover { background: var(--teal-hover); text-decoration: none; }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.give .button { width: 100%; }
.give .fine { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.claim-line { margin-top: 10px; }
.claim-line a { font-weight: 600; }
.foot-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ── Embed: today's times in an iframe on the mosque's own site ────── */
.embed-foot { margin-top: 10px; font-size: 13px; text-align: center; }
html:has(body[data-view="embed"]), body[data-view="embed"] { overflow: hidden; min-height: 0; }
body[data-view="embed"] .page { max-width: none; padding: 12px; }
body[data-view="embed"] .masthead,
body[data-view="embed"] #site > section:not(.today),
body[data-view="embed"] .foot,
body[data-view="embed"] .trust { display: none !important; }
body[data-view="embed"] .iftar { display: none !important; }
body[data-view="embed"] .masthead + section { margin-top: 0; }
body[data-view="embed"] .section-head h2 { font-size: 17px; }
body[data-view="embed"] .dates { font-size: 12px; }
body[data-view="embed"] .next { margin-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body[data-view="embed"] .next-label { font-size: 13px; }
body[data-view="embed"] .next-count { font-size: 24px; }
body[data-view="embed"] .card { margin-top: 8px; border-radius: 14px; }
body[data-view="embed"] .times-head, body[data-view="embed"] .time-row { grid-template-columns: minmax(0, 1fr) 4.9em 4.9em; padding-left: 12px; padding-right: 12px; gap: 6px; }
body[data-view="embed"] .times-head { padding-top: 7px; padding-bottom: 5px; font-size: 10px; }
body[data-view="embed"] .time-row { padding-top: 7px; padding-bottom: 7px; }
body[data-view="embed"] .time-row .prayer { font-size: 15px; }
body[data-view="embed"] .time-row .iqama { font-size: 16px; }
body[data-view="embed"] .time-row .adhan { font-size: 13px; }
body[data-view="embed"] .time-row .sub { font-size: 12px; }
body[data-view="embed"] .time-row .sub + .sub { display: none; }
body[data-view="embed"] .time-row[data-kind="jummah-week"] .iqama { font-size: 15px; }
body[data-view="embed"] .section-head h2 { display: none; }
body[data-view="embed"] .time-row { line-height: 1.25; }
body[data-view="embed"] .time-row[data-kind="daily"] .sub,
body[data-view="embed"] .time-row[data-kind="jummah-week"] ~ .time-row[data-kind="jummah-week"] .sub { display: none; }
body[data-view="embed"] .embed-foot { margin-top: 8px; }

/* The downloaded copy's closing line. */
.snapshot { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ── Month sheet (screen) ─────────────────────────────────────────── */
body[data-view="sheet"] .page { max-width: 1000px; }
.sheet-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 15px; }
.sheet-months { display: inline-flex; gap: 16px; margin-inline-start: auto; }
.sheet-head { margin-top: 28px; }
.sheet-head h1 { font-family: var(--round); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sheet-head p { font-size: 16px; color: var(--ink-soft); }
.sheet-head #sheet-month { margin-top: 2px; font-family: var(--round); font-size: 18px; font-weight: 650; color: var(--ink); }
.sheet-head .sheet-place { font-size: 14px; }
.month { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--card); }
.month th, .month td { padding: 4px 6px; text-align: center; white-space: nowrap; border: 1px solid var(--line-strong); }
.month thead th { font-size: 12px; font-weight: 700; }
.month thead tr.sub th { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }
.month td.day { text-align: start; }
.month td.day .dow { display: inline-block; min-width: 2.2em; margin-inline-start: 0.35em; font-weight: 400; color: var(--ink-soft); }
.month td.hijri { color: var(--ink-soft); }
.month td.iq { font-weight: 700; }
.month tr[data-friday="true"] td { background: var(--teal-wash); }
.month tr[data-today="true"] td.day { color: var(--teal); font-weight: 700; }
.sheet-foot { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
/* On a phone the month is wider than the screen: it scrolls sideways inside
   its own frame (never the page), with the date column held in place. */
#sheet .table-wrap { margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
#sheet .month { margin-top: 0; border-style: hidden; }
.month td.day, .month thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
[dir="rtl"] .month td.day, [dir="rtl"] .month thead tr:first-child th:first-child { left: auto; right: 0; }
.month tr[data-friday="true"] td.day { background: linear-gradient(var(--teal-wash), var(--teal-wash)), var(--card); }
@media (max-width: 560px) {
  .sheet-head { margin-top: 20px; }
  .sheet-head h1 { font-size: 22px; }
  .sheet-head #sheet-month { font-size: 15px; }
  .month { font-size: 11.5px; }
  .month th, .month td { padding: 4px 4px; }
  .month thead th { font-size: 11px; }
  .month thead tr.sub th { font-size: 9.5px; }
  .sheet-tools { font-size: 14px; gap: 10px 14px; }
}

@media (min-width: 720px) {
  .page { padding-top: 64px; }
  .title { font-size: 42px; }
  .next-count { font-size: 52px; }
}
@media (max-width: 360px) {
  .times-head, .time-row { grid-template-columns: minmax(0, 1fr) 5em 5.2em; padding: 0 14px; gap: 6px; }
  .time-row { padding-top: 13px; padding-bottom: 13px; }
  .week th, .week td { padding: 9px 4px; font-size: 13px; }
  .week th:first-child, .week td:first-child { padding-inline-start: 10px; }
  .week th:last-child, .week td:last-child { padding-inline-end: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .event-actions button { transition: background-color 200ms ease; }
}

/* ── Complete sections (sections.js): About, Programs, Staff, Photos, Contact ── */
.cs-nav {
  position: sticky; top: 0; z-index: 5;
  margin: 24px -16px 0; padding: 0 16px;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.cs-nav ol {
  list-style: none; display: flex; gap: 22px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cs-nav ol::-webkit-scrollbar { display: none; }
.cs-nav a {
  display: block; padding: 12px 0 11px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.cs-nav a:hover { color: var(--teal); text-decoration: none; }
.cs-nav + section { margin-top: 32px; }
body[data-sections="true"] #site h2[id], body[data-sections="true"] #give { scroll-margin-top: 64px; }
html:has(body[data-sections="true"]) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body[data-sections="true"]) { scroll-behavior: auto; } }

.cs-about { margin-top: 14px; font-size: 17px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; max-width: 36em; }
.cs-about:lang(ar), .cs-about:lang(ur) { font-size: 19px; line-height: 1.85; }
.cs-langs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-langs button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 14px; min-height: 34px; cursor: pointer;
}
.cs-langs button[aria-pressed="true"] { color: var(--teal); background: var(--teal-wash); border-color: transparent; }

.cs-programs { list-style: none; }
.cs-program { padding: 14px 18px; min-width: 0; }
.cs-program + .cs-program { border-top: 1px solid var(--line); }
.cs-program-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.cs-program h3 { font-family: var(--round); font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.cs-program-when { font-size: 14px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.cs-program-who { margin-top: 2px; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.cs-program-note { margin-top: 4px; font-size: 14px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

.cs-staff { list-style: none; margin-top: 16px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cs-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-person { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; }
.cs-person-top { display: flex; align-items: center; gap: 14px; }
.cs-face {
  flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--teal);
  font-family: var(--round); font-size: 20px; font-weight: 700; letter-spacing: 0.02em;
}
.cs-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-person-who { min-width: 0; }
.cs-person h3 { font-family: var(--round); font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.cs-person-role { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.cs-person-bio { margin-top: 12px; font-size: 15px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

.cs-photos { list-style: none; margin-top: 16px; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .cs-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-photo { min-width: 0; }
.cs-photo a { display: block; border-radius: 14px; overflow: hidden; background: var(--chip); aspect-ratio: 1 / 1; }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-caption { margin-top: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }

.cs-contact { padding: 0; overflow: hidden; }
.cs-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.cs-action { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px; min-height: 52px; color: var(--ink); }
.cs-action + .cs-action { border-top: 1px solid var(--line); }
.cs-action:hover { text-decoration: none; background: var(--teal-wash); }
.cs-action-label { font-weight: 600; color: var(--teal); white-space: nowrap; }
.cs-action-value { font-size: 15px; color: var(--ink-soft); text-align: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-notes { border-top: 1px solid var(--line); padding: 4px 18px 14px; }
.cs-actions:empty + .cs-notes, .cs-contact > .cs-notes:first-child { border-top: 0; }
.cs-note { padding-top: 12px; }
.cs-note dt { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.cs-note dd { margin-top: 2px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .cs-action, .cs-langs button { transition: background-color 200ms ease; } }
body[data-view="embed"] .cs-nav, body[data-view="embed"] .cs-section { display: none !important; }
/* ── end Complete sections ── */

/* ── Print: the month sheet, black on white, one page ─────────────── */
@page { size: auto; margin: 10mm; }
@media print {
  :root, :root:not([data-theme="light"]) {
    --ground: #FFFFFF; --card: #FFFFFF; --ink: #000000; --ink-soft: #333333;
    --line: #999999; --line-strong: #666666; --teal: #000000; --teal-wash: #EFEFEF;
    color-scheme: light;
  }
  html, body { background: #FFFFFF !important; color: #000000; }
  body { font-size: 10pt; min-height: 0; }
  .page { max-width: none !important; padding: 0; }
  .sheet-tools { display: none !important; }
  #site { display: none !important; }
  .sheet-head { margin-top: 0; text-align: center; }
  .sheet-head h1 { font-size: 18pt; }
  .sheet-head #sheet-month { font-size: 12pt; }
  .sheet-head .sheet-place { font-size: 9pt; }
  .table-wrap, #sheet .table-wrap { overflow: visible; border: 0; border-radius: 0; margin-top: 3mm; }
  #sheet .month { border: 1px solid #666666; margin-top: 0; }
  .month td.day, .month thead tr:first-child th:first-child { position: static; background: #FFFFFF; }
  .month { margin-top: 3mm; font-size: 8.6pt; page-break-inside: avoid; }
  .month th, .month td { padding: 0.9mm 1.2mm; border-color: #666666; }
  .month thead th { font-size: 8.6pt; }
  .month thead tr.sub th { font-size: 7.4pt; color: #333333; }
  .month tr[data-friday="true"] td { background: #EFEFEF !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .month tr[data-today="true"] td.day { color: #000000; }
  .sheet-foot { font-size: 8pt; color: #333333; margin-top: 2mm; text-align: center; }
}

/* ── Open in Baab (assets/open-in-app.js, iPhone and iPad only) ─────── */
.app-cta { margin-top: 24px; }
.app-cta + section { margin-top: 40px; }
.app-cta .button { width: 100%; }
.app-cta .fine { margin-top: 8px; font-size: 13px; color: var(--ink-soft); text-align: center; }
