/* stalphonsabc.org: the public site (U1, frontend-components.md). A modern layout in a sober wine, gold
   and ivory theme, with the parish logo in its own colours. No web fonts, no inline styles and no JavaScript (the CSP allows none): every
   interaction is CSS. Motion is progressive (only where the browser supports it) and switched off for
   people who ask for reduced motion. */

:root {
  /* THEME: wine, gold and ivory. The whole theme is this block; the logo-colour theme (navy, violet,
     periwinkle) is recorded in frontend-components.md and can be swapped in here. Every text pair meets
     WCAG AA (4.5:1 or more). */
  --primary: #5c1a24;           /* deep wine: header, footer, titles, links */
  --primary-rgb: 92, 26, 36;
  --primary-dark: #3f1118;
  --primary-dark-rgb: 63, 17, 24;
  --deep-rgb: 40, 10, 15;       /* hero overlay and deep shadows */
  --accent: #b8975a;            /* antique gold: lines, borders, badges (never text on ivory) */
  --accent-rgb: 184, 151, 90;
  --accent-light: #d8bd85;      /* gold on wine, the light button colour */
  --accent-light-rgb: 216, 189, 133;
  --accent-text: #8a6a2f;       /* gold text and focus rings on ivory */
  --ink: #2b2522;
  --text: #3b3532;
  --muted: #6b625b;
  --bg: #fffdf9;                /* warm ivory */
  --bg-alt: #f6f0e6;            /* parchment */
  --card: #ffffff;
  --line: #ebe2d4;
  --row-hover: #fbf7f0;
  --on-dark: #e9dccb;           /* text on wine */
  --on-dark-soft: #d9c9b3;
  --on-dark-muted: #d4bfa0;
  --shadow-rgb: 60, 25, 20;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 4px 12px rgba(var(--shadow-rgb), .06);
  --shadow-lg: 0 2px 6px rgba(var(--shadow-rgb), .08), 0 18px 40px rgba(var(--shadow-rgb), .14);
  /* Layout and type (not part of the theme) */
  --radius: 16px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", "Noto Serif Malayalam", serif;
}

/* Smooth page-to-page transitions in browsers that support them (no script needed). */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-color: rgba(var(--primary-rgb), .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; color: var(--ink); line-height: 1.2; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { text-wrap: pretty; }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.1em; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 2.5em 0; }
::selection { background: var(--accent-light); color: var(--ink); }

