/* ============================================================
   templetimings.org — Global Foundation
   Colours allowed sitewide: #000, #fff, #F9EEEE, #710000
   No box-shadow. No transform. No font-weight at all. Radius fixed at 5px.
   Headings: Columbia Serial Bold. All other text: Roboto.
   ============================================================ */

/* ----------------------------------------------------------
   1. FONTS — self-hosted, no CDN
---------------------------------------------------------- */
@font-face {
  font-family: 'Columbia Serial';
  src: url('../fonts/columbia-serial-bold.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto.woff2') format('woff2-variations');
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   2. ROOT VARIABLES
---------------------------------------------------------- */
:root {
  /* Lets block-size animate to and from auto, which is what makes the
     FAQ panel slide instead of snap. Ignored where unsupported. */
  interpolate-size: allow-keywords;

  /* Colours — the only four permitted anywhere on this site */
  --c-black: #000;
  --c-white: #fff;
  --c-section: #F9EEEE;
  --c-main: #710000;

  /* Font families */
  --ff-heading: 'Columbia Serial', serif;
  --ff-body: 'Roboto', sans-serif;

  /* Heading sizes — one per level, h1 through h6 */
  --fs-h1: clamp(1.45rem, 1.1rem + 1.5vw, 2.6rem);
  --fs-h2: clamp(1.3rem, 1.1rem + 0.85vw, 1.85rem);
  --fs-h3: clamp(1.18rem, 1.06rem + 0.5vw, 1.45rem);
  --fs-h4: clamp(1.08rem, 1.02rem + 0.28vw, 1.25rem);
  --fs-h5: clamp(1.05rem, 1rem + 0.22vw, 1.25rem);
  --fs-h6: clamp(0.98rem, 0.95rem + 0.14vw, 1.1rem);

  /* Text size — ONE size for every non-heading element on the site.
     Each value is the original plus 1px (0.0625rem), so the fluid curve
     between them is unchanged and only the whole scale moves up. */
  --fs-text: clamp(0.9375rem, 0.9075rem + 0.13vw, 1.0125rem);

  /* Line heights */
  --lh-tight: 1.2;
  --lh-mid: 1.4;
  --lh-loose: 1.7;

  /* Gaps — used with the gap property, never as margin */
  --gap-xs: clamp(0.35rem, 0.3rem + 0.25vw, 0.5rem);
  --gap-sm: clamp(0.6rem, 0.5rem + 0.4vw, 0.85rem);
  --gap-md: clamp(0.85rem, 0.75rem + 0.45vw, 1.15rem);
  --gap-lg: clamp(1.2rem, 1.03rem + 0.75vw, 1.75rem);
  --gap-xl: clamp(1.75rem, 1.45rem + 1.3vw, 2.6rem);

  /* Section spacing — one fluid value covers mobile through desktop */
  --section-y: clamp(2.5rem, 1.8rem + 3.2vw, 5rem);

  /* Container */
  --container-w: 1360px;
  --container-pad: clamp(1rem, 0.7rem + 1.4vw, 2rem);

  /* Radius — the only radius value permitted sitewide */
  --radius: 5px;

  /* Border width */
  --border-w: 1px;

  /* Motion */
  --ease: 0.25s ease;
}

/* ----------------------------------------------------------
   3. RESET — every element starts at margin 0
---------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Guard: the closed nav drawer is parked past the right edge, and some
     mobile browsers let that widen the page. clip contains it without making
     body a scroll container, so the sticky header keeps working. */
  overflow-x: clip;
  font-synthesis: none;
  font-family: var(--ff-body);
  font-size: var(--fs-text);
  line-height: var(--lh-loose);
  color: var(--c-black);
  background: var(--c-white);
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-main);
  text-decoration: none;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

a:hover {
  color: var(--c-black);
}

/* Inline links inside body copy carry an underline, colour alone is not enough */
p a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ----------------------------------------------------------
   4. TYPOGRAPHY
   Headings: six sizes, one per level.
   Everything else: a single size, no exceptions.
