/* Elders Quorum tools: landing page, presidency notes, quorum calendar. Same tokens as the planner (css/app.css). */
:root {
  --bg: #f4f6f8; --panel: #ffffff; --ink: #1f2933; --muted: #6b7280; --line: #d9dee4;
  --accent: #1f4e78; --accent-ink: #ffffff; --soft: #eef3f8;
  --ok: #2f855a; --warn: #b45309; --error: #b91c1c;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(15,23,42,.06);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111827; --panel: #1f2937; --ink: #e5e7eb; --muted: #9ca3af; --line: #374151; --accent: #60a5fa; --accent-ink: #0b1220; --soft: #1b2a3d; --ok: #4ade80; --warn: #fbbf24; --error: #f87171; --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
button, .btn { font: inherit; font-size: 14px; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.link { background: none; border: none; color: var(--accent); padding: 2px 4px; }
button.danger { color: var(--error); }
button.danger-solid { background: var(--error); border-color: var(--error); color: #fff; }
button.icon { padding: 4px 8px; }
input, select, textarea { font: inherit; font-size: 14px; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
textarea { width: 100%; resize: vertical; min-height: 64px; line-height: 1.45; }
label.field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
label.field input, label.field select, label.field textarea { color: var(--ink); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--accent); white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ico { width: 18px; height: 18px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.save-status { font-size: 12px; color: var(--muted); }
.save-status.dirty { color: var(--warn); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 6px; display: flex; flex-direction: column; }
.menu button { border: none; justify-content: flex-start; padding: 7px 10px; background: none; }
.menu button:hover { background: var(--soft); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* ---------- landing ---------- */
.hero { position: relative; height: clamp(280px, 40vw, 500px); overflow: hidden; background: #6b4a2b; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,28,0) 35%, rgba(10,16,28,.72) 100%), linear-gradient(90deg, rgba(10,16,28,.45) 0%, rgba(10,16,28,0) 55%); }
.hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 max(16px, calc((100vw - 1120px) / 2)) clamp(18px, 3.2vw, 40px); color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-text .eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.hero-text h1 { margin: 0; font-size: clamp(30px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.01em; }
.hero-text h2 { margin: 2px 0 0; font-size: clamp(18px, 2.6vw, 28px); font-weight: 400; opacity: .95; }
.hero-text .verse { margin: 12px 0 0; font-size: 14px; font-style: italic; opacity: .9; max-width: 560px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: -36px auto 0; position: relative; z-index: 2; }
.tool { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.tool:hover { transform: translateY(-2px); border-color: var(--accent); }
.tool .tool-head { display: flex; align-items: center; gap: 10px; }
.tool .tool-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.tool .tool-icon .ico { width: 24px; height: 24px; }
.tool h3 { margin: 0; font-size: 18px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.tool ul { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.tool ul li b { font-weight: 600; }
.tool .go { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 22px auto 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card h2 a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-list li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-list li:first-child { border-top: none; }
.mini-list li.empty { display: block; }
.mini-list .when { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.mini-list .what b { font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.empty { color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot { max-width: 1120px; margin: 26px auto 30px; padding: 0 16px; color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- notes ---------- */
.notes-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 54px); }
.notes-side { border-right: 1px solid var(--line); background: var(--panel); padding: 12px; position: sticky; top: 54px; height: calc(100vh - 54px); overflow: auto; }
.notes-side input[type=search] { width: 100%; margin-bottom: 10px; }
.side-toggle { display: none; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist .group { margin: 12px 0 4px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mlist .group:first-child { margin-top: 0; }
.mlist button { width: 100%; text-align: left; border: 1px solid transparent; background: none; display: block; padding: 7px 9px; border-radius: 8px; white-space: normal; }
.mlist button:hover { background: var(--soft); border-color: transparent; }
.mlist button.active { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.mlist .d { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mlist .t { font-size: 12.5px; color: var(--muted); display: block; }
.notes-main { padding: 18px clamp(12px, 3vw, 32px) 60px; min-width: 0; }
.sheet { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.sheet-head h1 { margin: 0; font-size: 22px; flex: 1 1 260px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.attend { display: flex; flex-wrap: wrap; gap: 6px; }
.attend label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; cursor: pointer; background: var(--panel); }
.attend label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.attend input { margin: 0; }
.attend .role { color: var(--muted); font-size: 12px; }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sec-head input.sec-title { flex: 1; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; border-color: transparent; background: none; padding: 3px 6px; margin-left: -6px; }
.sec-head input.sec-title:hover { border-color: var(--line); }
.sec textarea { border-color: transparent; background: var(--bg); min-height: 70px; }
.sec textarea:focus { background: var(--panel); }
.actions-list { display: flex; flex-direction: column; gap: 6px; }
.act { display: grid; grid-template-columns: 24px minmax(0, 1fr) 170px 150px 32px; gap: 6px; align-items: center; }
.act.done .act-text { text-decoration: line-through; color: var(--muted); }
.act input[type=checkbox] { width: 18px; height: 18px; margin: 0 auto; }
.followup { border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, var(--panel)); }
.followup .f { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 4px 0; align-items: start; font-size: 14px; }
.followup .f input { width: 18px; height: 18px; margin: 2px auto 0; }
.followup .f .meta { color: var(--muted); font-size: 12.5px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.blank { max-width: 560px; margin: 60px auto; text-align: center; color: var(--muted); }
.blank h1 { color: var(--ink); font-size: 22px; }

/* ---------- dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog > form, dialog > .dlg { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
dialog h2 { margin: 0; font-size: 18px; }
dialog.confirm { width: min(440px, calc(100vw - 24px)); }
dialog.confirm p { margin: 0; }
.preview { white-space: pre-wrap; font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 46vh; overflow: auto; margin: 0; }
/* the formatted email keeps its own light colors, as it will look in the message */
.preview.rich { white-space: normal; font: inherit; background: #fff; color: #1f2937; padding: 16px 18px; }
.roster-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 1.3fr) auto 32px; gap: 6px; align-items: center; }
.roster-row .chk { font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; color: var(--muted); white-space: nowrap; }
.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.fieldset legend { padding: 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- calendar ---------- */
.cal-main { padding: 14px clamp(10px, 2.4vw, 28px) 40px; max-width: 1300px; margin: 0 auto; }
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-bar h1 { margin: 0 8px; font-size: 22px; min-width: 190px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: none; border-radius: 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.legend span { display: inline-flex; align-items: center; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.month .dow { background: var(--panel); padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day { background: var(--panel); min-height: 116px; padding: 4px 5px 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.day:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.day.other { background: color-mix(in srgb, var(--bg) 70%, var(--panel)); }
.day.other .num { color: var(--muted); opacity: .7; }
.day .num { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.day.today .num { background: var(--accent); color: var(--accent-ink); }
.ev { display: block; width: 100%; text-align: left; border: none; border-left: 3px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, var(--panel)); border-radius: 4px; padding: 2px 6px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev:hover { background: color-mix(in srgb, var(--c, var(--accent)) 24%, var(--panel)); border-color: var(--c, var(--accent)); }
.ev .tm { color: var(--muted); font-size: 11.5px; margin-right: 3px; }
.more { font-size: 12px; color: var(--accent); background: none; border: none; padding: 0 6px; text-align: left; }
.agenda { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.agenda .dayblock h3 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.agenda .dayblock h3 .rel { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.agenda .item { display: grid; grid-template-columns: 158px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); border-radius: 9px; padding: 8px 12px; cursor: pointer; text-align: left; width: 100%; white-space: normal; }
.agenda .item:hover { border-color: var(--c, var(--accent)); }
.agenda .item .tm { color: var(--muted); font-size: 13px; }
.agenda .item .ttl { font-weight: 600; }
.agenda .item .sub { color: var(--muted); font-size: 12.5px; display: block; font-weight: 400; }
.cal-empty { margin: 30px 0; color: var(--muted); }
.repeat-opts { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 9px; }
.nths { display: flex; gap: 6px; flex-wrap: wrap; }
.nths label { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: var(--panel); cursor: pointer; }
.scope { display: flex; flex-direction: column; gap: 4px; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }

/* ---------- roll ---------- */
.roll-main { padding: 14px clamp(10px, 2.4vw, 28px) 24px; max-width: 1500px; margin: 0 auto; }
.roll-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.roll-bar h1 { margin: 0 8px; font-size: 22px; }
.roll-bar h1 .span { margin-left: 10px; font-size: 14px; font-weight: 400; color: var(--muted); }
.roll-bar input[type=search] { width: 220px; }
.roll-summary { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; min-height: 20px; }
.roll-summary b { color: var(--ink); font-weight: 600; }
.roll-wrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.roll-empty { padding: 24px 22px; max-width: 680px; color: var(--muted); }
.roll-empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
table.roll { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13.5px; }
.roll th, .roll td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; background: var(--panel); }
.roll thead th { position: sticky; top: 0; z-index: 2; height: 28px; padding: 0 6px; background: var(--soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.roll thead tr + tr th { top: 28px; }
.roll .nm { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 250px; padding: 0 6px 0 4px; text-align: left; white-space: nowrap; }
.roll thead .nm, .roll tfoot .nm { z-index: 3; padding-left: 10px; }
.roll tbody .nm { font-weight: 400; }
.roll tfoot th, .roll tfoot td { position: sticky; bottom: 0; z-index: 2; height: 30px; background: var(--soft); border-bottom: none; font-size: 12.5px; font-weight: 600; }
.roll .who { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 6px; border: none; background: none; text-align: left; font-size: 13.5px; }
.roll .who:hover { color: var(--accent); text-decoration: underline; }
.roll .nm .pill { font-size: 10.5px; padding: 0 6px; margin-right: 4px; vertical-align: middle; }
.roll .sun { width: 34px; min-width: 34px; }
.roll .sunbtn { width: 100%; justify-content: center; padding: 0; border: none; border-radius: 0; background: none; font-size: 12.5px; font-weight: 700; }
.roll .sunbtn:hover { color: var(--accent); text-decoration: underline; }
.roll input[type=checkbox] { width: 17px; height: 17px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--accent); }
.roll .mstart, .roll .bstart, .roll .em { border-left: 2px solid color-mix(in srgb, var(--accent) 50%, var(--line)); }
.roll tbody .now, .roll tfoot .now { background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.roll thead .now { background: color-mix(in srgb, var(--accent) 24%, var(--soft)); }
.roll .future input { opacity: .5; }
.roll tbody .off, .roll tfoot .off { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--muted) 22%, transparent) 5px 6px), var(--panel); }
.roll thead .off .sunbtn { color: var(--muted); text-decoration: line-through; }
.roll .tot { min-width: 40px; color: var(--muted); font-size: 12.5px; }
.roll .em { min-width: 230px; }
.roll .ph { min-width: 135px; }
.roll .em input, .roll .ph input { width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 0; background: transparent; }
.roll .em input:hover, .roll .ph input:hover { border-color: var(--line); }
.roll .way { width: 48px; min-width: 48px; }
.roll tbody tr:hover > * { background-color: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.roll tbody tr.flash > * { animation: roll-flash 1.8s ease; }
@keyframes roll-flash { from { background-color: color-mix(in srgb, var(--warn) 30%, var(--panel)); } }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.print-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .notes-layout { grid-template-columns: 1fr; }
  .notes-side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .side-toggle { display: inline-flex; width: 100%; justify-content: space-between; }
  .notes-side.collapsed .side-body { display: none; }
  .notes-side:not(.collapsed) .side-body { margin-top: 10px; max-height: 50vh; overflow: auto; }
  .act { grid-template-columns: 24px minmax(0, 1fr) 32px; }
  .act .act-owner, .act .act-due { grid-column: 2 / 3; }
  .roster-row { grid-template-columns: 1fr 1fr; }
  .roster-row .chk, .roster-row button { justify-self: start; }
}
@media (max-width: 720px) {
  .topbar { padding: 6px 10px; }
  .day { min-height: 64px; padding: 3px; }
  .day .ev { font-size: 0; padding: 0; height: 6px; border-left: none; background: var(--c, var(--accent)); border-radius: 3px; }
  .day .more { font-size: 11px; padding: 0; }
  .month .dow { padding: 4px; font-size: 11px; text-align: center; }
  .agenda .item { grid-template-columns: 1fr; gap: 2px; }
  .cal-bar h1 { min-width: 0; font-size: 19px; flex: 1 1 100%; order: -1; margin: 0; }
  .mini-list li { grid-template-columns: 78px 1fr; }
  .tools { margin-top: 16px; }
  .roll-bar h1 { flex: 1 1 100%; order: -1; margin: 0; font-size: 19px; }
  .roll-bar input[type=search] { flex: 1 1 140px; width: auto; }
  .roll .nm { min-width: 150px; max-width: 170px; }
  .roll .who { max-width: 120px; }
  .roll-wrap { max-height: calc(100vh - 190px); }
}
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .hero-text .verse { display: none; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .notes-side, .no-print, #toast, .cal-bar, .legend, dialog { display: none !important; }
  .notes-layout { display: block; }
  .print-only { display: block; }
  .screen-only { display: none !important; }
  .print-notes > div { max-width: none !important; font-size: 11pt !important; }
  .cal-main { padding: 0; max-width: none; }
  .month { border-color: #999; background: #999; }
  .day { min-height: 92px; break-inside: avoid; }
  .ev { border-left-width: 3px; background: none !important; }
  .agenda .item { break-inside: avoid; }
  /* roll sign-in sheet (js/roll-model.js sheetHTML); roll.html sets the page to landscape letter with 0.4in margins */
  .roll-main { display: none !important; }
  .roll-sheet { font-family: "Segoe UI", Arial, sans-serif; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rs-page { height: 7.6in; display: flex; flex-direction: column; overflow: hidden; break-after: page; }
  .rs-page:last-child { break-after: auto; }
  .rs-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 3px; border-bottom: 2px solid #1f4e78; }
  .rs-head h1 { margin: 0; font-size: 16pt; color: #1f4e78; }
  .rs-sub { font-size: 9pt; color: #444; }
  .rs-right { text-align: right; }
  .rs-pg { font-size: 10pt; font-weight: 600; }
  .rs-how { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 5px; font-size: 9pt; }
  .rs-printed { font-size: 7.5pt; color: #666; white-space: nowrap; }
  .rs-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .rs-table th, .rs-table td { border: 0.75pt solid #777; padding: 0 4px; }
  .rs-table thead th { height: 0.22in; background: #dde6ee; font-size: 8.5pt; font-weight: 600; text-align: center; white-space: nowrap; }
  .rs-table tbody td { height: 0.3in; font-size: 9.5pt; }
  .rs-table tbody tr:nth-child(even) td { background: #f2f5f8; }
  .rs-table th.rs-name { text-align: left; }
  .rs-table td.rs-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rs-table th.rs-month { font-size: 9.5pt; }
  .rs-table .rs-day, .rs-table .rs-way { padding: 0; text-align: center; }
  .rs-table thead th.rs-day { font-size: 9.5pt; }
  .rs-table .rs-mstart, .rs-table .rs-bstart, .rs-table .rs-estart, .rs-table th.rs-month, .rs-table th.rs-best, .rs-table th.rs-email { border-left: 2pt solid #1f4e78; }
  .rs-table .rs-off { background: #d4d4d4 !important; }
  .rs-box { display: inline-block; width: 0.14in; height: 0.14in; border: 1pt solid #222; background: #fff; vertical-align: middle; font-size: 8pt; line-height: 0.12in; text-align: center; }
  .rs-onfile { font-size: 8pt; font-style: italic; color: #777; }
  .rs-table tr.rs-label td { padding-bottom: 2px; border-left: none; border-right: none; background: #fff !important; vertical-align: bottom; font-size: 9pt; font-style: italic; color: #333; }
}
