/* St. Elizabeth the New Martyr — site styles
   Palette drawn from the church itself: red brick, white tower,
   stained-glass blue and the gilt of the iconostasis. */
:root {
  --plaster: #f5f6f3;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #4f5666;
  --brick: #8b3a2b;
  --brick-deep: #6e2c20;
  --glass: #1e4f8f;
  --gilt: #b8892b;
  --stone: #dcddd6;
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V42C0 20 22 5 50 0C78 5 100 20 100 42V100Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glass); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--glass); outline-offset: 3px; border-radius: 2px; }
.board-band :focus-visible, .site-footer :focus-visible { outline-color: #f1d9a3; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.35rem; margin: 1.8em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 40rem; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 3rem; height: auto; flex: none; margin-block: 0.45rem; }
.brand-name { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; display: block; }
.brand-place { font-size: 0.82rem; color: var(--muted); display: block; }
.nav { display: flex; gap: 1.15rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brick); }
.nav a[aria-current="page"] { border-bottom-color: var(--brick); }
.menu { display: none; }

.button {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.3rem;
  border-radius: 6px;
  border: 2px solid var(--brick);
  line-height: 1.2;
}
.button:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: #fff; }
.button.quiet { background: transparent; color: var(--brick); }
.button.quiet:hover { background: var(--brick); color: #fff; }
.nav .button { color: #fff; border-bottom: 2px solid var(--brick); padding: 0.55rem 1rem; }
.nav .button.quiet { color: var(--brick); }
.nav .button.quiet:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Home hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin-bottom: 0.25em; }
.hero-verse { font-family: var(--display); color: var(--brick); font-size: 1.05rem; margin: 0 0 1.4rem; }
.arch { -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; }
.arch-frame { padding: 9px; background: var(--gilt); }
.arch-frame img { background: var(--ink); }
.caption { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; }

/* Sunday board */
.board-band { background: var(--ink); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.board h2 { color: #fff; margin-top: 0; }
.board a { color: #fff; }
.board .muted { color: #c9cdd6; }
.times { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.times li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.times li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.times .t { font-family: var(--display); font-size: 1.3rem; color: #f1d9a3; }
.times .n { font-weight: 600; }
.times .d { display: block; color: #c9cdd6; font-size: 0.95rem; font-weight: 400; }
.address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin-bottom: 1rem; }
.board .button { background: #fff; color: var(--ink); border-color: #fff; }
.board .button:hover { background: #f1d9a3; border-color: #f1d9a3; color: var(--ink); }
.board .button.quiet { background: transparent; color: #fff; }
.board .button.quiet:hover { background: #fff; color: var(--ink); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section > .wrap > h2:first-child { margin-top: 0; }
.section.white { background: var(--white); border-block: 1px solid var(--stone); }
.intro { max-width: 40rem; margin-bottom: 2rem; }
.intro h2 { margin-top: 0; }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.paths li { border-top: 3px solid var(--brick); padding-top: 1rem; }
.paths h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.paths h3 a { color: var(--ink); text-decoration: none; }
.paths h3 a:hover { color: var(--brick); text-decoration: underline; }
.paths p { color: var(--muted); margin: 0; }

.questions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 1px solid var(--stone); }
.questions li { border-bottom: 1px solid var(--stone); }
.more { margin: 2rem 0 0; }
.questions a { display: block; padding: 0.9rem 0; font-family: var(--display); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.questions a:hover { color: var(--brick); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; }
.years { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.years li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 0.45rem 0; }
.years b { font-family: var(--display); font-weight: 400; color: var(--brick); font-size: 1.2rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(12rem, 24vw, 20rem); gap: 0.75rem; margin-top: 2rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.stream { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.stream h2 { margin: 0 0 0.3rem; }
.stream p { margin: 0; color: var(--muted); }
.pill { display: inline-block; font-size: 0.9rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--stone); color: var(--ink); font-weight: 600; }

/* Inner pages */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.page-head h1 { max-width: 22ch; }
.crumb { font-size: 0.92rem; margin-bottom: 1rem; }
.crumb a { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: 5rem; }
.layout.single { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: var(--measure); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 650; }
.prose .button { margin: 0.5rem 0 1rem; }
.page-photo { margin: 0 0 2rem; max-width: var(--measure); }
.page-photo img { width: 100%; max-height: 32rem; object-fit: cover; }

.side { font-size: 0.97rem; }
.side h2 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.side ul { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--stone); }
.side li { border-bottom: 1px solid var(--stone); }
.side li a { display: block; padding: 0.55rem 0; color: var(--ink); text-decoration: none; line-height: 1.35; }
.side li a:hover { color: var(--brick); }
.side li a[aria-current="page"] { color: var(--brick); font-weight: 600; }
.side-card { background: var(--white); border: 1px solid var(--stone); padding: 1.1rem 1.2rem; }
.side-card p { margin: 0 0 0.6rem; }

.index-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.index-list li { border-top: 1px solid var(--stone); }
.index-list li:last-child { border-bottom: 1px solid var(--stone); }
.index-list a { display: grid; grid-template-columns: 1fr; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.index-list a:hover .t { color: var(--brick); }
.index-list .t { font-family: var(--display); font-size: 1.4rem; line-height: 1.25; }
.index-list .s { color: var(--muted); margin-top: 0.2rem; }

.schedule { max-width: 46rem; }
.schedule .day { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--stone); }
.schedule .day:last-child { border-bottom: 1px solid var(--stone); }
.schedule .day h3 { margin: 0; font-size: 1.3rem; }
.schedule .item { margin-bottom: 0.6rem; }
.schedule .item:last-child { margin-bottom: 0; }
.schedule .time { font-weight: 700; margin-right: 0.4rem; }
.schedule .d { display: block; color: var(--muted); }

.ministry { border-top: 1px solid var(--stone); padding: 1.2rem 0; max-width: var(--measure); }
.ministry:last-child { border-bottom: 1px solid var(--stone); }
.ministry h2, .ministry h3 { font-size: 1.4rem; margin: 0 0 0.2rem; }

/* Ministries: diagram of all parish ministries */
.ministry-map { margin: 0 0 2rem; }
.ministry-map h2 { margin-top: 0; }
.map-hint { color: var(--muted); margin-top: 0; }
.map { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(5.5rem, 1fr)); margin-top: 1.5rem; padding: 0; background: var(--white); border: 1px solid var(--stone); border-radius: 8px; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines line { stroke: var(--gilt); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-list { display: contents; list-style: none; margin: 0; padding: 0; }
.map-list li { display: flex; align-items: center; justify-content: center; padding: 0.6rem; position: relative; }
.map-list a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3rem; width: 100%; max-width: 13rem; padding: 0.5rem 0.9rem; background: var(--white); color: var(--ink); border: 2px solid var(--brick); border-radius: 999px; font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-decoration: none; }
.map-list a:hover { background: var(--brick); color: var(--white); }
.map-center { grid-area: 2 / 2 / 4 / 4; display: flex; align-items: center; justify-content: center; position: relative; }
.map-center span { display: block; background: var(--brick); color: var(--white); font-family: Marcellus, serif; font-size: 1.35rem; line-height: 1.3; text-align: center; padding: 1rem 1.8rem; border-radius: 999px; box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--gilt); }
.ministry-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.ministry-card { background: var(--white); border: 1px solid var(--stone); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 6rem; }
.ministry-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ministry-card-blank { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--plaster); border-bottom: 1px solid var(--stone); }
.ministry-card .ministry-card-blank img { width: 5rem; aspect-ratio: auto; opacity: 0.85; }
.ministry-card-body { padding: 1.1rem 1.3rem 1.2rem; }
.ministry-card h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.ministry-card .leader { margin-bottom: 0.3rem; }
.ministry-card .leader span { color: var(--brick); font-weight: 600; }
.ministry-card .to-map { font-size: 0.9rem; margin: 0.6rem 0 0; }
.ministry-card .to-map a { display: inline-block; padding: 0.5rem 0; }
.ministry-card:target { outline: 3px solid var(--gilt); outline-offset: 2px; }
.gatherings { max-width: var(--measure); }
.ministry .when { color: var(--brick); font-weight: 600; margin-bottom: 0.4rem; }
.note { background: var(--white); border-left: 4px solid var(--gilt); padding: 1rem 1.2rem; max-width: var(--measure); margin-bottom: 2rem; }

/* History (content supplied by the parish) */
.history { max-width: 46rem; }
.history .ph-section { margin-bottom: 3rem; }
.history .ph-section h2 { margin-top: 0; padding-bottom: 0.3em; border-bottom: 1px solid var(--stone); }
.history .ph-section h2 span { display: block; font-family: var(--text); font-size: 0.95rem; color: var(--brick); margin-bottom: 0.35rem; }
.history .ph-intro { font-size: 1.2rem; }
.history .ph-figure { margin: 1.8rem 0; }
.history .ph-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.history .ph-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.history .ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.history .ph-pair .ph-figure { margin: 0; }
.history .ph-quote { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--white); border-left: 4px solid var(--gilt); font-size: 1.1rem; }
.history .ph-patron { background: var(--white); border: 1px solid var(--stone); padding: 1.4rem 1.6rem; }
.history .ph-timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.history .ph-timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem; padding: 0.55rem 0; border-top: 1px solid var(--stone); }
.history .ph-year { font-family: var(--display); color: var(--brick); font-size: 1.2rem; }
.history .ph-new .ph-year { color: var(--glass); }
.history .ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.history .ph-card { background: var(--white); border: 1px solid var(--stone); border-top: 3px solid var(--brick); padding: 1rem 1.1rem; }
.history .ph-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: 0 0 0.3rem; }
.history .ph-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.history .ph-sources { font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 5rem; }
.contact-grid h2 { margin-top: 0; font-size: 1.5rem; }
.contact-grid img { width: 100%; }

/* Footer */
.site-footer { background: var(--brick-deep); color: #f3e7e2; padding: 3.5rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { color: #fff; font-size: 1.25rem; margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.88rem; color: #e3cfc8; }

.patron-icon { float: right; width: min(13rem, 40%); margin: 0.3rem 0 1rem 1.5rem; }
.patron-icon img { width: 100%; border: 1px solid var(--stone); }
.patron-icon figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* Events */
.events { list-style: none; padding: 0; margin: 0 0 1rem; max-width: 46rem; }
.event { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--stone); }
.event:last-child { border-bottom: 1px solid var(--stone); }
.event-date { text-align: center; background: var(--white); border: 1px solid var(--stone); border-top: 4px solid var(--brick); padding: 0.4rem 0 0.5rem; align-self: start; }
.event-date .m { display: block; font-weight: 600; color: var(--brick); font-size: 0.95rem; }
.event-date .d { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.event-date .y { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.event h3 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.event-when { color: var(--brick); font-weight: 600; margin-bottom: 0.15rem; }
.event-time { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.event p:last-child { margin-bottom: 0; }
.event img { margin-top: 0.9rem; max-width: 26rem; width: 100%; }
.event img.event-icon { width: auto; max-width: 11rem; max-height: 7.5rem; border-radius: 6px; }
.events.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; max-width: none; border-top: 1px solid var(--stone); }
.events.compact .event { border-top: 0; border-bottom: 1px solid var(--stone); }
.events.past .event-date { border-top-color: var(--muted); }
.events-empty { color: var(--muted); }

/* Calendar links */
.cal-links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 40rem; }
.cal-link { display: flex; align-items: center; gap: 0.85rem; min-height: 4.5rem; padding: 0.85rem 1rem; background: var(--white); border: 2px solid var(--brick); border-radius: 6px; color: var(--ink); text-decoration: none; }
a.cal-link:hover { background: var(--brick); color: #fff; }
a.cal-link:hover .cal-icon, a.cal-link:hover .cal-sub { color: #fff; }
.cal-icon { width: 1.9rem; height: 1.9rem; flex: none; color: var(--brick); }
.cal-month { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.cal-sub { display: block; font-size: 0.9rem; color: var(--muted); }
.cal-link.is-missing { border-style: dashed; border-color: var(--stone); }
.board .cal-link { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.board .cal-icon { color: #f1d9a3; }
.board .cal-sub { color: #c9cdd6; }
.board a.cal-link:hover { background: #fff; color: var(--ink); }
.board a.cal-link:hover .cal-icon { color: var(--brick); }
.board a.cal-link:hover .cal-sub { color: var(--muted); }
.board .cal-link.is-missing { border-color: rgba(255,255,255,0.25); }
.board-sub { font-size: 1.35rem !important; margin: 2rem 0 0.8rem !important; }
.button.give { padding-inline: 1.1rem; }
.mobile-only { display: none; }

.bulletin { max-width: 40rem; margin-bottom: 1rem; }
.bulletin .cal-link { max-width: calc(50% - 0.375rem); }

/* Small screens */
@media (max-width: 1100px) {
  .nav { display: none; }
  .mobile-only { display: inline-block; padding: 0.5rem 0.9rem; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.55rem 0.9rem; border: 2px solid var(--ink); border-radius: 6px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: grid; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 0.6rem); background: var(--white); border: 1px solid var(--stone); box-shadow: 0 10px 30px rgba(27,34,51,0.15); padding: 0.5rem; min-width: 15rem; z-index: 5; }
  .menu-panel a { padding: 0.7rem 0.8rem; color: var(--ink); text-decoration: none; font-weight: 500; }
  .menu-panel a:hover { background: var(--plaster); }
  .menu-panel a.button { color: #fff; margin-top: 0.4rem; text-align: center; }
  .hero .wrap, .board, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 26rem; }
  .layout { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; gap: 1.5rem; }
  .questions { grid-template-columns: 1fr; }
  .events.compact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 760px) {
  .map { grid-template-columns: 1fr 1fr; grid-template-rows: none; padding: 0.75rem; gap: 0.5rem; }
  .map-lines { display: none; }
  .map-center { grid-area: auto; grid-column: 1 / -1; order: -1; padding: 0.25rem 0 0.5rem; }
  .map-center span { font-size: 1.15rem; padding: 0.7rem 1.2rem; }
  .map-list li { grid-area: auto !important; padding: 0; }
  .map-list a { max-width: none; height: 100%; font-size: 0.9rem; padding: 0.5rem 0.6rem; }
  .ministry-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand-place { display: none; }
  .brand-mark { width: 2.5rem; }
  .brand-name { font-size: 1.02rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; }
  .times li, .schedule .day { grid-template-columns: 1fr; gap: 0.2rem; }
  .cal-links { grid-template-columns: 1fr; }
  .bulletin .cal-link { max-width: none; }
  .event { grid-template-columns: 3.75rem 1fr; gap: 1rem; }
  .history .ph-pair, .history .ph-cards { grid-template-columns: 1fr; }
  .history .ph-timeline li { grid-template-columns: 4.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.nowrap { white-space: nowrap; }

/* Give: pledge card form */
.pledge-form { background: var(--white); border: 1px solid var(--stone); border-top: 4px solid var(--brick); border-radius: 8px; padding: 1.4rem 1.5rem 1.2rem; margin: 1.5rem 0 1.5rem; }
.pledge-form h3 { margin-top: 0; }
.pledge-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.pledge-form legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.pledge-form .field { margin-bottom: 1rem; }
.pledge-form .field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.pledge-form .optional { font-weight: 400; color: var(--muted); }
.pledge-form input[type="text"], .pledge-form input[type="email"], .pledge-form input[type="tel"] { width: 100%; min-height: 2.9rem; padding: 0.55rem 0.75rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--muted); border-radius: 6px; }
.pledge-form .amount input { max-width: 12rem; }
.pledge-form input[aria-invalid="true"] { border: 2px solid var(--brick); }
.pledge-form .period { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.pledge-form .period label, .pledge-form .check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; }
.pledge-form input[type="radio"], .pledge-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--brick); }
.pledge-form .check { margin-bottom: 0.75rem; }
.pledge-form .form-hint { color: var(--muted); font-size: 0.95rem; }
.pledge-form .form-error { color: var(--brick); font-weight: 600; min-height: 0; margin: 0 0 0.75rem; }
.pledge-form .form-error:empty { display: none; }
.pledge-form button { margin-bottom: 0.5rem; }

.venmo-qr { margin: 0.5rem 0 1.5rem; }
.venmo-qr img { width: 11rem; height: auto; }
.pledge-form .form-fallback { background: var(--plaster); border: 1px solid var(--stone); border-radius: 6px; padding: 1rem; margin: 0.5rem 0 1rem; }
.pledge-form textarea { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.6rem; border: 1px solid var(--muted); border-radius: 6px; background: var(--white); color: var(--ink); }
#pledge-copied { color: var(--ink); font-weight: 600; margin-left: 0.5rem; }

/* Parish life: stories and photos from past events */
.story-date { color: var(--brick); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.3rem; }
.page-head .story-date { margin-bottom: 0.6rem; }
.year-head { margin: 0 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--stone); }
.stories-page { padding-bottom: 5rem; }
.stories-page section + section { margin-top: 2.5rem; }
.stories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.story-card { background: var(--white); border: 1px solid var(--stone); display: flex; flex-direction: column; position: relative; }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-card > div { padding: 1rem 1.2rem 1.2rem; }
.story-card h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.story-card h3 a { color: var(--ink); text-decoration: none; }
.story-card h3 a::after { content: ""; position: absolute; inset: 0; }
.story-card:hover h3 a, .story-card h3 a:focus-visible { color: var(--brick); text-decoration: underline; }
.story-card p:last-child { margin-bottom: 0; color: var(--muted); }
.story-body img { width: 100%; margin: 1.5rem 0; }
.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--stone); }
.story-nav a { display: block; min-height: 2.75rem; }
.story-nav a.newer { grid-column: 2; text-align: right; }
.story-nav span { display: block; font-size: 0.85rem; color: var(--muted); }
.feature { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.6rem; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--brick); text-decoration: underline; }
.feature .more { margin-top: 1.25rem; }
.more .button + .button { margin-left: 0.5rem; }
.event-story { margin-top: 0.5rem; }
.event-story a { display: inline-block; min-height: 2.75rem; padding: 0.55rem 0; font-weight: 600; }
.past-year { max-width: 46rem; margin: 0.75rem 0; border: 1px solid var(--stone); background: var(--white); }
.past-year summary { cursor: pointer; min-height: 2.75rem; padding: 0.7rem 1rem; font-weight: 600; color: var(--glass); }
.past-year .events { padding: 0 1rem; margin: 0; }
.past-year .event:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .story-nav { grid-template-columns: 1fr; }
  .story-nav a.newer { grid-column: auto; text-align: left; }
  .more .button + .button { margin-left: 0; margin-top: 0.5rem; }
}
.highlights-head { font-size: 1.35rem; margin: 0.5rem 0 1rem; }
.stories.highlights { margin-bottom: 0.5rem; }
.more-stories { margin: 0 0 2rem; }
.more-stories a { display: inline-block; min-height: 2.75rem; padding: 0.55rem 0; font-weight: 600; }

/* Service texts */
.texts-page h2:first-child { margin-top: 0; }
.texts { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 48rem; }
.texts .cal-link { height: 100%; align-items: flex-start; }
.texts .cal-icon { margin-top: 0.2rem; }
.texts .cal-sub { display: block; }
.text-status { display: block; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--brick); }
.texts .is-missing .text-status { color: var(--muted); font-weight: 400; }
a.cal-link:hover .text-status { color: #fff; }
.texts-foot { max-width: 48rem; }
@media (max-width: 600px) { .texts { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .saint .patron-icon { float: none; width: 11rem; margin: 0 auto 1.5rem; text-align: center; }
}

/* Contact page message form (reuses .pledge-form styles) */
.message-form { margin-top: 0.5rem; margin-bottom: 2.5rem; }
.message-form h2 { margin-top: 0; }
.message-form textarea { font-size: 1rem; min-height: 9rem; resize: vertical; }
.message-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-form .form-status { font-weight: 600; color: var(--glass, #1e4f8f); margin: 0.25rem 0 0.75rem; }
.message-form .form-status:empty { display: none; }