---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  line-height: var(--lh-tight);
  color: var(--c-black);
}

/* Inline spans and links inside a heading follow the heading, not the text size */
h1 span, h2 span, h3 span,
h4 span, h5 span, h6 span,
h1 a, h2 a, h3 a,
h4 a, h5 a, h6 a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p,
a,
span,
li,
td,
th,
label,
figcaption,
small,
strong,
b,
em,
button,
input,
textarea,
select,
blockquote,
address,
time,
cite,
code {
  font-family: var(--ff-body);
  font-size: var(--fs-text);
  line-height: var(--lh-loose);
}

/* ----------------------------------------------------------
   5. CONTAINER — identical on every page
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

/* ----------------------------------------------------------
   6. SECTION SPACING
---------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--c-section);
}

/* ----------------------------------------------------------
   7. GAP METHOD — spacing comes from the parent, never margin
---------------------------------------------------------- */
/* ----------------------------------------------------------
   8. BUTTONS — solid main colour, black on hover
---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: var(--fs-text);
  line-height: var(--lh-mid);
  padding: var(--gap-sm) var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-main);
  color: var(--c-white);
  text-align: center;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.btn:hover {
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}

.btn-outline {
  background: var(--c-white);
  color: var(--c-main);
}

.btn-outline:hover {
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}

/* ----------------------------------------------------------
   9. HEADER
   Single bar: logo, navigation and the ask-a-question CTA.
---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-main);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding-block: var(--gap-md);
}

/* Right-hand group: navigation beside the CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* The logo is used exactly as supplied, name included. It is a wide
   wordmark, so it is set by height and shrinks twice on the way down:
   once when the drawer takes over, again on a phone. */
.logo img {
  width: auto;
  height: 32px;
}

/* The footer link rule paints a sliding underline on every anchor in a
   column, which caught the logo too. The logo is an image, so it opts out. */
.logo,
.footer-col a.logo {
  padding-bottom: 0;
  background-image: none;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.nav a {
  line-height: var(--lh-mid);
  color: var(--c-white);
  white-space: nowrap;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--c-white), var(--c-white));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 var(--border-w);
  transition: background-size var(--ease), color var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--c-white);
  background-size: 100% var(--border-w);
}

/* Header CTA */
.header-cta {
  display: inline-block;
  flex-shrink: 0;
  line-height: var(--lh-mid);
  padding: var(--gap-xs) var(--gap-md);
  border: var(--border-w) solid var(--c-white);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-main);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.header-cta:hover {
  background: var(--c-main);
  border-color: var(--c-white);
  color: var(--c-white);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-white);
  cursor: pointer;
  transition: color var(--ease);
}

.nav-toggle:hover {
  color: var(--c-section);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* --- Drawer overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--c-black);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

.nav-overlay.is-open {
  opacity: 0.5;
  visibility: visible;
}

.nav-close {
  display: none;
  align-self: flex-end;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-white);
  cursor: pointer;
  transition: color var(--ease);
}

.nav-close:hover {
  color: var(--c-section);
}

.nav-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Tablet and below: slide-in side drawer --- */
@media (max-width: 1099px) {
  .logo img { height: 28px; }

  .nav-toggle { display: flex; }

  .nav-close { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    z-index: 60;
    width: 300px;
    max-width: 82vw;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--gap-xs);
    padding: var(--gap-md) var(--gap-md) var(--gap-xl);
    background: var(--c-main);
    overflow-y: auto;
    transition: right var(--ease);
  }

  .nav.is-open { right: 0; }

  .nav a {
    padding: var(--gap-sm) 0;
    background-image: none;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--c-section);
  }

}

/* --- Small mobile --- */
@media (max-width: 599px) {

  .header-cta { display: none; }

  .logo img { height: 24px; }
}

