:root {
  --navy: #17243a;
  --navy-2: #24344f;
  --charcoal: #3b4147;
  --paper: #e1e7ed;
  --ink: #30291b;
  --muted: #655c49;
  --line: #d5c9af;
  --card: #fffdf8;
  --label-surface: #f5f3ed;
  --suggestion-surface: #f7f5ef;
  /* Interface meaning is independent of the liturgical color of the day. */
  --source-surface: #30383d;
  --source-ink: #ffffff;
  --source-line: #30383d;
  --info-surface: #d8ebfa;
  --info-ink: #214d6c;
  --info-line: #327cb0;
  --allowed-surface: #e7f3eb;
  --allowed-ink: #1d6740;
  --caution-surface: #fff2d4;
  --caution-ink: #775514;
  --prohibited-surface: #fff1f2;
  --prohibited-ink: #8e1d29;
  --prohibited-line: #a62432;
  --planning-surface: #f4ddcc;
  --planning-ink: #713e22;
  --planning-line: #ac6439;
  --gold: #a8873c;
  --liturgical: #277348;
  --liturgical-soft: #e8f1eb;
  --liturgical-field: #266f48;
  --liturgical-field-text: #ffffff;
  --liturgical-field-muted: rgba(255,255,255,.76);
  --shadow: 0 18px 50px rgba(27, 34, 45, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
main { overflow-x: clip; touch-action: pan-y; }
button, input { font: inherit; }
button { color: inherit; }

.topbar {
  height: 52px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: center;
  color: white; background: var(--charcoal); border-bottom: 1px solid var(--gold);
}
.calendar-layer { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border: 0; border-radius: 999px; background: transparent; font-size: calc(14px * var(--ordo-text-scale, 1)); color: rgba(255,255,255,.92); cursor: pointer; }
.calendar-layer:hover { background: rgba(255,255,255,.08); }
.layer-detail { color: rgba(255,255,255,.48); }
.settings-trigger { position: absolute; right: clamp(18px,4vw,56px); display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:7px; background:transparent; color:white; font-size:calc(44px * var(--ordo-text-scale, 1)); line-height:1; cursor:pointer; }
.settings-trigger:focus-visible { outline:2px solid white; outline-offset:3px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 44px; }
.date-nav { height: 88px; display: flex; align-items: center; justify-content: center; gap: 12px; border-bottom: 1px solid var(--line); position: relative; }
.nav-arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.58); font-size: calc(28px * var(--ordo-text-scale, 1)); line-height: 1; cursor: pointer; }
.nav-arrow:hover, .today-button:hover { border-color: #a8aaa7; background: white; }
.date-display { min-width: 265px; border: 0; background: transparent; cursor: pointer; text-align: center; }
.date-display span, .date-display strong { display: block; }
.date-display #weekdayLabel { color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.date-display strong { font-family: Georgia, "Times New Roman", serif; font-size: calc(27px * var(--ordo-text-scale, 1)); font-weight: 500; }
.today-button { position: absolute; right: 0; padding: 8px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.58); border-radius: 999px; font-size: calc(14px * var(--ordo-text-scale, 1)); cursor: pointer; }

