/* St Mark's: Our churches page. Scoped under .smc-ch. */
.smc-ch{
  --smc-ink:#1B2433;
  --smc-slate:#566072;
  --smc-rule:#D8DDE5;
  --smc-blue:#1D3A6E;
  --smc-blue-dark:#142A52;
  --smc-gold:#C9A23A;
  --smc-gold-tint:#F7F0DC;
  --smc-serif:"Alegreya", Georgia, serif;
  --smc-sans:"Alegreya Sans", system-ui, sans-serif;
  color:var(--smc-ink);font-family:var(--smc-serif);font-size:18px;line-height:1.6;
  width:100%;max-width:100%;margin:0;padding:0;
  container-type:inline-size;container-name:smcch;
}
.smc-ch *,.smc-ch *::before,.smc-ch *::after{box-sizing:border-box}
.smc-ch a{color:var(--smc-blue);text-underline-offset:.18em}
.smc-ch a:hover{color:var(--smc-blue-dark)}
.smc-ch :focus-visible{outline:3px solid var(--smc-gold);outline-offset:3px;border-radius:2px}
.smc-ch h2{font-family:var(--smc-serif);color:var(--smc-ink);margin:0}
.smc-ch h3{font-family:var(--smc-sans);font-size:1rem;font-weight:700;color:var(--smc-slate);margin:0 0 .5rem}

.smc-ch-intro{color:var(--smc-slate);font-size:1.15em;max-width:40rem;margin:0 0 1.5rem}

/* Jump links: one per church */
.smc-ch-jump{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));border-top:4px solid var(--smc-gold);border-bottom:1px solid var(--smc-rule);background:#fff;margin-bottom:2rem}
.smc-ch-jump a{display:block;padding:1rem 1.25rem;text-decoration:none;color:var(--smc-ink);line-height:1.25}
.smc-ch-jump a + a{border-left:1px solid var(--smc-rule)}
.smc-ch-jump b{display:block;font-size:1.1em}
.smc-ch-jump span{display:block;font-family:var(--smc-sans);color:var(--smc-slate);font-size:.95rem;margin-top:.15rem}
.smc-ch-jump a:hover{background:var(--smc-gold-tint);color:var(--smc-ink)}
.smc-ch-jump a:hover b{text-decoration:underline}

/* Mass today */
.smc-ch-today{background:var(--smc-blue);color:#fff;border-radius:4px;padding:1.3rem 1.5rem;margin-bottom:3rem}
.smc-ch-today h2{color:#fff;font-size:1.35em;margin-bottom:.5rem}
.smc-ch-today ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 2rem;font-family:var(--smc-sans)}
.smc-ch-today li{margin:0}
.smc-ch-today li b{font-size:1.25rem}
.smc-ch-today a{color:#fff}
.smc-ch-today a:hover{color:var(--smc-gold-tint)}
.smc-ch-today p{margin:0;font-family:var(--smc-sans)}

/* Each church */
.smc-ch-church{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:1rem 2.5rem;border-top:3px solid var(--smc-blue);padding:1.5rem 0 2.5rem;scroll-margin-top:2rem}
.smc-ch-church h2{font-size:2rem;line-height:1.1}
.smc-ch-area{font-family:var(--smc-sans);color:var(--smc-slate);font-size:1.1rem;margin:.2rem 0 .9rem}
.smc-ch-about{margin:0;color:var(--smc-ink)}

.smc-ch-mass table{width:100%;border-collapse:collapse;font-family:var(--smc-sans);margin:0;border:0}
.smc-ch-mass th,.smc-ch-mass td{text-align:left;padding:.4rem 0;border:0;border-bottom:1px solid var(--smc-rule);background:none;vertical-align:top}
.smc-ch-mass th{font-weight:500;width:45%}
.smc-ch-mass td{color:var(--smc-ink);font-weight:700}
.smc-ch-mass tr.is-today th,.smc-ch-mass tr.is-today td{color:var(--smc-blue)}
.smc-ch-mass tr.is-today th::after{content:" (today)";font-weight:400}
.smc-ch-mass p{font-family:var(--smc-sans);margin:0}

.smc-ch-contact{font-family:var(--smc-sans)}
.smc-ch-contact address{font-style:normal;margin:0 0 .5rem}
.smc-ch-contact ul{list-style:none;margin:0 0 .5rem;padding:0}
.smc-ch-contact li{margin:0 0 .2rem;overflow-wrap:break-word}
.smc-ch-office{color:var(--smc-slate);margin:0 0 .9rem;font-size:.95rem}
.smc-ch .smc-ch-dir{display:inline-block;font-weight:700;text-decoration:none;color:var(--smc-blue);border:2px solid var(--smc-blue);border-radius:4px;padding:.45rem .9rem}
.smc-ch .smc-ch-dir:hover{background:var(--smc-blue);color:#fff}

.smc-ch-note{font-family:var(--smc-sans);color:var(--smc-slate);border-top:1px solid var(--smc-rule);padding-top:1.2rem;margin:0;max-width:44rem}

@container smcch (max-width:52rem){
  .smc-ch-church{grid-template-columns:1fr 1fr}
  .smc-ch-church header{grid-column:1 / -1}
}
@container smcch (max-width:34rem){
  .smc-ch-church{grid-template-columns:1fr;gap:1.4rem}
  .smc-ch-jump{grid-template-columns:1fr 1fr}
  .smc-ch-jump a + a{border-left:0}
  .smc-ch-jump a:nth-child(even){border-left:1px solid var(--smc-rule)}
  .smc-ch-jump a:nth-child(n+3){border-top:1px solid var(--smc-rule)}
}
@media (max-width:36rem){ .smc-ch{font-size:17px} }
@media (prefers-reduced-motion:no-preference){ html:has(.smc-ch){scroll-behavior:smooth} }