/* ----------------------------------------------------------
   10. FOOTER — same dark treatment as the header
---------------------------------------------------------- */
.site-footer {
  background: var(--c-main);
  color: var(--c-white);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-md);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.footer-grid {
  display: grid;
  gap: var(--gap-xl) var(--gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  /* Brand, quick links, legal, then the newsletter with room for its field. */
  .footer-grid { grid-template-columns: 1.9fr 0.85fr 0.9fr 1.5fr; }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.footer-col h2,
.footer-col h3,
.footer-col h4,
.footer-col h5,
.footer-col h6 {
  color: var(--c-white);
}

.footer-brand {
  gap: var(--gap-md);
}

.footer-brand .logo img { height: 34px; }

.footer-col p,
.footer-col span,
.footer-col li {
  color: var(--c-white);
}

/* Footer links carry the same underline behaviour as the header nav */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.footer-col a {
  align-self: flex-start;
  line-height: var(--lh-mid);
  color: var(--c-white);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--c-white), var(--c-white));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 var(--border-w);
  transition: background-size var(--ease), color var(--ease);
}

.footer-col a:hover {
  color: var(--c-white);
  background-size: 100% var(--border-w);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: auto;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding-bottom: 0;
  border: var(--border-w) solid var(--c-white);
  border-radius: var(--radius);
  background-image: none;
  transition: background var(--ease);
}

.footer-social a:hover { background: var(--c-white); }

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease);
}

.footer-social a:hover svg { stroke: var(--c-main); }

/* Glyph marks are filled rather than drawn. */
.footer-social .is-solid {
  fill: var(--c-white);
  stroke: none;
  transition: fill var(--ease);
}

.footer-social a:hover .is-solid { fill: var(--c-main); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm) var(--gap-md);
  padding-top: var(--gap-md);
  border-top: var(--border-w) solid var(--c-white);
  text-align: center;
}

.footer-bottom p,
.footer-bottom a {
  color: var(--c-white);
  line-height: var(--lh-mid);
}

.footer-bottom a {
  padding-bottom: 3px;
  background-image: linear-gradient(var(--c-white), var(--c-white));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 var(--border-w);
  transition: background-size var(--ease);
}

.footer-bottom a:hover {
  background-size: 100% var(--border-w);
}
/* ----------------------------------------------------------
   11. HERO
---------------------------------------------------------- */
.hero {
  background: var(--c-section);
  padding-block: var(--section-y);
}

.hero-inner {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-md);
}

/* Second half of a heading, carried in the main colour */
.text-main { color: var(--c-main); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.hero-tag {
  line-height: var(--lh-mid);
  padding: var(--gap-xs) var(--gap-sm);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-main);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

/* Actions that close a section rather than open one sit centred under it. */
.actions.is-centred { justify-content: center; }

/* When a hero tag is a jump link it needs a hover state; as a span it has none */
a.hero-tag:hover {
  background: var(--c-main);
  color: var(--c-white);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  order: -1;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* On desktop the image runs a little taller than the content column */
@media (min-width: 900px) {
  .hero-media {
    aspect-ratio: auto;
    min-height: 420px;
    order: 0;
  }
}

/* Quick facts strip under the hero */
.facts {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}

.fact {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.fact svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-label {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.fact-value {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  line-height: var(--lh-mid);
  color: var(--c-black);
}



/* ----------------------------------------------------------
   12. SECTION HEAD — reused by every content section
---------------------------------------------------------- */
/* Every section is ONE stack with ONE gap. Nothing nests a second gap. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.section-eyebrow {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.section-head p {
  color: var(--c-black);
}

/* ----------------------------------------------------------
   13. GUIDE CARDS — internal link hub
---------------------------------------------------------- */
.guide-grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }

  /* four cards fill one row instead of leaving two dead cells */
  .guide-grid.is-four { grid-template-columns: repeat(4, 1fr); }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-black);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.guide-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease);
}

.guide-card h3 {
  line-height: var(--lh-tight);
  color: var(--c-black);
  transition: color var(--ease);
}

.guide-card p {
  color: var(--c-black);
  transition: color var(--ease);
}

.guide-more {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  line-height: var(--lh-mid);
  color: var(--c-main);
  transition: color var(--ease);
}

.guide-more svg {
  width: 18px;
  height: 18px;
}