main { flex: 1 0 auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--primary); padding: 8px 14px; z-index: 20; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Banner (home only, R4) ---------- */
.banner { background: var(--ink); color: #fff; text-align: center; padding: 10px 20px; font-weight: 500; font-size: .95rem; }
.banner p { margin: 0; }
.banner a { color: var(--ink); background: var(--accent-light); padding: 3px 14px; border-radius: 999px; text-decoration: none; margin-left: .5em; white-space: nowrap; font-weight: 600; transition: background .2s; }
.banner a:hover { color: var(--ink); background: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(var(--primary-rgb), .97); color: #fff; border-bottom: 1px solid rgba(var(--accent-light-rgb), .45); box-shadow: 0 6px 24px rgba(var(--deep-rgb), .18); }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header { background: rgba(var(--primary-rgb), .93); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header .bar { max-width: 1400px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; flex: 0 1 auto; max-width: 320px; }
.brand:hover { color: #fff; }
.brand-logo { width: 48px; height: 48px; flex: none; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }

.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header nav a { position: relative; color: #fff; text-decoration: none; display: block; padding: 8px 9px; font-size: .9rem; white-space: nowrap; font-weight: 500; border-radius: 8px; transition: color .2s, background .2s; }
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* Wide screens: the menu sits beside the name, with an accent underline that grows on hover. */
.menu-wide { display: none; }
.menu-wide ul { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 0 2px; }
.menu-wide a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px; background: var(--accent-light); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu-wide a:hover::after, .menu-wide a[aria-current="page"]::after { transform: scaleX(1); }
.menu-wide li:last-child a { margin-left: 8px; background: var(--accent-light); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.menu-wide li:last-child a::after { display: none; }
.menu-wide li:last-child a:hover { background: #fff; color: var(--ink); }

/* Phones: a disclosure that opens a full-width panel; the button turns into a cross. */
.menu-small summary { list-style: none; cursor: pointer; color: #fff; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 7px 16px 7px 14px; font-weight: 600; font-size: .95rem; transition: background .2s; }
.menu-small summary::-webkit-details-marker { display: none; }
.menu-small summary:hover, .menu-small[open] summary { background: rgba(255, 255, 255, .12); }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-small[open] .burger { background: transparent; }
.menu-small[open] .burger::before { transform: translateY(6px) rotate(45deg); background: #fff; }
.menu-small[open] .burger::after { transform: translateY(-6px) rotate(-45deg); background: #fff; }
.menu-small nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--primary-dark); padding: 12px 16px 24px; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: 0 24px 40px rgba(var(--deep-rgb), .35); }
.menu-small[open] nav { animation: drop .35s var(--ease); }
.menu-small nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.menu-small nav a { padding: 12px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
.menu-small nav a[aria-current="page"] { color: var(--accent-light); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .menu-small nav ul { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .brand-sub { display: none; } .brand-name { font-size: 1.15rem; } }
/* 1180 to 1499 px: the menu gets its own row under the name; 1500 px and wider: one row. */
@media (min-width: 1180px) {
  .menu-small { display: none; }
  .site-header .bar { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; }
  .menu-wide { display: block; flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 4px; }
  .menu-wide ul { justify-content: center; }
}
@media (min-width: 1500px) {
  .site-header .bar { flex-wrap: nowrap; padding-bottom: 10px; }
  .menu-wide { flex-basis: auto; border-top: 0; padding-top: 0; }
  .menu-wide ul { justify-content: flex-end; }
}

/* ---------- Title bar (inner pages) ---------- */
.title-bar { position: relative; background: radial-gradient(1200px 300px at 85% -10%, rgba(var(--accent-rgb), .22), transparent 60%), var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0 40px; overflow: hidden; }
.title-bar .wrap { max-width: 880px; }
.page-bulletin .title-bar .wrap, .page-bulletin .content { max-width: var(--wrap); }
.title-bar h1 { color: var(--primary); }
.title-bar h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 16px; }
.content { padding-top: 40px; padding-bottom: 72px; max-width: 880px; }
.home-content { max-width: var(--wrap); }
.content > :first-child, .content > :first-child > :first-child { margin-top: 0; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- Home: hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-dark); min-height: min(88vh, 760px); display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0; background: url("/assets/header-768.jpg") center / cover no-repeat; }
@media (min-width: 769px) { .hero-media { background-image: url("/assets/header.jpg"); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(var(--deep-rgb), .9) 0%, rgba(var(--primary-dark-rgb), .72) 45%, rgba(var(--primary-rgb), .25) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; background: linear-gradient(transparent, rgba(var(--deep-rgb), .35)); }
.hero-inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 140px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--accent-light); font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent-light); }
.hero h1 { color: #fff; max-width: 13em; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); line-height: 1.08; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero-tagline { max-width: 34em; margin: 22px 0 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn, .button, .buttons a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s; }
.btn:hover, .button:hover, .buttons a:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent-light); color: var(--ink); box-shadow: 0 8px 24px rgba(var(--accent-light-rgb), .3); }
.btn-accent:hover { background: #fff; color: var(--ink); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.button, .buttons a { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .22); }
.button:hover, .buttons a:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(var(--primary-rgb), .3); }
.outline .button { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.outline .button::after { content: "\2192"; transition: transform .25s var(--ease); }
.outline .button:hover { background: var(--primary); color: #fff; }
.outline .button:hover::after { transform: translateX(4px); }
.buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 1.2em; }
.center { text-align: center; }
.large { font-size: 1.3rem; }

/* ---------- Home: quick links (overlap the hero) ---------- */
.quick-links { position: relative; z-index: 3; margin-top: -84px; }
.quick-links ul { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 0; }
.quick { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.quick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.quick:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--text); box-shadow: 0 4px 10px rgba(var(--shadow-rgb), .1), 0 28px 50px rgba(var(--shadow-rgb), .18); }
.quick:hover::before { transform: scaleX(1); }
.quick-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-alt); color: var(--primary); transition: background .3s, color .3s, transform .4s var(--ease); }
.quick-icon .icon { width: 26px; height: 26px; }
.quick:hover .quick-icon { background: var(--primary); color: var(--accent-light); transform: rotate(-6deg); }
.quick-label { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.quick-text { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.quick-go { position: absolute; right: 22px; top: 30px; color: var(--accent-text); opacity: .45; transition: transform .3s var(--ease), opacity .3s; }
.quick:hover .quick-go { transform: translateX(4px); opacity: 1; }
@media (max-width: 560px) { .quick-links ul { grid-template-columns: 1fr 1fr; gap: 12px; } .quick { padding: 18px 16px; } .quick-text { display: none; } .quick-go { display: none; } .quick-label { font-size: 1.05rem; } }

/* ---------- Home: events image ---------- */
.events { padding: 80px 0 64px; }
.events h2 { margin-top: 0; text-align: center; color: var(--primary); }
.events h2::before { content: "What's happening"; display: block; margin-bottom: 8px; font-family: var(--font); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.events h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--accent); margin: 16px auto 0; }
.events-image { margin: 32px 0 0; }
.events-image a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.events-image img { display: block; max-height: 90vh; width: auto; transition: transform .6s var(--ease); }
.events-image a:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(var(--shadow-rgb), .12), 0 32px 60px rgba(var(--shadow-rgb), .22); }
.events-image a:hover img { transform: scale(1.02); }
.home .home-content { border-top: 1px solid var(--line); padding-top: 72px; }

/* ---------- Layout classes mapped from WordPress blocks (R2) ---------- */
.group.wide > div > h2.center { color: var(--primary); max-width: 26em; margin: 0 auto .9em; }
.cols { display: grid; gap: 24px; margin: 2.5em 0; }
.cols .col { display: grid; gap: 24px; }
.cols .group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cols .group:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cols .group > div { display: flex; flex-direction: column; height: 100%; }
.cols .group figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.cols .group figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.cols .group:hover figure img { transform: scale(1.06); }
.cols .group h3 { margin: 20px 22px 4px; color: var(--primary); }
.cols .group p { margin: 0 22px 14px; color: var(--muted); }
.cols .group .button-wrap { margin: auto 22px 22px; }
@media (min-width: 700px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .home-content .cols { grid-template-columns: 1fr 1fr; } .home-content .cols .col { grid-template-columns: 1fr 1fr; } }

.cover { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; margin: 3em 0; background: var(--primary-dark); min-height: 340px; display: grid; box-shadow: var(--shadow-lg); }
.cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; transition: transform 1.2s var(--ease), opacity .6s; }
.cover:hover .cover-img { transform: scale(1.04); opacity: .36; }
.cover .cover-inner { position: relative; padding: 56px clamp(20px, 6vw, 72px); align-self: center; }
.cover .cover-inner p { color: #fff; font-size: 1.15rem; }
.cover .cover-inner .large { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cover .button { background: var(--accent-light); color: var(--ink); }
.cover .button:hover { background: #fff; color: var(--ink); }

.media-text { display: grid; gap: 28px; align-items: center; margin: 2.5em 0; }
.media-text .mt-media img { border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .media-text { grid-template-columns: 2fr 3fr; } }

.gallery { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery img, .image img { border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gallery a:hover img, .image a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.pullquote, .quote, blockquote { position: relative; border: 0; background: var(--bg-alt); padding: 24px 28px 24px 64px; margin: 2em 0; border-radius: var(--radius); }
.pullquote::before, .quote::before, blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 6px; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--accent); }
.pullquote p, .quote p, blockquote p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.pullquote blockquote, .quote blockquote { background: none; padding: 0; margin: 0; border-radius: 0; }
.pullquote blockquote::before, .quote blockquote::before { content: none; }
.pullquote p:last-child, .quote p:last-child, blockquote p:last-child { margin-bottom: 0; }
cite { color: var(--muted); font-style: normal; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: var(--card); margin: 0; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: var(--row-hover); }
.stripes tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- MyChurchApp frames (R2 rule 5) ---------- */
iframe { display: block; width: 100%; min-height: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
/* The portal's forms are taller than 900px and the site runs no script to size the frame, so each
   known form gets a fixed height above its tallest state (measured 2026-11-10 at the frame widths, 320 and 840px):
   register 1725px with "Married" picked; Holy Mass booking 1563px after a day is picked. */
iframe[src*="/mychurchapp/register"] { height: 1800px; }
iframe[src*="/mychurchapp/holymass"] { height: 1680px; }
.frame-link { display: inline-block; margin: 12px 0 28px; font-weight: 600; }
.frame-link::after { content: " \2197"; }

/* ---------- Bulletin list (R3): the newest is featured ---------- */
.bulletins { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bulletins a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); height: 100%; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.bulletins a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.b-title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--primary); grid-column: 1; }
.b-month { color: var(--muted); font-size: .9rem; grid-column: 1; }
.b-type { grid-column: 2; grid-row: 1; align-self: start; background: var(--bg-alt); color: var(--accent-text); border: 1px solid var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; }
.b-go { grid-column: 2; grid-row: 2; justify-self: end; color: var(--accent-text); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.bulletins a:hover .b-go { opacity: 1; transform: none; }
.bulletins .latest { grid-column: 1 / -1; }
.bulletins .latest a { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border-color: transparent; padding: 32px 32px 28px; box-shadow: var(--shadow-lg); }
.bulletins .latest .b-flag { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 8px; color: var(--ink); background: var(--accent-light); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.bulletins .latest .b-title { grid-row: 2; color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.bulletins .latest .b-month { grid-row: 3; color: var(--accent-light); font-size: 1rem; }
.bulletins .latest .b-type { background: transparent; color: var(--accent-light); border-color: var(--accent-light); }
.bulletins .latest .b-go { grid-row: 3; color: var(--accent-light); opacity: 1; transform: none; }
.bulletins .latest a:hover .b-go { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: var(--on-dark); border-top: 3px solid var(--accent); }
.footer-grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr .9fr 1.3fr; } }
.site-footer a { color: #fff; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent-light); }
.footer-logo { display: block; width: 88px; height: 88px; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; color: #fff; margin-bottom: .6em; }
.footer-tagline { color: var(--on-dark-soft); max-width: 26em; }
.footer-head { margin: 0 0 16px; color: var(--accent-light); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a::before { content: "\203A"; display: inline-block; margin-right: 8px; color: var(--accent-light); transition: transform .25s var(--ease); }
.footer-links a:hover::before { transform: translateX(3px); }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; color: var(--accent-light); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.contact-list dt .icon { width: 16px; height: 16px; }
.contact-list dd { margin: 0 0 0 24px; line-height: 1.55; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(var(--accent-light-rgb), .45); border-radius: 999px; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }
.footer-base { padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(var(--accent-light-rgb), .2); }
.legal { margin-bottom: 18px; font-size: .86rem; color: var(--on-dark-muted); }
.legal p { margin: 0 0 4px; }
.legal p:first-child { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.copyright { font-size: .86rem; margin: 0; color: var(--on-dark-muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.to-top .icon { transition: transform .25s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- Motion: entrance and scroll reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-media { animation: drift 24s ease-in-out infinite alternate; }
  .hero-eyebrow, .hero h1, .hero-tagline, .hero-actions { animation: rise .9s var(--ease) both; }
  .hero h1 { animation-delay: .1s; }
  .hero-tagline { animation-delay: .25s; }
  .hero-actions { animation-delay: .4s; }
  .quick-links li { animation: rise .8s var(--ease) both; }
  .quick-links li:nth-child(2) { animation-delay: .1s; }
  .quick-links li:nth-child(3) { animation-delay: .2s; }
  .quick-links li:nth-child(4) { animation-delay: .3s; }
  .title-bar h1 { animation: rise .7s var(--ease) both; }

  /* Sections fade up as they scroll into view, where the browser supports scroll-driven animation. */
  @supports (animation-timeline: view()) {
    .events-image, .home-content > *, .cols .group, .cover, .media-text, .bulletins li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    /* The header deepens as the page scrolls. */
    .site-header { animation: deepen linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
  }
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes deepen { to { background-color: rgba(var(--primary-dark-rgb), .97); box-shadow: 0 10px 30px rgba(var(--deep-rgb), .3); } }

@media print { .site-header, .site-footer, .banner, .skip, .quick-links, .hero-actions { display: none; } .hero { min-height: 0; color: var(--ink); } }
