/* St Michael and All Angels — shared design system.
   This file is enqueued as-is by the WordPress theme; section classes map to core blocks
   (wp-block-group / columns / buttons) carrying these class names. */

/* Self-hosted brand fonts (Noto, SIL Open Font License — see assets/fonts/OFL.txt) */
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Brand (Drive › Branding › "St Michael and All Angels branding guide") */
  --brand-blue: #435eb6;       /* primary; white text on it = 6.0:1 */
  --brand-deep: #2f4594;       /* darker blue for headings and hover */
  --brand-ink: #353d60;        /* classroom-logo ink */
  --brand-yellow: #ffd739;     /* accents / highlights — never text on light backgrounds */
  --gray: #666666;             /* brand gray: secondary text (5.4:1 on --paper) */
  --gray-light: #cccccc;       /* brand light gray: rules and borders */
  --paper: #f7f8fc;            /* page background (cool, from brand blue) */
  --ink: #1a1d29;
  --line: #dfe2ec;
  --yellow-soft: #fff6cc;
  /* Classroom palette (branding guide) */
  --room-bears: #fbc3be;       /* tint of #f5756b */
  --room-dinos: #a6ecd5;       /* tint of #19c890 */
  --room-lions: #f2e78c;
  --room-tigers: #ffc98a;
  /* The Angels page backgrounds */
  --sky: #eaf0ff;
  --sunrise: #fff6d6;

  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 152px);
  --wide: 1200px;
  --read: 680px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 12px 32px rgb(16 24 40 / .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-sans);
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }
.angels :focus-visible { outline-color: var(--brand-ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.read { max-width: var(--read); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.015em; }
.parish h1, .parish h2, .parish h3 { font-family: var(--font-serif); font-weight: 700; color: var(--brand-deep); }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 .8125rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray);
}
.lede { font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.45; color: var(--gray); }
.statement {
  font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600;
  max-width: 34ch;
}
.statement .soft { color: #646b7e; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btns, .btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--brand-blue); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { border-color: currentColor; color: var(--brand-blue); background: transparent; }
.btn--light { background: var(--brand-yellow); color: var(--brand-ink); }
.btn--outline-light { border-color: #fff; color: #fff; }
.angels .btn--primary { background: var(--brand-blue); }
.angels .btn--primary:hover { background: var(--brand-deep); }
.angels .btn--ghost { color: var(--brand-deep); }
.btn--sun { background: var(--brand-yellow); color: var(--brand-ink); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 248 252 / .86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(0 0 0 / .06);
}
.angels .site-header { background: rgb(255 255 255 / .86); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-blue); margin-right: auto; }
.brand__name { font: 700 1.0625rem/1.15 var(--font-serif); white-space: nowrap; }
.brand__name small { display: block; font: 500 .75rem/1.3 var(--font-sans); color: var(--gray); letter-spacing: .04em; }
.brand__mark { width: auto; height: 44px; flex: none; }
.brand--angels img { height: 40px; width: auto; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 2px; }
.header-cta { white-space: nowrap; }
.nav a {
  padding: 10px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9688rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgb(0 0 0 / .05); }
.nav .nav__feature { color: var(--brand-deep); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: .875rem; font-weight: 600; }
.lang a, .lang span { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--gray); }
.lang [aria-current="true"] { background: var(--brand-blue); color: #fff; }
.angels .lang [aria-current="true"] { background: var(--brand-blue); }
.header-cta { display: none; }

.menu-toggle { display: none; }
@media (max-width: 1119px) {
  .site-header .nav, .site-header .header-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle > summary {
    list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
    display: grid; place-items: center; border-radius: 10px; font-weight: 600;
  }
  .menu-toggle > summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] > summary { background: rgb(0 0 0 / .06); }
  .menu-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 24px;
  }
  .menu-panel a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 1.125rem; }
  .menu-panel .btn { display: flex; margin-top: 16px; width: 100%; border: 0; color: #fff; }
}
@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
}