.guide-card:hover {
  border-color: var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

.guide-card:hover h3,
.guide-card:hover p,
.guide-card:hover .guide-more {
  color: var(--c-white);
}

.guide-card:hover svg { stroke: var(--c-white); }


/* ----------------------------------------------------------
   14. ABOUT — image and story side by side
---------------------------------------------------------- */
.about-inner {
  display: grid;
  gap: var(--gap-xl);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait subjects sit high in the frame, so bias the crop upward and
     keep the face when the column is shorter than the image. */
  object-position: 50% 18%;
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .about-media {
    aspect-ratio: auto;
    min-height: 570px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-md);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  list-style: none;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  line-height: var(--lh-loose);
}

.about-point svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ----------------------------------------------------------
   17. DARSHAN SLOTS — colour alternates by position
---------------------------------------------------------- */
.slot-grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}

@media (min-width: 560px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  /* six tiles fill two rows of three instead of five plus one */
  .slot-grid.is-three { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .slot-grid { grid-template-columns: repeat(5, 1fr); }
  .slot-grid.is-three { grid-template-columns: repeat(3, 1fr); }
}

.slot {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.slot-status {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.slot-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slot-time {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.slot-name,
.slot-desc {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

/* Colour alternates by position so the grid reads as one clean sequence.
   Open or closed is carried by the tick or cross and its label. */
.slot:nth-child(odd) {
  background: var(--c-main);
}

.slot:nth-child(odd) .slot-status,
.slot:nth-child(odd) .slot-time,
.slot:nth-child(odd) .slot-name,
.slot:nth-child(odd) .slot-desc {
  color: var(--c-white);
}

.slot:nth-child(odd) .slot-status svg { stroke: var(--c-white); }


/* ----------------------------------------------------------
   24. FESTIVALS — a year ruler. One hairline runs the width of
   the section and each festival hangs a marker off it.
---------------------------------------------------------- */
.year-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

@media (min-width: 560px) {
  .year-strip {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0;
    row-gap: var(--gap-xl);
  }
}

@media (min-width: 1000px) {
  .year-strip { grid-template-columns: repeat(4, 1fr); }
}

.year-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding-top: var(--gap-lg);
  border-top: var(--border-w) solid var(--c-main);
}

@media (min-width: 560px) {
  .year-item { padding-right: var(--gap-xl); }
  .year-item:last-child { padding-right: 0; }
}

/* the marker sits on the rule, not beside it */
.year-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: var(--radius);
  background: var(--c-main);
}

.year-month {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.year-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.year-desc {
  line-height: var(--lh-loose);
  color: var(--c-black);
}

/* ----------------------------------------------------------
   16. NOTE — small highlighted advisory block
---------------------------------------------------------- */
.note {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  line-height: var(--lh-loose);
}

.note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ----------------------------------------------------------
   19. VAULT — panel on the left, image on the right
---------------------------------------------------------- */
.vault-compose {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: stretch;
}

.vault-media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.vault-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.vault-panel {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  border-radius: var(--radius);
  background: var(--c-main);
}

@media (min-width: 900px) {
  .vault-compose { grid-template-columns: 1fr 1fr; }

  /* Panel leads on the left, image sits on the right */
  .vault-panel {
    order: -1;
    padding: var(--gap-xl);
  }

  .vault-media { aspect-ratio: auto; }
}

.vault-panel .section-eyebrow,
.vault-panel h2 {
  color: var(--c-section);
}

.vault-panel h2 .text-main,
.vault-panel p {
  color: var(--c-white);
}

.vault-panel .btn {
  border-color: var(--c-white);
  background: var(--c-white);
  color: var(--c-main);
}

.vault-panel .btn-outline {
  background: var(--c-main);
  color: var(--c-white);
}

.vault-panel .btn:hover,
.vault-panel .btn-outline:hover {
  border-color: var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

/* Figures sit inside the panel as white tiles */
.figure-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}

@media (min-width: 620px) {
  .figure-row { grid-template-columns: repeat(2, 1fr); }
}

.figure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-white);
  border-radius: var(--radius);
  background: var(--c-white);
}

.figure-value {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--c-main);
}

.figure-label {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

/* ----------------------------------------------------------
   18. FAQ — native details, no script, no transform
---------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.faq-item {
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: var(--gap-md);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item h3 {
  line-height: var(--lh-mid);
  color: var(--c-black);
  transition: color var(--ease);
}

.faq-item summary:hover h3 { color: var(--c-main); }

.faq-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* The icon follows the native open attribute, so the panel works with
   JavaScript off. The script only enforces one open panel at a time. */
.faq-item[open] .faq-plus { display: none; }
.faq-item:not([open]) .faq-minus { display: none; }

.faq-answer {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: 0 var(--gap-md) var(--gap-md);
}

/* The panel slides because ::details-content can transition its block-size
   from 0 to auto. Browsers without it simply open instantly, which is the
   same behaviour a plain <details> has always had. */
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size var(--ease), content-visibility var(--ease);
  transition-behavior: allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none; }
}

