/* westernrite.org demo: plain, old-web look. Black, white and grays only. System fonts only. */
:root { color-scheme: light;
  /* The one approved red, used sparingly (Alan, 2026-10-30: ADA friendly). Change it here only.
     #B00000 is 7.38:1 on #fff and 5.91:1 on #e6e6e6, so it passes WCAG AA (4.5:1) on every page background. */
  --wr-red: #B00000; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 64rem; padding: 0 1rem 2rem; background: #fff; color: #111;
  font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.0625rem; line-height: 1.5; }
a { color: #000; text-decoration: underline; }
a:visited { color: #444; }
a:hover { background: #e6e6e6; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
/* Form controls in the site palette, never the browser's default blue (Alan, 2026-10-31, t2129u: on the iPad the calendar's
   "Show all" text and "Include monasteries" checkbox were blue). iOS Safari paints any button text, checkbox or caret
   the site leaves unset in system blue, so set them here. accent-color #000: black box, white check (21:1); caret black.
   Text selection stays the browser default. The focus ring stays the 3px black outline above. Checked by test_no_blue_controls.py. */
:root { accent-color: #000; }
button, select, input, textarea { color: #000; }
input, textarea { caret-color: #000; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; border: 2px solid #000; }
.skip-link:focus { left: 1rem; z-index: 10; }
.demo-banner { margin: 0 -1rem; padding: .4rem 1rem; background: #222; color: #fff; text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .95rem; }
.site-header { border-bottom: 3px double #000; padding: .75rem 0 .5rem; }
.site-title { margin: 0 0 .5rem; font-size: 1.4rem; font-weight: bold; line-height: 0; }
.site-title a { display: inline-block; text-decoration: none; }
.site-title a:hover { background: none; }
.site-title img { display: block; width: 384px; max-width: 100%; height: auto; }
/* Desktop: logo and menu centered. Phones (600px and below) keep the left-aligned menu button and list. */
@media (min-width: 601px) {
  .site-title { text-align: center; }
  .site-title img { margin: 0 auto; }
  .site-nav ul { justify-content: center; }
}
nav { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
nav ul, .inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a[aria-current="page"] { font-weight: normal; text-decoration-thickness: 3px; }
/* Any current/selected item (main nav, calendar View row, ...) is normal weight in black, never bold. */
[aria-current] { font-weight: normal; color: #000; }
/* Main nav: the current page/section is normal weight in black; the other links are dark gray (#555, 7.5:1 on white).
   Hover darkens to black; the :focus-visible outline above still applies. */
.site-nav a, .site-nav a:visited { color: #555; }
.site-nav a[aria-current="page"], .site-nav a[aria-current="page"]:visited { color: #000; font-weight: normal; }
.site-nav a:hover, .site-nav a:focus-visible { color: #000; }
/* Main nav: a plain row (wraps if needed). At 600px and below, nav.js adds a Menu button that opens a vertical list. */
.nav-toggle { display: none; }
@media (max-width: 600px) {
  .site-nav ul { gap: 0 1rem; }
  .site-nav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
  .site-nav.nav-js .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px;
    padding: 0 .9rem; font: inherit; font-size: 1rem; background: #fff; color: #000; border: 2px solid #000; border-radius: 0; cursor: pointer; }
  .site-nav.nav-js .nav-toggle:hover { background: #e6e6e6; }
  .site-nav.nav-js .nav-toggle[aria-expanded="true"] { background: #222; color: #fff; }
  .site-nav.nav-js ul { display: none; }
  .site-nav.nav-js.nav-open ul { display: block; margin-top: .4rem; border: 1px solid #777; }
  .site-nav.nav-js.nav-open li + li { border-top: 1px solid #ccc; }
  .site-nav.nav-js.nav-open li a { display: flex; width: 100%; padding: 0 .75rem; text-decoration: none; }
}
main { display: block; padding-top: .5rem; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.8rem; margin: 1rem 0 .75rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; border-bottom: 1px solid #999; padding-bottom: .2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.meta, .crumbs, .narrow-note { color: #444; font-size: .95rem; }
.sample { border: 2px solid #000; padding: .5rem .75rem; background: #f2f2f2; }
.site-footer { margin-top: 3rem; border-top: 1px solid #999; padding-top: .5rem; color: #444; font-size: .9rem; }
/* Footer top (Alan, 2026-10-31 t2137u: "split the top line of the footer into two, copyright and tagline"):
   line 1 "© 2026 westernrite.org", line 2 the tagline "Orthodox Info • Western Rite Focus • AI Assisted", with no gap between them.
   On phones (600px and below) both lines are centered and the tagline stays on ONE line (Alan, 2026-10-31 t2158u "Yes").
   Only on screens narrower than 360px, where the whole tagline cannot fit at this size, it breaks at its last bullet
   ("Orthodox Info • Western Rite Focus" / "AI Assisted", that bullet hidden), so no bullet ever ends or starts a line and nothing scrolls sideways.
   The footer lines after them stay left-aligned.
   2026-10-31 ~11:45 PM MDT (Alan): these two lines are centered on EVERY width (desktop and iPad too, not only phones);
   only these two lines, the rest of the footer is unchanged. */
.footer-first { margin-bottom: 0; }
.footer-tag { margin-top: 0; }
.footer-tag .ft-nw { white-space: nowrap; }
.footer-first, .footer-tag { text-align: center; }
@media (max-width: 359px) {
  .footer-tag .ft-sep { display: none; }
  .footer-tag .ft-ai { display: block; }
}
table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; }
th, td { border: 1px solid #777; padding: .35rem .5rem; text-align: left; vertical-align: top; }
thead th { background: #e6e6e6; }
tbody th { font-weight: normal; }
caption { text-align: left; font-style: italic; padding-bottom: .25rem; }
.table-wrap { overflow-x: auto; }
.facts { width: auto; } .facts th { background: #f2f2f2; font-weight: bold; }
select { font: inherit; }
/* Month grid */
.grid, .agenda, .churches { table-layout: fixed; }
.churches td, .churches th, .agenda td, .agenda th { overflow-wrap: anywhere; word-break: break-word; }
.grid th { text-align: center; }
.grid td { font-size: .85rem; }
.grid td.empty { background: #f2f2f2; }
.grid td.has { background: #fafafa; }
.grid .day { display: block; font-weight: bold; font-size: 1rem; }
.grid ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.grid li { margin-bottom: .25rem; overflow-wrap: anywhere; }
.narrow-note { display: none; }
/* Narrow screens: stack table rows; replace the grid with the agenda list */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .narrow-note { display: block; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { border: 1px solid #777; margin-bottom: .75rem; }
  table.stack th, table.stack td { border: 0; border-bottom: 1px solid #ccc; }
  table.stack tbody th { font-weight: bold; background: #f2f2f2; }
  table.stack td::before { content: attr(data-label) ": "; font-weight: bold; }
}
@media print { .demo-banner { background: #fff; color: #000; border: 1px solid #000; } .skip-link, #filter-slot { display: none; } }
/* About: shared by /about/ and the About dialog. Alan's photo small, floated right; Juno's larger, floated left. */
.about-body::after { content: ""; display: block; clear: both; }
.about-body p { margin: 0 0 1rem; }
/* Old-fashioned B&W print: white matte, a little deeper at the bottom (the caption sits there), faint gray edge, square corners. */
.about-photo { margin: 0 0 .75rem; padding: 6px 6px 2px; background: #fff; border: 1px solid #bbb; border-radius: 0; box-shadow: 1px 2px 3px rgba(0,0,0,.12); }
.about-photo img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.about-photo figcaption { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .85rem; color: #444; text-align: center; padding: .25rem 0 .2rem; }
.about-alan { float: right; width: 150px; margin-left: 1rem; }
.about-juno { float: left; width: 240px; margin-right: 1rem; }
.about-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0 1rem 1rem; border: 2px solid #000; background: #fff; color: #111; }
.about-dialog::backdrop { background: rgba(0,0,0,.55); }
.about-dialog-bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; margin: 0 -1rem .75rem; padding: .5rem 1rem; border-bottom: 1px solid #999; }
.about-dialog-bar h2 { margin: 0; border: 0; padding: 0; font-size: 1.25rem; }
.about-close { font: inherit; font-size: 1.5rem; line-height: 1; width: 2.25rem; height: 2.25rem; background: #fff; color: #000; border: 1px solid #000; cursor: pointer; }
.about-close:hover { background: #e6e6e6; }
.about-dialog .about-alan { width: 120px; }
.about-dialog .about-juno { width: 190px; }
@media (max-width: 760px) {
  .about-alan, .about-dialog .about-alan { width: 105px; margin-left: .75rem; }
  .about-juno, .about-dialog .about-juno { width: 160px; margin-right: .75rem; }
}
/* ---- Real-data pages (2026-10-30) ---- */
.tag { display: inline-block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .75rem;
  border: 1px solid #777; padding: 0 .3rem; color: #333; background: #f2f2f2; white-space: nowrap; vertical-align: .1em; }
abbr.w { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: bold; font-size: .75rem; text-decoration: none;
  border: 1px solid #000; padding: 0 .2rem; }
.note { color: #444; font-size: .9rem; }
.jump { margin-bottom: .25rem; }
/* Churches page "Other Parish Locators" box (Alan, 2026-10-30 8:42 PM MDT): links only. Right of the jump links on desktop;
   below them on phones (700px and below). Gray border, white, nothing bold except the normal site heading. */
.church-top { display: flex; align-items: flex-start; gap: 1.5rem; }
.church-top-main { flex: 1 1 auto; min-width: 0; }
.locators { flex: 0 0 19rem; margin: 1rem 0 0; padding: .5rem .9rem .6rem; border: 1px solid #999; background: #fff; }
.locators h2 { margin: 0 0 .4rem; font-size: 1.1rem; border-bottom: 0; padding-bottom: 0; }
.locators ul { margin: 0; padding-left: 1.1rem; }
.locators li { margin-bottom: .35rem; }
.locators li:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .church-top { display: block; }
  .locators { margin: .75rem 0 1rem; }
  .locators li { padding: .2rem 0; }
}
.muted { color: #777; }
.cal-nav p { margin: .3rem 0; }
.cal-nav, .prevnext { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
/* Calendar sub-nav rows (View, previous/next month): unselected links dark gray like the main nav; hover/focus black. */
.cal-nav a, .cal-nav a:visited, .prevnext a, .prevnext a:visited { color: #555; }
.cal-nav a:hover, .cal-nav a:focus-visible, .prevnext a:hover, .prevnext a:focus-visible { color: #000; }
/* View rows (month pages, church pages) are a little menu and look exactly like the main nav (.site-nav) row: the current view is
   black, normal weight, with the nav's 3px underline, and is not a link (aria-current); the other view is a #555 underlined link,
   black on hover/focus. No box, no fill, never bold (Alan, 2026-10-30: "they should behave like the menu links").
   Underline thickness, not color alone, marks the current item. At 600px and below the links get the nav's 44px tap height. */
.views, .backto { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.views a, .views a:visited { color: #555; font-weight: normal; text-decoration: underline; }
.views a:hover, .views a:focus-visible { color: #000; }
.views [aria-current] { color: #000; font-weight: normal; text-decoration: underline; text-decoration-thickness: 3px; }
@media (max-width: 600px) {
  .views a, .views [aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
  .views { margin: .1rem 0; }
}
.backto a, .backto a:visited { color: #555; }
.backto a:hover, .backto a:focus-visible { color: #000; }
.prevnext.bottom { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; border: 1px solid #999; padding: .5rem .75rem; background: #f7f7f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .95rem; }
.filters select { max-width: 16rem; min-height: 2rem; }
.filters button { font: inherit; min-height: 2rem; background: #fff; color: #000; border: 1px solid #000; cursor: pointer; }
.filters button:hover { background: #e6e6e6; }
.grid td { height: auto; min-height: 6rem; padding: .25rem .3rem; }
.grid td.filtered-out ul { display: none; }
.grid .dlabel { display: none; }
.grid .t { font-weight: bold; white-space: nowrap; }
.grid .svc { color: #333; }
.grid li { border-top: 1px dotted #bbb; padding-top: .15rem; line-height: 1.3; }
.grid li:first-child { border-top: 0; }
.agenda th:nth-child(1), .agenda td:nth-child(1) { width: 8.5rem; }
.agenda td:nth-child(4), .agenda td:nth-child(5), .agenda th:nth-child(4), .agenda th:nth-child(5) { width: 7rem; }
.agenda td:nth-child(6), .agenda th:nth-child(6) { width: 9rem; }
section.day h2 { margin-top: 1.5rem; }
ul.dated { padding-left: 1.25rem; }
ul.dated li { margin-bottom: .15rem; }
details.month-entries { margin: .75rem 0; border: 1px solid #999; padding: .4rem .75rem; }
details.month-entries summary { cursor: pointer; font-weight: bold; }
.facts td { overflow-wrap: anywhere; }  /* long URLs and emails in the facts table may still wrap anywhere */
/* Services tables: words never split mid-word (Alan, 2026-10-30). overflow-wrap: anywhere let the browser shrink columns below
   the longest word, so "Language", "English", "Saturday" broke mid-word on phones. Columns now size to whole words; on very
   narrow phones the padding and type shrink a little, and if a table still cannot fit, it scrolls inside .table-wrap (never the page). */
.services td, .services th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* Phones: the month grid becomes a plain list of days (days without services are left out). */
@media (max-width: 760px) {
  table.grid, table.grid tbody, table.grid tr, table.grid td { display: block; width: 100%; }
  table.grid { display: block; table-layout: auto; }
  table.grid thead { position: absolute; left: -9999px; }
  table.grid caption { display: block; }
  table.grid td.empty, table.grid td.none, table.grid td.filtered-out { display: none; }
  table.grid tr { border: 0; }
  table.grid td { border: 1px solid #777; border-bottom: 0; font-size: .95rem; padding: .4rem .6rem; }
  table.grid tr:last-child td.has:last-of-type { border-bottom: 1px solid #777; }
  table.grid tbody { border-bottom: 1px solid #777; }
  .grid .dnum { display: none; }
  .grid .dlabel { display: inline; }
  .grid .day { background: #e6e6e6; margin: -.4rem -.6rem .3rem; padding: .3rem .6rem; }
  .agenda th:nth-child(n), .agenda td:nth-child(n) { width: 100%; }
  table.stack td:empty { display: none; }
}
.grid thead abbr { text-decoration: none; }
.nowrap { white-space: nowrap; }
.agenda td, .agenda th { padding: .25rem .45rem; line-height: 1.35; }
.agenda .tag { margin-top: .1rem; }
@media (max-width: 760px) { .services td, .services th { padding: .3rem .35rem; font-size: .95rem; } }
@media (max-width: 400px) { .services td, .services th { padding: .25rem .25rem; font-size: .9rem; } }
main p, main li, main summary { overflow-wrap: break-word; }
main p a, main li a { overflow-wrap: anywhere; }
/* Busy days on the month pages: calfilter.js shows the first few lines, then a "More… (N more)" button.
   Without JavaScript nothing is folded. Thresholds: hugo.toml calMoreGrid / calMoreList. */
.more-x, main [hidden] { display: none !important; }  /* [hidden]: filtered-out rows must also hide in the stacked phone tables */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button.more-btn { font: inherit; font-size: .9rem; color: #000; background: #fff; border: 1px solid #000; border-radius: 0;
  padding: .15rem .5rem; min-height: 1.9rem; cursor: pointer; text-align: left; }
button.more-btn:hover { background: #e6e6e6; }
.grid li.more-li { border-top: 1px dotted #bbb; padding-top: .3rem; }
.grid li.more-li button.more-btn { width: 100%; font-size: .85rem; padding: .15rem .3rem; }
p.more-p { margin: -.25rem 0 .75rem; }
@media (max-width: 760px) {
  button.more-btn, .grid li.more-li button.more-btn { min-height: 44px; width: 100%; font-size: 1rem; padding: .3rem .6rem; }
  .grid li.more-li { padding-bottom: .4rem; }
}
@media print { .more-x { display: revert !important; } .more-btn { display: none; } }
/* multi-state (2026-10-30) */
abbr.tz { font-size: .8em; color: #555; text-decoration: none; border-bottom: 1px dotted #999; }
.special-request { font-style: italic; color: #333; }
/* Contact page (2026-10-30): plain form, black/white/gray. The honeypot (.hp) is hidden off-screen, not display:none. */
.contact-note { border-left: 3px solid #000; padding: .25rem .75rem; background: #f2f2f2; }
.contact-js-note { border: 2px solid #000; padding: .5rem .75rem; }
.contact-form { max-width: 40rem; }
/* 2026-10-30 (Alan): labels normal weight and black, each on its own line above its field. Never bold. */
.contact-form label { display: block; font-weight: normal; color: #000; margin: .6rem 0 .2rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { display: block; width: 100%;
  font: inherit; padding: .4rem .5rem; border: 1px solid #777; border-radius: 0; background: #fff; color: #111; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid #000; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plain-btn { font: inherit; min-height: 44px; padding: .3rem 1rem; background: #fff; color: #000; border: 2px solid #000; border-radius: 0; cursor: pointer; }
.plain-btn:hover:not(:disabled) { background: #e6e6e6; }
.plain-btn:disabled { color: #777; border-color: #999; cursor: not-allowed; }
.ts-slot { min-height: 65px; margin: .25rem 0 .5rem; }
/* 2026-10-30: Inline form errors (all fields required, email must look real). Black on light gray with a left rule; never bold. */
.field-error { display: block; margin: .3rem 0 0; padding: .2rem .6rem; border-left: 3px solid #000; background: #f2f2f2; color: #000; font-weight: normal; }
.field-error[hidden] { display: none; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border: 2px solid #000; }
.phone-result { font-size: 1.25rem; }
.phone-result a { white-space: nowrap; }
/* ---- Today box (2026-10-30): links only; date from the visitor's browser (today.js). ---- */
/* v8 (Alan, 2026-10-30 8:51 PM MDT): bordered like the Churches .locators box (1px #999, white). Nothing bold. */
.today { border: 1px solid #999; background: #fff; padding: .5rem .9rem .75rem; margin: 1rem 0 1.5rem; }
.today h2 { margin-top: 0; margin-bottom: .5rem; }
.today-find { margin: .6rem 0 0; overflow-wrap: break-word; }
.today-dyn { display: none; }
.js-today .today-dyn { display: block; }
.today-date { margin: 0 0 .5rem; font-size: 1.15rem; line-height: 1.5; min-height: 1.5em; }
.today-links { margin: 0 0 .25rem; padding-left: 1.25rem; }
.today-intro { margin: 0 0 .25rem; }
@media (max-width: 600px) {
  .today-links li { padding: .35rem 0; }  /* tap room; links stay inline so the bullet sits on the first line when a label wraps */
}
/* Home "Sections" box (Alan, 2026-10-30 9:00 PM MDT): same look as the Today box and the Churches .locators box. Nothing bold.
   Home "Resources" box (Alan, 2026-10-30 9:37 PM MDT): the last home block, same look as Sections. */
.sections-box, .resources-box { border: 1px solid #999; background: #fff; padding: .5rem .9rem .75rem; margin: 1rem 0 1.5rem; }
.sections-box h2, .resources-box h2 { margin-top: 0; margin-bottom: .5rem; }
.sections-links, .resources-links { margin: 0 0 .25rem; padding-left: 1.25rem; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .sections-links li, .resources-links li { padding: .35rem 0; }
}