.day-heading { margin: 18px 0 0; padding: 28px 30px 25px; color: var(--liturgical-field-text); background: var(--liturgical-field); border-radius: 16px 16px 0 0; box-shadow: 0 16px 42px color-mix(in srgb, var(--liturgical-field) 20%, transparent); transition: color .2s ease, background .2s ease; }
.eyebrow { display: flex; gap: 8px; color: var(--liturgical-field-muted); font-weight: 750; font-size: calc(13px * var(--ordo-text-scale, 1)); letter-spacing: .055em; text-transform: uppercase; }
h1 { margin: 8px 0 7px; font: 500 clamp(30px, 4vw, 44px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.02em; max-width: 820px; }
.day-heading p { margin: 12px 0 0; color: var(--liturgical-field-muted); font-size: calc(15px * var(--ordo-text-scale, 1)); }
.day-heading .first-vespers-alert { display:block; padding:0; font-weight:400; }

.observance-strip { min-height: 56px; margin-bottom: 8px; display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(208,205,197,.82); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); overflow: hidden; }
.strip-label { display: flex; align-items: center; padding: 0 20px; color: var(--muted); background: #f2f0ea; font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 750; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.strip-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); flex: 1; min-width: 0; }
.strip-choice { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 58px; padding: 10px 16px 10px 22px; border: 0; border-right: 1px solid #ece9e2; background: white; text-align: left; cursor: pointer; }
.strip-choice::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: var(--choice-color); }
.strip-choice::after { content: "›"; flex: 0 0 auto; margin-left: auto; color: #687486; font-size: calc(22px * var(--ordo-text-scale, 1)); font-weight: 400; line-height: 1; }
.strip-choice:hover, .strip-choice:focus-visible { background: #f8f7f3; outline: 0; }
.strip-choice.active { background: color-mix(in srgb, var(--choice-color) 9%, white); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--choice-color) 55%, transparent); }
.strip-choice div { min-width: 0; }
.strip-choice b, .strip-choice small { display: block; }
.strip-choice b { font: 500 calc(15px * var(--ordo-text-scale, 1))/1.25 Georgia, serif; }
.choice-rank { color: var(--muted); font: 700 calc(10px * var(--ordo-text-scale, 1))/1.25 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.strip-choice small { margin-top: 3px; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); line-height: 1.3; }

.sortable-sections { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 8px 12px; align-items: start; }
.sortable-sections > .primary-column { grid-column: 1; grid-row: 1 / span 2; }
.sortable-sections > .permissions-card { grid-column: 2; grid-row: 1; }
.sortable-sections > .necrology-card { grid-column: 2; grid-row: 2; }
.sortable-sections > .bottom-office, .sortable-sections > .reference-section, .sortable-sections > .prototype-note { grid-column: 1 / -1; }
.sortable-sections.personal-order { display: flex; flex-direction: column; align-items: stretch; }
.primary-column { display: grid; gap: 8px; }
.ordo-card, .note-card, .options-card, .permissions-card, .necrology-card, .insight-card, .reference-card { background: var(--card); border: 1px solid rgba(208,205,197,.82); border-radius: 12px; box-shadow: var(--shadow); }
.ordo-card { padding: 15px 17px 12px; }
.card-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 8px; border-bottom: 1px solid #ece9e2; }
.card-heading h2 { margin: 0; }
.section-kicker { display: block; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h2 { margin: 3px 0 0; font: 500 calc(24px * var(--ordo-text-scale, 1))/1.15 Georgia, "Times New Roman", serif; }
.directions { margin: 3px 0 0; }
.direction-row { display: grid; grid-template-columns: 152px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid #efede8; }
.direction-row:last-child { border-bottom: 0; }
.direction-row dt { color: var(--muted); font-size: calc(14px * var(--ordo-text-scale, 1)); }
.direction-row dd { margin: 0; font-size: calc(15px * var(--ordo-text-scale, 1)); font-weight: 560; line-height: 1.45; }
.mass-card .direction-row dt { color: #46546a; font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 700; }
.mass-card .direction-row { display: block; }
.mass-card .direction-row dt, .mass-card .direction-row dd { display: inline; }
.mass-card .direction-row dt::after { content: ": "; color: #a6a9ab; font-weight: 400; }
.mass-card .direction-row dd { color: #17243a; font-weight: 650; }
.mass-card .optional-reading-row dd { color: #454a50; font-weight: 500; }
.optional-reading-row dt, .optional-reading-row dd { font-style: italic; }
.optional-reading-row { background: #faf9f6; margin-inline: -8px; padding-inline: 8px; }
.muted-value { color: #8c8e8c; font-weight: 450; }
.mass-statuses { margin-left: auto; display: flex; gap: 7px; }
.mass-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #d9d7d0; border-radius: 7px; color: var(--muted); background: #faf9f6; font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.mass-status.yes { color: #1d6740; border-color: #bdd8c8; background: #edf7f1; }
.mass-status-mark { font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1; }

.secondary-column { display: grid; gap: 12px; }
.note-card, .options-card, .permissions-card, .necrology-card { padding: 18px; }
.note-card { background: var(--navy); color: white; border: 0; box-shadow: 0 18px 45px rgba(23,36,58,.18); }
.note-heading { display: flex; align-items: center; gap: 10px; }
.note-heading h2 { margin: 0; font-size: calc(20px * var(--ordo-text-scale, 1)); }
.info-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.note-card p { margin: 17px 0; color: rgba(255,255,255,.78); font-size: calc(15px * var(--ordo-text-scale, 1)); line-height: 1.6; }
.text-button { padding: 0; border: 0; background: transparent; color: #b8d7c4; font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 4px; }
.precedence-note { margin-top: 17px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.55; }
.options-card h2 { font-size: calc(20px * var(--ordo-text-scale, 1)); margin-bottom: 13px; }
.option-item { padding: 12px 0; border-top: 1px solid #ece9e2; }
.option-item b { display: block; font: 500 calc(16px * var(--ordo-text-scale, 1)) Georgia, serif; }
.option-item span { display: block; margin-top: 4px; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.4; }
.empty-options { margin: 8px 0 0; color: var(--muted); font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.5; }
.prototype-note { margin: 2px 4px; color: #777a78; font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.5; }
.bottom-office { margin-top: 0; }
.bottom-office .directions { display: block; }
.bottom-office .direction-row { display: block; padding: 7px 0; }
.bottom-office .direction-row:last-child { border-bottom: 0; }
.bottom-office .direction-row dt, .bottom-office .direction-row dd { display: inline; }
.bottom-office .direction-row dt { font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 750; color: #47546a; }
.bottom-office .direction-row dt::after { content: " · "; }

.reference-section { display: grid; gap: 8px; margin-top: 0; }
.reference-card { padding: 18px 20px; }
.seasonal-card summary, .office-inline-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.seasonal-card summary::-webkit-details-marker, .office-inline-guide summary::-webkit-details-marker { display: none; }
.seasonal-card summary b, .office-inline-guide summary b { display: block; margin-top: 4px; font: 500 calc(21px * var(--ordo-text-scale, 1)) Georgia, serif; }
.summary-action { flex: 0 0 auto; color: #34465e; font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 750; }
.seasonal-card[open] .summary-action, .office-inline-guide[open] .summary-action { font-size: 0; }
.seasonal-card[open] .summary-action::after, .office-inline-guide[open] .summary-action::after { content: "Close guide"; font-size: calc(13px * var(--ordo-text-scale, 1)); }
.office-inline-guide { margin-top: 7px; padding-top: 10px; border-top: 1px solid #ece9e2; }
.office-inline-guide .section-kicker { margin-bottom: 1px; }
.office-inline-guide summary b { font-size: calc(16px * var(--ordo-text-scale, 1)); }
.office-inline-guide .office-rank-grid { margin-top: 10px; }
.seasonal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 20px; padding-top: 6px; border-top: 1px solid #ece9e2; }
.seasonal-grid div { padding: 15px 0; border-bottom: 1px solid #ece9e2; }
.seasonal-grid b, .seasonal-grid span { display: block; }
.seasonal-grid b { font-size: calc(14px * var(--ordo-text-scale, 1)); }
.seasonal-grid span { margin-top: 5px; color: var(--muted); font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.55; }
.office-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 20px; border-top: 1px solid #ece9e2; }
.office-rank-grid div { padding: 15px 0; border-bottom: 1px solid #ece9e2; }
.office-rank-grid b, .office-rank-grid span { display: block; }
.office-rank-grid b { font: 500 calc(17px * var(--ordo-text-scale, 1)) Georgia, serif; }
.office-rank-grid span { margin-top: 5px; color: var(--muted); font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.55; }
.office-rank-grid strong { color: var(--ink); }
.coming-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coming-heading h2 { margin: 0 0 7px; font-size: calc(21px * var(--ordo-text-scale, 1)); }
.coming-count { padding: 6px 9px; border-radius: 999px; color: var(--navy); background: #eef0f3; font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.coming-intro { margin: 9px 0 16px; color: var(--muted); font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.5; }
.coming-list { border-top: 1px solid #e5e2dc; }
.coming-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px solid #ece9e2; }
.coming-item { width: 100%; border-top: 0; border-right: 0; background: transparent; text-align: left; }
.coming-date, .coming-copy { min-width: 0; padding: 3px 4px; border: 0; border-radius: 5px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.coming-copy { position: relative; padding-right: 16px; }
.coming-copy::after { content: "›"; position: absolute; top: 4px; right: 2px; color: #8a9199; font: 400 calc(18px * var(--ordo-text-scale, 1))/1 system-ui, sans-serif; }
.coming-date { width: 54px; min-height: 54px; place-content: center; justify-items: center; border: 1px solid #cbd1d8; border-radius: 7px; background: #fbfbfa; text-align: center; }
.coming-date:hover, .coming-date:focus-visible, .coming-copy:hover, .coming-copy:focus-visible { background: #f6f4ef; outline: 2px solid transparent; }
.coming-title-button { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.coming-title-button:hover h2, .coming-title-button:focus-visible h2 { text-decoration: underline; }
.coming-date { color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.coming-copy b { display: block; font: 600 calc(15px * var(--ordo-text-scale, 1))/1.2 Georgia, serif; }
.coming-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); }
.coming-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.coming-badges em { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 5px; border-radius: 5px; font-style: normal; font-size: calc(10px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.coming-kind { color: var(--event-color); background: var(--event-soft); }
.coming-badges .mass-status { min-height: 22px; padding: 2px 5px; font-size: calc(10px * var(--ordo-text-scale, 1)); }
.coming-holy-day .coming-kind { color: white; background: #233f62; box-shadow: 0 0 0 2px #233f6222; }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.insight-card { padding: 13px 15px; }
.insight-card h2 { margin: 0 0 12px; font-size: calc(20px * var(--ordo-text-scale, 1)); }
.insight-card p { margin: 0; color: #555b5a; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.62; }
.reading-glance strong { margin-right: 4px; color: #34465e; font: 700 calc(16px * var(--ordo-text-scale, 1)) Georgia, "Times New Roman", serif; }
.saint-reading-summary { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e7e3dc; }
.saint-reading-summary p { font-style: italic; }
.daily-context { display: grid; gap: 11px; }
.daily-context p { margin: 0; }
.daily-context p + p { padding-top: 11px; border-top: 1px solid #e7e3dc; }
.daily-context b { color: var(--navy); font-family: Georgia, serif; font-size: calc(15px * var(--ordo-text-scale, 1)); }
.saint-profile { border: 0; border-radius: 0; background: transparent; padding: 0; }
.saint-profile:last-of-type { border-bottom: 0; }
.saint-profile summary { cursor: pointer; list-style: none; }
.saint-profile summary::-webkit-details-marker { display: none; }
.saint-summary-copy { padding: 7px 0 9px; color: #555b5a; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.58; }
.saint-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 5px 10px; border-top: 0; background: var(--saint-bar); color: var(--saint-bar-text); }
.saint-profile-footer .patronage { color: inherit; font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 750; line-height: 1.4; }
.expand-badge { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; color: inherit; font-size: calc(10px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.expand-mark { font-size: calc(15px * var(--ordo-text-scale, 1)); font-weight: 500; line-height: 1; transition: transform .18s ease; }
.collapse-label { display: none; }
.saint-profile[open] .expand-label { display: none; }
.saint-profile[open] .collapse-label { display: inline; }
.saint-profile[open] .expand-mark { transform: rotate(45deg); }
.saint-long-bio { margin: -2px 0 10px; padding: 0 0 11px; }
.saint-long-bio p { color: #555b5a; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.62; }
.pastoral-note { margin-top: 17px; padding: 14px 15px; border-top: 3px solid var(--liturgical); border-radius: 0 0 8px 8px; color: #4f5554; background: #f4f3ef; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.55; }
.pastoral-note b { color: var(--liturgical); letter-spacing: .05em; text-transform: uppercase; }

.permissions-card h2 { margin: 0 0 8px; font-size: calc(20px * var(--ordo-text-scale, 1)); }
.permission-context { margin: 0 0 8px; padding: 9px 10px; border-radius: 7px; background: var(--liturgical-soft); color: var(--ink); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.4; }
.permissions-intro { margin: 0 0 12px; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.45; }
.permission-item { border-top: 1px solid #ece9e2; }
.permission-item summary { display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; }
.permission-item summary::-webkit-details-marker { display: none; }
.permission-item summary::after { content: "+"; color: #687486; font: 500 calc(18px * var(--ordo-text-scale, 1))/1 system-ui, sans-serif; text-align: center; }
.permission-item[open] summary::after { content: "−"; }
.permission-name { font: 500 calc(15px * var(--ordo-text-scale, 1)) Georgia, serif; }
.permission-state { padding: 4px 7px; border-radius: 6px; font-size: calc(10px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.permission-state.allowed { color: var(--allowed-ink); background: var(--allowed-surface); }
.permission-state.judgment, .permission-state.bishop { color: var(--caution-ink); background: var(--caution-surface); }
.permission-state.prohibited { color: var(--prohibited-ink); background: var(--prohibited-surface); }
.permission-item p { margin: -2px 0 11px; padding-right: 3px; color: #444b50; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.45; }

.necrology-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom:8px; margin-bottom:8px; border-bottom:1px solid #ece9e2; }
.necrology-card h2 { margin: 0; font-size: calc(20px * var(--ordo-text-scale, 1)); }
.small-link { padding: 4px 0; border: 0; background: transparent; color: var(--liturgical); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 750; cursor: pointer; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.source-chip { padding: 5px 8px; color: var(--source-ink); background: var(--source-surface); border: 1px solid var(--source-line); border-radius: 999px; font-size: calc(10px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.necrology-card > p { margin: 0; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.5; }
.necrology-list { margin-top: 2px; }
.demo-warning, .necrology-empty { margin: 0; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.45; }
.demo-warning { padding: 8px 10px; border-radius: 7px; background: var(--caution-surface); color: var(--caution-ink); }
.necrology-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #ece9e2; }
.necrology-entry b, .necrology-entry span { display: block; }
.necrology-entry b { font: 500 calc(15px * var(--ordo-text-scale, 1)) Georgia, serif; }
.necrology-entry div > span { margin-top: 4px; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 700; letter-spacing: .035em; }
.fictional-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #eef0f3; color: var(--muted); font-size: calc(10px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.necrology-card .necrology-prayer { margin-top: 9px; color: var(--ink); font-family: Georgia, serif; font-style: italic; }

.calendar-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; background: #fff; color: #192538; color-scheme: light; }
.calendar-panel { position: relative; width: min(760px, 100%); height: 100%; margin: 0 auto; padding: 14px 16px 8px; display: flex; flex-direction: column; }
.calendar-header, .settings-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.calendar-header h2, .settings-header h2 { margin-top: 2px; font-size: calc(25px * var(--ordo-text-scale, 1)); }
.calendar-weekdays { display: flex; justify-content: space-between; padding: 22px 5px 8px; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.calendar-actions { display: flex; align-items: center; gap: 4px; }
.calendar-actions > button:not(.close-button) { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--navy); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 750; cursor: pointer; }
.calendar-actions > button[aria-expanded="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.calendar-header .close-button { width: 34px; height: 34px; font-size: calc(25px * var(--ordo-text-scale, 1)); line-height: 1; }
.calendar-tool-panel { position: relative; padding: 7px 0 4px; flex-shrink: 0; z-index: 3; }
.calendar-search-results { position: absolute; top: 100%; left: 0; right: 0; max-height: min(55dvh, 440px); overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px #17213430; overscroll-behavior: contain; }
.calendar-search-results button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 6px solid var(--day-color); background: white; text-align: left; cursor: pointer; color: var(--navy); }
.calendar-search-results button:hover, .calendar-search-results button:focus-visible { background: #f0f2f5; }
.calendar-search-results b { display: block; font-size: calc(16px * var(--ordo-text-scale, 1)); font-weight: 600; }
.calendar-search-results small { display: block; margin-top: 3px; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); }
.calendar-search-results p { margin: 0; padding: 12px; font-size: calc(14px * var(--ordo-text-scale, 1)); color: var(--muted); }
.calendar-search { display: flex; min-width: 0; }
.calendar-search input, .date-jump input { min-height: 40px; font-size: calc(16px * var(--ordo-text-scale, 1)); border: 1px solid var(--line); background: white; }
.calendar-search input { width: 100%; min-width: 0; padding: 7px 10px; border-radius: 7px 0 0 7px; }
.calendar-search button { width: 40px; border: 1px solid var(--line); border-left: 0; border-radius: 0 7px 7px 0; background: white; font-size: calc(21px * var(--ordo-text-scale, 1)); cursor: pointer; }
.date-jump { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 700; }
.date-jump input { flex: 1; padding: 5px 7px; border-radius: 7px; }
.calendar-date-sheet { position: absolute; left: 16px; right: 16px; bottom: 66px; z-index: 8; padding: 12px; border: 1px solid #cfd4db; border-radius: 18px 18px 10px 10px; background: #fff; box-shadow: 0 -12px 38px rgba(20, 31, 46, .22); }
.date-sheet-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; color: var(--navy); }
.date-sheet-heading b { font: 600 calc(19px * var(--ordo-text-scale, 1)) Georgia, serif; }
.date-sheet-heading button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #eef0f3; color: var(--navy); font-size: calc(22px * var(--ordo-text-scale, 1)); line-height: 1; cursor: pointer; }
.native-date-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #aeb7c3; border-radius: 12px; background: #f7f8fa; }
.native-date-field span { color: var(--navy); font-size: calc(14px * var(--ordo-text-scale, 1)); font-weight: 750; }
.native-date-field input { width: 100%; min-height: 42px; padding: 5px 9px; border: 0; border-radius: 9px; background: white; color: #1d2a3c; font-size: calc(17px * var(--ordo-text-scale, 1)); }
.native-date-note { margin: 8px 2px 0; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); }
.calendar-bars { display: grid; grid-auto-rows: max-content; align-content: start; flex: 1; gap: 2px; overflow-y: auto; min-height: 0; padding: 2px 2px 16px; overscroll-behavior: contain; }
.calendar-month-label { position: sticky; top: 0; z-index: 2; margin: 0; padding: 9px 4px; background: #f3f4f6; border-bottom: 1px solid #d6dae0; color: var(--navy); font: 600 calc(19px * var(--ordo-text-scale, 1)) Georgia, serif; }
.calendar-page-control { display: block; width: 100%; border: 0; border-bottom: 1px solid #d6dae0; background: #f3f4f6; color: #263e5b; padding: 12px; font: inherit; cursor: pointer; }
.calendar-info { padding: 12px; border-left: 5px solid var(--liturgical); background: white; line-height: 1.5; }
.calendar-unavailable { border-left-color: #e4e1dc; background: #faf9f6; color: var(--muted); cursor: default; }
.calendar-unavailable .calendar-date strong { font-size: calc(17px * var(--ordo-text-scale, 1)); }
.calendar-unavailable .calendar-title { font-size: calc(12px * var(--ordo-text-scale, 1)); }
.calendar-day { width: 100%; display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: start; gap: 10px; min-height: 52px; padding: 9px 6px; border: 0; border-bottom: 1px solid #d6dae0; border-left: 7px solid var(--day-color, #e4e1dc); border-radius: 0; background: white; color: #192538; text-align: left; cursor: pointer; }
.calendar-day:hover { background: #f5f6f8; }
.calendar-day.selected { box-shadow: inset 0 0 0 2px #34465e; background: #f5f7fa; }
.calendar-date { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 1px; text-align: center; white-space: nowrap; border: 1px solid transparent; }
.calendar-day.selected .calendar-date { border-color: #34465e; background: white; }
.calendar-date em { font: 600 calc(12px * var(--ordo-text-scale, 1)) system-ui, sans-serif; color: #34465e; }
.calendar-date strong { font: 600 calc(18px * var(--ordo-text-scale, 1)) Georgia, serif; }
.calendar-date small { color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 650; text-transform: uppercase; }
.calendar-title { min-width: 0; white-space: normal; overflow-wrap: break-word; line-height: 1.35; }
.calendar-title b { font: 400 calc(16px * var(--ordo-text-scale, 1))/1.35 system-ui, sans-serif; }
.calendar-major .calendar-title b { font-weight: 700; }
.calendar-title span { display: block; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); margin-top: 2px; }
.calendar-title .calendar-option { font-size: calc(15px * var(--ordo-text-scale, 1)); line-height: 1.35; color: #424952; padding-left: 8px; margin-top: 7px; border-left: 4px solid var(--option-color); }
.calendar-bottom { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; padding: 10px 0 max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #d6dae0; background: white; }
.calendar-bottom > button:not(.close-button) { min-height: 44px; font-size: calc(14px * var(--ordo-text-scale, 1)); border-radius: 9px; }
.calendar-header { flex-shrink: 0; }
.calendar-entry { grid-template-columns: minmax(0, 1fr) 46px; gap: 0; min-height: 44px; padding: 0 3px 0 0; }
.calendar-open { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 7px; align-items: center; width: 100%; min-height: 44px; padding: 5px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.calendar-entry .calendar-date { padding: 1px; }
.calendar-entry .calendar-title b { font-size: calc(16px * var(--ordo-text-scale, 1)); line-height: 1.2; }
.calendar-title .calendar-rank { display: inline-block; width: fit-content; margin: 0 0 3px; padding: 2px 5px; border-radius: 4px; background: #e9edf2; color: #34465e; font: 800 calc(11px * var(--ordo-text-scale, 1))/1.25 system-ui, sans-serif; letter-spacing: .045em; text-transform: uppercase; }
.calendar-title .calendar-rank.feast { background: var(--event-soft, #f2e9dc); color: #6e4e13; }
.calendar-title .calendar-rank.solemnity { background: #dce7f3; color: #183f6b; }
.calendar-title .calendar-rank.holy-day { background: #7f2027; color: white; }
.calendar-quick-toggle { align-self: stretch; min-height: 44px; border: 0; border-left: 1px solid #e0e3e7; padding: 3px; background: transparent; color: #53647b; font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.3; cursor: pointer; }
.calendar-quick-toggle[aria-expanded="true"] { background: #e9edf2; color: #192538; }
.calendar-quick { grid-column: 1 / -1; padding: 5px 8px 8px 54px; border-top: 1px solid #e0e3e7; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.35; }
.calendar-quick p { margin: 3px 0; }
.promoted-martyrology { margin-top: 7px; }
.promoted-martyrology:empty { display: none; }
.promoted-martyrology button { display: block; padding: 6px 0; border: 0; background: transparent; color: #586473; text-align: left; font: inherit; font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.4; cursor: pointer; }
.promoted-martyrology button:hover { text-decoration: underline; }
.promoted-martyrology button:focus-visible { outline: 2px solid #25644a; outline-offset: 2px; }
.day-heading .promoted-martyrology button { color: inherit; font-size: calc(13px * var(--ordo-text-scale, 1)); padding: 8px 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.day-heading .promoted-martyrology button:focus-visible { outline-color: currentColor; }
.permission-detail { margin: 0 12px 10px; font-size: calc(13px * var(--ordo-text-scale, 1)); }
.permission-detail summary { cursor: pointer; color: var(--muted); }
.martyrology-detail-link { margin-top: 8px; padding: 7px 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: calc(13px * var(--ordo-text-scale, 1)); text-decoration: underline; cursor: pointer; }
.martyrology-read-more { display: block; margin-top: 8px; color: var(--navy); font-size: calc(12px * var(--ordo-text-scale, 1)); }
.martyrology-categories { font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 700; color: var(--muted); }
.martyrology-members { margin:6px 0; padding-left:18px; font-size:calc(13px * var(--ordo-text-scale, 1)); }
.martyrology-members .martyrology-read-more { margin:3px 0 6px; }
.martyrology-additional { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.weekday-votive-suggestion { display: block; width: 100%; border: 0; border-left: 3px solid var(--liturgical-accent); background: #f5f3ed; color: var(--navy); padding: 8px 10px; margin: 5px 0; text-align: left; font: inherit; font-size: calc(13px * var(--ordo-text-scale, 1)); cursor: pointer; }
.weekday-votive-suggestion small { display: block; margin-top: 3px; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); }
.weekday-votive-panel { margin:5px 0; }
.weekday-votive-suggestion { border-left-color:var(--gold); margin:0; list-style:none; }
.weekday-votive-suggestion::after { content:' +'; }
.weekday-votive-panel[open] > .weekday-votive-suggestion::after { content:' −'; }
.weekday-votive-suggestion::-webkit-details-marker { display:none; }
.weekday-votive-info { padding:4px 10px 10px; border-left:3px solid var(--gold); background:var(--card); font-size:calc(13px * var(--ordo-text-scale, 1)); }
.weekday-votive-info p { margin:8px 0; }
.weekday-votive-info dl { margin:8px 0; }
.weekday-votive-info dl > div { display:grid; grid-template-columns:64px 1fr; gap:8px; margin:5px 0; }
.weekday-votive-info dt { font-weight:650; }
.weekday-votive-info dd { margin:0; }
.votive-use, .evening-mass-open { padding:8px 0; }
.evening-mass-source { font-size:calc(12px * var(--ordo-text-scale, 1)); font-weight:400; margin-top:8px; }
.calendar-promoted { grid-column: 1; margin: -3px 0 0; padding: 0 5px 3px 54px; }
.calendar-promoted button { padding: 1px 0; line-height: 1.2; }
.calendar-title .calendar-rank { margin: 3px 0 0 6px; vertical-align: middle; }
.calendar-title b { margin-right: 3px; }
.necrology-card .small-link, .necrology-card a { color: #252525; }

.diocese-footer { grid-column: 1 / -1; margin: 0; }
.reading-cycle { color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 500; white-space: nowrap; }
.saint-liturgical-guidance, .saint-source-details { margin-top: 12px; border-top: 1px solid #e5e5e5; padding-top: 8px; }
.saint-liturgical-guidance > summary, .saint-source-details > summary { cursor: pointer; font-weight: 600; }
.calendar-quick-checks { display: flex; gap: 5px; margin-bottom: 5px; }
.calendar-quick .calendar-metadata { font-size: calc(12px * var(--ordo-text-scale, 1)); color: #596473; }
.calendar-quick .calendar-option { display: block; border-left: 3px solid var(--option-color); padding-left: 6px; margin-top: 5px; }
.readings-button { display: flow-root; width: 100%; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.readings-button > span { min-width: 0; }
.readings-button > small { float: right; width: auto; min-height: 28px; margin: 0 0 3px 8px; padding: 4px 7px; border: 1px solid #d7dce2; border-radius: 7px; background: #f3f5f7; color: #34465e; font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; }
.readings-button:hover > small, .readings-button:focus-visible > small { text-decoration: underline; }
.reading-requirement { display: inline-flex; margin-left: 7px; padding: 2px 5px; border-radius: 4px; color: #34465e; background: #e9edf2; font-size: calc(9px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .035em; line-height: 1.25; text-transform: uppercase; vertical-align: 1px; }
.calendar-color { color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 750; text-transform: uppercase; }

.settings-dialog { width: min(560px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; }
.settings-panel { padding: 24px; }
#jurisdictionDialog { max-height:calc(100dvh - 24px); overflow:hidden; background:var(--card); }
#jurisdictionDialog .settings-panel { height:min(780px, calc(100dvh - 24px)); display:flex; flex-direction:column; padding:0; }
#jurisdictionDialog .settings-header { flex:0 0 auto; padding:16px 20px 12px; background:var(--card); }
#jurisdictionDialog .settings-header .close-button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; color:var(--navy); font-size:calc(15px * var(--ordo-text-scale, 1)); font-weight:650; }
#jurisdictionDialog .settings-header .close-button span[aria-hidden] { font-size:calc(24px * var(--ordo-text-scale, 1)); line-height:1; }
#jurisdictionDialog .settings-body { min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:12px 20px 20px; }
#jurisdictionDialog .settings-actions { flex:0 0 auto; padding:12px 20px; border-top:1px solid var(--line); background:var(--card); }
#jurisdictionDialog .settings-actions .save-settings { margin-top:0; }
.settings-panel fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.settings-panel legend { margin-bottom: 8px; color: var(--muted); font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.setting-choice { display: flex; align-items: center; gap: 12px; padding: 12px 5px; border-top: 1px solid #ece9e2; cursor: pointer; }
.setting-choice input { width: 18px; height: 18px; accent-color: var(--liturgical); }
.setting-choice b, .setting-choice small { display: block; }
.setting-choice b { font-size: calc(14px * var(--ordo-text-scale, 1)); }
.setting-choice small { margin-top: 3px; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); }
.save-settings { width: 100%; margin-top: 22px; padding: 12px 16px; border: 0; border-radius: 9px; color: white; background: var(--navy); font-weight: 750; cursor: pointer; }
.setting-help { margin: 4px 0 10px; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.4; }
.order-control { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid #ece9e2; }
.order-control span { flex: 1; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.order-control button { min-width: 36px; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; }
.order-control button:disabled { opacity: .35; cursor: default; }
.remembrance-field { display: block; margin: 16px 0; font-size: calc(14px * var(--ordo-text-scale, 1)); font-weight: 700; }
.remembrance-field input { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.remove-remembrance { border: 0; background: transparent; color: var(--muted); font-size: calc(22px * var(--ordo-text-scale, 1)); cursor: pointer; }

dialog { width: min(600px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 26px 90px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(11,18,30,.6); backdrop-filter: blur(3px); }
.close-button { border: 0; background: transparent; color: var(--muted); font-size: calc(28px * var(--ordo-text-scale, 1)); cursor: pointer; }
.bible-dialog { width: min(720px, calc(100% - 20px)); max-height: calc(100dvh - 24px); }
.bible-panel { max-height: calc(100dvh - 24px); display: flex; flex-direction: column; padding: 18px; background: #fff; }
.bible-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bible-header h2 { margin-top: 3px; }
.bible-notice { flex: 0 0 auto; margin: 10px 0; padding: 8px 10px; border-left: 4px solid var(--info-line); border-radius: 7px; background: var(--info-surface); color: var(--info-ink); font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.4; }
.bible-text { min-height: 0; overflow-y: auto; padding: 0 3px 8px; overscroll-behavior: contain; }
.bible-reading { padding: 13px 0; border-bottom: 1px solid #e8e5df; }
.bible-reading:last-child { border-bottom: 0; }
.bible-reading h3 { margin: 0 0 8px; color: var(--navy); font: 600 calc(18px * var(--ordo-text-scale, 1)) Georgia, serif; }
.bible-reading p { margin: 0; color: #353b40; font: 400 calc(17px * var(--ordo-text-scale, 1))/1.72 Georgia, serif; }
.bible-reading sup { margin-right: 2px; color: #34465e; font: 700 calc(10px * var(--ordo-text-scale, 1))/1 system-ui, sans-serif; }
.verse-chapter { margin-right: 4px; color: var(--navy); font: 700 calc(15px * var(--ordo-text-scale, 1))/1 system-ui, sans-serif; }

@media (max-width: 800px) {
  .topbar { height: 48px; padding: 0 18px; }
  .calendar-layer { font-size: calc(13px * var(--ordo-text-scale, 1)); }
  main { padding: 0 9px 28px; }
  .date-nav { height: 72px; justify-content: space-between; gap: 5px; }
  .date-display { min-width: 0; flex: 1; }
  .date-display strong { font-size: calc(22px * var(--ordo-text-scale, 1)); }
  .today-button { display: none; }
  .day-heading { margin-top: 10px; padding: 20px 18px 18px; }
  .observance-strip { display: block; }
  .strip-label { min-height: 30px; padding: 0 14px; }
  .strip-choices { grid-template-columns: 1fr; }
  .strip-choice { padding: 9px 14px 9px 21px; border-right: 0; border-bottom: 1px solid #b9b6ae; }
  .strip-choice:last-child { border-bottom: 0; }
  h1 { font-size: calc(31px * var(--ordo-text-scale, 1)); }
  .sortable-sections { grid-template-columns: 1fr; }
  .sortable-sections > .primary-column, .sortable-sections > .permissions-card, .sortable-sections > .necrology-card, .sortable-sections > .bottom-office, .sortable-sections > .reference-section, .sortable-sections > .prototype-note { grid-column: 1; grid-row: auto; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-card { padding: 12px 13px; }
  .ordo-card { padding: 13px 14px 10px; }
  .direction-row { grid-template-columns: 112px 1fr; gap: 14px; }
  .bottom-office .directions { grid-template-columns: 1fr; }
  .seasonal-grid, .office-rank-grid { grid-template-columns: 1fr; }
}

.coming-item { padding: 6px 2px 6px 7px; border-left: 7px solid var(--event-bar, var(--event-color)); box-shadow: inset 1px 0 0 var(--event-edge, transparent); }
.coming-date { display: grid; gap: 1px; color: var(--muted); text-transform: uppercase; }
.coming-date strong { color: #34465e; font-size: calc(12px * var(--ordo-text-scale, 1)); letter-spacing: .06em; }
.coming-date small { font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .035em; }
.calendar-open .calendar-observances { grid-column: 1 / -1; display: grid; gap: 0; margin-top: 3px; }
.calendar-open .calendar-observance { display: block; margin: 0; padding: 3px 4px 3px 6px; border-top: 1px solid #e3e6e9; border-left: 6px solid var(--option-color, #9aa2ad); color: #424952; line-height: 1.22; }
.calendar-open .calendar-observance > span { display: inline; margin: 0; color: inherit; font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.22; }
.calendar-open .calendar-observance em { display: inline; margin-right: 4px; color: #697381; font-style: normal; font-size: calc(9px * var(--ordo-text-scale, 1)); font-weight: 800; letter-spacing: .03em; line-height: 1.22; text-transform: uppercase; }
.calendar-open { align-items: start; padding: 6px 5px; }

@media (max-width: 430px) {
  .calendar-layer { line-height: 1.2; }
  .date-nav { gap: 3px; }
  .nav-arrow { width: 36px; height: 36px; }
  .date-display #weekdayLabel { font-size: calc(11px * var(--ordo-text-scale, 1)); }
  .date-display strong { font-size: calc(20px * var(--ordo-text-scale, 1)); }
  .direction-row { grid-template-columns: 1fr; gap: 5px; }
  .direction-row dt { font-size: calc(12px * var(--ordo-text-scale, 1)); text-transform: uppercase; letter-spacing: .06em; }
  .mass-card .direction-row { display: block; }
  .mass-card .direction-row dt { white-space: normal; }
  .mass-statuses { margin-left: auto; }
  .mass-card .card-heading { flex-wrap: wrap; }
  .calendar-panel { padding-inline: 8px; }
  .calendar-date-sheet { left: 8px; right: 8px; }
  .coming-item { grid-template-columns: 56px minmax(0, 1fr); gap: 6px; }
  .calendar-day:not(.calendar-entry) { grid-template-columns: 42px 1fr; gap: 5px; padding-left: 5px; }
  .calendar-color { display: none; }
  .reference-card { padding: 17px 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ordo-card, .note-card, .options-card { animation: rise .35s ease both; }
  .note-card { animation-delay: .05s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}
.calendar-rule-guide { margin-top: 12px; font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.45; }
.calendar-rule-guide summary { cursor: pointer; font-weight: 700; }
.calendar-rule-guide p { margin: 9px 0; }
#ascensionSetting { padding: 8px; font: inherit; border: 1px solid #c7ccd3; border-radius: 6px; background: white; }
.calendar-saint-note { padding: 6px 0; border-top: 1px solid #e4e1dc; font-size: calc(13px * var(--ordo-text-scale, 1)); }
.calendar-title .calendar-rank.holy-day { background: #233f62; color: white; }

.saint-long-bio blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--saint-accent); font: italic calc(16px * var(--ordo-text-scale, 1)) Georgia, serif; }
.saint-long-bio cite { display: block; margin-top: 6px; font: normal calc(11px * var(--ordo-text-scale, 1)) system-ui, sans-serif; }
.saint-profile summary:focus-visible { outline: 2px solid var(--saint-accent); outline-offset: 4px; }

/* A single compact set, with exceptions stated once below it. */
.mass-card .compact-readings dt { display:block; margin-bottom:2px; }
.mass-card .compact-readings dt::after { content:none; }
.mass-card .compact-readings dd { display:block; font-weight:500; }
.lectionary-number { font-weight:500; }
.reading-chevron { color:#667386; font-weight:700; white-space:nowrap; }
.readings-button { display:inline; width:auto; font:inherit; line-height:inherit; }
.readings-button:hover, .readings-button:focus-visible { text-decoration:underline; }
.readings-button:focus-visible { outline:2px solid #667386; outline-offset:3px; }
.readings-button strong { font-weight:800; }
.reading-note { display:block; margin-top:3px; color:#46546a; font-size:calc(12px * var(--ordo-text-scale, 1)); font-weight:650; }
.mass-card .optional-reading-row { background:none; margin:0; padding:2px 0 6px; }
.reading-options { color:#46546a; font-size:calc(12px * var(--ordo-text-scale, 1)); font-weight:500; }
.reading-options summary { cursor:pointer; }
.reading-options > button { display:block; margin-top:5px; }
.reading-options p { margin:5px 0; }
.saint-reading-alternatives { display:inline; padding:0; margin-left:8px; }
.saint-reading-alternatives .reading-options { font-style:normal; }
:root main .saint-reading-alternatives > .reading-options { display:inline-block; max-width:100%; vertical-align:baseline; }
:root main .saint-reading-alternatives > .reading-options > summary { display:inline-flex; align-items:center; min-height:30px; padding:0 23px 0 0; font-size:calc(12px * var(--ordo-text-scale,1)); font-weight:500; }
:root main .saint-reading-alternatives > .reading-options > summary::after { right:1px; width:15px; height:15px; background-size:6px 1px,1px 6px; border-width:1px; }
:root main .saint-reading-alternatives > .reading-options[open] { display:block; margin-top:3px; }
:root main .saint-reading-alternatives > .reading-options[open] > summary::after { background-size:6px 1px,0 0; }
.saint-reading-content { padding:2px 0 2px 8px; border-left:1px solid var(--line); line-height:1.4; }
.saint-reading-content .readings-button { display:block; margin:3px 0; font-size:calc(14px * var(--ordo-text-scale,1)); }
.saint-reading-location { display:block; color:var(--muted); }
.saint-reading-content p { margin:4px 0; }
.saint-reading-rule { color:var(--muted); }
.missal-guide .missal-expanded dl > .missal-alternative { margin-left:14px; padding-left:10px; border-left:2px solid var(--line); }
.preface-options { margin-left:12px; }

.mass-form-guide { border-top: 1px solid #ece9e2; padding: 9px 0 0; margin-top: 4px; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.mass-form-guide summary { cursor: pointer; color: var(--navy); font-weight: 650; }
.mass-form-guide p { margin: 9px 0; line-height: 1.5; }
.mass-form-guide label { display: grid; gap: 6px; margin-top: 12px; }
.mass-form-guide select { width: 100%; min-width: 0; padding: 8px; font: inherit; background: white; border: 1px solid #d6d9dd; border-radius: 5px; color: var(--ink); }
.votive-day-note { margin: 9px 0 0; color: var(--muted); font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.4; }

/* Neutral, compact reading list; it does not carry liturgical selection colors. */
.martyrology { border-top: 1px solid #d8dadb; margin-top: 8px; }
.martyrology summary { cursor: pointer; list-style: none; }
.martyrology summary::-webkit-details-marker { display: none; }
.martyrology-heading, .martyrology-entry > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; padding: 2px 0; }
.martyrology-heading { color: #62686c; font-weight: 600; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.martyrology-heading small, .martyrology-entry small { font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 400; color: #62686c; }
.martyrology-entry { border-top: 1px solid #ececed; }
.martyrology-entry > summary { font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.3; color: #555b5a; }
.martyrology-toggle { flex: 0 0 16px; text-align: center; font-size: calc(19px * var(--ordo-text-scale, 1)); }
.martyrology-toggle::before { content: '+'; }
.martyrology[open] > summary .martyrology-toggle::before, .martyrology-entry[open] > summary .martyrology-toggle::before { content: '−'; }
.martyrology summary:focus-visible { outline: 2px solid #34445a; outline-offset: 2px; }
.martyrology-note { padding: 1px 0 5px 10px; }
.martyrology-note p { margin: 0 0 3px; font-size: calc(13px * var(--ordo-text-scale, 1)); line-height: 1.35; }
.martyrology-note .martyrology-categories { font-size: calc(12px * var(--ordo-text-scale, 1)); }
.martyrology-note .martyrology-members { display: flex; flex-wrap: wrap; gap: 1px 9px; list-style: none; margin: 3px 0 0; padding: 0; font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.35; }
.martyrology-note .martyrology-members li:not(:last-child)::after { content: ';'; }
.martyrology .martyrology-caption { margin: 0 0 6px; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.45; }
.martyrology .martyrology-caption, .martyrology-note > small { display: block; color: #62686c; font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.4; }
.martyrology-entry-details h2 { margin-bottom: 3px; font-size: calc(18px * var(--ordo-text-scale, 1)); line-height: 1.25; }
.martyrology-entry-details h2 small { font-size: calc(13px * var(--ordo-text-scale, 1)); font-weight: 400; color: var(--muted); }
.martyrology-entry-details .martyrology-entry-context { margin: 0 0 7px; color: var(--muted); font-size: calc(12px * var(--ordo-text-scale, 1)); }
.martyrology-entry-details .martyrology-note { padding-left: 0; }
.martyrology-entry-details .setting-help { margin: 5px 0 0; font-size: calc(11px * var(--ordo-text-scale, 1)); line-height: 1.3; }

.insight-card.martyrology-only { padding: 8px 12px; }
.martyrology-only .martyrology { margin-top: 0; border-top: 0; }

.martyrology-list { display: block; }
.martyrology-list > *, .martyrology-more > * { margin: 0; }
.martyrology-name { padding: 2px 0; color: #555b5a; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.3; border-top: 1px solid #ececed; overflow-wrap: anywhere; }
.martyrology-more > summary { display: flex; justify-content: space-between; align-items: center; min-height: 26px; padding: 2px 0; border-top: 1px solid #ececed; font-size: calc(14px * var(--ordo-text-scale, 1)); color: #34445a; }
.calendar-open .calendar-observance em { text-transform: none; }
.martyrology-more[open] > summary .martyrology-toggle::before { content: '−'; }
.martyrology-source { margin-top: 3px; }
.martyrology-source > summary { font-size: calc(12px * var(--ordo-text-scale, 1)); min-height: 24px; line-height: 24px; color: #62686c; text-decoration: underline; text-underline-offset: 2px; }
.martyrology-source p, .martyrology-source small { font-size: calc(12px * var(--ordo-text-scale, 1)); line-height: 1.4; color: #62686c; }

/* Exceptional rubrics share one compact, expandable treatment. */
.rubric-strip { border-top:1px solid #deded9; padding:6px 0; color:#34465e; font-size:.88rem; }
.rubric-strip summary { cursor:pointer; font-weight:650; list-style:none; }
.rubric-strip > summary::after { content:' +'; float:right; padding-left:8px; }
.rubric-strip[open] > summary::after { content:' −'; }
.rubric-strip summary::-webkit-details-marker { display:none; }
.rubric-strip p { margin:6px 0 3px; line-height:1.45; font-weight:400; }
.rubric-strip small { font-size:.76rem; color:#68717a; }
.reading-note.rubric-strip { margin-top:4px; border:0; font-size:.8rem; }
.tonight-notice { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; box-sizing:border-box; padding:7px 10px; color:var(--liturgical-field-text); background:color-mix(in srgb, currentColor 4%, transparent); border:1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius:6px; text-align:left; font:inherit; cursor:pointer; }
.tonight-notice:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.evening-notice-copy { flex:1; min-width:0; }
.evening-notice-copy b { display:block; font-size:calc(13px * var(--ordo-text-scale, 1)); line-height:1.3; font-weight:700; }
.evening-notice-copy small { display:block; margin-top:2px; font-size:calc(12px * var(--ordo-text-scale, 1)); line-height:1.35; }
.evening-notice-arrow { font-size:22px; line-height:1; }
.rubric-strip summary:focus-visible { outline:2px solid #34465e; outline-offset:3px; }

.missal-guide { border-top: 1px solid #ece9e2; padding: 10px 0; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.missal-guide summary { cursor: pointer; color: var(--navy); font-weight: 650; }
.missal-guide summary small { display: block; color: #626973; font-weight: 400; margin-top: 4px; }
.missal-guide p { margin: 9px 0; line-height: 1.45; }
.missal-location { font-weight: 600; }
.missal-guide dl { margin: 8px 0; }
.missal-guide dl > div { display: grid; grid-template-columns: minmax(100px, 32%) 1fr; gap: 8px; padding: 5px 0; }
.missal-guide dd { margin: 0; }
.missal-update { border-left: 3px solid #bd9138; padding: 8px 12px; margin: 8px 0; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.missal-update p { margin: 5px 0; line-height: 1.4; }
.selected-missal-supplement { margin:5px 0 9px; padding:7px 10px; border:1px solid #bdcbd8; border-radius:6px; color:#34465e; background:#edf3f8; font-size:calc(13px * var(--ordo-text-scale, 1)); line-height:1.35; }
.selected-missal-supplement p { margin:3px 0; }
.selected-missal-supplement .supplement-download { margin:3px 0 0; padding:6px 9px; font-size:inherit; }
.supplement-download { display: inline-block; padding: 9px 12px; margin: 6px 0; border: 1px solid #cbd0d5; border-radius: 6px; color: var(--navy); background: #fafafa; font-weight: 600; text-decoration: none; }
.supplement-library { padding: 12px 18px; background: #fff; border-radius: 8px; }
.supplement-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid #ece9e2; }

/* A single disclosure for prayer sources, Commons and prefaces. */
.missal-guide > summary { line-height: 1.45; padding: 2px 0; }
.missal-brief { display: inline; color: var(--navy); font-weight: 650; font-size: calc(14px * var(--ordo-text-scale, 1)); overflow-wrap: anywhere; }
.missal-brief > span + span::before { content: " · "; white-space: pre; color: #8a8f96; }
.missal-expanded { padding-top: 5px; }
.missal-expanded dt { color: #47546a; font-weight: 600; }
@media (max-width: 430px) { .missal-guide dl > div { grid-template-columns: minmax(100px, 40%) 1fr; gap: 10px; } }

.reading-set-note { margin: 5px 0 0; font-size: calc(13px * var(--ordo-text-scale, 1)); color: #47546a; }
.permission-static { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }

/* Compact expanded Missal guidance, with prayer order retained. */
.missal-expanded { padding-top: 2px; font-size: calc(13px * var(--ordo-text-scale, 1)); }
.missal-common-options { margin:3px 0 6px; padding:4px 8px; border-left:3px solid #8ba4b9; background:#edf3f8; color:#34465e; }
.missal-guide .missal-expanded p { margin: 4px 0; line-height: 1.3; }
.missal-guide .missal-expanded dl { margin: 4px 0; }
.missal-guide .missal-expanded dl > div { padding: 2px 0; gap: 8px; line-height: 1.3; grid-template-columns: minmax(125px, 35%) 1fr; }
.missal-expanded .missal-update { margin: 5px 0; padding: 5px 8px; }
.permission-item p { margin: 0 0 7px; line-height: 1.35; }
.permission-item summary { padding: 9px 0; }
.saint-long-bio .saint-patronage { margin-top: 0; padding-bottom: 5px; border-bottom: 1px solid #ece9e2; }
.saint-profile-footer { justify-content: space-between; }

/* Each expanded life remains visibly enclosed. */
.saint-profile, .saint-profile:last-of-type { border: 1px solid #d8d3ca; border-radius: 5px; overflow: hidden; }
.saint-summary-copy { padding: 10px 12px; }
.promoted-saint-profile { margin-bottom: 12px; }
.promoted-saint-profile .saint-summary-copy p { margin: 5px 0 0; }
.promoted-saint-profile h3 { font-size: calc(15px * var(--ordo-text-scale, 1)); margin: 12px 0 6px; }
.saint-profile-footer { margin-bottom: 0; }
.saint-long-bio { margin: 0; padding: 10px 12px 12px; }
.feast-history { border-top: 2px solid #d8d3ca; padding-top: 10px; }
.feast-history summary { cursor: pointer; font-weight: 700; }
.feast-history p { font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.65; margin-top: 10px; }
.feast-history .feast-reflection { font-style: italic; }
.funeral-notice { border-left: 3px solid #956b42; padding: 7px 10px; margin: 8px 0; background: #faf6ee; font-size: calc(12px * var(--ordo-text-scale, 1)); }
.funeral-notice summary { cursor: pointer; font-weight: 700; }
.funeral-notice p, .funeral-notice ul { margin: 7px 0 0; }

/* Keep the historical list visibly grouped, including when it stands alone. */
.martyrology, .martyrology-only .martyrology { border: 1px solid #d8d3ca; border-radius: 5px; overflow: hidden; margin-top: 10px; }
.martyrology-only .martyrology { margin-top: 0; }
.martyrology-heading { padding: 8px 12px; background: #f3f0e9; color: #34445a; }
.martyrology-list { padding: 4px 12px 10px; }
.saint-dates { color: #62686c; font-size: .9em; white-space: nowrap; }
/* Searchable calendar preferences */
.diocese-search{display:grid;gap:5px;font-size:calc(13px * var(--ordo-text-scale, 1));margin:8px 0;color:var(--muted)}
.diocese-search input{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #ccc;border-radius:7px;font:inherit;background:white;color:#222}
.setting-choice[hidden]{display:none}
.necrology-choice-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #ddd}
.necrology-choice-row .setting-choice{flex:1;min-width:0}
.necrology-add{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:9px 4px;border:0;border-bottom:1px solid #ddd;background:transparent;color:inherit;font:inherit;cursor:pointer}
.necrology-add small{display:block;font-size:calc(11px * var(--ordo-text-scale, 1));color:#666;margin-top:2px}
#necrologySearchResults{max-height:190px;overflow:auto;overscroll-behavior:contain}
.diocese-choices { max-height: 240px; overflow-y: auto; border-block: 1px solid #ddd; margin-block: 8px; }
.diocese-selected { margin:4px 0 8px; font-size:calc(13px * var(--ordo-text-scale, 1)); }
.diocese-picker { border:1px solid var(--line); border-radius:8px; padding:10px; margin:8px 0; background:var(--card); }
.diocese-picker > summary { cursor:pointer; font-size:calc(14px * var(--ordo-text-scale, 1)); font-weight:650; }
.diocese-picker .diocese-choices { max-height:220px; overscroll-behavior:contain; }
.diocese-information { margin: 0; font-size: .78rem; color: #555; border-block: 1px solid #ddd; padding: 7px 0; }
.diocese-information > summary { cursor: pointer; color: #344054; font-weight: 600; }
.diocese-information > summary small { font-weight: 400; margin-left: 5px; }
.diocese-information p, .diocese-source-row p { margin: 5px 0; line-height: 1.45; }
.diocese-information h3 { font-size: .82rem; margin: 12px 0 5px; }
.diocese-source-row { border-top: 1px solid #e1e3e6; padding: 7px 0; }
.diocese-source-row > summary { cursor: pointer; }
.diocese-source-row > summary span { display: block; font-size: .75rem; color: #666; margin-top: 2px; }
.research-caveat { border-left: 2px solid #ba9045; padding-left: 7px; }
.necrology-source-info { font-size: .78rem; margin: 7px 0; }
.necrology-source-info > summary { cursor: pointer; }

.marian-selector { border-top: 0; padding-top: 0; margin: 0 0 10px; }
.marian-selector label { margin-top: 0; font-size: calc(12px * var(--ordo-text-scale, 1)); font-weight: 650; color: var(--navy); }
.missal-compact p { margin: 4px 0; font-size: calc(14px * var(--ordo-text-scale, 1)); line-height: 1.45; }

.mass-supplements { margin: 12px 0; padding: 0 12px; border: 1px solid #d7c59e; border-radius: 8px; background: #fcfaf5; }
.mass-supplements h3 { margin: 0 0 5px; color: var(--navy); font-size: calc(15px * var(--ordo-text-scale, 1)); }
.supplement-help { margin: 5px 0; font-size: calc(12px * var(--ordo-text-scale, 1)); color: #626973; line-height: 1.4; }
.mass-supplements .supplement-item span { flex: 1 1 210px; }
.mass-supplements .supplement-item small { display: block; color: #626973; margin-bottom: 3px; }
.mass-supplements .supplement-item b { font-size: calc(14px * var(--ordo-text-scale, 1)); }
.mass-supplements .supplement-download { font-size: calc(12px * var(--ordo-text-scale, 1)); padding: 7px 9px; }
.ai-notice { display: inline-block; margin-top: 6px; line-height: 1.45; }
.ai-guidance { font-size: calc(13px * var(--ordo-text-scale, 1)); }

.funeral-today { border: 1px solid var(--prohibited-line); border-left: 5px solid var(--prohibited-line); background: var(--prohibited-surface); margin: 4px 0 12px; padding: 11px 12px; font-size: calc(14px * var(--ordo-text-scale, 1)); }
.funeral-today summary { color: var(--prohibited-ink); font-size: calc(15px * var(--ordo-text-scale, 1)); }
.funeral-today .funeral-authority { font-size: calc(11px * var(--ordo-text-scale, 1)); color: #696067; }
.mass-title h2 { margin: 0; }
.reading-cycles { display: block; margin-top: 3px; color: #626973; font-size: calc(11px * var(--ordo-text-scale, 1)); font-weight: 500; }
.lectionary-number.reading-exception { font-weight: 800; color: #65490c; background: #f4e8bc; border-radius: 3px; padding: 1px 5px; }

/* User-supplied identities; full artwork stays intact. */
.brand-filters { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.topbar { position:relative; height:60px; }
.ordo-brand { position:absolute; left:clamp(18px,4vw,56px); width:44px; height:44px; padding:0; border:0; border-radius:7px; background:transparent; cursor:pointer; }
.ordo-brand:focus-visible { outline:2px solid white; outline-offset:3px; }
.ordo-brand img { display:block; width:100%; height:100%; border-radius:7px; object-fit:contain; }
.ordo-brand[data-color="white"] { background:#ebdcab; isolation:isolate; }
.ordo-brand img[data-color="white"] { mix-blend-mode:darken; }
.ordo-brand img[data-color="violet"] { filter:url(#ordoViolet); }
.ordo-brand img[data-color="black"] { filter:url(#ordoBlack); }
.ordo-brand img[data-color="rose"] { filter:url(#ordoRose); }
.publisher-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; margin:0; padding:8px 0 0; border-top:1px solid var(--line); }
.publisher-brand { display:flex; align-items:center; gap:8px; margin:0; color:var(--navy); }
.publisher-brand img { display:block; border:1px solid var(--line); border-radius:8px; }
.publisher-brand b { display:block; font-size:calc(13px * var(--ordo-text-scale, 1)); }
.publisher-meta { display:block; margin-top:2px; font-size:calc(11px * var(--ordo-text-scale, 1)); color:var(--muted); }
.publisher-review { font-size:calc(11px * var(--ordo-text-scale, 1)); color:var(--muted); }
.publisher-review > summary { cursor:pointer; }
.publisher-review[open] { flex-basis:100%; }
.publisher-review p { margin:6px 0 0; font-size:calc(11px * var(--ordo-text-scale, 1)); line-height:1.45; }
.publisher-brand a { color:var(--navy); text-underline-offset:3px; }
.prototype-note > p { margin:0; }
@media (max-width:600px) { .topbar { height:56px; } .ordo-brand { width:40px; height:40px; left:14px; } .settings-trigger { width:40px; height:40px; right:14px; font-size:calc(40px * var(--ordo-text-scale, 1)); } .calendar-layer { max-width:calc(100% - 130px); } #jurisdictionLabel { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

.reading-choice {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;font-size:.85rem;font-weight:600}.reading-choice select,.diocese-search select {max-width:100%;padding:8px;border:1px solid #ccc;border-radius:6px;background:white;color:#222}#liturgicalCoverage {border-left:3px solid #ad7a29;padding:8px 10px;margin-top:8px;font-size:.82rem;background:#fff6df}#churchParticulars {margin:10px 0}.reading-choice select {max-width:65%}

/* Website Scripture opens directly; source and copyright follow the readings. */
.reading-retry-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
.reading-retry-controls button,.reading-feed-selection button { border:1px solid var(--line); border-radius:8px; padding:10px 14px; background:#f4f1e9; color:var(--navy); font:600 .9rem/1.3 system-ui,sans-serif; cursor:pointer; }
.online-reading-status,.reading-feed-meta,.reading-feed-copyright { font-size:.85rem; line-height:1.5; }
.online-reading-status { margin:16px 0; }
.online-reading-body { max-width:100%; overflow-wrap:anywhere; line-height:1.7; }
.reading-feed-info { margin-top:24px; padding-top:14px; border-top:1px solid var(--line); color:#62676b; }
.reading-feed-info p { margin:0 0 10px; }
.reading-calendar-link { margin:16px 0 20px; font-size:.95rem; font-weight:600; }
.reading-calendar-link a { color:var(--navy); text-underline-offset:3px; }
.webc-source-heading { margin:0 0 6px; color:var(--navy); font-size:1rem; }
.webc-reference-readings > .reading-feed-meta { margin:5px 0; color:#62676b; }
.reading-feed-warning { border-left:3px solid var(--caution-ink); padding:.65rem .8rem; background:var(--caution-surface); color:var(--caution-ink); font-size:.85rem; line-height:1.5; }
.usccb-feed-text { font-family:Georgia,serif; font-size:1.04rem; line-height:1.72; }
.usccb-feed-text h1,.usccb-feed-text h2,.usccb-feed-text h3,.usccb-feed-text h4 { font-family:Georgia,serif; font-size:1.12rem; line-height:1.4; margin:20px 0 10px; }
.usccb-feed-text > h4:first-child,.usccb-feed-text > h3:first-child { margin-top:16px; }
.usccb-feed-text p { margin:0 0 16px; }
.usccb-feed-text a { color:var(--navy); text-decoration-thickness:1px; text-underline-offset:3px; }
.bible-panel [hidden] { display:none !important; }
#onlineReadings { min-height:0; overflow-y:auto; flex:1 1 auto; overscroll-behavior:contain; padding:0 3px 8px; }

/* One compact, shared website/app reference; no calendar or permission overrides. */
.rank-precedence-guide { margin-top:6px; border-top:1px solid var(--line); }
.rank-precedence-guide > summary { min-height:44px; justify-content:space-between; gap:8px; list-style:none; cursor:pointer; font-size:calc(13px * var(--ordo-text-scale,1)); }
.rank-precedence-guide > summary::-webkit-details-marker { display:none; }
.rank-precedence-guide > summary::after { content:'+'; flex:none; font-size:calc(20px * var(--ordo-text-scale,1)); }
.rank-precedence-guide[open] > summary::after { content:'−'; }
.rank-guide-content { border-top:1px solid var(--line); padding-top:6px; font-size:calc(13px * var(--ordo-text-scale,1)); line-height:1.4; overflow-wrap:break-word; }
.rank-guide-content h3 { margin:10px 0 4px; color:var(--ink); font:500 calc(19px * var(--ordo-text-scale,1))/1.2 Georgia,serif; }
.rank-guide-caption,.rank-guide-source { margin:0 0 5px; color:var(--muted); font-size:calc(12px * var(--ordo-text-scale,1)); }
.precedence-table { width:100%; border-collapse:collapse; font:inherit; }
.precedence-table th,.precedence-table td { vertical-align:top; text-align:left; padding:5px 0; border-bottom:1px solid var(--line); }
.precedence-table th[scope='row'] { width:28px; padding-right:7px; color:var(--muted); }
.precedence-table .rank-group th { padding:3px 7px; background:var(--label-surface); font-size:calc(12px * var(--ordo-text-scale,1)); }
.rank-break { display:block; margin-top:2px; }
.rank-subitems { margin:3px 0 0; }
.rank-subitems > div { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:7px; padding:2px 0; }
.rank-subitems dt { min-width:35px; color:var(--muted); font-weight:650; white-space:nowrap; }
.rank-subitems dd { margin:0; }
.precedence-table .rank-permission td { border:0; padding:5px 0; }
.rank-permission aside { margin-left:21px; padding:6px 8px; background:color-mix(in srgb,var(--navy) 6%,var(--card)); color:var(--ink); }
.rank-permission small { display:block; margin-top:2px; font-size:calc(12px * var(--ordo-text-scale,1)); }
.rank-guide-notes { margin:0; }
.rank-guide-notes > div { padding:5px 0; border-bottom:1px solid var(--line); }
.rank-guide-notes dt { font-weight:650; }
.rank-guide-notes dd { margin:2px 0 0; }
.rank-guide-notes small { font-size:calc(12px * var(--ordo-text-scale,1)); color:var(--muted); font-weight:400; }
.rank-guide-intention { margin:7px 0; }
.rank-guide-source { margin:7px 0 0; }
.rank-guide-source a { color:inherit; text-underline-offset:2px; }
.rank-guide-close { display:block; margin:8px 0 0 auto; min-height:44px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--label-surface); color:var(--ink); font:inherit; font-weight:650; cursor:pointer; }

/* Almost-white ivory surfaces; champagne remains a liturgical accent. */
.observance-strip, .strip-choice, .calendar-dialog, .calendar-search-results,
.calendar-search-results button, .calendar-date-sheet, .calendar-info,
.calendar-day, .calendar-bottom, .bible-panel, .supplement-library { background:var(--card); }
.strip-label { background:var(--label-surface); border-bottom:1px solid var(--line); }
.weekday-votive-suggestion { background:var(--suggestion-surface); }
.strip-choice.active { background:color-mix(in srgb, var(--choice-color) 9%, var(--card)); }
.day-heading[data-tone="white"] { border-top:4px solid var(--gold); }

/* Subordinate settings and compact devotional disclosure. */
.setting-secondary { margin:8px 0 12px 18px; color:var(--muted); }
.setting-secondary summary { font-weight:600; }
.weekday-votive-suggestion { display:flex; align-items:flex-end; gap:8px; padding:6px 9px; }
.weekday-votive-copy { flex:1; min-width:0; }
.weekday-votive-suggestion::after { flex:0 0 auto; font-size:calc(18px * var(--ordo-text-scale, 1)); line-height:1; }
.weekday-votive-suggestion small { margin-top:2px; }
.necrology-order { display:flex; gap:3px; }
.necrology-order button { min-width:30px; min-height:34px; border:1px solid var(--line); border-radius:5px; background:var(--card); color:var(--navy); cursor:pointer; }
.necrology-order button:disabled { opacity:.3; cursor:default; }
.necrology-view { justify-content:space-between; }
#jurisdictionDialog .settings-header .close-button { flex-shrink:0; }

/* One disclosure per permission or evening exception. */
.permissions-card .permission-item > .permission-copy { margin:4px 0 9px; font-size:calc(13px * var(--ordo-text-scale, 1)); line-height:1.4; }
.permission-copy small { color:var(--muted); white-space:nowrap; }
.permission-qualification { font-size:inherit; }

/* Votive color belongs to the selected Mass; controls stay neutral. */
.weekday-votive-panel > .weekday-votive-suggestion { border-left-color:var(--votive-color); background:var(--votive-surface); }
.weekday-votive-panel > .weekday-votive-info { border-left-color:var(--votive-color); }
.votive-use.small-link, #necrologySettings { color:#252525; }
.bottom-office .direction-row.office-evening-priority { margin:10px 0; padding:8px 10px; border:1px solid #d5d9de; border-radius:7px; background:#f5f6f7; }
.bottom-office .direction-row.office-evening-special { border:2px solid #475b74; background:#e8eef5; }
.bottom-office .office-evening-special dt, .bottom-office .office-evening-special dd { color:#17243a; font-weight:750; }

.office-inline-guide .office-rank-grid > div { padding:9px 0; }
.office-inline-guide .office-rank-grid span { margin-top:3px; font-size:calc(13px * var(--ordo-text-scale, 1)); line-height:1.4; }
.office-guide-note, .office-guide-source { margin:8px 0 0; color:var(--muted); font-size:calc(12px * var(--ordo-text-scale, 1)); line-height:1.4; }

.weekday-votive-info { padding:3px 9px 5px; }
.weekday-votive-info p { margin:4px 0; line-height:1.35; }
.weekday-votive-info .votive-use { padding:4px 0; }
.supplement-library h3 { margin:12px 0 3px; font-size:calc(13px * var(--ordo-text-scale, 1)); }

/* Keep native Settings actions reachable when WebKit scrolls for the keyboard. */
.ordo-native #jurisdictionDialog {
  position:fixed;
  top:calc(var(--ordo-visible-top, 0px) + env(safe-area-inset-top, 0px) + 8px);
  right:12px;
  bottom:auto;
  left:12px;
  margin:0 auto;
  width:calc(100% - 24px);
  height:calc(var(--ordo-visible-height, 100dvh) - env(safe-area-inset-top, 0px) - max(env(safe-area-inset-bottom, 0px), var(--ordo-native-bottom-inset, 0px)) - 16px);
  max-height:calc(var(--ordo-visible-height, 100dvh) - env(safe-area-inset-top, 0px) - max(env(safe-area-inset-bottom, 0px), var(--ordo-native-bottom-inset, 0px)) - 16px);
  box-sizing:border-box;
}
.ordo-native #jurisdictionDialog .settings-panel { height:100%; min-height:0; }
.ordo-native #jurisdictionDialog .settings-header { padding:12px; }
.ordo-native #jurisdictionDialog .settings-header h2 { font-size:calc(20px * var(--ordo-text-scale, 1)); }
.ordo-native #jurisdictionDialog .settings-body { -webkit-overflow-scrolling:touch; }
/* iPhone auto-zooms focused fields below 16px and can retain that zoom on close.
   Keep text entry legible without disabling pinch zoom or larger text. */
.ordo-native input:not([type="checkbox"]):not([type="radio"]),
.ordo-native select,
.ordo-native textarea { font-size:max(16px, 1em); }

/* Upcoming supplements remain available without occupying a full phone card. */
.supplement-disclosure > summary { min-height:44px; padding:11px 0; color:var(--navy); font-size:calc(14px * var(--ordo-text-scale, 1)); font-weight:650; cursor:pointer; }
.supplement-disclosure > .supplement-list { padding-bottom:10px; }

#recentDioceses { margin-top:12px; border-top:1px solid var(--line); }
#recentDioceses h3 { margin:10px 0 4px; font-size:calc(13px * var(--ordo-text-scale, 1)); color:var(--muted); }
.recent-diocese { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); }
.recent-diocese button { min-height:44px; border:0; padding:8px; background:transparent; color:var(--navy); text-align:left; cursor:pointer; }
.recent-diocese [data-recent-diocese] { flex:1; min-width:0; font-weight:600; }
.recent-diocese [data-recent-diocese][aria-pressed="true"] { text-decoration:underline; }
.recent-diocese [data-remove-recent] { flex:0 0 auto; font-size:calc(13px * var(--ordo-text-scale, 1)); }

/* Stable, single-copy calendar choices for both website and app. */
.diocese-picker .diocese-choices { max-height:none; overflow:visible; }
.diocese-choice-row { display:flex; align-items:center; gap:4px; border-top:1px solid var(--line); }
.diocese-choice-row > label { flex:1; min-width:0; min-height:54px; margin:0; padding:10px 4px; cursor:pointer; gap:9px; }
.diocese-choice-row > label > span:not(.diocese-select-action) { flex:1; min-width:0; }
.diocese-select-action { border:1px solid var(--line); border-radius:6px; padding:8px; font-size:calc(13px * var(--ordo-text-scale, 1)); font-weight:700; color:var(--navy); }
.diocese-choice-row input:checked ~ .diocese-select-action { background:var(--navy); color:white; }
.diocese-remove { min-height:44px; padding:7px; background:none; border:0; color:var(--muted); font-size:calc(12px * var(--ordo-text-scale, 1)); cursor:pointer; }
.diocese-remove:disabled { opacity:.45; }
#recentDioceses[hidden] { display:none; }
.local-preparation { margin:12px 0; padding:12px 14px; border-left:4px solid var(--gold); background:var(--card); border-radius:8px; }
.local-preparation h2 { margin:0 0 5px; font-size:calc(14px * var(--ordo-text-scale, 1)); }
.local-preparation button { display:block; width:100%; text-align:left; border:0; background:none; padding:9px 0; color:var(--navy); cursor:pointer; }
.local-preparation small { display:block; color:var(--muted); margin-top:3px; }
.resource-dialog { max-width:460px; width:calc(100% - 32px); box-sizing:border-box; max-height:calc(100dvh - 32px); overflow:auto; padding:20px; }
.resource-dialog h2 { margin-top:0; font-size:calc(21px * var(--ordo-text-scale, 1)); }
.resource-actions { display:flex; justify-content:space-between; gap:12px; margin-top:16px; }
.resource-actions button,#closeAcknowledgments { min-height:44px; padding:9px 15px; cursor:pointer; }
.downloaded-diocese { border-top:1px solid var(--line); padding:10px 0; display:flex; align-items:center; gap:10px; }
.downloaded-diocese > span { flex:1; }
.downloaded-diocese small { display:block; color:var(--muted); }
.downloaded-diocese button { min-height:44px; }
.copyright-line { font-size:calc(11px * var(--ordo-text-scale, 1)); color:var(--muted); }
.native-source-reference { color:inherit; }
.native-supplement-unavailable { font-size:calc(12px * var(--ordo-text-scale, 1)); color:var(--muted); }

.ordo-native .resource-dialog { position:fixed; top:calc(var(--ordo-visible-top, 0px) + env(safe-area-inset-top, 0px) + 12px); bottom:auto; margin:0 auto; max-height:calc(var(--ordo-visible-height, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); }
.resource-dialog .resource-actions { position:sticky; bottom:-20px; background:var(--card); padding:10px 0; }

/* One circled plus/minus and a full-width target for each disclosure. */
:root details > summary {
  position:relative; list-style:none; cursor:pointer; min-height:44px;
  padding-right:42px;
}
:root details > summary::-webkit-details-marker { display:none; }
:root details > summary::marker { content:''; }
:root details > summary::after,.calendar-quick-toggle::after {
  content:''; position:absolute; right:14px; top:50%; width:20px; height:20px; color:#506c5d;
  box-sizing:border-box; border:1.5px solid currentColor; border-radius:50%;
  background-image:linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor);
  background-position:center; background-repeat:no-repeat; background-size:8px 1.5px,1.5px 8px;
  transform:translateY(-50%); float:none; padding:0; opacity:1; pointer-events:none;
}
:root details[open] > summary::after,.calendar-quick-toggle[aria-expanded='true']::after {
  content:''; color:#526077; background-size:8px 1.5px,0 0;
}
:root details > summary:focus-visible { outline:2px solid var(--navy); outline-offset:2px; border-radius:4px; }
.summary-action, .expand-badge, .martyrology-toggle { display:none; }
.permission-item summary { grid-template-columns:minmax(0,1fr) auto; }
.saint-profile > summary { display:block; }
.saint-summary-copy { min-width:0; line-height:1.45; word-spacing:normal; letter-spacing:normal; text-align:start; }
.saint-profile-footer { margin-right:0; }
.saint-calendar-status { display:block; margin-bottom:5px; color:#675d4d; font:600 calc(12px * var(--ordo-text-scale, 1))/1.4 system-ui,sans-serif; }
.seasonal-card.office-inline-guide { background:transparent; border-radius:0; box-shadow:none; }
.seasonal-card.office-inline-guide summary b { font-size:calc(16px * var(--ordo-text-scale, 1)); }
.seasonal-card .seasonal-grid { margin-top:8px; gap:0 20px; }
.seasonal-card .seasonal-grid div { padding:10px 0; }
.seasonal-card .seasonal-grid span { font-size:calc(13px * var(--ordo-text-scale, 1)); }
.permission-state.judgment { background:var(--caution-surface); color:var(--caution-ink); }
.saint-mass-guide { font-size:calc(13px * var(--ordo-text-scale, 1)); border-top:1px solid #e2dcc9; margin-top:8px; }
.saint-mass-guide > summary { display:flex; align-items:center; font-weight:600; }
.saint-mass-guide p { line-height:1.5; margin:7px 0; }
.saint-mass-guide small { display:block; color:var(--muted); line-height:1.4; margin-bottom:8px; }
.permissions-card .mass-supplements { margin:8px 0 0; padding:0; background:transparent; border:0; border-top:1px solid #e2dcc9; border-radius:0; }
.permissions-card .supplement-disclosure > summary { font-size:calc(12px * var(--ordo-text-scale, 1)); line-height:1.4; padding-block:8px; }
.calendar-entry { grid-template-columns:minmax(0,1fr) max(76px,calc(60px * var(--ordo-text-scale,1))); }
.calendar-entry .calendar-observances { grid-column:1 / -1; padding:0 8px 7px 54px; }
.calendar-quick { border-top:0; padding-top:0; }
.calendar-quick-toggle { position:relative; border:0; padding:6px 36px 6px 2px; font-size:calc(11px * var(--ordo-text-scale, 1)); background:transparent; }
.calendar-quick-toggle::after { right:6px; }
.calendar-quick-toggle[aria-expanded='true'] { background:transparent; }

/* Glass belongs to the native navigation layer. Reading surfaces stay opaque. */
.ordo-native { --ordo-glass:rgba(255,253,248,.88); }
.ordo-native .calendar-bottom {
  position:relative; z-index:4; margin-top:-70px; padding:9px 7px max(9px,env(safe-area-inset-bottom));
  min-height:70px; border:1px solid rgba(255,255,255,.8); border-radius:24px;
  background:var(--ordo-glass); box-shadow:0 5px 22px rgba(23,36,58,.14),inset 0 1px 0 white;
  -webkit-backdrop-filter:blur(22px) saturate(1.25); backdrop-filter:blur(22px) saturate(1.25);
}
.ordo-native .calendar-bars { padding-bottom:90px; }
.ordo-native .calendar-bottom > button:not(.close-button) { border:0; background:transparent; border-radius:16px; color:var(--navy); }
.ordo-native .calendar-bottom #showCalendarDate { background:rgba(255,255,255,.6); box-shadow:inset 0 0 0 1px rgba(255,255,255,.9); }
.ordo-native .calendar-date-sheet {
  bottom:84px; border-radius:20px; background:var(--ordo-glass);
  -webkit-backdrop-filter:blur(22px) saturate(1.25); backdrop-filter:blur(22px) saturate(1.25);
}
.ordo-native .date-nav {
  position:sticky; top:env(safe-area-inset-top,0px); z-index:5;
  margin:6px 0 9px; padding-inline:8px; border:1px solid rgba(255,255,255,.85); border-radius:22px;
  background:var(--ordo-glass); box-shadow:0 4px 16px rgba(23,36,58,.1);
  -webkit-backdrop-filter:blur(22px) saturate(1.25); backdrop-filter:blur(22px) saturate(1.25);
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  .ordo-native { --ordo-glass:var(--card); }
  .ordo-native .calendar-bottom,.ordo-native .calendar-date-sheet,.ordo-native .date-nav {
    -webkit-backdrop-filter:none; backdrop-filter:none; border-color:#a5a099;
  }
}
@media (forced-colors:active) {
  :root details > summary::after,:root details[open] > summary::after,
  .calendar-quick-toggle::after,.calendar-quick-toggle[aria-expanded='true']::after { color:ButtonText; forced-color-adjust:none; }
}
/* Optional celebrations remain distinct rows below the principal quick facts. */
.calendar-entry .calendar-observances { display:grid; gap:0; }
.calendar-entry .calendar-observance { display:block; margin:0; padding:4px 5px 4px 7px; border-top:1px solid #e3e6e9; border-left:4px solid var(--option-color,#9aa2ad); color:#424952; font-size:calc(13px * var(--ordo-text-scale, 1)); line-height:1.3; }
.calendar-entry .calendar-observance > span { display:inline; margin:0; color:inherit; font-size:calc(13px * var(--ordo-text-scale, 1)); }
.calendar-entry .calendar-observance em { display:inline; margin-right:4px; color:#697381; font:600 calc(10px * var(--ordo-text-scale, 1))/1.3 system-ui,sans-serif; }


/* Compact app chrome. Text scaling is independent of touch-target geometry. */
.ordo-native { --paper:#f2f0e9; font-size:calc(16px * var(--ordo-text-scale, 1)); }
.ordo-native .topbar { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:4px; height:auto; min-height:48px; padding:3px 9px; background:var(--paper); color:var(--navy); border:0; }
.ordo-native .topbar .ordo-brand { position:static; width:38px; height:38px; margin:auto; }
.ordo-native .topbar .calendar-layer { justify-content:center; max-width:100%; padding:7px 4px; min-height:44px; color:var(--navy); font-size:calc(13px * var(--ordo-text-scale, 1)); }
.ordo-native .topbar .layer-detail { color:#746952; }
.ordo-native .topbar .settings-trigger { position:static; width:44px; height:44px; color:#5e5141; font-size:28px; }
.ordo-native .topbar .settings-trigger:focus-visible { outline-color:var(--navy); }
.ordo-native main { padding-inline:8px; }
.ordo-native .date-nav { height:auto; min-height:60px; margin:0 0 5px; padding:6px; border-radius:18px; }
.ordo-native .date-display strong { font-size:calc(21px * var(--ordo-text-scale, 1)); }
.ordo-native .date-display #weekdayLabel { font-size:calc(11px * var(--ordo-text-scale, 1)); margin-bottom:2px; }
.ordo-native .nav-arrow { width:44px; height:44px; flex:0 0 44px; font-size:28px; }
.ordo-native .day-heading { margin-top:4px; padding:12px 13px 10px; border-radius:12px 12px 0 0; }
.ordo-native h1 { font-size:calc(clamp(26px, 5.5vw, 36px) * var(--ordo-text-scale, 1)); margin:5px 0 3px; }
.ordo-native .eyebrow { font-size:calc(11px * var(--ordo-text-scale, 1)); gap:5px; flex-wrap:wrap; }
.ordo-native .ordo-card,.ordo-native .permissions-card,.ordo-native .necrology-card,.ordo-native .insight-card,.ordo-native .reference-card { padding:10px 12px; }
.ordo-native .sortable-sections,.ordo-native .primary-column,.ordo-native .insight-grid { gap:6px; }
.ordo-native .card-heading { padding-bottom:5px; }
.ordo-native h2 { font-size:calc(21px * var(--ordo-text-scale, 1)); }
.ordo-native .insight-card h2 { margin-bottom:7px; }
.ordo-native .direction-row { padding:5px 0; gap:8px; }
.ordo-native .permission-item > summary { padding-block:7px; }
.ordo-native .saint-summary-copy { padding:8px 10px; line-height:1.45; }
.ordo-native .saint-long-bio { padding:8px 10px 10px; }
.ordo-native .saint-long-bio p,.ordo-native .insight-card p { line-height:1.5; }
.ordo-native .daily-context { gap:8px; }
.ordo-native .daily-context p + p { padding-top:8px; }
.ordo-native .seasonal-grid div,.ordo-native .office-rank-grid div { padding-block:9px; }
.ordo-native .seasonal-grid,.ordo-native .office-rank-grid { margin-top:8px; }
.ordo-native .mass-form-guide { padding-top:6px; }
.ordo-native .mass-form-guide p { margin:5px 0; line-height:1.4; }
.ordo-native .marian-selector { margin-bottom:6px; }
.ordo-native .marian-selector label { gap:4px; }
.ordo-native .missal-guide .missal-expanded dl > div { grid-template-columns:minmax(110px,45%) minmax(0,1fr); }
.text-size-control { flex-wrap:wrap; gap:8px; }
.text-size-control select { min-height:44px; padding:7px 9px; max-width:100%; border:1px solid var(--line); border-radius:7px; background:var(--card); color:var(--navy); }
.ordo-native[data-text-layout='large'] .direction-row,.ordo-native[data-text-layout='extra-large'] .direction-row { grid-template-columns:1fr; gap:3px; }
.ordo-native[data-text-layout='extra-large'] .permission-item > summary { grid-template-columns:1fr; gap:4px; }
.ordo-native[data-text-layout='extra-large'] .permission-state { justify-self:start; }
/* UIKit owns this material and the three controls on supported iPhones. */
.ordo-native-liquid-glass .calendar-bottom { visibility:hidden; pointer-events:none; background:transparent; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
/* A light, colored glass heading; UIKit replaces this fallback on iOS 26+. */
.ordo-native .day-heading { padding:0; background:transparent; box-shadow:none; color:var(--navy); }
.ordo-native .day-title-surface { display:flow-root; padding:10px 13px 9px; border-radius:14px; border:1px solid rgba(255,255,255,.8); border-left:4px solid var(--liturgical-field); background:color-mix(in srgb,var(--liturgical-field) 12%,rgba(255,253,248,.75)); color:var(--navy); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-shadow:0 3px 12px rgba(23,36,58,.07); }
.ordo-native .day-heading .eyebrow { color:#665b49; }
.ordo-native #subtitleLabel,.ordo-native #promotedMartyrology:not(:empty) { margin:5px 9px; }
.ordo-native-glass-heading .day-title-surface { background:transparent; border-color:transparent; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
.ordo-native-glass-heading #dayTitleSurface > .eyebrow,.ordo-native-glass-heading #dayTitleSurface > h1,.ordo-native-glass-heading #calendarCoverage { opacity:0; }
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) { .ordo-native .day-title-surface { background:var(--card); -webkit-backdrop-filter:none; backdrop-filter:none; } }

/* Device accessibility sizes receive the same room as explicit larger text. */
.ordo-native .calendar-bottom { min-height:max(70px,calc(70px * var(--ordo-text-scale,1))); }
.ordo-native .calendar-bars { padding-bottom:max(90px,calc(90px * var(--ordo-text-scale,1))); }

/* Reserve navigation from the first frame; reveal content only after rendering. */
html:not([data-ordo-ready='true']) main > :not(.date-nav) { visibility:hidden; }
html:not([data-ordo-ready='true']) .date-nav button { pointer-events:none; }
.calendar-bars { padding-top:0; isolation:isolate; }
.calendar-month-label { z-index:3; }
.ordo-native .calendar-bottom { border:0; border-radius:0; background:transparent; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; gap:10px; padding:5px 0 max(9px,env(safe-area-inset-bottom)); }
.ordo-native .calendar-bottom > button:not(.close-button),.ordo-native .calendar-bottom #showCalendarDate { border:1px solid rgba(255,255,255,.8); border-radius:999px; background:var(--ordo-glass); -webkit-backdrop-filter:blur(22px) saturate(1.25); backdrop-filter:blur(22px) saturate(1.25); box-shadow:0 3px 12px rgba(23,36,58,.1); }
/* A disclosure arrow stays beside its text, including in Safari's details layout. */
:root details > summary { box-sizing:border-box; }
.necrology-heading { flex-wrap:wrap; gap:6px 12px; }
.necrology-heading > div:last-child { display:flex; flex-wrap:wrap; gap:6px 12px; }

:root details > summary { padding-block:10px; }

.ordo-native .day-title-surface { box-sizing:border-box; }

.ordo-native .calendar-bottom { padding-bottom:max(9px,env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px)); }
.startup-status { margin:14px; color:var(--muted); font-size:14px; }
html:not([data-ordo-ready='true']) main > .startup-status { visibility:visible; }
html[data-ordo-ready='true'] .startup-status { display:none; }

/* Dense working layout: each disclosure owns its touch area, without a second
   padded wrapper. Text sizes and minimum interactive heights stay unchanged. */
.sortable-sections { gap:4px 10px; }
.primary-column,.insight-grid,.reference-section { gap:4px; }
.ordo-card,.permissions-card,.necrology-card,.insight-card,.reference-card { padding:10px 12px; }
.card-heading { padding-bottom:4px; }
.directions { margin-top:2px; }
.direction-row,.bottom-office .direction-row { padding-block:4px; }
.missal-guide { padding-block:1px; }
.missal-expanded { padding-top:1px; }
:root main details:not(.saint-profile) > summary { padding-block:4px; }
:root main details:not(.saint-profile):not(.permission-item) > summary { display:flex; align-items:center; }
:root main details.saint-profile > summary { padding-block:0; }
.saint-summary-copy { padding:6px 8px; }
.saint-profile-footer { padding-block:4px; }
.saint-long-bio { padding:6px 8px 8px; }
.insight-card h2 { margin-bottom:4px; }
.insight-card p,.saint-long-bio p { line-height:1.45; }
.daily-context { gap:4px; }
.daily-context p + p { padding-top:5px; }
.martyrology { margin-top:4px; }
.martyrology-list { padding:0 10px 4px; }
.office-inline-guide { margin-top:4px; padding-top:3px; }
.seasonal-card .seasonal-grid { margin-top:4px; }
.seasonal-card .seasonal-grid div,.office-rank-grid div { padding-block:6px; }
.mass-form-guide { padding-top:3px; margin-top:2px; }
.mass-form-guide p { margin-block:4px; }
.permissions-card .mass-supplements,.saint-mass-guide { margin-top:4px; }
.funeral-notice { margin-block:4px; padding-block:3px; }
.ordo-native .ordo-card,.ordo-native .permissions-card,.ordo-native .necrology-card,.ordo-native .insight-card,.ordo-native .reference-card { padding:8px 10px; }
.ordo-native .sortable-sections,.ordo-native .primary-column,.ordo-native .insight-grid { gap:4px; }
.ordo-native .card-heading { padding-bottom:4px; }
.ordo-native .direction-row { padding-block:3px; }
.ordo-native .saint-summary-copy { padding:6px 8px; }
.ordo-native .saint-long-bio { padding:6px 8px 8px; }
.ordo-native .saint-long-bio p,.ordo-native .insight-card p { line-height:1.45; }
.ordo-native .insight-card h2 { margin-bottom:4px; }
.ordo-native .daily-context { gap:4px; }
.ordo-native .daily-context p + p { padding-top:5px; }
.ordo-native .seasonal-grid div,.ordo-native .office-rank-grid div { padding-block:6px; }
.ordo-native .seasonal-grid,.ordo-native .office-rank-grid { margin-top:4px; }
.ordo-native .mass-form-guide { padding-top:3px; }
.ordo-native .mass-form-guide p { margin-block:4px; }
.ordo-native .marian-selector { padding-top:0; margin-bottom:4px; }
.ordo-native .day-title-surface { padding:8px 11px 7px; }
.ordo-native h1 { margin:3px 0 0; }

/* One card: colored day heading above a neutral Mass working area. */
:root .day-mass-card { padding:0; overflow:hidden; }
:root .day-mass-card .day-heading { margin:0; padding:0; border-radius:0; box-shadow:none; }
.day-mass-card .day-title-surface { padding:15px 16px 14px; }
.day-mass-card .day-heading h1 { margin:5px 0 0; }
.day-mass-card .mass-body { padding:10px 12px; background:var(--card); }
.day-mass-card .observance-strip { min-height:0; margin:0; border:0; border-radius:0; box-shadow:none; border-bottom:1px solid var(--line); }
.day-mass-card #promotedMartyrology:not(:empty) { margin:0; padding:0 12px; background:var(--card); color:var(--navy); }
:root.ordo-native .day-mass-card .day-title-surface { padding:10px 13px 9px; border-radius:12px 12px 0 0; border:0; border-left:4px solid var(--liturgical-field); box-shadow:none; }
.ordo-native .day-mass-card .mass-body { padding:8px 10px; }
:root.ordo-native-glass-heading .day-mass-card .day-title-surface { border-color:transparent; }

/* Biography expansion stays above the always-visible colored patronage bar. */
.saint-card { border:1px solid #d8d3ca; border-radius:5px; overflow:hidden; }
.saint-card .saint-profile { border:0; border-radius:0; }
.saint-card .saint-long-bio { margin:0; }
.saint-profile[open] > .saint-long-bio { border-top:1px solid #e3dfd5; }
.promoted-saint-card { margin-bottom:4px; }
.saint-card .promoted-saint-profile { margin-bottom:0; }

/* Compact the repeated rows as well as the surrounding cards. */
:root main .martyrology > summary,:root main .martyrology-entry > summary,:root main .martyrology-more > summary {
  min-height:32px; padding-block:2px; padding-right:32px;
}
:root main .permissions-card details > summary { min-height:36px; padding-block:3px; padding-right:34px; }
:root main .martyrology summary::after,:root main .permissions-card summary::after { right:8px; }
:root main .martyrology-heading { padding-left:9px; }
.martyrology-list { padding:0 9px; }
.martyrology-note { padding-left:0; }
.permissions-card h2 { margin-bottom:3px; }
.permissions-card .permission-name { font-family:inherit; font-size:calc(14px * var(--ordo-text-scale,1)); }
.permission-state { padding:3px 6px; }
.permissions-card .mass-supplements,.permissions-card .saint-mass-guide { margin-top:0; }
.permissions-card .mass-form-guide { margin-top:0; padding-top:0; }
.permissions-card .permission-copy { margin:2px 0 5px; }
@media (pointer:coarse) {
  :root main .permissions-card details > summary { min-height:36px; }
}
.necrology-actions { align-items:center; }
.necrology-action-separator { display:none; color:var(--muted); }
#addRemembrance:not([hidden]) + .necrology-action-separator { display:inline; }
.necrology-heading > .necrology-actions { gap:0 8px; }

/* One persistent month capsule, without a redundant Calendar title or row. */
.calendar-header { position:absolute; top:8px; left:8px; right:8px; z-index:4; border:0; padding:0; pointer-events:none; }
.calendar-header h2 { margin:0; min-width:0; max-width:100%; }
.calendar-header .calendar-month-current { display:block; width:max-content; max-width:100%; min-height:44px; margin:0; padding:8px 16px; border:1px solid rgba(255,255,255,.9); border-radius:999px; color:var(--navy); background:rgba(255,253,248,.83); box-shadow:0 2px 9px rgba(23,36,58,.09); -webkit-backdrop-filter:blur(20px) saturate(1.3); backdrop-filter:blur(20px) saturate(1.3); font:400 calc(20px * var(--ordo-text-scale,1))/1.2 Georgia,serif; white-space:nowrap; pointer-events:auto; cursor:pointer; }
.calendar-month-current:focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
.calendar-panel { padding:0; }
.calendar-bars { padding:0 8px; scroll-padding-top:64px; }
.calendar-bottom,.ordo-native .calendar-bottom { position:absolute; left:8px; right:8px; bottom:0; z-index:4; margin:0; min-height:0; padding:8px 0 max(8px,env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px)); border:0; background:transparent; pointer-events:none; }
.calendar-bottom > button { pointer-events:auto; }
.calendar-bottom > button:not(.close-button) { border-radius:999px; background:rgba(255,253,248,.88); -webkit-backdrop-filter:blur(22px) saturate(1.25); backdrop-filter:blur(22px) saturate(1.25); box-shadow:0 3px 12px rgba(23,36,58,.1); }
.ordo-native .calendar-bottom > button:not(.close-button) { min-height:max(44px,calc(44px * var(--ordo-text-scale,1))); }
.ordo-native .calendar-header { top:calc(var(--ordo-native-top-inset,0px) + 8px); }
.ordo-native .calendar-bars { padding-bottom:0; scroll-padding-top:calc(var(--ordo-native-top-inset,0px) + 64px); }
.calendar-tool-panel { position:absolute; top:64px; left:8px; right:8px; z-index:5; }
.ordo-native .calendar-tool-panel { top:calc(var(--ordo-native-top-inset,0px) + 64px); }
.calendar-date-sheet,.ordo-native .calendar-date-sheet { top:auto; bottom:84px; }
.calendar-info { position:absolute; top:64px; left:8px; right:8px; z-index:5; }
.ordo-native-glass-month .calendar-month-current { visibility:hidden; }
.day-bottom-controls { position:fixed; left:50%; transform:translateX(-50%); bottom:max(10px,env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px)); z-index:10; display:flex; align-items:center; gap:8px; max-width:calc(100% - 20px); }
.back-to-top,.day-today { display:flex; align-items:center; justify-content:center; gap:5px; min-height:44px; padding:6px 13px; border-radius:999px; border:1px solid rgba(255,255,255,.9); color:var(--navy); background:rgba(255,253,248,.88); box-shadow:0 3px 14px rgba(23,36,58,.16); -webkit-backdrop-filter:blur(22px) saturate(1.3); backdrop-filter:blur(22px) saturate(1.3); font-size:calc(12px * var(--ordo-text-scale,1)); white-space:nowrap; cursor:pointer; }
.ordo-native-glass-top .back-to-top,.ordo-native-glass-today .day-today { visibility:hidden; }
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) { .calendar-header .calendar-month-current,.back-to-top,.day-today { background:var(--card); -webkit-backdrop-filter:none; backdrop-filter:none; border-color:var(--muted); } }
/* Keep desktop side cards together rather than distributing the taller daily
   column's spare height between them. Short primer cards keep their own height. */
.insight-grid { align-items:start; }
@media (min-width:801px) {
  .sortable-sections:not(.personal-order) { grid-template-rows:min-content minmax(0,1fr); }
}
.church-switch { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin:4px 0 8px; color:var(--muted); font-size:12px; }
.church-switch[hidden] { display:none; }
.church-switch select { max-width:65%; padding:4px 6px; color:var(--ink); border:1px solid var(--line); border-radius:5px; background:var(--paper,#fff); font:inherit; }
.church-actions { display:flex; align-items:center; gap:16px; margin:4px 0 10px; }
.church-actions small { margin-left:auto; color:var(--muted); }
.church-actions button:disabled { opacity:.45; cursor:default; }
.diocesan-invitation, .publisher-contact { font-size:12px; line-height:1.45; color:var(--muted); }
.diocesan-invitation { margin:8px 0; }
.publisher-contact { margin:8px 0 16px; text-align:center; }
.diocesan-invitation a, .publisher-contact a, #contactSettings a { color:inherit; text-decoration:underline; }

/* Let the title scroll with its card. Native glass belongs to the sticky date
   controls, where it cannot drift away from the document on a return scroll. */
:root.ordo-native .day-mass-card .day-title-surface {
  background:var(--liturgical-field); color:var(--liturgical-field-text);
  border-left:0; -webkit-backdrop-filter:none; backdrop-filter:none;
}
.ordo-native .day-title-surface .eyebrow { color:var(--liturgical-field-muted); }
/* Three independent surfaces: circles for navigation and an oval for the date. */
.ordo-native .date-nav {
  padding:0; gap:6px; border:0; background:transparent; box-shadow:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.ordo-native .date-nav :is(.nav-arrow,.date-display) {
  background:var(--card); border:1px solid var(--line);
  box-shadow:0 2px 9px rgba(23,36,58,.07);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  transition:background-color .12s ease,box-shadow .12s ease;
}
.ordo-native .date-nav .today-button { display:none; }
.ordo-native .date-display {
  min-width:0; min-height:48px; flex:1; align-self:stretch; padding:5px 8px;
  display:flex; flex-direction:column; justify-content:center; border-radius:999px;
}
.ordo-native.ordo-date-scrolled .date-nav :is(.nav-arrow,.date-display) {
  background:var(--ordo-glass); -webkit-backdrop-filter:blur(22px) saturate(1.25);
  backdrop-filter:blur(22px) saturate(1.25);
}
.ordo-native-glass-date .date-nav > * { visibility:hidden; }
.ordo-native .day-bottom-controls { bottom:max(4px,calc(max(env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px)) - 16px)); }
.martyrology-entry-meta { color:#69716d; font-size:calc(12px * var(--ordo-text-scale,1)); font-weight:400; }
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  .ordo-native.ordo-date-scrolled .date-nav :is(.nav-arrow,.date-display) { background:var(--card); -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (prefers-reduced-motion:reduce) { .ordo-native .date-nav > button { transition:none; } }

/* Reserve the whole date control in normal flow before it becomes sticky.
   WKWebView already provides the day page's system safe-area inset. */
.ordo-native .date-nav { top:0; margin-bottom:12px; flex-shrink:0; }
.ordo-native main { padding-bottom:calc(76px + max(env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px))); }
.ordo-native .back-to-top { min-width:128px; padding:6px 14px; line-height:1.2; }
.ordo-native .publisher-footer { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; padding-top:10px; }
.ordo-native .publisher-review > summary { justify-content:space-between; }
.ordo-native .publisher-footer .copyright-line { margin:0; }
.ordo-native .publisher-contact { margin:6px 0 10px; text-wrap:balance; }

/* Alternatives are compact actions after the selected Mass, on the same paper.
   The colored left bar identifies each alternative without another heading band. */
:root .day-mass-card .observance-strip { display:block; margin:7px 0 0; border:0; border-top:1px solid #dedad1; background:transparent; overflow:visible; }
:root .day-mass-card .strip-choices { display:flex; flex-direction:column; gap:0; }
:root .day-mass-card .strip-choice { min-height:44px; padding:7px 10px 7px 14px; border:0; border-bottom:1px solid #e7e3da; border-radius:0; background:transparent; box-shadow:none; }
:root .day-mass-card .strip-choice:last-child { border-bottom:0; }
:root .day-mass-card .strip-choice::before { width:4px; height:auto; border-radius:0; top:0; bottom:0; transform:none; }
:root .day-mass-card .strip-choice b { font:500 calc(13px * var(--ordo-text-scale,1))/1.35 system-ui,sans-serif; }
:root .day-mass-card .choice-rank { font:500 calc(11px * var(--ordo-text-scale,1))/1.35 system-ui,sans-serif; letter-spacing:0; text-transform:none; white-space:normal; }
:root .day-mass-card .strip-choice:focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
:root .day-mass-card .strip-choice:hover { background:var(--suggestion-surface); }

/* Shared surfaces and an explicit divider for every expanded saint profile. */
.permissions-card { background:var(--card); }
:root .saint-profile[open] > .saint-long-bio { border-top:1px solid #c9c3b7; padding-top:8px; }
.companion-member { margin:0; padding:7px 0; border-bottom:1px solid #e5e0d7; }
.companion-member:first-child { padding-top:0; }
.companion-member:last-child { border-bottom:0; padding-bottom:0; }
.companion-member p { margin:3px 0 0; }
.companion-member-meta { color:var(--muted); font-size:calc(12px * var(--ordo-text-scale,1)); }

/* The document fills the display. Controls keep their safe-area positions while
   scrolled content can continue behind the clock and camera. */
.ordo-native body { padding-top:var(--ordo-native-top-inset,env(safe-area-inset-top,0px)); }
.ordo-native .date-nav { top:var(--ordo-native-top-inset,env(safe-area-inset-top,0px)); }
.ordo-native::before { content:""; position:fixed; inset:0 0 auto; height:var(--ordo-native-top-inset,0px); z-index:6; pointer-events:none; }
.ordo-native.ordo-date-scrolled::before { background:rgba(242,240,233,.42); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }

/* One opaque capsule separates smoothly into the three glass controls. */
.ordo-native .date-nav { gap:0; border:1px solid var(--line); border-radius:28px; background:var(--card); box-shadow:0 2px 9px rgba(23,36,58,.07); transition:gap .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .22s ease; }
.ordo-native .date-nav :is(.nav-arrow,.date-display) { background:transparent; border-color:transparent; box-shadow:none; transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease; }
.ordo-native.ordo-date-scrolled .date-nav { gap:6px; background:transparent; border-color:transparent; box-shadow:none; }
.ordo-native.ordo-date-scrolled .date-nav :is(.nav-arrow,.date-display) { background:var(--ordo-glass); border-color:var(--line); box-shadow:0 2px 9px rgba(23,36,58,.07); }

/* Reusable two-state Settings rows, preserving native form/VoiceOver behavior. */
.setting-toggle { min-height:52px; justify-content:space-between; }
.setting-toggle > span { order:0; flex:1; min-width:0; }
.setting-choice.setting-toggle > input { order:1; appearance:none; -webkit-appearance:none; position:relative; flex:0 0 51px; width:51px; height:31px; margin:0; padding:0; border:1px solid #cbcdd0; border-radius:999px; background:#dedfe1; cursor:pointer; transition:background-color .18s ease,border-color .18s ease; }
.setting-toggle > input::before { content:""; position:absolute; top:1px; left:1px; width:27px; height:27px; border-radius:50%; background:white; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .18s ease; }
.setting-choice.setting-toggle > input:checked { background:#27834e; border-color:#27834e; }
.setting-toggle > input:checked::before { transform:translateX(20px); }
.setting-toggle > input:focus-visible { outline:3px solid var(--navy); outline-offset:3px; }
.setting-toggle > input:disabled { opacity:.5; cursor:default; }
@media (prefers-reduced-motion:reduce) { .ordo-native .date-nav,.ordo-native .date-nav > button,.setting-toggle > input,.setting-toggle > input::before { transition:none; } }
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) { .ordo-native.ordo-date-scrolled::before { background:var(--paper); -webkit-backdrop-filter:none; backdrop-filter:none; } }
@media (forced-colors:active) { .setting-choice.setting-toggle > input { background:Canvas; border:2px solid ButtonText; } .setting-choice.setting-toggle > input:checked { background:Highlight; border-color:Highlight; } .setting-toggle > input::before { background:ButtonText; } .setting-toggle > input:checked::before { background:HighlightText; } }

.companion-more > summary { border-top:1px solid var(--line); font-weight:600; }

/* Native dialogs share the visual viewport and the separately supplied safe area.
   visualViewport already ends above the keyboard; do not size against 100vh. */
.ordo-native { --ordo-dialog-safe-top:max(var(--ordo-visible-top,0px),var(--ordo-native-top-inset,env(safe-area-inset-top,0px))); --ordo-dialog-height:calc(var(--ordo-visible-height,100dvh) + var(--ordo-visible-top,0px) - var(--ordo-dialog-safe-top) - max(env(safe-area-inset-bottom,0px),var(--ordo-native-bottom-inset,0px)) - 16px); }
.ordo-native #jurisdictionDialog,.ordo-native .resource-dialog { top:calc(var(--ordo-dialog-safe-top) + 8px); max-height:var(--ordo-dialog-height); }
.ordo-native #jurisdictionDialog { height:var(--ordo-dialog-height); }
.ordo-native #jurisdictionDialog .settings-header { padding:10px 14px 8px; }
.ordo-native #jurisdictionDialog .settings-body { padding:10px 14px 16px; scroll-padding:12px 0 20px; }
.ordo-native #jurisdictionDialog .settings-actions { padding:8px 14px; }
.ordo-native #churchCalendarSettings .setting-choice { flex-direction:column; align-items:stretch; gap:6px; }
.ordo-native #churchMode { width:100%; min-height:44px; }
.ordo-native .settings-church-shortcut { display:block; margin:10px 0 0; min-height:44px; padding:8px 0; font-weight:650; text-align:left; }
.ordo-native .settings-church-shortcut[hidden] { display:none; }

/* A smaller resting capsule pulls apart and contracts into the glass controls. */
.ordo-native .date-nav { min-height:56px; border-radius:28px; transition:min-height .24s cubic-bezier(.2,.75,.25,1),gap .24s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ordo-native .date-display { min-height:50px; padding:3px 8px; transition:min-height .24s ease,padding .24s ease; }
.ordo-native .date-display strong { font-size:calc(20px * var(--ordo-text-scale,1)); transition:font-size .24s ease; }
.ordo-native .date-display #weekdayLabel { font-size:calc(10px * var(--ordo-text-scale,1)); transition:font-size .24s ease; }
.ordo-native.ordo-date-scrolled .date-nav { min-height:46px; }
.ordo-native.ordo-date-scrolled .date-display { min-height:44px; padding:2px 6px; }
.ordo-native.ordo-date-scrolled .date-display strong { font-size:calc(18px * var(--ordo-text-scale,1)); }
.ordo-native.ordo-date-scrolled .date-display #weekdayLabel { font-size:calc(9px * var(--ordo-text-scale,1)); margin-bottom:0; }
.ordo-native .date-nav button:focus { outline:none; }
.ordo-native.ordo-keyboard-navigation .date-nav button:focus-visible { outline:2px solid var(--navy); outline-offset:-4px; }
@media (prefers-reduced-motion:reduce) { .ordo-native .date-nav,.ordo-native .date-nav * { transition:none; } }

.martyrology-calendar-note { display:block; margin-top:2px; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); font-weight:500; }
/* Native selects must not impose their longest option's width on the editor. */
.ordo-native #jurisdictionDialog fieldset { min-inline-size:0; max-width:100%; }
.ordo-native #churchCalendarSettings .diocese-search { grid-template-columns:minmax(0,1fr); }
.ordo-native #churchCalendarSettings :is(input,select) { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.ordo-native #jurisdictionDialog .settings-actions .save-settings { min-height:44px; }
.ordo-native #settingsTitle:focus { outline:none; }

.church-particulars-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; margin:8px 0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--navy); text-align:left; cursor:pointer; }
.church-particulars-entry[hidden] { display:none; }
.church-particulars-entry b { display:block; font-size:calc(14px * var(--ordo-text-scale,1)); }
.church-particulars-entry small { display:block; margin-top:3px; color:var(--muted); font-size:calc(12px * var(--ordo-text-scale,1)); }
.church-particulars-entry > span[aria-hidden] { font-size:22px; }
.church-particulars-entry:focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
.martyrology-calendar-note { color:var(--navy); font-weight:600; }
.church-pastoral { margin:8px 0; padding:10px 12px; border:1px solid var(--line,#d6d3ca); border-radius:8px; font-size:.82rem; }
.church-pastoral p { margin:5px 0; line-height:1.4; }
.church-pastoral-choice { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.church-pastoral-choice small { display:block; color:var(--muted); }
.church-pastoral-choice button { flex-shrink:0; color:var(--ink,#222); }
.enabled-churches .setting-choice { margin:0; padding:7px 0; border-bottom:1px solid var(--line,#ddd); }
.enabled-churches .setting-choice input { flex-shrink:0; }
#churchNotices button span { display:block; font-size:.85rem; margin-top:3px; }

/* Keep the celebration color visible when no patronage footer is supplied. */


/* Church enable switches retain the shared horizontal Settings layout. */
.ordo-native #churchCalendarSettings .setting-choice.setting-toggle { flex-direction:row; align-items:center; }
.ordo-native #churchCalendarSettings .setting-toggle > input { width:51px; max-width:51px; flex-basis:51px; }

/* Saint footers use the same normal text bar whether patronage is known or pending. */
.saint-profile-footer { min-height:24px; box-sizing:border-box; }
.church-title-field,.anniversary-field { margin:10px 0; }
.setting-field-label { display:block; margin-bottom:5px; color:var(--muted); font-size:calc(13px * var(--ordo-text-scale,1)); }
.church-title-trigger,.anniversary-trigger { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.church-title-results { max-height:240px; overflow-y:auto; overscroll-behavior:contain; border-block:1px solid var(--line); }
.church-title-results button { display:block; width:100%; min-height:44px; padding:8px 10px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--card); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.church-title-results button[aria-pressed=true] { background:var(--card); box-shadow:inset 3px 0 var(--navy); }
.church-title-results button b { font-weight:600; font-size:calc(13px * var(--ordo-text-scale,1)); }
.church-title-results button small { display:block; margin-top:2px; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); }
.anniversary-dialog { width:min(370px,calc(100vw - 24px)); padding:14px; border:1px solid var(--line); border-radius:20px; background:var(--card); }
.anniversary-dialog header,.anniversary-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.anniversary-dialog h2 { margin:0; font-size:22px; }
.anniversary-dialog header button { min-width:44px; min-height:44px; border:0; background:transparent; color:var(--ink); font-size:26px; }
.anniversary-selects { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; margin:12px 0; }
.anniversary-selects label { display:grid; gap:6px; }
.anniversary-selects select { width:100%; min-height:44px; padding:6px; font:inherit; }
.anniversary-dialog .save-settings { min-height:44px; padding:8px 16px; }
.ordo-native #churchCalendarSettings .cathedral-confirm { flex-direction:row; align-items:center; }

.day-today > span { font-size:1.45em; line-height:1; }
.church-title-results button { padding-block:7px; text-align:left; }
.church-title-results button b { line-height:1.35; }
#churchTitlePicker .diocese-search { margin-top:6px; }
@media (max-height:600px) { .church-title-results { max-height:180px; } }

/* Current calendar and recent dioceses stay visible outside the search. */
.diocese-quick-choices { margin:6px 0; }
.diocese-picker .diocese-choices { max-height:280px; overflow-y:auto; }
.selection-choice { position:relative; }
.selection-choice > input { position:absolute; width:1px; height:1px; opacity:0; }
.selection-choice:focus-within { outline:2px solid var(--navy); outline-offset:2px; border-radius:6px; }
.selection-choice > span:not(.diocese-select-action) { flex:1; min-width:0; }
.selection-choice input:checked ~ .diocese-select-action { background:var(--navy); color:white; }
.necrology-choice-row { gap:8px; }
.necrology-choice-row .selection-choice { margin:0; min-height:54px; padding:8px 0; }
.necrology-row-actions { display:flex; align-items:center; gap:8px; }
.necrology-row-actions > .small-link { min-height:44px; max-width:106px; line-height:1.2; }
:is(.ordo-native .selection-choice,.necrology-toggle) > input { position:relative; order:2; appearance:none; -webkit-appearance:none; flex:0 0 51px; width:51px; height:31px; opacity:1; margin:0; border:1px solid #cbcdd0; border-radius:999px; background:#dedfe1; cursor:pointer; }
:is(.ordo-native .selection-choice,.necrology-toggle) > input::before { content:""; position:absolute; top:1px; left:1px; width:27px; height:27px; border-radius:50%; background:white; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .18s ease; }
:is(.ordo-native .selection-choice,.necrology-toggle) > input:checked { background:#27834e; border-color:#27834e; }
:is(.ordo-native .selection-choice,.necrology-toggle) > input:checked::before { transform:translateX(20px); }
:is(.ordo-native .selection-choice,.necrology-toggle) > .diocese-select-action { display:none; }
@media(max-width:480px) {
  .necrology-choice-row { display:block; padding-bottom:5px; }
  .necrology-row-actions { justify-content:flex-end; }
  .necrology-row-actions > .small-link { max-width:none; }
  .diocese-choice-row > label { min-height:48px; padding-block:8px; }
}
@media(prefers-reduced-motion:reduce) { :is(.ordo-native .selection-choice,.necrology-toggle) > input::before { transition:none; } }
@media(forced-colors:active) { .selection-choice > input { position:relative; width:20px; height:20px; opacity:1; } }

/* Destructive actions stay out of the normal reading/selection layout. */
.selection-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; }
.selection-heading > p { margin:0; }

.removable-row { position:relative; }
.removable-content { flex:1; min-width:0; }
.removable-row > .remove-action { display:none; }

.necrology-choice-row > .necrology-content { display:flex; align-items:center; gap:8px; }
.ordo-native .removable-row { overflow:hidden; touch-action:pan-y; }
.ordo-native .removable-content { position:relative; z-index:1; background:var(--card); transform:translateX(var(--delete-drag,0px)); transition:transform .18s ease; }
.ordo-native .swipe-open > .removable-content { transform:translateX(var(--delete-drag,-80px)); }
.ordo-native .removable-row.swiping > .removable-content { transition:none; }
.ordo-native .removable-row > .remove-action:not([hidden]) { display:block; position:absolute; z-index:0; inset:0 0 0 auto; width:80px; max-width:80px; margin:0; padding:8px 4px; border:0; border-radius:0; background:#a33238; color:white; visibility:hidden; font-size:calc(12px * var(--ordo-text-scale,1)); }
.ordo-native :is(.swipe-open,.swiping) > .remove-action:not([hidden]) { visibility:visible; }


@media(max-width:480px) { .necrology-choice-row > .necrology-content { display:block; } }
@media(prefers-reduced-motion:reduce) { .ordo-native .removable-content { transition:none; } }

/* One row: wrapping name, reorder arrows, then the far-right switch. */
.necrology-choice-row,.ordo-native .necrology-choice-row { display:flex; padding:0; }
.necrology-choice-row > .necrology-content,.ordo-native .necrology-choice-row > .necrology-content { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:5px; min-height:58px; padding:6px 0; }
.necrology-name { min-width:0; cursor:pointer; }
.necrology-name b,.necrology-name small { display:block; overflow-wrap:anywhere; }
.necrology-name b { font-size:calc(14px * var(--ordo-text-scale,1)); line-height:1.25; }
.necrology-name small { margin-top:2px; font-size:calc(11px * var(--ordo-text-scale,1)); color:var(--muted); line-height:1.3; }
.necrology-content .necrology-order { display:flex; gap:0; }
.necrology-content .necrology-order button { width:40px; min-width:40px; min-height:44px; padding:4px; border:0; background:none; color:var(--navy); font-size:18px; }
.necrology-content .necrology-order button:disabled { opacity:.3; }
.necrology-content .necrology-toggle { border:0; min-height:44px; padding:0; margin:0; gap:0; }
.necrology-caption { margin:0 0 6px; }
.selection-management { margin:6px 0; font-size:calc(12px * var(--ordo-text-scale,1)); }
.selection-management > summary { min-height:36px; display:flex; align-items:center; font-weight:600; }
.management-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px solid var(--line); }
.management-row > span { min-width:0; overflow-wrap:anywhere; }
.management-row > button { min-height:44px; flex-shrink:0; max-width:55%; line-height:1.3; }
.ordo-native .settings-church-shortcut { margin:2px 0 6px; padding:4px 0; min-height:32px; }
.diocese-picker { padding:8px; margin:6px 0; }
.diocese-picker > summary { min-height:36px; display:flex; align-items:center; justify-content:space-between; }
#nativeDownloads > button { min-height:44px; }

/* Settings uses one grouped-row language for preferences and occasional editors. */
#jurisdictionDialog { background:#f2f2f5; }
#jurisdictionDialog .settings-header { padding:14px 16px 12px; background:var(--card); }
#jurisdictionDialog .settings-header h2 { margin:0; font-size:calc(24px * var(--ordo-text-scale,1)); }
#jurisdictionDialog .settings-body,.ordo-native #jurisdictionDialog .settings-body { background:#f2f2f5; padding:12px 12px 18px; }
#jurisdictionDialog .settings-group { margin:16px 0 0; padding:0; min-width:0; }
#jurisdictionDialog .settings-group:first-child { margin-top:2px; }
#jurisdictionDialog .settings-group > legend { padding:0 10px; margin-bottom:6px; color:#696a70; font-size:calc(11px * var(--ordo-text-scale,1)); font-weight:650; letter-spacing:.04em; }
.settings-group-body { padding:0 12px; border:1px solid #dedee3; border-radius:12px; background:var(--card); }
#jurisdictionDialog .setting-choice { min-height:48px; box-sizing:border-box; padding:8px 0; gap:12px; border-color:#e7e7eb; }
#jurisdictionDialog .setting-choice b { font-size:calc(14px * var(--ordo-text-scale,1)); font-weight:600; line-height:1.3; }
#jurisdictionDialog .setting-choice small { font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.35; margin-top:2px; }
#jurisdictionDialog .setting-choice > span { min-width:0; }
#jurisdictionDialog .setting-toggle > input { flex-shrink:0; margin-left:auto; }
#jurisdictionDialog .settings-group-body > :first-child { border-top:0; }
#jurisdictionDialog .diocese-picker { margin:0; padding:0; border:0; border-radius:0; background:transparent; }
#jurisdictionDialog .diocese-picker > summary,#jurisdictionDialog .settings-disclosure > summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; box-sizing:border-box; padding:9px 0; gap:12px; font-size:calc(14px * var(--ordo-text-scale,1)); font-weight:600; line-height:1.3; cursor:pointer; }
#jurisdictionDialog .settings-disclosure { margin:0; border:0; border-top:1px solid #e7e7eb; padding:0; color:var(--ink); background:transparent; }
#jurisdictionDialog .settings-disclosure small { display:block; margin-top:2px; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); font-weight:400; }
#jurisdictionDialog .settings-disclosure-body { padding:0 0 10px; }
#jurisdictionDialog .settings-link-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; box-sizing:border-box; min-height:48px; border:0; border-top:1px solid #e7e7eb; border-radius:0; background:transparent; padding:9px 0; font:inherit; font-size:calc(14px * var(--ordo-text-scale,1)); color:var(--navy); text-align:left; cursor:pointer; }
#jurisdictionDialog .settings-link-row > span:first-child { min-width:0; }
#jurisdictionDialog .settings-link-row small { display:block; margin-top:2px; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.35; }
#jurisdictionDialog .settings-link-row > span[aria-hidden] { font-size:23px; color:#7b8088; }
#jurisdictionDialog .settings-help-link { border:1px solid #dedee3; border-radius:12px; background:var(--card); margin-top:16px; padding:9px 12px; }
#jurisdictionDialog .diocese-quick-choices { margin:0; border:0; }
#jurisdictionDialog .diocese-choice-row { border-top:1px solid #e7e7eb; }
#jurisdictionDialog .diocese-choice-row > label { border:0; padding:8px 0; min-height:52px; }
#jurisdictionDialog .diocese-choice-row small { font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.3; }
#jurisdictionDialog .diocese-choice-row b { font-weight:600; }
#jurisdictionDialog .necrology-caption { padding:9px 0 0; margin:0; font-size:calc(11px * var(--ordo-text-scale,1)); }
#jurisdictionDialog .necrology-choice-row { gap:0; border-color:#e7e7eb; }
#jurisdictionDialog .necrology-content { gap:8px; min-height:56px; padding:6px 0; }
#jurisdictionDialog .necrology-name { margin:0; padding:0; }
#jurisdictionDialog .necrology-name b { font-weight:600; }
#jurisdictionDialog .necrology-order { gap:4px; }
#jurisdictionDialog :is(.necrology-order,.order-control) button { flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; margin:0; padding:4px; border:1px solid #d8d5cd; border-radius:7px; background:var(--card); color:var(--navy); font-size:18px; line-height:1; cursor:pointer; }
#jurisdictionDialog :is(.necrology-order,.order-control) button:disabled { opacity:.3; }
#jurisdictionDialog .necrology-content .necrology-toggle { padding:0; min-height:44px; margin:0; }
#jurisdictionDialog .order-control { min-height:48px; padding:5px 0; gap:4px; border-color:#e7e7eb; }
#jurisdictionDialog .order-control span { min-width:0; line-height:1.3; }
#jurisdictionDialog .diocese-search { margin:10px 0; }
#jurisdictionDialog .selection-management { margin:0; }
#jurisdictionDialog .selection-management > summary { min-height:44px; }
#jurisdictionDialog .church-particulars-entry { min-height:48px; padding:9px 0; border:0; border-top:1px solid #e7e7eb; border-radius:0; background:transparent; }
#jurisdictionDialog .church-actions { gap:10px; flex-wrap:wrap; }
#jurisdictionDialog #churchSettingsNote:empty,#jurisdictionDialog #calendarDownloadStatus:empty { display:none; }
#jurisdictionDialog #churchSettingsNote { margin:6px 0; font-size:calc(11px * var(--ordo-text-scale,1)); }
#jurisdictionDialog #nativeDownloads { margin:10px 0; }
#jurisdictionDialog #nativeDownloads legend { padding:0; }
#jurisdictionDialog #offlineCalendarSettings { margin:0; padding:0; border:0; border-top:1px solid #e7e7eb; }
#jurisdictionDialog #offlineCalendarSettings > summary { min-height:48px; display:flex; align-items:center; padding:9px 0; box-sizing:border-box; font-size:calc(14px * var(--ordo-text-scale,1)); }
#jurisdictionDialog #offlineCalendarSettings > button { display:block; width:100%; min-height:44px; border:0; border-top:1px solid #e7e7eb; border-radius:0; text-align:left; padding:8px 0; color:var(--navy); }
#jurisdictionDialog .settings-actions { padding:10px 12px; }
#calendarReference,#calendarReference details,#dioceseInfo { scroll-margin-top:calc(var(--ordo-native-top-inset,0px) + 85px); }
#calendarReference > details { margin:8px 0; }
#calendarReference > details > summary { font-size:calc(14px * var(--ordo-text-scale,1)); }
#calendarReference > details p { font-size:calc(13px * var(--ordo-text-scale,1)); }
#calendarReference .reference-nav { display:block; min-height:44px; padding:8px 0; text-align:left; }
#liturgicalRankGuide { scroll-margin-top:calc(var(--ordo-native-top-inset,0px) + 85px); }
#jurisdictionDialog #nativeTextSizeControl[hidden] + .setting-choice { border-top:0; }
#jurisdictionDialog .text-size-control > span { flex:1; }
#jurisdictionDialog .text-size-control > select { margin-left:auto; width:auto; max-width:65%; }

/* Church controls are one list; only the chosen editor expands. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#jurisdictionDialog .church-scope-caption { margin:0 0 7px; font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.35; }
.church-setting-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; border-bottom:1px solid #e7e7eb; }
.church-name-button { display:block; min-height:52px; min-width:0; width:100%; padding:8px 0; border:0; border-radius:0; background:transparent; text-align:left; font:inherit; color:var(--ink); cursor:pointer; }
.church-name-button b { display:block; font-size:calc(14px * var(--ordo-text-scale,1)); line-height:1.3; font-weight:600; overflow-wrap:anywhere; }
.church-name-button small { display:block; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.3; margin-top:2px; }
#jurisdictionDialog .church-row-toggle { min-height:44px; border:0; padding:0; margin:0; }
#jurisdictionDialog .settings-add-row { display:block; width:100%; min-height:44px; padding:8px 0; border:0; background:transparent; text-align:left; font:inherit; font-size:calc(14px * var(--ordo-text-scale,1)); color:var(--green); font-weight:600; cursor:pointer; }
.church-capacity { display:none; }
#jurisdictionDialog .church-editor { border-top:1px solid #e7e7eb; }
#jurisdictionDialog .church-editor > summary { color:var(--navy); }
#jurisdictionDialog .church-editor[hidden] { display:none; }
#jurisdictionDialog .church-delete { color:#a52b32; min-height:44px; }
#jurisdictionDialog .church-editor .diocese-search { font-size:calc(12px * var(--ordo-text-scale,1)); }
#jurisdictionDialog .church-editor :is(input:not([type=checkbox],[type=hidden]),select,.church-title-trigger,.anniversary-trigger) { min-height:44px; font-size:calc(14px * var(--ordo-text-scale,1)); }
#jurisdictionDialog .church-editor .setting-help { margin:6px 0; font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.4; }
#jurisdictionDialog .settings-help-group { margin-top:16px; }
#calendarReference,#jurisdictionDialog #calendarReference { margin:0; padding:0; border:0; background:transparent; }
#calendarReference > summary { min-height:48px; display:flex; align-items:center; padding:9px 0; }
#calendarReference > details,#calendarReference .missal-guide { padding:0; margin:0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; }
#calendarReference > details > summary,#calendarReference .rank-guide-details > summary { min-height:42px; padding:7px 0; box-sizing:border-box; font-size:calc(13px * var(--ordo-text-scale,1)); display:flex; align-items:center; gap:8px; }
#calendarReference :is(p,li),#jurisdictionDialog .compact-diocesan-information :is(p,li) { font-size:calc(12px * var(--ordo-text-scale,1)); line-height:1.45; margin:7px 0; }
#calendarReference .rank-guide-caption { font-size:calc(12px * var(--ordo-text-scale,1)); }
#calendarReference h3,#jurisdictionDialog .compact-diocesan-information h3 { font-size:calc(13px * var(--ordo-text-scale,1)); margin:12px 0 4px; }
#jurisdictionDialog .compact-diocesan-information .diocese-source-row { margin:0; padding:0; border:0; border-top:1px solid #e7e7eb; }
#jurisdictionDialog .compact-diocesan-information .diocese-source-row > summary { display:flex; flex-wrap:wrap; column-gap:5px; align-items:center; min-height:42px; padding:6px 0; font-size:calc(12px * var(--ordo-text-scale,1)); line-height:1.3; }
#jurisdictionDialog .compact-diocesan-information .diocese-source-row > summary b { font-size:inherit; }
#jurisdictionDialog .compact-diocesan-information .diocese-source-row > summary span { color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); }
#jurisdictionDialog .compact-diocesan-information .diocesan-invitation { font-size:calc(11px * var(--ordo-text-scale,1)); }
.rank-guide-details { border-top:1px solid var(--line); margin-top:10px; }
.rank-guide-details > summary { display:flex; align-items:center; min-height:44px; cursor:pointer; }
.rank-guide-details p { font-size:calc(13px * var(--ordo-text-scale,1)); }
.church-date-choices { margin:0 0 5px; border-bottom:1px solid var(--line); font-size:calc(12px * var(--ordo-text-scale,1)); }
.church-date-choices summary { display:flex; align-items:center; min-height:36px; gap:6px; }
.church-date-choices summary small { color:var(--muted); font-size:inherit; }
.church-date-choices button { display:block; width:100%; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; color:var(--navy); padding:9px 0; min-height:44px; text-align:left; font:inherit; cursor:pointer; }
.church-date-choices button[aria-pressed=true] { font-weight:650; color:var(--green); }
.publisher-help { min-height:44px; margin:8px 0; }

/* Keep programmatic field/reference navigation inside the body scroller. */
@supports (overflow:clip) { #jurisdictionDialog { overflow:clip; } }

/* Source-backed church discovery shares the existing compact Settings controls. */
#churchCatalogPicker{margin-bottom:18px}
#churchCatalogHeading{font-size:1rem;margin:0 0 10px}
.church-catalog-results button{display:grid;gap:4px;text-align:left}
.church-catalog-results small{font-size:.78rem;line-height:1.4;opacity:.8;white-space:normal}
.church-catalog-results button:disabled{opacity:.5}
.church-catalog-details{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;overflow-wrap:anywhere}
.church-catalog-details h3{font-size:1rem;margin:0 0 6px}
.church-catalog-details p,.church-catalog-details li{font-size:.82rem;line-height:1.5}
.church-catalog-details ul{padding-left:18px}

/* Personal church settings: compact controls, readable fields and explicit completion. */
.church-editor-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-top:12px; margin-top:8px; border-top:1px solid #e1ded5; }
#jurisdictionDialog .church-editor-actions .settings-add-row { flex:1 1 180px; margin:0; padding:8px 0; }
#jurisdictionDialog .church-done { min-height:44px; padding:8px 14px; background:var(--navy); color:var(--card); border-radius:10px; }
#jurisdictionDialog .clear-church-date { padding:5px 0; min-height:36px; }
.ordo-native #jurisdictionDialog :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) { font-size:max(16px,calc(16px * var(--ordo-text-scale,1))); }

#jurisdictionDialog #churchEditorTitle { min-width:0; padding-right:28px; overflow-wrap:anywhere; }

/* Keep optional Mass choices together; advance funeral guidance sits at the foot. */
.permissions-card .weekday-votive-panel > .weekday-votive-suggestion { background:var(--card); border-left:4px solid var(--votive-color); }
#funeralPlanning { margin-top:8px; }
#funeralPlanning .funeral-upcoming { margin:0; padding:4px 10px; border:0; border-left:4px solid var(--planning-line); border-radius:6px; background:var(--planning-surface); color:var(--planning-ink); }
#funeralPlanning .funeral-upcoming > summary { font-weight:400; line-height:1.4; }
#funeralPlanning .funeral-upcoming > summary b { font-weight:650; }
#funeralPlanning .funeral-upcoming :is(p,ul) { margin:6px 0; }

.permission-reading-option { display:block; margin-top:6px; }

/* A quiet About action beside Settings; source status stays under each name. */
.about-trigger { position:absolute; right:calc(clamp(18px,4vw,56px) + 48px); min-height:44px; padding:0 8px; border:0; border-radius:7px; background:transparent; color:inherit; font-size:calc(13px * var(--ordo-text-scale,1)); cursor:pointer; }
.about-trigger:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.topbar { display:grid; grid-template-columns:44px minmax(0,1fr) auto 44px; gap:4px; }
.topbar .ordo-brand,.topbar .about-trigger,.topbar .settings-trigger { position:static; }
.topbar .calendar-layer { min-width:0; max-width:100%; justify-content:center; }
#jurisdictionLabel { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.diocesan-source-line { display:block; font-weight:400; line-height:1.35; }
#jurisdictionDialog .independent-reference { margin:6px 0 10px; color:var(--muted); font-size:calc(11px * var(--ordo-text-scale,1)); line-height:1.4; }
.independent-reference .small-link { display:inline; font-size:inherit; }
.about-dialog p { line-height:1.5; }
.about-heading { position:sticky; top:-20px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0 8px; margin-top:-14px; background:var(--card); z-index:1; }
.about-heading h2 { margin:0; }
.about-heading button { flex-shrink:0; min-height:44px; padding:0 8px; }
.about-dialog > details { margin:14px 0; font-size:calc(13px * var(--ordo-text-scale,1)); }
.ordo-native .topbar { grid-template-columns:44px minmax(0,1fr) auto 44px; }
.ordo-native .topbar .about-trigger { position:static; padding:0 5px; font-size:calc(12px * var(--ordo-text-scale,1)); }
.ordo-native .topbar .calendar-layer { max-width:100%; }
@media(max-width:600px) { .about-trigger { padding:0 5px; } .topbar { grid-template-columns:40px minmax(0,1fr) auto 40px; } .ordo-native .topbar { grid-template-columns:44px minmax(0,1fr) auto 44px; } }