.faq-answer p {
  line-height: var(--lh-loose);
  color: var(--c-black);
}

/* ----------------------------------------------------------
   25. CLOSING CTA — heading on the left, actions on the right
---------------------------------------------------------- */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1fr auto; }
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

/* ----------------------------------------------------------
   29. PROSE — long form copy blocks
---------------------------------------------------------- */
.prose {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* Long copy runs in two columns so the line length stays readable */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

@media (min-width: 900px) {
  .prose-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--gap-xl);
  }
}

.prose-block {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding-top: var(--gap-md);
  border-top: var(--border-w) solid var(--c-main);
}

.prose-block h3 {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.prose-block p {
  line-height: var(--lh-loose);
  color: var(--c-black);
}

.prose h3 {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.prose-grid ul,
.prose ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding-left: var(--gap-md);
}

.prose-grid li,
.prose li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  line-height: var(--lh-loose);
  color: var(--c-black);
}

.prose-grid li::before,
.prose li::before {
  content: '';
  position: relative;
  top: 0.62em;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--c-main);
}

/* Anchored sections must not hide under the sticky header */
[id] { scroll-margin-top: 90px; }

/* ----------------------------------------------------------
}


/* ----------------------------------------------------------
   26. BREADCRUMB — inner pages only
---------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-xs);
}

.crumbs a,
.crumbs span {
  line-height: var(--lh-mid);
}

.crumbs a { color: var(--c-main); }
.crumbs a:hover { color: var(--c-black); }
.crumbs [aria-current] { color: var(--c-black); }

.crumbs svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   27. PAGE HERO — smaller opener for inner pages
---------------------------------------------------------- */
.page-hero {
  background: var(--c-section);
  padding-block: var(--section-y);
}


.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* An opener that carries a photograph puts the text and the image side by
   side above 900px and stacks them below it, the same way the homepage hero
   does. The breadcrumb stays with the text. */
.page-hero.has-media .page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero.has-media .page-hero-inner { grid-template-columns: 1fr 1fr; }
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
}

.page-updated {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

/* ----------------------------------------------------------
   31. FORM — contact form, same borders and radius as everything
   else on the site. No shadow, no transform.
---------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

@media (min-width: 620px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.field label {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  line-height: var(--lh-mid);
  padding: var(--gap-sm) var(--gap-md);
  border: var(--border-w) solid var(--c-black);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-black);
  transition: border-color var(--ease), background var(--ease);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: var(--border-w) solid var(--c-main);
  outline-offset: 2px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--c-main); }

/* The honeypot is a real field that people never see and bots fill in */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-md);
}

