/* Saint Bede Lector Guild — shared styles */
:root {
  --paper: #FFFFFF; --ink: #1C1C1E; --ink-2: #4A4A4F; --muted: #62656D;
  --blue: #1D6690; --blue-deep: #144B6B; --tint: #EEF3F7; --rule: #C9CED6;
  --gold: #B8871F; --alert: #8A2B1E; --red: #A3271C;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.topbar-in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 30px; height: auto; }
.brand span { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--ink-2); font-size: 17px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--gold); }
.who { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); font-style: italic; }

/* ---------- page ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 36px 16px 72px; display: flex; flex-direction: column; gap: 36px; }
.page.wide { max-width: 1040px; }
.masthead { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.masthead .crest { width: 60px; height: auto; }
.masthead .wordmark { width: 100%; max-width: 460px; height: auto; }
.divider { width: 100%; display: flex; align-items: center; gap: 14px; }
.divider span { flex: 1; height: 1px; background: var(--blue); }
.divider i { width: 7px; height: 7px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.divider.short { max-width: 220px; margin: 0 auto; }
h1 { margin: 2px 0 0; font-weight: 500; font-size: 36px; line-height: 1.15; text-wrap: balance; }
h2 { margin: 0; font-weight: 600; font-size: 23px; line-height: 1.25; color: var(--blue); text-wrap: balance; }
h2 em { font-weight: 400; }
h3 { margin: 0; font-weight: 600; font-size: 19px; }
.intro { margin: 0; max-width: 62ch; font-style: italic; font-size: 18px; color: var(--ink-2); }
.kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.note { margin: 0; font-style: italic; font-size: 16px; color: var(--ink-2); max-width: 70ch; }
.notice { margin: 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--tint); font-size: 17px; }
.notice.err { border-color: var(--alert); color: var(--alert); background: #FBF1EF; }
section { display: flex; flex-direction: column; gap: 10px; }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--blue); background: var(--paper); color: var(--blue); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--tint); color: var(--blue); }
.btn.solid { background: var(--blue); color: #FFFFFF; }
.btn.solid:hover { background: var(--blue-deep); color: #FFFFFF; }
.btn.plain { border-color: var(--ink); color: var(--ink); }
.btn.plain[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.btn.quiet { border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.btn.quiet:hover { color: var(--blue); }
.btn.danger { border-color: var(--alert); color: var(--alert); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 10px; height: 10px; flex: none; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=date], select { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--blue); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 42px; padding: 0 16px; border: 0; background: var(--paper); color: var(--blue); font: inherit; font-size: 16px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--blue); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #FFFFFF; }

/* ---------- sign-in dialog ---------- */
dialog.signin { border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 6px; padding: 28px 24px 22px; width: min(440px, calc(100vw - 32px)); color: var(--ink); background: var(--paper); font-family: var(--serif); }
dialog.signin::backdrop { background: rgba(28, 28, 30, 0.45); }
dialog.signin form { display: flex; flex-direction: column; gap: 12px; }
dialog.signin h2 { text-align: center; }
dialog.signin p { margin: 0; font-size: 16px; color: var(--ink-2); font-style: italic; text-align: center; }
dialog.signin .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
dialog.signin .msg { min-height: 1.4em; font-size: 15px; color: var(--alert); font-style: normal; text-align: left; }