/* ---------- Notice ---------- */
.notice { background: var(--brand-ink); color: #fff; font-size: .9375rem; }
.notice .wrap { padding-block: 10px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; text-align: center; }
.notice a { color: #fff; font-weight: 600; }
.angels .notice { background: var(--brand-ink); }

/* ---------- Placeholders (until real photos arrive) ---------- */
.ph {
  position: relative; display: grid; place-items: end start; margin: 0;
  aspect-ratio: var(--ar, 16 / 9); border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 10%, rgb(255 255 255 / .55), transparent 60%),
    linear-gradient(135deg, #d9cfb8, #b9c3d6);
}
.angels .ph { background: radial-gradient(120% 90% at 15% 10%, rgb(255 255 255 / .7), transparent 60%), linear-gradient(135deg, #cfe0ff, #ffe3b8); }
.ph figcaption {
  margin: 16px; padding: 8px 12px; border-radius: 10px;
  background: rgb(255 255 255 / .9); color: var(--ink); font-size: .8125rem; line-height: 1.35;
}
.ph figcaption b { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #8a4b00; }

/* ---------- Parish: hero ---------- */
.hero-parish { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.hero-parish__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-parish__grid { grid-template-columns: 1.05fr 1fr; } }
.hero-parish h1 em { font-style: italic; color: var(--brand-deep); background: linear-gradient(transparent 62%, var(--brand-yellow) 62%, var(--brand-yellow) 92%, transparent 92%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.this-sunday {
  display: grid; gap: 4px; margin-top: 32px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); max-width: 460px;
}
.this-sunday strong { font-size: 1.25rem; color: var(--brand-blue); }
.this-sunday span { color: var(--gray); font-size: 1rem; }

/* ---------- Two doors ---------- */
.doors { display: grid; gap: 20px; }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: #fff; isolation: isolate;
}
.door h3 { color: inherit !important; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.door p { max-width: 36ch; opacity: .92; }
.door--parish { background: linear-gradient(160deg, var(--brand-blue), var(--brand-deep)); }
.door--angels { background: linear-gradient(160deg, var(--brand-ink), #232946); }
.door--angels h3 { font-family: var(--font-sans) !important; }
.door::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: rgb(255 255 255 / .08); z-index: -1;
}
.door .link-arrow { color: #fff; margin-top: 8px; }
.door:hover .link-arrow { text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: .875rem; color: var(--gray); margin-bottom: 8px; display: block; }
.icon-dot {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: var(--yellow-soft); color: var(--brand-blue);
}
.icon-dot svg { width: 24px; height: 24px; }
.band {
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(150deg, var(--brand-blue), var(--brand-deep)); color: #fff;
}
.band h2 { color: #fff !important; }
.band p { color: rgb(255 255 255 / .86); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.chips a, .chips li > span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--brand-blue); font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: rgb(255 255 255 / .86); padding-block: 64px 32px; font-size: 1rem; }
.angels .site-footer { background: #232946; }
.site-footer a { color: #fff; }
.site-footer h2 { font: 600 .8125rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .7) !important; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .15); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* =========================================================
   THE ANGELS — premium landing
   ========================================================= */
.angels { background: #fff; color: var(--brand-ink); }
.angels h1, .angels h2, .angels h3 { font-family: var(--font-sans); font-weight: 700; color: var(--brand-ink); letter-spacing: -.025em; }
.angels .eyebrow { color: var(--brand-deep); }
.angels .lede { color: #4b5373; }

.a-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(56px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 55%, var(--sunrise) 100%);
}
.a-hero h1 { font-size: clamp(2.75rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; margin-inline: auto; }
.a-hero h1 span { background: linear-gradient(90deg, var(--brand-blue), #7a5cd6 60%, #e2662f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-hero .lede { max-width: 38ch; margin-inline: auto; }
.a-hero .btns { justify-content: center; }
.a-hero__media { margin-top: clamp(40px, 6vw, 72px); }
.a-hero__media .ph { --ar: 21 / 9; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
@media (max-width: 640px) { .a-hero__media .ph { --ar: 4 / 3; } }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px auto 0; max-width: 880px;
  background: rgb(23 32 66 / .1); border-radius: var(--radius); overflow: hidden; padding: 0; list-style: none;
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: rgb(255 255 255 / .9); padding: 18px 12px; }
.facts strong { display: block; font-size: clamp(1rem, 2vw, 1.375rem); letter-spacing: -.01em; }
.facts span { font-size: .875rem; color: #4b5373; }

.a-statement { padding-block: var(--section); }
.a-statement .statement { margin-inline: auto; text-align: center; max-width: 30ch; }

/* Classrooms */
.rooms {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px;
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin;
}
.rooms > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .rooms { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
}
.room {
  position: relative; display: flex; flex-direction: column; min-height: clamp(280px, 40vw, 380px);
  padding: 28px; border-radius: var(--radius-lg); background: var(--room, #eee); color: var(--brand-ink);
}
.room svg { width: 72px; height: 72px; margin-bottom: auto; }
.room h3 { font-size: 1.75rem; margin: 24px 0 4px; }
.room__age { font-size: 1.125rem; font-weight: 600; margin: 0; }
.room__ratio { margin: 14px 0 0; font-size: .9375rem; padding-top: 14px; border-top: 1px solid rgb(23 32 66 / .18); }
.room--bears { --room: var(--room-bears); }
.room--dinos { --room: var(--room-dinos); }
.room--lions { --room: var(--room-lions); }
.room--tigers { --room: var(--room-tigers); }
.scroll-hint { font-size: .875rem; color: #4b5373; margin-top: 4px; }
@media (min-width: 1024px) { .scroll-hint { display: none; } }

/* Feature tiles */
.tiles { display: grid; gap: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end; background: #f5f7fc;
}
.tile--blue { background: linear-gradient(150deg, #5a76d1, var(--brand-deep)); color: #fff; }
.tile--blue h3, .tile--blue p { color: #fff; }
.tile--sun { background: linear-gradient(150deg, #fff3c4, #ffe08a); }
.tile--sky { background: linear-gradient(150deg, #f1f6ff, #dce8ff); }
.tile--peach { background: linear-gradient(150deg, #fff1e6, #ffd9bd); }
.tile h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tile p { margin: 0; font-size: 1.0625rem; }
.tile__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; opacity: .8; }

/* Enrollment steps */
.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-blue); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: #4b5373; font-size: 1rem; }

/* Tuition */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid #e3e7f2;
}
.price h3 { font-size: 1.25rem; margin-bottom: 20px; }
.price dl { margin: 0; display: grid; gap: 16px; }
.price dt { font-size: .875rem; color: #4b5373; }
.price dd { margin: 0; font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; }
.price dd small { font-size: .9375rem; font-weight: 500; color: #4b5373; letter-spacing: 0; }
.fine { font-size: .9375rem; color: #4b5373; }

.soft-bg { background: linear-gradient(180deg, #fff, var(--sky)); }
.sun-bg { background: linear-gradient(180deg, #fff, var(--sunrise)); }

/* App features */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 36px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Practical info */
.info-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1.2fr; } }
.info-list { display: grid; gap: 20px; margin: 0; }
.info-list dt { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.info-list dd { margin: 4px 0 0; font-size: 1.125rem; }
.map { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius-lg); background: #e9edf5; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid #dfe3ee; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 1.1875rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 1.75rem; font-weight: 400; color: var(--brand-blue); transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding-bottom: 22px; color: #3c4462; }

.cta-final {
  text-align: center; border-radius: var(--radius-lg); padding: clamp(48px, 8vw, 104px) var(--gutter);
  background: radial-gradient(120% 120% at 50% 0%, #6a84dc 0%, var(--brand-deep) 70%); color: #fff;
}
.cta-final h2 { color: #fff !important; font-size: clamp(2.25rem, 5.5vw, 4rem); max-width: 16ch; margin-inline: auto; }
.cta-final p { color: rgb(255 255 255 / .9); max-width: 46ch; margin-inline: auto; }
.cta-final .btns { justify-content: center; }

/* Sticky mobile CTA on the daycare page */
.mobile-cta {
  position: fixed; inset: auto 12px 12px; z-index: 40; display: flex; gap: 8px;
  padding: 8px; border-radius: 999px; background: rgb(255 255 255 / .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.mobile-cta .btn { flex: 1; min-height: 44px; padding: 10px 14px; font-size: 1rem; }
@media (min-width: 960px) { .mobile-cta { display: none; } }
@media (max-width: 959px) { .angels .site-footer { padding-bottom: 104px; } }

/* ---------- Motion (progressive, opt-out respected) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Preview-only label (removed in WordPress) ---------- */
.preview-flag { background: #fff3c4; color: #5c4300; font-size: .875rem; text-align: center; padding: 8px 16px; }

/* =========================================================
   WordPress block mapping — editor blocks carry the classes above.
   ========================================================= */
.page-header { padding-block: clamp(48px, 7vw, 96px) clamp(20px, 3vw, 32px); }
.page-header--angels h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.prose { width: min(100% - 2 * var(--gutter), var(--read)); margin: 0 auto; padding-bottom: var(--section); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose .alignwide, .prose .alignfull { width: min(100vw - 2 * var(--gutter), var(--wide)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-thumb img { border-radius: var(--radius-lg); margin-bottom: 32px; }
.event-when { font-size: 1.125rem; color: var(--brand-deep); }

/* Buttons block = .btn styles */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .wp-block-buttons, .wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--font-sans);
  text-decoration: none; background: var(--brand-blue); color: #fff; transition: background-color .2s, transform .2s;
}
.wp-block-button .wp-block-button__link:hover { background: var(--brand-deep); transform: translateY(-1px); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--brand-deep); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: rgb(67 94 182 / .08); }
.wp-block-button.is-style-sun .wp-block-button__link, .wp-block-button.is-style-light .wp-block-button__link { background: var(--brand-yellow); color: var(--brand-ink); }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }

/* Blocks inside design sections */
.wrap > :first-child { margin-top: 0; }
.wp-block-image { margin: 0; }
.wp-block-image.rounded img, .hero-parish .wp-block-image img, .a-hero__media img, .gallery-row img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.a-hero__media img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .a-hero__media img { aspect-ratio: 4 / 3; } }
.gallery-row img { aspect-ratio: 1; }
.a-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-blue), #7a5cd6 60%, #e2662f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement em { font-style: normal; color: #646b7e; }
.room .wp-block-image { margin-bottom: auto; }
.room .wp-block-image img { width: 72px; height: 72px; }
.facts li { font-size: .875rem; color: #4b5373; }
.facts li strong { color: var(--brand-ink); margin-bottom: 2px; }
.steps li { color: #4b5373; font-size: 1rem; }
.steps li strong { display: block; font-size: 1.25rem; color: var(--brand-ink); margin-bottom: 6px; }
.price__label { margin: 0; font-size: .875rem; color: #4b5373; }
.price__amount { margin: 0 0 16px; font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand-ink); }
.price__amount:last-child { margin-bottom: 0; }
.door .link-arrow a { color: #fff; text-decoration: none; }
.door .link-arrow a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.door:hover .link-arrow a { text-decoration: underline; }
.door:focus-within { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }
.this-sunday p { margin: 0; }
.this-sunday .this-sunday__time { font-size: 1.25rem; font-weight: 700; color: var(--brand-deep); }
.this-sunday p:not(.this-sunday__time) { color: var(--gray); font-size: 1rem; }
.card__img { border-radius: 12px; margin-bottom: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-form input[type="search"] { flex: 1; min-height: 48px; padding: 0 16px; border: 1px solid var(--gray-light); border-radius: 12px; font: inherit; }
.search-form input[type="submit"] { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--brand-blue); color: #fff; font: 600 1rem var(--font-sans); cursor: pointer; }
.wp-block-details summary { cursor: pointer; }
.mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.bg-white { background: #fff; }
.items-center { align-items: center; }
h2.center, h3.center { text-align: center; }
.eyebrow--light { color: #fff1a8 !important; }
.eyebrow--sun { color: var(--brand-yellow) !important; }
.a-hero .wp-block-buttons { justify-content: center; }
.center .wp-block-buttons { justify-content: center; }
.info-item + .info-item { margin-top: 20px; }
.info__label { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.info__value { margin: 4px 0 0; font-size: 1.125rem; }
.wp-block-list.chips, .wp-block-list.facts, .wp-block-list.steps, .wp-block-list.checklist { padding-left: 0; }

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-cta, .menu-toggle, .preview-flag { display: none !important; }
}
/* Small phones: let the parish name wrap so the language switch and menu stay on screen. */
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .brand { min-width: 0; }
  .brand__name { white-space: normal; font-size: .9375rem; line-height: 1.15; }
  .brand__name small { display: none; }
  .brand__mark { height: 38px; }
  .lang a, .lang span { padding: 6px 8px; }
}

/* ---------- Interior pages ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 112px) clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
.page-hero .lede { max-width: 40ch; }
.page-hero--angels { background: linear-gradient(180deg, var(--sky), #fff); }
.page-hero--angels h1 { font-family: var(--font-sans); color: var(--brand-ink); }
.card--feature { border-width: 2px; border-color: var(--brand-blue); }
.big-time { margin: 0; font: 700 clamp(1.75rem, 4vw, 2.5rem)/1.1 var(--font-serif); color: var(--brand-deep); }
.stat__num { margin: 0; font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--font-sans); color: var(--brand-deep); letter-spacing: -.03em; }
.stat__unit { margin: 6px 0 12px; font-weight: 700; color: var(--brand-ink); }
.stat p:last-child { color: var(--gray); font-size: 1rem; }
.sources, .doc-list { padding-left: 1.2em; display: grid; gap: 8px; font-size: 1rem; }
.closures { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.closures th, .closures td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.closures th { font-weight: 600; color: var(--brand-ink); width: 45%; }
.closures tr:last-child th, .closures tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .closures th, .closures td { display: block; width: auto; padding: 4px 16px; } .closures th { padding-top: 14px; border: 0; } .closures td { padding-bottom: 14px; } }
.form-embed { margin-top: 24px; min-height: 320px; }
.form-embed .hs-form input, .form-embed .hs-form textarea, .form-embed .hs-form select { width: 100% !important; min-height: 44px; border: 1px solid var(--gray-light); border-radius: 10px; padding: 8px 12px; font: inherit; }
.form-embed .hs-form label { font-weight: 600; font-size: 1rem; }
.form-embed .hs-button { background: var(--brand-blue) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 12px 26px !important; font: 600 1.0625rem var(--font-sans) !important; cursor: pointer; width: auto !important; }
.empty-note { color: var(--gray); }
.latest-events { margin-bottom: 48px; }
.drive-folder { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.notice-admin { background: #fff3c4; color: #5c4300; padding: 10px 14px; border-radius: 10px; font-size: .9375rem; }

/* Prayer list + request form (plugin: inc/prayers.php) */
.prayer-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .prayer-list { grid-template-columns: 1fr 1fr; } }
.prayer-list li { display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.prayer-list__name { font-weight: 600; font-size: 1.125rem; }
.prayer-list__intention { color: var(--gray); }
.prayer-form { margin-top: 24px; }
.prayer-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.prayer-form input[type="text"], .prayer-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--gray); border-radius: 12px; font: inherit; background: #fff; }
.prayer-form small { display: block; margin-top: 4px; color: var(--gray); }
.prayer-form .check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.prayer-form .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.prayer-form .grid { gap: 0 20px; }
.prayer-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.notice-ok { background: #e6f7ef; color: #0d5c3b; }
.notice-error { background: #fdecea; color: #8a1c12; }