.form-note {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

/* Result banner after a submit, in the same shape as .note */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  line-height: var(--lh-loose);
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert-ok {
  border-color: var(--c-main);
  background: var(--c-section);
}

/* Contact details beside the form */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-split { grid-template-columns: 1.4fr 1fr; }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.contact-item span:first-child {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.contact-item a,
.contact-item span:last-child {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

/* ----------------------------------------------------------
   15. TABLE — reused by every page that lists timings or fees
---------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--gap-md);
  line-height: var(--lh-mid);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  background: var(--c-main);
  color: var(--c-white);
}

.table tbody tr {
  border-top: var(--border-w) solid var(--c-main);
}

.table th + th,
.table td + td {
  border-left: var(--border-w) solid var(--c-main);
}

.table thead th + th {
  border-left-color: var(--c-white);
}

/* Below 700px each row becomes a compact card, no repeated column labels */
@media (max-width: 700px) {
  .table thead { display: none; }

  .table,
  .table tbody { display: block; }

  .table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--gap-xs) var(--gap-sm);
    padding: var(--gap-md);
    border-top: var(--border-w) solid var(--c-main);
  }

  .table tbody tr:first-child { border-top: 0; }

  .table td,
  .table td + td {
    display: block;
    padding: 0;
    border-left: 0;
  }

  /* the first cell keeps stacking its time and description */
  .table-fees td:first-child {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
  }

  .table td[data-label]::before { display: none; }

  /* two column tables: name on the left, value on the right */
  .table-fees td:last-child {
    width: auto;
    text-align: right;
    align-self: center;
  }

  /* schedule: time and description, session underneath, entry as a badge */
  .table-schedule td:nth-child(1) { grid-column: 1; grid-row: 1; }

  .table-schedule td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    line-height: var(--lh-mid);
    color: var(--c-main);
  }

  .table-schedule td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: max-content;
    align-self: start;
    justify-self: end;
    padding: var(--gap-xs) var(--gap-sm);
    border: var(--border-w) solid var(--c-main);
    border-radius: var(--radius);
    text-align: center;
    white-space: nowrap;
  }
}

/* ----------------------------------------------------------
   20. RULES — allowed against refused, side by side
---------------------------------------------------------- */
.rules-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: stretch;
}

@media (min-width: 900px) {
  .rules-split { grid-template-columns: 1fr 1fr; }
}

