/* Places of worship (/worship/), Oct. 5, 2026. Scoped .wsh- classes; colors are the site tokens in style.css :root.
   Filter bar follows the sand filter bar convention; chips are navy pills; focus is the site's 3px #F2C14E outline. */
.wsh-in { padding: 24px 0 56px; }
.wsh h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 6px; }
.wsh .dek, .wsh-in > .small { max-width: 760px; }
.wsh button, .wsh select, .wsh input { font: inherit; }
.wsh :is(button, select, input, a):focus-visible { outline: 3px solid #F2C14E; outline-offset: 2px; }

/* Coming up next */
.wsh-next { margin: 22px 0 0; }
.wsh-next h2, .wsh-fl { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.wsh-next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wsh-nx { text-align: left; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--ink); min-width: 0; }
.wsh-nx:hover { border-color: var(--navy); }
.wsh-nx .w1 { font: 700 13px/1.2 var(--sans); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.wsh-nx .w2 { font: 600 16px/1.25 var(--serif); color: var(--navy); margin-top: 3px; }
.wsh-nx .w3 { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Filter bar */
.wsh-filters { background: var(--sand); border-radius: 10px; padding: 14px 16px; margin: 22px 0 0; display: grid; gap: 12px; }
.wsh-frow { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-end; }
.wsh-fg { display: flex; flex-direction: column; min-width: 0; }
.wsh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wsh-chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-size: 15px; font-weight: 600; cursor: pointer; }
.wsh-chips button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.wsh-filters select, .wsh-filters input[type="search"] { min-height: 44px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); font-size: 15px; max-width: 100%; }
.wsh-filters input[type="search"] { width: 220px; }
.wsh-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.wsh-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.wsh-fbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.wsh-count { margin: 0; font-size: 15px; color: var(--muted); }
.wsh-count b { color: var(--ink); }
.wsh-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wsh-clear { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: 15px; }
.wsh-tabs { display: inline-flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; }
.wsh-tabs button { min-height: 44px; padding: 0 18px; border: 0; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; }
.wsh-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* Week calendar. Columns follow the day filter: 7 for any day, 5 for weekdays, 2 for the weekend, 1 for Sat or Sun. */
.wsh-weeknav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 10px; }
.wsh-weeknav h2 { font-size: 22px; margin: 0; }
.wsh-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.wsh-nav button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; }
.wsh-nav button:disabled { opacity: .4; cursor: default; }
.wsh-week { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.wsh-day { border-right: 1px solid var(--rule); min-width: 0; display: flex; flex-direction: column; }
.wsh-day:last-child { border-right: 0; }
.wsh-dh { background: var(--sand); border-bottom: 2px solid var(--navy); padding: 9px 10px; }
.wsh-dh .dn { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wsh-dh .dd { font: 700 18px/1.2 var(--serif); color: var(--navy); margin-top: 3px; }
.wsh-day.today .wsh-dh { background: var(--teal-soft); }
.wsh-day.today .dn::after { content: " \00b7  Today"; color: var(--teal-deep); }
.wsh-slots { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wsh-empty { font-size: 13px; color: var(--muted); padding: 4px 2px; margin: 0; }
.wsh-ev { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--c, var(--teal)); border-radius: 6px; padding: 7px 9px; cursor: pointer; color: var(--ink); min-width: 0; }
.wsh-ev:hover { border-color: var(--navy); border-left-color: var(--c, var(--teal)); }
.wsh-ev.past { opacity: .5; }
.wsh-ev .t { display: block; font: 700 13px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.wsh-ev .n { display: block; font: 600 14px/1.25 var(--serif); color: var(--navy); margin-top: 2px; overflow-wrap: anywhere; }
.wsh-ev .p { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.wsh-tag { display: inline-block; margin-top: 5px; font: 700 10px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: var(--teal-soft); color: var(--teal-deep); }
.wsh-tag.first { background: var(--warn-bg); color: var(--warn); }
.wsh-week[style*="--cols:1"] .wsh-slots, .wsh-week[style*="--cols:2"] .wsh-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-content: start; }
.wsh-notes { margin-top: 14px; border: 1px dashed var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.wsh-notes h3 { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin: 0 0 8px; }
.wsh-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Congregation cards */
.wsh-town { margin-top: 26px; }
.wsh-town h2 { border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.wsh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 14px; }
.wsh-card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 90px; }
.wsh-card.flash { box-shadow: 0 0 0 3px #F2C14E; }
.wsh-card .wsh-photo { margin: 0; }
.wsh-card .wsh-photo figcaption { font-size: 12px; line-height: 1.35; color: var(--muted); padding: 6px 14px 0; }
.wsh-ph { aspect-ratio: 4/3; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; }
.wsh-ph img { width: 150px; height: auto; opacity: .9; }
.wsh-ph p { margin: 0; font-size: 13px; line-height: 1.4; color: #E3F1EF; }
.wsh-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wsh-body .kicker { margin: 0; }
.wsh-body h3 { font-size: 20px; line-height: 1.25; margin: 0; }
.wsh-body h3 a { color: var(--navy); text-decoration: none; }
.wsh-body h3 a:hover { text-decoration: underline; }
.wsh-body .small { margin: 0; }
.wsh-svc { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.wsh-svc li { display: grid; grid-template-columns: 7.4em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.wsh-svc li.off { opacity: .38; }
.wsh-when { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }
.wsh-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; padding-top: 6px; font-weight: 700; font-size: 15px; }
.wsh-none { margin-top: 18px; padding: 24px; text-align: center; border: 1px dashed var(--rule); border-radius: 10px; color: var(--muted); }
.wsh-about { margin-top: 30px; }
.wsh-about p { margin: 0; }

@media (max-width: 820px) {
  .wsh-week { grid-template-columns: 1fr; border: 0; background: none; gap: 10px; }
  .wsh-day { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
  .wsh-day.none { display: none; }
  .wsh-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; }
}
@media (max-width: 420px) {
  .wsh-filters { padding: 12px; }
  .wsh-filters input[type="search"] { width: 100%; }
  .wsh-fg { flex: 1 1 100%; }
  .wsh-svc li { grid-template-columns: 6.4em 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .wsh-card { transition: box-shadow .3s; } }

.wsh [hidden] { display: none !important; }

/* Keep the site's generic button hover from recoloring these controls. */
.wsh .wsh-ev:hover, .wsh .wsh-ev:focus { background: #fff; color: var(--ink); }
.wsh .wsh-nx:hover, .wsh .wsh-nx:focus { background: #fff; color: var(--ink); }
.wsh .wsh-chips button:hover, .wsh .wsh-nav button:hover, .wsh .wsh-tabs button:hover { background: var(--teal-soft); color: var(--navy); }
.wsh .wsh-chips button[aria-pressed="true"]:hover, .wsh .wsh-tabs button[aria-selected="true"]:hover { background: var(--navy); color: #fff; }
.wsh .wsh-clear:hover { background: none; color: var(--navy); }
.wsh-svc .t { display: block; font-size: 13px; color: var(--muted); }