/* ---------- cards & lists ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 4px; background: var(--paper); text-decoration: none; color: var(--ink); }
a.card:hover { background: #F7F9FB; color: var(--ink); }
.card .t { font-size: 22px; font-weight: 500; line-height: 1.2; }
.card .d { font-size: 16px; color: var(--ink-2); font-style: italic; }
.card .go { margin-top: auto; padding-top: 8px; font-size: 16px; color: var(--blue); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.swatch { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); flex: none; background: #fff; }
.swatch.White { background: #FFFFFF; } .swatch.Red { background: #B0261B; } .swatch.Green { background: #2F6B3A; }
.swatch.Violet { background: #5B3A7A; } .swatch.Rose { background: #D58AA0; } .swatch.Black { background: #1C1C1E; }
.swatch.Gold { background: #C9A227; } .swatch.Blue { background: #2C5F9E; }
.rank { color: var(--gold); font-style: italic; }

/* ---------- schedule ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.month { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); padding: 18px 0 6px; border-bottom: 1px solid var(--ink); }
.ev { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 4px 18px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.ev .day { display: flex; flex-direction: column; line-height: 1.1; }
.ev .day b { font-size: 26px; font-weight: 500; }
.ev .day span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.ev .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev .what .t { font-size: 20px; font-weight: 500; line-height: 1.25; }
.ev .what .k { font-size: 15px; color: var(--ink-2); }
.ev .act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ev.evensong .what .k { color: var(--blue); }
.ev.today { background: var(--tint); }

/* ---------- Sunday picker ---------- */
.sundays { display: flex; align-items: flex-start; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.sun { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 132px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sun:hover { border-color: var(--blue); }
.sun[aria-current="true"] { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 -3px 0 var(--gold); }
.sun .dt { font-size: 18px; font-weight: 600; }
.sun .ob { font-size: 14px; color: var(--ink-2); font-style: italic; line-height: 1.25; max-width: 15ch; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.tabs button { min-height: 46px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-2); font: inherit; font-size: 18px; cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--gold); font-weight: 500; }

/* ---------- lector sheet (readings) ---------- */
.sheet { display: flex; flex-direction: column; gap: 8px; }
.sheet-title { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.sheet-title .obs { font-variant: small-caps; font-size: 28px; letter-spacing: 0.04em; line-height: 1.2; }
.sheet-title .lec { font-size: 16px; color: var(--ink-2); }
.mass-name { text-align: center; font-style: italic; font-size: 20px; color: var(--blue); margin-top: 18px; }
.ordo-note { font-size: 16px; font-style: italic; color: var(--ink-2); border-left: 3px solid var(--gold); padding: 6px 12px; margin: 6px 0; background: #FBF8F0; }
.reading { padding: 26px 0 8px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.reading:first-of-type { border-top: 0; }
.rlabel { text-align: center; color: var(--red); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 18px; }
.ralt { text-align: center; font-size: 15px; font-style: italic; color: var(--ink-2); }
.choice { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.intro-line { text-align: center; font-style: italic; font-size: 20px; }
.cite { text-align: center; color: var(--red); font-size: 17px; }
.rtext { text-align: justify; hyphens: auto; font-size: 21px; line-height: 1.6; max-width: 66ch; margin: 0 auto; }
.rtext p { margin: 0 0 0.7em; }
.rtext p.poetry { text-align: left; margin: 0; padding-left: 1.5em; text-indent: -1.5em; }
.rtext p.poetry + p:not(.poetry) { margin-top: 0.7em; }
.rtext .sc, .office .sc { font-variant: small-caps; }
.rtext .partial { background: linear-gradient(transparent 62%, #F3E7C8 62%); }
.response { text-align: left; font-style: italic; font-size: 21px; max-width: 66ch; margin: 6px auto 0; width: 100%; }
.response b { font-style: normal; color: var(--red); font-weight: 600; margin-right: 6px; }
.locked { text-align: center; padding: 26px 18px; border: 1px dashed var(--rule); border-radius: 4px; background: #FAFBFC; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.locked p { margin: 0; font-style: italic; color: var(--ink-2); }
.legend { font-size: 15px; font-style: italic; color: var(--ink-2); }
.legend .partial { background: linear-gradient(transparent 62%, #F3E7C8 62%); font-style: normal; }

/* ---------- pronunciations ---------- */
.me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.me input { flex: 1 1 220px; }
.me .hint { flex-basis: 100%; font-size: 15px; font-style: italic; color: var(--ink-2); }
ul.words { list-style: none; margin: 0; padding: 0; }
.word { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.word-id { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name { font-size: 24px; font-weight: 500; line-height: 1.2; }
.pron { font-style: italic; font-weight: 400; font-size: 21px; color: var(--blue); }
.meta { font-size: 15px; font-style: italic; color: var(--ink-2); }
.word-audio { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.takes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 100%; }
.take { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; font-size: 16px; }
.take .by { color: var(--ink-2); }
.empty { font-size: 15px; font-style: italic; color: var(--muted); }
.msg { font-size: 15px; font-style: italic; color: var(--ink-2); text-align: right; }
.msg.err { color: var(--alert); font-style: normal; }
.timer { align-self: center; min-width: 3.2em; text-align: right; font-size: 17px; color: var(--alert); font-variant-numeric: tabular-nums; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.rtext .pn { border-bottom: 1px dotted var(--blue); cursor: help; }

/* ---------- Daily Office ---------- */
.office-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }
.office-bar .dates { display: flex; align-items: center; gap: 4px; }
.office { max-width: 40em; margin: 0 auto; width: 100%; font-size: 20px; line-height: 1.6; }
.office-head { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.office-head .hour { font-variant: small-caps; letter-spacing: 0.06em; font-size: 34px; line-height: 1.1; }
.office-head .day { font-size: 21px; font-style: italic; color: var(--ink); }
.office-head .meta { display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; }
.office h2.part { text-align: center; font-variant: small-caps; letter-spacing: 0.05em; font-size: 23px; color: var(--red); font-weight: 500; margin: 34px 0 10px; }
.office h3.ps { text-align: center; font-size: 19px; font-weight: 600; margin: 22px 0 4px; }
.office h3.ps i { font-weight: 400; }
.office p { margin: 0 0 0.8em; }
.office .red, .office .rubric, .office font[color] { color: var(--red); }
.office .rubric { font-style: italic; font-size: 0.88em; }
.office .rub { color: var(--red); font-style: italic; font-size: 0.88em; text-align: center; margin: 0 0 10px; }
.office .c { text-align: center; }
.office table { border-collapse: collapse; margin: 0 0 0.8em; }
.office td { vertical-align: top; padding: 0 10px 2px 0; }
.office table.vr td:first-child { color: var(--red); font-style: italic; white-space: nowrap; }
.office .lesson sup.vn { color: var(--red); font-size: 0.62em; margin-right: 2px; }
.office .antiphon { font-style: italic; text-align: center; padding: 8px 14px; margin: 0 auto 14px; max-width: 34em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.office .antiphon b { color: var(--red); font-style: normal; font-weight: 600; margin-right: 6px; }
.office .verses { margin: 0 0 6px; }
.office .verse { margin: 0 0 0.35em; padding-left: 2em; text-indent: -2em; }
.office .verse .vn { display: inline-block; width: 2em; text-indent: 0; color: var(--red); font-size: 0.75em; vertical-align: 0.1em; }
.office .gloria { font-style: italic; color: var(--ink-2); text-align: center; font-size: 0.92em; margin: 4px 0 10px; }
.office .cite { color: var(--red); text-align: center; font-size: 18px; margin: -4px 0 10px; }
.office .alt-ps { font-size: 16px; font-style: italic; color: var(--ink-2); text-align: center; }
.office .locked { margin: 4px 0 10px; }
.office .flourish { text-align: center; color: var(--red); letter-spacing: 0.6em; margin: 30px 0 6px; }
.office-days { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

footer.site { max-width: 1040px; margin: 0 auto; padding: 18px 16px 40px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-style: italic; color: var(--ink-2); }
footer.site p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 30px; }
  .brand span { font-size: 15px; }
  .nav a { padding: 0 9px; font-size: 16px; }
  .ev { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .ev .act { grid-column: 2; justify-content: flex-start; }
  .word-audio, .takes, .take, .controls { align-items: flex-start; justify-content: flex-start; }
  .msg { text-align: left; }
  .rtext { font-size: 19px; text-align: left; }
  .office { font-size: 18px; }
  .office-head .hour { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .recdot { animation: none; } }
@media print {
  .topbar, .office-bar, footer.site, .tabs, .sundays, .choice, .btn, .me { display: none !important; }
  .page { padding: 0; }
  .reading { break-inside: avoid-page; }
}
.sun .ob { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .topbar-in { gap: 4px 12px; padding: 6px 12px 0; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -9px; }
  .nav a { flex: none; min-height: 40px; }
  .who > span { display: none; }
  #filters { flex-wrap: wrap; border: 0; gap: 6px; overflow: visible; }
  #filters button { border: 1px solid var(--blue); border-radius: 4px; }
  #filters button + button { border-left: 1px solid var(--blue); }
}

.pickbar { display: flex; align-items: center; gap: 10px; margin-bottom: -18px; }
.sundays { scroll-behavior: smooth; }

/* ---------- sign-in page ---------- */
body.login-body { min-height: 100vh; background: linear-gradient(180deg, var(--tint) 0%, #F7F9FB 55%, var(--paper) 100%); }
.login-wrap { max-width: 460px; margin: 0 auto; padding: 56px 16px 40px; display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
.login-wrap .crest { width: 72px; }
.login-wrap .wordmark { max-width: 400px; }
.login-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 24px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 6px; box-shadow: 0 10px 30px rgba(20, 75, 107, 0.08); text-align: center; }
.login-card .kicker { color: var(--gold); }
.login-card h1 { font-size: 32px; margin: 0; }
.login-card .divider { margin: 2px auto 4px; }
.login-card .note { margin: 0 auto 8px; font-size: 16px; }
.login-card .field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.login-card .pwrow { display: flex; gap: 6px; }
.login-card .pwrow input { flex: 1; min-width: 0; }
.login-card .msg { min-height: 1.4em; margin: 0; color: var(--alert); font-size: 15px; text-align: left; }
.login-card .btn.wide { width: 100%; min-height: 48px; font-size: 18px; }
.login-card .help { margin: 4px 0 0; font-size: 15px; font-style: italic; color: var(--ink-2); }
.login-foot { margin: 0; text-align: center; font-size: 15px; font-style: italic; color: var(--muted); }

/* ---------- Office of the Dead (one continuous office from prayer.covert.org) ---------- */
.office .dead h2, .office .dead h3 { text-align: center; font-variant: small-caps; letter-spacing: 0.05em; font-size: 23px; color: var(--red); font-weight: 500; margin: 34px 0 10px; }
.office .dead h4 { text-align: center; font-size: 19px; margin: 18px 0 6px; }
.office .dead .c { text-align: center; }
.office .dead div.c { font-weight: 600; margin: 22px 0 6px; }
.office .dead p.rubric { color: var(--red); font-style: italic; font-size: 0.88em; }

.login-card .pwtoggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; }
.login-card .pwtoggle:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.login-card .pwtoggle svg { width: 18px; height: 18px; flex: none; }
.login-card .pwtoggle[aria-pressed="true"] svg path { stroke-dasharray: 2 2; }

/* ---------- pronunciation editor ---------- */
.edlist { list-style: none; margin: 0; padding: 0; }
.ed { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ed .name { font-size: 22px; }
.ed .pron { font-size: 19px; }
.ed .src { font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ed.added .src, .ed.edited .src { color: var(--gold); }
.ed.removed .word-id { opacity: 0.5; text-decoration: line-through; }
.ed .edbtns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed.editing { display: block; background: var(--tint); padding: 12px; }
.edform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.edform label { display: flex; flex-direction: column; gap: 4px; }
.edform .edactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edform .msg { color: var(--alert); font-size: 15px; }
#editor { display: flex; flex-direction: column; gap: 30px; }
#editor[hidden] { display: none; }
.mark-chip { position: absolute; z-index: 20; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--blue-deep); border-radius: 18px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; box-shadow: 0 4px 14px rgba(20, 75, 107, 0.25); cursor: pointer; }
.mark-chip span { font-weight: 700; }
dialog.mark-dlg form { text-align: left; }
dialog.mark-dlg h2 { font-size: 22px; }
dialog.mark-dlg input, dialog.mark-dlg select { width: 100%; }
.mark-isbe { font-size: 15px; }

/* ---------- recording controls, Design A: one line per name ---------- */
.word { align-items: center; }
.word-audio { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.a-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.a-tools .pill { display: inline-flex; align-items: stretch; min-height: 36px; border: 1px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper); }
.a-tools .pill button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.a-tools .p-play { gap: 7px; padding: 0 14px 0 12px; font-size: 15px; color: var(--ink); }
.a-tools .p-play svg { width: 10px; height: 10px; }
.a-tools .p-play:hover { background: var(--tint); }
.a-tools .p-x { padding: 0 11px; border-left: 1px solid var(--rule) !important; color: var(--muted); font-size: 18px; line-height: 1; }
.a-tools .p-x:hover { color: var(--alert); background: #FBF1EF; }
.a-tools .pill.playing { background: var(--ink); border-color: var(--ink); }
.a-tools .pill.playing .p-play { color: #fff; }
.a-tools .pill.playing .p-play:hover { background: #333; }
.a-tools .pill.playing .p-x { color: #bbb; border-left-color: #555 !important; }
.a-tools .sep { width: 1px; height: 26px; background: var(--rule); margin: 0 2px; }
.a-tools .btn { min-height: 36px; padding: 0 14px; font-size: 15px; gap: 6px; }
.a-tools .btn svg { width: 10px; height: 10px; }
.a-tools .btn.icon { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
.a-tools .btn.icon svg { width: 13px; height: 13px; }
.a-tools .btn.quiet { border-color: var(--rule); color: var(--ink-2); }
.a-tools .btn.quiet:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.a-tools .btn.rec { border-color: var(--red); color: var(--red); }
.a-tools .btn.rec:hover:not(:disabled) { background: #FBF1EF; }
.a-tools .btn.rec.solid { background: var(--red); color: #fff; border-color: var(--red); }
.a-tools .btn.rec.solid .recdot { display: none; }
.a-tools .confirm { font-size: 15px; font-style: italic; color: var(--alert); }
.a-tools .empty { font-size: 15px; }
.a-tools .timer { min-width: 0; }
.word-audio .msg { text-align: right; }
@media (max-width: 640px) {
  .word-audio { flex-basis: 100%; align-items: flex-start; }
  .a-tools { justify-content: flex-start; }
  .word-audio .msg { text-align: left; }
}

/* ---------- STMA email sign-in ---------- */
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card .code-input { font-size: 30px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 0.35em; }
.login-links { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 4px 2px; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.login-card .note b { font-weight: 600; overflow-wrap: anywhere; }
/* members list */
.mem-mail { border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 4px; background: #FBF8F0; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 17px; }
.mem-mail.err { border-left-color: var(--red); background: #FBF1F0; }
.mem-mail form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.mem-mail input { min-width: 220px; }
.memform textarea { width: 100%; min-height: 150px; font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); resize: vertical; }
.memform { display: flex; flex-direction: column; gap: 10px; }
.memform .edactions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mem .email { font-size: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.members-body:not([hidden]) { display: flex; flex-direction: column; gap: 40px; }
.mem .name { font-size: 22px; }
.memsearch { max-width: 320px; }
.list-switch { margin: 6px 0 0; font-size: 17px; color: var(--ink-2); }
.list-switch a { color: var(--blue); }
/* the alderman's top bar has two more links: keep it on one line on a laptop screen */
@media (min-width: 641px) {
  .topbar-in:has(.nav-admin:not([hidden])) { gap: 12px 14px; }
  .topbar-in:has(.nav-admin:not([hidden])) .nav a { padding: 0 7px; font-size: 16px; }
}
/* the sign of the cross in the office texts, red like the canticle headings */
.office .cross { color: var(--red); font-style: normal; }