.rule-panel {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.rule-panel.is-dark { background: var(--c-main); }

.rule-head {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.rule-head h3 {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.rule-head svg,
.rule-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  line-height: var(--lh-loose);
  color: var(--c-black);
}

.rule-panel.is-dark .rule-head h3,
.rule-panel.is-dark .rule-item {
  color: var(--c-white);
}

.rule-panel.is-dark .rule-head svg,
.rule-panel.is-dark .rule-item svg {
  stroke: var(--c-white);
}

/* ----------------------------------------------------------
   21. FEES — the price table, built on the shared .table.
   .table-stack is the same first column treatment for tables
   that are not about money.
---------------------------------------------------------- */
.table-fees td:first-child,
.table-stack td:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.fee-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-h6);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.fee-who {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.table-fees th:last-child,
.table-fees td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.table-fees td:last-child {
  font-family: var(--ff-heading);
  font-size: var(--fs-h6);
}

/* text columns read left aligned, prices stay right */
.table.is-left th:last-child,
.table.is-left td:last-child {
  text-align: left;
}

/* ----------------------------------------------------------
   32. QUOTES — a saying with its meaning underneath, in the
   same tile shape as .slot so the site keeps one vocabulary
---------------------------------------------------------- */
.quote-grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.quote-hi {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.quote-en {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.quote-meaning {
  line-height: var(--lh-loose);
  color: var(--c-black);
}

/* Colour alternates by position, as the teaching tiles do */
.quote-card:nth-child(4n+2),
.quote-card:nth-child(4n+3) {
  background: var(--c-main);
}

.quote-card:nth-child(4n+2) .quote-hi,
.quote-card:nth-child(4n+3) .quote-hi {
  color: var(--c-section);
}

.quote-card:nth-child(4n+2) .quote-en,
.quote-card:nth-child(4n+3) .quote-en,
.quote-card:nth-child(4n+2) .quote-meaning,
.quote-card:nth-child(4n+3) .quote-meaning {
  color: var(--c-white);
}

/* ----------------------------------------------------------
   33. GALLERY — photo grid and wallpaper downloads
---------------------------------------------------------- */
.gallery {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.shot {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.shot-media {
  position: relative;
  aspect-ratio: 3 / 2;
}

.shot-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.shot-media.is-tall { aspect-ratio: 3 / 4; }

.shot-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.shot-note {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

.shot-credit {
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.shot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-top: auto;
}

.shot-links a {
  line-height: var(--lh-mid);
  padding: var(--gap-xs) var(--gap-sm);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-main);
  transition: background var(--ease), color var(--ease);
}

.shot-links a:hover {
  background: var(--c-main);
  color: var(--c-white);
}

/* ----------------------------------------------------------
   34. VERSE — a stotra line with its meaning underneath
---------------------------------------------------------- */
.verse-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.verse {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
}

.verse-sa {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-loose);
  color: var(--c-main);
}

.verse-tr {
  line-height: var(--lh-loose);
  color: var(--c-black);
}

.verse-en {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  line-height: var(--lh-mid);
  color: var(--c-black);
}

/* ----------------------------------------------------------
   35. TEMPLE CARDS — a photo, the place, and the way in.
   Built on the same border/radius/hover contract as .guide-card,
   with an image added on top.
---------------------------------------------------------- */
.temple-grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .temple-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .temple-grid { grid-template-columns: repeat(3, 1fr); }
}

.temple-card {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-black);
  overflow: hidden;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

/* The image sits flush to the three edges it touches, so only the
   inner edge carries a rule. */
.temple-media {
  position: relative;
  display: block;
}

/* Country badge, sitting on the photograph itself. */
.temple-flag {
  position: absolute;
  top: var(--gap-sm);
  left: var(--gap-sm);
  padding: var(--gap-xs) var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  background: var(--c-main);
  line-height: var(--lh-mid);
  color: var(--c-white);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.temple-card:hover .temple-flag {
  border-color: var(--c-black);
  background: var(--c-black);
}

.temple-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: var(--border-w) solid var(--c-main);
  transition: border-color var(--ease);
}

.temple-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
}

/* The card's link out. It uses the same sliding underline every other link
   on the site uses, and margin-top:auto pins it to the bottom so a two-line
   temple name does not push one card's link out of line with the row. */
.temple-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--gap-xs);
  margin-top: auto;
  padding-top: var(--gap-xs);
  padding-bottom: 3px;
  line-height: var(--lh-mid);
  color: var(--c-main);
  background-image: linear-gradient(var(--c-main), var(--c-main));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 var(--border-w);
  transition: background-size var(--ease), color var(--ease);
}

.temple-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease);
}

.temple-card:hover .temple-link {
  color: var(--c-white);
  background-image: linear-gradient(var(--c-white), var(--c-white));
  background-size: 100% var(--border-w);
}

.temple-card:hover .temple-link svg { stroke: var(--c-white); }

.temple-place {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  line-height: var(--lh-mid);
  color: var(--c-main);
  transition: color var(--ease);
}

.temple-place svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease);
}

.temple-card h3,
.temple-card h4 {
  line-height: var(--lh-tight);
  font-size: var(--fs-h3);
  color: var(--c-black);
  transition: color var(--ease);
}

.temple-card p {
  color: var(--c-black);
  transition: color var(--ease);
}

.temple-card:hover {
  border-color: var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

.temple-card:hover img { border-color: var(--c-black); }

.temple-card:hover h3,
.temple-card:hover h4,
.temple-card:hover p,
.temple-card:hover .temple-place { color: var(--c-white); }

.temple-card:hover .temple-place svg { stroke: var(--c-white); }

/* ----------------------------------------------------------
   36. COVERAGE BAR — what a temple page answers, as a plain
   labelled list rather than another card grid
---------------------------------------------------------- */
.covers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.covers span {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-xs) var(--gap-md);
  border: var(--border-w) solid var(--c-main);
  border-radius: var(--radius);
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.covers svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   37. FOOTER NEWSLETTER — the only input on the site that sits
   on the main colour, so every border is white rather than red
---------------------------------------------------------- */
.footer-news p { max-width: 46ch; }

.news-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.news-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.news-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.news-input {
  flex: 1 1 8rem;
  min-width: 0;
  padding: var(--gap-sm) var(--gap-md);
  border: var(--border-w) solid var(--c-white);
  border-radius: var(--radius);
  background: var(--c-main);
  font-family: var(--ff-body);
  font-size: var(--fs-text);
  line-height: var(--lh-mid);
  color: var(--c-white);
  transition: background var(--ease), color var(--ease);
}

.news-input::placeholder { color: var(--c-section); }

.news-input:focus {
  outline: none;
  background: var(--c-white);
  color: var(--c-black);
}

.news-input:focus::placeholder { color: var(--c-black); }

.news-btn {
  flex: 0 0 auto;
  padding: var(--gap-sm) var(--gap-lg);
  border: var(--border-w) solid var(--c-white);
  border-radius: var(--radius);
  background: var(--c-white);
  font-family: var(--ff-body);
  font-size: var(--fs-text);
  line-height: var(--lh-mid);
  color: var(--c-main);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.news-btn:hover {
  background: var(--c-main);
  color: var(--c-white);
}


/* ----------------------------------------------------------
   38. LOAD MORE — the register reveals in batches. Cards past
   the first batch are hidden by CSS and shown by script, so a
   browser without JavaScript gets the whole list instead of a
   dead button.
---------------------------------------------------------- */
.temple-card.is-more { display: none; }

/* No transform anywhere on this site, so the entry animates opacity and
   offset instead. The card is position:relative, so top costs no layout. */
@keyframes temple-rise {
  from { opacity: 0; top: 1.25rem; }
  to   { opacity: 1; top: 0; }
}

.temple-card.is-revealed {
  display: flex;
  animation: temple-rise 0.45s ease both;
}

/* A stagger across each batch of six, so a row arrives rather than blinks. */
.temple-card.is-revealed:nth-child(6n + 2) { animation-delay: 60ms; }
.temple-card.is-revealed:nth-child(6n + 3) { animation-delay: 120ms; }
.temple-card.is-revealed:nth-child(6n + 4) { animation-delay: 180ms; }
.temple-card.is-revealed:nth-child(6n + 5) { animation-delay: 240ms; }
.temple-card.is-revealed:nth-child(6n)     { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .temple-card.is-revealed { animation: none; }
}

.load-more {
  display: flex;
  justify-content: center;
}

.load-more .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* Three dots, cycling on opacity. A spinner would need a transform, and
   there are none on this site. */
.load-dots {
  display: none;
  align-items: center;
  gap: 4px;
}

.btn[aria-busy="true"] .load-dots { display: inline-flex; }

.load-dots i {
  width: 5px;
  height: 5px;
  border-radius: var(--radius);
  background: currentColor;
  animation: load-pulse 1s ease-in-out infinite;
}

.load-dots i:nth-child(2) { animation-delay: 0.16s; }
.load-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes load-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .load-dots i { animation: none; opacity: 0.6; }
}

/* Without script the batch never needs revealing, so the whole list shows
   and the button that would do nothing is removed. */

/* ----------------------------------------------------------
   39. SOURCED FACTS — the line under a fact naming where it
   came from and when it was last checked. It is the whole
   argument of the site, so it is never smaller than the text
   it qualifies.
---------------------------------------------------------- */
.sourced {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--gap-xs) var(--gap-sm);
  padding-top: var(--gap-sm);
  border-top: var(--border-w) solid var(--c-main);
  line-height: var(--lh-mid);
  color: var(--c-main);
}

.sourced svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
  fill: none;
  stroke: var(--c-main);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Schedule rows: the window, then what the temple calls it. */
.window {
  font-family: var(--ff-heading);
  font-size: var(--fs-h6);
  line-height: var(--lh-mid);
  color: var(--c-black);
  white-space: nowrap;
}

.window-note {
  line-height: var(--lh-mid);
  color: var(--c-black);
}

/* A row the temple keeps closed to the public queue. */
.table tr.is-closed td { color: var(--c-main); }
