/* La Paz — Atrio de la Gruta.
   One public experience layer: horizontal navigation, the real place, clear tasks.
   Loaded after site.css and identity.css; resets below retire their fixed rail. */
:root {
  --experience-ease: cubic-bezier(.22, 1, .36, 1);
  --experience-deep: #12344b;
  --experience-paper: #ffffff;
  --experience-surface: #ffffff;
  --experience-ink: #243b44;
  --experience-muted: #526267;
  --experience-line: #e1e5e7;
  --experience-gold: #b28d4b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', Arial, sans-serif;
}
html { scroll-padding-top: 110px; }
body { background: var(--experience-paper); }
.portal-shell {
  --cream: var(--experience-paper);
  --paper: var(--experience-surface);
  --ink: var(--experience-ink);
  --navy: #204c78;
  --muted: var(--experience-muted);
  --line: var(--experience-line);
  --color-primary: #204c78;
  --color-text: var(--experience-ink);
  --color-text-muted: var(--experience-muted);
  --color-border: var(--experience-line);
  color: var(--experience-ink);
  font: 400 16px/1.75 var(--sans);
  --color-fondo: var(--experience-paper);
  --color-superficie: var(--experience-surface);
}
.portal-shell .portal-content {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 102px);
  margin-left: 0;
  isolation: isolate;
}
.portal-content > main { width: 100%; }
.portal-shell .wrap {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
.portal-content :where(h1, h2, h3) { color: var(--color-primary); }
.portal-content h1 { font-weight: 500; }
.portal-content p { line-height: 1.8; }
.portal-shell :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #204c78;
  outline-offset: 4px;
}
.portal-shell ::selection { background: #dbe8f3; color: #183b5b; }
.portal-shell .section { padding-block: 70px; }
.portal-shell .section-bottom { padding-bottom: 70px; }
.portal-shell .text-link {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  gap: 16px;
  border-bottom-color: var(--experience-gold);
}
.portal-shell .text-link:hover { color: var(--color-primary); }
.portal-shell :where(.eyebrow, .section-overline) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font: 600 11px/1.7 var(--sans);
  letter-spacing: .13em;
  color: #8c6729;
}
.portal-shell :where(.eyebrow, .section-overline)::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: #b28d4b;
  border-radius: 1px;
}

/* A compact horizontal header, with one secondary-navigation disclosure. */
.portal-shell > .site-header {
  position: sticky;
  inset: auto;
  top: 0;
  width: 100%;
  height: auto;
  z-index: 40;
  border: 0;
  border-bottom: 1px solid var(--experience-line);
  background: var(--experience-paper);
  color: var(--color-primary);
  backdrop-filter: none;
}
.portal-shell > .site-header .header-inner {
  position: relative;
  width: min(1360px, calc(100% - 64px));
  height: auto;
  max-height: none;
  min-height: 92px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
}
.portal-shell > .site-header .sidebar-brand {
  min-width: 0;
  flex: none;
  padding: 0;
  border: 0;
}
.portal-shell > .site-header .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--color-primary);
  text-align: left;
}
.portal-shell > .site-header .brand-emblem {
  width: 56px;
  height: 56px;
  border: 1px solid #d6c6a6;
  background: var(--experience-surface);
}
.portal-shell > .site-header .brand-copy {
  font: 500 27px/1.08 var(--serif);
  letter-spacing: -.02em;
}
.portal-shell > .site-header .brand-copy strong { display: block; font-weight: 500; }
.portal-shell > .site-header .brand-copy small {
  margin: 5px 0 0;
  padding: 0;
  color: #526267;
  font: 500 10px/1.5 var(--sans);
  letter-spacing: .02em;
  text-transform: none;
}
.portal-shell > .site-header :where(.sidebar-place, .sidebar-location) { display: none; }
.portal-shell > .site-header .main-nav {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  align-content: normal;
  gap: 14px;
  width: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  color: var(--color-primary);
}
.portal-shell > .site-header .main-nav > a,
.portal-shell > .site-header .nav-group > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 44px;
  padding: 9px 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #354a59;
  box-shadow: none;
  font: 500 13px/1.45 var(--sans);
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.portal-shell > .site-header .main-nav > a > span:last-child,
.portal-shell > .site-header .nav-group > summary > span:nth-child(2):not(.nav-chevron) { flex: none; }
.portal-shell > .site-header .main-nav > a > .nav-icon,
.portal-shell > .site-header .nav-group > summary > .nav-icon { display: none; }
.portal-shell > .site-header .main-nav > a[aria-current=page],
.portal-shell > .site-header .nav-group:has(.nav-panel a[aria-current=page]) > summary {
  border-left: 0;
  border-bottom-color: var(--experience-gold);
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
  font-weight: 700;
}
.portal-shell > .site-header .main-nav a[aria-current=page]::after { display: none; }
.portal-shell > .site-header .main-nav > a:hover,
.portal-shell > .site-header .nav-group > summary:hover,
.portal-shell > .site-header .nav-group[open] > summary {
  background: transparent;
  color: var(--color-primary);
  border-bottom-color: #b4bec1;
  transform: none;
}
.portal-shell > .site-header .nav-group { position: relative; min-width: 0; }
.portal-shell > .site-header .nav-group > summary .nav-chevron {
  flex: none;
  width: 6px;
  height: 6px;
  margin: -3px 3px 0 3px;
  color: var(--color-primary);
}
.portal-shell > .site-header .nav-panel {
  position: absolute;
  top: calc(100% + 11px);
  right: -12px;
  left: auto;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  width: 520px;
  max-width: calc(100vw - 64px);
  max-height: calc(100dvh - 140px);
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--experience-line);
  border-top: 2px solid var(--experience-gold);
  border-radius: 0;
  overflow-y: auto;
  background: var(--experience-surface);
  box-shadow: 0 14px 24px #183b5b12;
  animation: none;
}
.portal-shell > .site-header .nav-group:not([open]) > .nav-panel { display: none; }
.portal-shell > .site-header .nav-caption {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: #6e5b37;
  font: 600 11px/1.5 var(--sans);
  letter-spacing: .1em;
}
.portal-shell > .site-header .nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #ebe6da;
  border-radius: 0;
  color: #354a59;
  background: transparent;
  box-shadow: none;
  font: 400 14px/1.45 var(--sans);
  white-space: normal;
}
.portal-shell > .site-header .nav-panel a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portal-shell > .site-header .nav-panel a[aria-current=page] {
  color: var(--color-primary);
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}
.portal-shell > .site-header .sidebar-bottom { display: block; flex: none; padding: 0; border: 0; }
.portal-shell > .site-header .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #c49a45;
  border-radius: 4px;
  background: #183b5b;
  color: #fffdf8;
  font: 600 13px/1.5 var(--sans);
  box-shadow: 0 1px 4px rgba(178, 141, 75, 0.2);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-shell > .site-header .account-link span { margin-left: 0; }
.portal-shell > .site-header .account-link:hover {
  background: #102942;
  border-color: #dfc285;
  box-shadow: 0 3px 10px rgba(178, 141, 75, 0.35);
  color: #ffffff;
}
.portal-shell > .site-header .menu-toggle { display: none; }
.portal-shell > .site-header :where(a, summary, button):focus-visible {
  outline-color: var(--color-primary);
  outline-offset: 4px;
}
.portal-shell .demo-strip {
  padding: 8px 24px;
  background: #f7f8fa;
  color: #526267;
  font: 400 12px/1.7 var(--sans);
  letter-spacing: 0;
}

.portal-shell .demo-strip .demo-extra { display: inline; }
.portal-content .filter-tabs button,
.portal-content .filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c8cec9;
  border-radius: 2px;
  background: transparent;
  color: #52615f;
  font: 500 14px/1.45 var(--sans);
}
.portal-content .filter-tabs button:hover, .portal-content .filter-tabs a:hover { background: #e9ede6; color: var(--color-primary); }
.portal-content .filter-tabs button[aria-pressed=true],
.portal-content .filter-tabs a[aria-current=page],
.portal-content .filter-tabs a.active { border-color: var(--color-primary); background: var(--color-primary); color: #fffdf8; font-weight: 600; }

/* Shared page, form and content details stay part of the same public portal. */
.portal-content .button,
.portal-content button[type=submit] {
  min-height: 48px;
  padding: 12px 21px;
  border-radius: 2px;
  font: 600 14px/1.5 var(--sans);
  transition: background .18s ease, border-color .18s ease;
}
.portal-content .button:hover { transform: none; }
.portal-content .button.dark, .portal-content button[type=submit] { background: #204c78; color: #fffdf8; }
.portal-content .button.dark:hover, .portal-content button[type=submit]:hover { background: #183b5b; }
.portal-content .button.outline { background: transparent; border-color: #afbebd; color: var(--color-primary); }
.portal-content .button.outline:hover { background: #e8ede6; }
.portal-content .button.gold { background: #e8d9bb; color: #354339; }
.portal-content .button.gold:hover { background: #decba7; }
.portal-content .page-heading { padding-top: 45px; padding-bottom: 34px; }
.portal-content .page-heading h1 { font-size: clamp(42px, 4.5vw, 62px); line-height: 1.04; }
.portal-content .page-heading p { font-size: 16px; line-height: 1.8; color: var(--experience-muted); }
.portal-content .page-heading .breadcrumb { font-size: 12px; }
.portal-content .page-heading-photo { border-radius: 2px; }
.portal-content .prose { color: var(--experience-muted); font-size: 16px; line-height: 1.9; }
.portal-content .prose h2 { color: var(--color-primary); }
.portal-content .small-note { color: var(--experience-muted); font-size: 13px; }
.portal-content .form-panel { padding: 30px; border: 1px solid var(--experience-line); border-radius: 2px; background: var(--experience-surface); box-shadow: none; }
.portal-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  min-height: 48px;
  border-color: #a4b0ac;
  border-radius: 2px;
  background: #fffefb;
  color: var(--experience-ink);
  font-size: 16px;
}
.portal-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea):focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px #204c7812; }
.portal-content .form-panel form label { color: var(--experience-ink); font-size: 14px; font-weight: 600; }
.portal-content .form-panel .helptext { color: var(--experience-muted); font-size: 13px; }
.portal-content .form-panel > p { font-size: 14px; }
.portal-content :where(.service-card, .resource, .event-card, .request-row, .pastoral-card, .repository-card) { border-radius: 2px; box-shadow: none; }
.portal-content :where(.service-card, .three-columns) p { font-size: 15px; }
.portal-content .schedule-board .schedule-row strong { font-size: 15px; }
.portal-content .schedule-board .schedule-row small { font-size: 13px; }
.portal-content .news-copy p { font-size: 15px; }
.portal-content .repository-card-copy p { font-size: 14px; }
.portal-content .calendar-shell { box-shadow: none; }

/* Interior pages use type and space, without another coloured banner. */
.portal-content .page-heading.gruta-page-heading { gap: 38px; min-height: 0; margin-top: 24px; margin-bottom: 22px; padding: 32px 0 34px; border: 0; border-bottom: 1px solid var(--experience-line); background: transparent; color: var(--color-primary); }
.portal-content .page-heading.gruta-page-heading h1 { margin-bottom: 18px; color: var(--color-primary); font-size: clamp(48px, 6.5vw, 88px); line-height: .97; }
.portal-content .page-heading.gruta-page-heading p { color: var(--experience-muted); font-size: 15px; line-height: 1.8; }
.portal-content .page-heading.gruta-page-heading .breadcrumb { margin: 0 0 14px; color: var(--experience-muted); }
.portal-content .page-heading.gruta-page-heading .breadcrumb span { color: #d6c69f; }
.portal-content .page-heading.gruta-page-heading .eyebrow { color: #6e5b37; }
.portal-content .page-heading.gruta-page-heading a:hover { color: var(--color-primary); }
.portal-content .page-heading.gruta-page-heading :where(a, button):focus-visible { outline-color: var(--color-primary); }
.portal-content .gruta-page-heading.page-heading-illustrated { grid-template-columns: minmax(0, 1.9fr) minmax(240px, .7fr); }
.portal-content .gruta-page-heading .page-heading-photo { min-height: 245px; border-radius: 0; }
.portal-content .gruta-page-heading .page-heading-photo img { min-height: 245px; max-height: 300px; object-position: center 60%; }
.portal-content .gruta-page-heading .page-heading-photo figcaption { color: #fffdf8; font-size: 10px; line-height: 1.6; }
.portal-content .gruta-page-heading .page-heading-photo figcaption span { color: #e0e5df; }
.portal-content .workspace-page.request-workspace { max-width: 820px; padding-top: 28px; }
.request-workspace .gruta-request-heading { margin: 0 0 25px; padding: 24px 0 30px; border-bottom: 1px solid var(--experience-line); background: transparent; color: var(--color-primary); }
.request-workspace .gruta-request-heading .breadcrumb { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; color: var(--experience-muted); font: 500 12px/1.6 var(--sans); }
.request-workspace .gruta-request-heading .eyebrow { color: #6e5b37; }
.request-workspace .gruta-request-heading h1 { margin-bottom: 0; color: var(--color-primary); font: 500 clamp(40px, 4.3vw, 56px)/1.04 var(--serif); letter-spacing: -.03em; }
.request-workspace .gruta-request-heading a:hover { color: var(--color-primary); }
.request-workspace .gruta-request-heading a:focus-visible { outline-color: var(--color-primary); }
.portal-content .errorlist { border-left: 3px solid #8b3636; border-radius: 0; background: #f7e8e3; color: #813232; font-size: 13px; line-height: 1.7; }
.portal-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea)[aria-invalid=true] { border-color: #8b3636; }
.portal-content .messages .error { border-left-color: #8b3636; background: #f7e8e3; color: #813232; }
.portal-content .notice { border-radius: 0; }
.portal-content .wizard-progress li { color: #526267; }
.portal-content .wizard-progress [aria-current=step] { border-color: #204c78; color: #12344b; }
.portal-content .wizard-progress .completed { color: #435b50; border-color: #8d9d88; }
.portal-content .review-summary { border-radius: 0; background: #eaf0ed; }

/* A useful, compact footer, with the same hierarchy as the rest of the page. */
.portal-content .site-footer {
  margin-top: 0;
  padding-top: 48px;
  border-top: 1px solid var(--experience-line);
  background: #ffffff;
  color: var(--color-primary);
  --color-text-muted: var(--experience-muted);
  --color-border: var(--experience-line);
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 38px;
  padding-bottom: 30px;
}
.site-footer .footer-about { display: block; grid-column: auto; min-width: 0; }
.site-footer .footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-primary);
  font: 500 32px/1.05 var(--serif);
  letter-spacing: -.02em;
}
.site-footer .footer-brand .brand-emblem { width: 52px; height: 52px; border: 1px solid #bba57b; background: #ffffff; }
.site-footer .footer-brand small { margin-top: 6px; padding: 0; color: var(--experience-muted); font: 400 9px/1.6 var(--sans); letter-spacing: .12em; }
.site-footer .footer-top p { margin: 19px 0 15px; color: var(--experience-muted); font-size: 13px; line-height: 1.8; }
.site-footer .location-label { display: block; color: var(--experience-muted); font: 400 10px/1.8 var(--sans); letter-spacing: .09em; }
.site-footer .footer-top h2 { margin: 3px 0 13px; color: #6e5b37; font: 600 12px/1.6 var(--sans); letter-spacing: .07em; }
.site-footer .footer-top nav > a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 7px 0; color: var(--experience-muted); font: 400 13px/1.6 var(--sans); overflow-wrap: anywhere; }
.site-footer .footer-top nav > a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid var(--experience-line); color: var(--experience-muted); font: 400 11px/1.7 var(--sans); }
.site-footer .footer-bottom > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.site-footer .footer-bottom a { color: var(--experience-muted); }
.site-footer .footer-bottom a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-bottom .back-top { display: inline-flex; align-items: center; min-height: 38px; gap: 11px; }
.site-footer :where(a, button):focus-visible { outline-color: var(--color-primary); }
.footer-signature { display: none; }

@media (min-width: 1201px) and (max-width: 1340px) {
  .portal-shell > .site-header .header-inner { width: calc(100% - 48px); gap: 18px; }
  .portal-shell > .site-header .brand-copy { font-size: 22px; }
  .portal-shell > .site-header .main-nav { gap: 12px; }
  .portal-shell > .site-header .main-nav > a,
  .portal-shell > .site-header .nav-group > summary { font-size: 12px; }
  .portal-shell > .site-header .account-link { padding-inline: 11px; font-size: 12px; }
}
@media (max-width: 1200px) {
  .portal-shell .portal-content { margin-left: 0; }
  .portal-shell > .site-header .header-inner { width: calc(100% - 48px); min-height: 86px; gap: 16px; }
  .portal-shell > .site-header .brand-copy { font-size: 24px; }
  .portal-shell > .site-header .sidebar-brand { margin-right: auto; }
  .portal-shell > .site-header .sidebar-bottom { order: 2; }
  .portal-shell > .site-header .account-link { margin: 0; font-size: 13px; }
  .portal-shell > .site-header .menu-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 10px;
    width: auto;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #b9c4c6;
    border-radius: 2px;
    background: transparent;
    color: var(--color-primary);
    font: 600 12px/1.4 var(--sans);
  }
  .portal-shell > .site-header .menu-toggle:hover { background: #e8edea; color: var(--color-primary); }
  .portal-shell > .site-header .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    z-index: 45;
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    align-content: start;
    gap: 0 24px;
    width: auto;
    max-height: calc(100dvh - 86px);
    padding: 15px 28px 22px;
    border: 0;
    border-bottom: 1px solid var(--experience-line);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--experience-paper);
    color: var(--color-primary);
    box-shadow: 0 14px 24px #183b5b12;
  }
  .portal-shell > .site-header.nav-ready .main-nav { display: none; }
  .portal-shell > .site-header.nav-ready .main-nav.open { display: grid; }
  .portal-shell > .site-header:not(.nav-ready) { position: static; }
  .portal-shell > .site-header:not(.nav-ready) .header-inner { flex-wrap: wrap; }
  .portal-shell > .site-header:not(.nav-ready) .main-nav {
    position: static;
    flex-basis: 100%;
    order: 4;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  .portal-shell > .site-header:not(.nav-ready) .menu-toggle { display: none; }
  .portal-shell > .site-header .main-nav > a,
  .portal-shell > .site-header .nav-group > summary {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 12px 3px;
    gap: 12px;
    border-bottom: 1px solid #dedbcf;
    font-size: 15px;
    white-space: normal;
  }
  .portal-shell > .site-header .main-nav > a > .nav-icon,
  .portal-shell > .site-header .nav-group > summary > .nav-icon { display: block; width: 18px; height: 18px; flex: none; color: #8a7347; }
  .portal-shell > .site-header .main-nav > a > span:last-child,
  .portal-shell > .site-header .nav-group > summary > span:nth-child(2):not(.nav-chevron) { flex: 1; }
  .portal-shell > .site-header .nav-group > summary > span:not(.nav-chevron) { flex: 1; }
  .portal-shell > .site-header .nav-group > summary .nav-chevron { flex: none; margin-left: auto; }
  .portal-shell > .site-header .main-nav > a[aria-current=page],
  .portal-shell > .site-header .nav-group:has(.nav-panel a[aria-current=page]) > summary { border-bottom: 1px solid #829cb2; }
  .portal-shell > .site-header .nav-group { position: static; }
  .portal-shell > .site-header .nav-panel {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 12px 0 0 33px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .portal-shell > .site-header .nav-panel a { font-size: 14px; min-height: 46px; }
  .portal-shell > .site-header .nav-caption { margin-bottom: 5px; }
  .site-footer .footer-top { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 950px) {
  .portal-content .page-heading.gruta-page-heading { padding: 24px 0; gap: 30px; }
  .portal-content .gruta-page-heading.page-heading-illustrated { grid-template-columns: minmax(0, 1fr) minmax(230px, .85fr); }

  .portal-shell .wrap { width: calc(100% - 64px); }
  .site-footer .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; }
  .site-footer .footer-about { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 32px; }
  .site-footer .footer-about .footer-brand { grid-row: 1 / 3; }
  .site-footer .footer-about p { margin: 0 0 12px; }
  .site-footer .footer-about .location-label { grid-column: 2; }
  .site-footer .footer-bottom { align-items: start; flex-direction: column; gap: 7px; }
}
@media (max-width: 760px) {
  .portal-shell > .site-header .sidebar-brand { flex: 1; min-width: 0; }
  .portal-shell > .site-header .brand-copy { min-width: 0; }
  .portal-shell > .site-header .sidebar-bottom { display: block; }
  .portal-content .page-heading.gruta-page-heading { gap: 25px; margin-top: 20px; padding: 24px 0; }
  .portal-content .page-heading.gruta-page-heading h1 { font-size: 43px; line-height: 1.03; }
  .portal-content .page-heading.gruta-page-heading p { font-size: 14px; }
  .portal-content .gruta-page-heading.page-heading-illustrated { grid-template-columns: minmax(0, 1fr); }
  .portal-content .gruta-page-heading .page-heading-photo { min-height: 220px; max-height: none; }
  .portal-content .gruta-page-heading .page-heading-photo img { min-height: 220px; height: 220px; max-height: none; }
  .portal-content .workspace-page.request-workspace { padding-top: 20px; }
  .request-workspace .gruta-request-heading { padding: 23px 0 28px; }
  .request-workspace .gruta-request-heading h1 { font-size: 43px; }

  html { scroll-padding-top: 100px; }
  .portal-shell .wrap { width: calc(100% - 40px); }
  .portal-shell > .site-header .header-inner { width: calc(100% - 32px); min-height: 82px; gap: 10px; padding-block: 10px; }
  .portal-shell > .site-header .brand { gap: 8px; }
  .portal-shell > .site-header .brand-emblem { width: 48px; height: 48px; }
  .portal-shell > .site-header .brand-copy { max-width: 210px; font-size: 23px; line-height: 1; }
  .portal-shell > .site-header .brand-copy small { font-size: 9px; letter-spacing: .035em; margin-top: 5px; }
  .portal-shell > .site-header .account-link { font-size: 12px; padding-inline: 10px; gap: 6px; }
  .portal-shell > .site-header .account-link span { display: inline; }
  .portal-shell > .site-header .main-nav { left: -16px; right: -16px; grid-template-columns: minmax(0, 1fr); padding: 10px 20px 22px; max-height: calc(100dvh - 82px); }
  .portal-shell > .site-header .nav-panel { padding-left: 32px; }
  .portal-shell .demo-strip { padding: 8px 20px; text-align: left; font-size: 11px; }
  .portal-shell :where(.eyebrow, .section-overline) { font-size: 10px; letter-spacing: .11em; margin-bottom: 11px; }
  .portal-shell .section { padding-block: 46px; }
  .portal-shell .section-bottom { padding-bottom: 46px; }
  .portal-content .page-heading { padding-top: 29px; padding-bottom: 29px; }
  .portal-content .page-heading h1 { font-size: clamp(38px, 10vw, 48px); line-height: 1.06; }
  .portal-content .page-heading p { font-size: 15px; }
  .portal-content .form-panel { padding: 24px 20px; }
  .portal-content .prose { font-size: 15px; }
  .portal-content .site-footer { padding-top: 32px; }
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; padding-bottom: 25px; }
  .site-footer .footer-about { grid-column: 1 / -1; display: block; }
  .site-footer .footer-brand { font-size: 31px; }
  .site-footer .footer-about p { margin: 17px 0 13px; }
  .site-footer .footer-top h2 { margin-bottom: 10px; }
  .site-footer .footer-top nav > a { min-height: 44px; font-size: 13px; }
  .site-footer .footer-bottom { gap: 10px; padding-block: 18px; font-size: 10px; }
  .site-footer .footer-bottom > div { gap: 2px 18px; }
  .site-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 480px) {
  .portal-shell > .site-header .menu-toggle { width: 44px; padding: 0; }
  .portal-shell > .site-header .menu-label { display: none; }
  .portal-content .page-heading.gruta-page-heading { padding: 24px 0; }

  .portal-shell > .site-header .header-inner { gap: 8px; min-height: 82px; }
  .portal-shell > .site-header .brand-copy { max-width: 145px; font-size: 21px; line-height: .98; }
  .portal-shell > .site-header .brand-copy small { font-size: 8px; letter-spacing: 0; line-height: 1.4; }
  .portal-shell > .site-header .brand-emblem { width: 44px; height: 44px; }
  .portal-shell > .site-header .account-link { min-height: 44px; padding-inline: 9px; font-size: 11px; }
  .portal-shell > .site-header .main-nav { max-height: calc(100dvh - 82px); }
}
@media (max-width: 360px) {
  .portal-shell > .site-header .header-inner { width: calc(100% - 24px); gap: 6px; }
  .portal-shell > .site-header .brand-emblem { width: 38px; height: 38px; }
  .portal-shell > .site-header .brand { gap: 6px; }
  .portal-shell > .site-header .brand-copy { max-width: 129px; font-size: 19px; }
  .portal-shell > .site-header .brand-copy small { font-size: 8px; letter-spacing: 0; }
  .portal-shell > .site-header .account-link { padding-inline: 7px; font-size: 10px; }
  .portal-shell > .site-header .main-nav { left: -12px; right: -12px; }
}

/* Animated Experience: Smooth, dignified, living sanctuary */
@keyframes beaconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 0 8px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0), 0 0 16px rgba(16, 185, 129, 0.85);
  }
}

@keyframes sanctuaryLight {
  0%, 100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes goldSheen {
  0%, 72% {
    left: -70%;
  }
  100% {
    left: 150%;
  }
}

@keyframes atrioFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atrioCardSlide {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05, 0.95) rotate(-1.5deg); }
  50% { transform: scale(0.95, 1.04) rotate(1.2deg); }
  75% { transform: scale(1.02, 0.98) rotate(-0.8deg); }
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.08); opacity: .85; }
}

/* Progressive scroll reveals via experience.js */
.experience-ready.experience-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.experience-ready.experience-motion [data-reveal].is-in-view,
.experience-ready.experience-motion [data-reveal].reveal-immediate {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal-shell *, .portal-shell *::before, .portal-shell *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media print {
  html, body, .portal-shell { background: #fff; color: #111; }
  .portal-shell > .site-header, .site-footer, .demo-strip { display: none; }
  .portal-shell .portal-content { margin: 0; }
  .portal-shell .wrap { width: 100%; }
  .portal-content .page-heading.gruta-page-heading, .request-workspace .gruta-request-heading { background: #fff; border-bottom: 1px solid #777; padding: 20px 0; }
  .portal-content .page-heading.gruta-page-heading h1, .portal-content .page-heading.gruta-page-heading p, .portal-content .page-heading.gruta-page-heading .breadcrumb, .portal-content .page-heading.gruta-page-heading .eyebrow, .request-workspace .gruta-request-heading h1, .request-workspace .gruta-request-heading .breadcrumb, .request-workspace .gruta-request-heading .eyebrow { color: #111; }
}
/* Atrio: the real devotional scene is the cover, not an illustration beside it. */
.place-home .wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.atrio {
  margin: 24px 24px 0;
  background: #ffffff;
  color: var(--color-primary); }
.atrio-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto; align-items: end; gap: 20px; min-height: clamp(440px, calc(100svh - 280px), 720px); height: auto; max-height: none; padding: 30px 4vw 18px; overflow: hidden; background: #0b232a; color: #f8f3e8; }
.atrio-image { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; }
.atrio-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.atrio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,#071b24df 0%,#071b2499 37%,#071b2499 70%),linear-gradient(0deg,#061c25ec 0%,#061c2560 34%,#061c2529 70%);
  animation: sanctuaryLight 14s ease-in-out infinite;
}
.atrio-image figcaption { position: absolute; z-index: 2; right: 4vw; bottom: 18px; max-width: 290px; padding: 6px 9px; background: #08212cd9; color: #e2e6df; font: 400 10px/1.7 var(--sans); text-align: right; }
.atrio-image figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.atrio-top-bar {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  animation: atrioFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.atrio-location { overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; color: #f8f3e8; font: 500 11px/1.6 var(--sans); letter-spacing: .08em; }
.atrio-location > span:first-child { color: #d6c69f; text-transform: uppercase; }
.atrio-altitude {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cfdcd3;
  font: 400 10.5px/1.4 var(--sans);
  letter-spacing: .03em;
  opacity: 0.92;
}
.atrio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  background: rgba(10, 28, 49, 0.82);
  border: 1px solid rgba(214, 180, 117, 0.65);
  border-radius: 20px;
  color: #f8f3e8;
  font: 500 12px/1.4 var(--sans);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(214, 180, 117, 0.1);
}
.atrio-status-pill strong { color: #34d399; font-weight: 600; }
.atrio-status-pill .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
  animation: beaconPulse 2.4s ease-in-out infinite;
}
.atrio-status-pill .status-dot.closed {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.35);
}
.atrio-title {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding-top: 20px;
  max-width: 820px;
  animation: atrioFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.atrio .atrio-prelude { display: flex; align-items: center; gap: 15px; margin: 0 0 12px; color: #f3e5c8; font: 400 13px/1.7 var(--sans); letter-spacing: .025em; }
.atrio-prelude::before { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, #b28d4b, #e8d4a6); }
.atrio h1 { margin: 0; color: #fffdf7; font: 400 clamp(84px, 12vw, 180px)/.86 var(--serif); letter-spacing: -.05em; }
.atrio h1 > span { display: block; }
.atrio h1 > span:first-child { margin-bottom: 9px; font-size: clamp(28px, 3vw, 44px); line-height: 1.15; letter-spacing: -.015em; }
.atrio h1 em {
  display: inline-block;
  margin-right: .05em;
  font: italic 400 .34em/1 var(--serif);
  letter-spacing: -.035em;
  color: #e5c98e;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.atrio .atrio-notice { overflow-wrap: anywhere; max-width: 520px; margin: 20px 0 0; color: #eef0e5; font: 400 14px/1.8 var(--sans); }
.atrio-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
  animation: atrioFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.atrio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 6px;
  font: 600 13px/1.5 var(--sans);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.atrio-cta:hover { transform: translateY(-2px); }
.portal-content .button.gold, .atrio-cta.gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4af37 0%, #b28d4b 100%);
  color: #0b1f35;
  border: 1px solid #f3e09d;
  box-shadow: 0 4px 16px rgba(178, 141, 75, 0.45);
  font-weight: 700;
}
.atrio-cta.gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: goldSheen 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.portal-content .button.gold:hover, .atrio-cta.gold:hover {
  background: linear-gradient(135deg, #e5c158 0%, #c49d56 100%);
  box-shadow: 0 6px 22px rgba(178, 141, 75, 0.6);
  color: #061423;
}
.button.outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 180, 117, 0.55);
  color: #f8f3e8;
  backdrop-filter: blur(8px);
}
.button.outline-light:hover {
  background: rgba(214, 180, 117, 0.16);
  color: #ffffff;
  border-color: #e5c98e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.atrio-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 4vw 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--experience-line);
}
.atrio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 20px 20px;
  background: #ffffff;
  border: 1px solid rgba(178, 141, 75, 0.32);
  border-top: 3px solid #b28d4b;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(17, 46, 80, 0.04), 0 1px 3px rgba(178, 141, 75, 0.06);
  text-decoration: none;
  min-height: 134px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.atrio-card:nth-child(1) { animation: atrioCardSlide 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.atrio-card:nth-child(2) { animation: atrioCardSlide 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
.atrio-card:nth-child(3) { animation: atrioCardSlide 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both; }
.atrio-card:nth-child(4) { animation: atrioCardSlide 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.66s both; }
.atrio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(178, 141, 75, 0.18), 0 3px 8px rgba(17, 46, 80, 0.06);
  border-color: #b28d4b;
  border-top-color: #d4af37;
}
.atrio-card .path-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f6eee0 100%);
  border: 1px solid #d6b475;
  color: #8c6729;
  font: 700 11px/1 var(--sans);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(178, 141, 75, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.atrio-card:hover .path-badge {
  background: linear-gradient(135deg, #d4af37 0%, #b28d4b 100%);
  color: #ffffff;
  border-color: #b28d4b;
}
.atrio-card .path-text {
  color: var(--color-primary);
  font: 600 18px/1.25 var(--serif);
  letter-spacing: -0.01em;
}
.atrio-card .path-text small {
  display: block;
  margin-top: 5px;
  color: var(--experience-muted);
  font: 400 11px/1.5 var(--sans);
  letter-spacing: normal;
}
.atrio-card .path-arrow {
  align-self: flex-end;
  margin-top: 10px;
  color: #b28d4b;
  font: 400 17px/1 var(--sans);
  transition: transform 0.22s ease, color 0.22s ease;
}
.atrio-card:hover .path-arrow {
  color: #8c6729;
  transform: translate(4px, -4px);
}
.atrio-stage :where(a,button):focus-visible { outline-color: #e5c98e; }
.atrio-continue { grid-column: 1 / -1; display: inline-flex; justify-self: start; align-items: center; gap: 12px; min-height: 44px; color: #e0e6df; font: 400 11px/1.6 var(--sans); }
.atrio-continue > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(214, 180, 117, 0.6); border-radius: 50%; color: #e3cc9c; font-size: 17px; }
.devotional-highlight-wrap {
  background: radial-gradient(circle at 50% 25%, #153e6b 0%, #0a1c31 65%, #061322 100%);
  border-top: 2px solid rgba(178, 141, 75, 0.55);
  border-bottom: 2px solid rgba(178, 141, 75, 0.55);
  box-shadow: inset 0 1px 16px rgba(178, 141, 75, 0.15), inset 0 -1px 16px rgba(178, 141, 75, 0.15);
  color: #ffffff;
  padding-block: 76px;
}
.devotional-highlight-wrap .votive-section { background: transparent; border: 0; padding-block: 0; }
.devotional-highlight-wrap .flame-svg {
  transform-origin: bottom center;
  animation: flicker 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(214, 180, 117, 0.85));
}
.devotional-highlight-wrap .votive-halo-glow {
  animation: haloPulse 5.5s ease-in-out infinite;
}
.votive-communion-wall {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(214, 180, 117, 0.35);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.communion-header .communion-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(178, 141, 75, 0.2);
  border: 1px solid rgba(214, 180, 117, 0.5);
  border-radius: 14px;
  color: #f3e09d;
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.communion-header p {
  margin: 10px 0 24px;
  color: #dbe3db;
  font: 400 13px/1.6 var(--sans);
}
.intentions-stream {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}
.intention-card {
  position: relative;
  background: rgba(7, 24, 43, 0.65);
  border: 1px solid rgba(214, 180, 117, 0.3);
  border-radius: 8px;
  padding: 18px 20px 18px 36px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.intention-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 117, 0.65);
}
.intention-card .intention-quote {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #d4af37;
  font: 400 24px/1 var(--serif);
  opacity: 0.8;
}
.intention-card .intention-text {
  margin: 0 0 10px;
  color: #fdfaf3;
  font: 400 13px/1.65 var(--serif);
  font-style: italic;
}
.intention-card .intention-meta {
  display: block;
  color: #b2c2be;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .02em;
}
/* A single editorial sheet holds celebration, agenda and the day's reading. */
.community-sheet { padding-block: 92px 70px; }
.place-home .parish-desk { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(0,2fr); gap: 52px; padding: 0; scroll-margin-top: 0; }
.place-home .desk-heading { display: block; padding: 0; }
.place-home .desk-heading h2 { margin: 0 0 25px; max-width: 320px; font: 500 clamp(40px,4.3vw,62px)/.98 var(--serif); letter-spacing: -.035em; }
.place-home .desk-heading .text-link { min-height: 44px; font-size: 13px; }
.place-home .desk-columns { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 32px; align-items: start; }
.place-home .desk-time {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  gap: 14px;
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--experience-line);
  border-left: 2px solid transparent;
  transition: border-left-color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}
.place-home .desk-time:hover {
  border-left-color: #b28d4b;
  padding-left: 10px;
  background: rgba(248, 243, 232, 0.45);
}
.place-home .desk-time > time { color: var(--color-primary); font: 500 31px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.place-home .desk-time h3 { margin: 0 0 5px; color: var(--experience-ink); font: 600 13px/1.55 var(--sans); }
.place-home .desk-time p { margin: 0; color: var(--experience-muted); font-size: 12px; line-height: 1.7; }
.place-home .desk-example {
  display: inline-block;
  margin-left: 6px;
  color: #8c6729;
  background: #faf4e8;
  border: 1px solid #e5d2b0;
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 10px;
}
.place-home .desk-footnote { max-width: 400px; margin-top: 20px; color: var(--experience-muted); font-size: 12px; }
.portal-content .filter-tabs :where(button,a) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #c8cec9; border-radius: 2px; background: transparent; color: #52615f; font: 500 14px/1.45 var(--sans); }
.portal-content .filter-tabs :where(button,a):hover { background: #e9ede6; color: var(--color-primary); }
.portal-content .filter-tabs button[aria-pressed=true], .portal-content .filter-tabs a[aria-current=page], .portal-content .filter-tabs a.active { border-color: var(--color-primary); background: var(--color-primary); color: #fffdf8; font-weight: 600; }
.place-home .desk-schedules .filter-tabs { display: flex; flex-wrap: wrap; gap: 17px; margin: 0 0 4px; padding: 0; border-bottom: 1px solid var(--experience-line); }
.place-home .filter-tabs button { padding: 10px 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #596862; font-size: 12px; }
.place-home .filter-tabs button[aria-pressed=true] { border-bottom-color: var(--color-primary); background: transparent; color: var(--color-primary); }
.place-home .filter-tabs button:hover { background: transparent; border-bottom-color: #b5bdaf; }
.place-home .parish-agenda { padding: 0 0 0 24px; border: 0; border-left: 1px solid var(--experience-line); background: transparent; }
.place-home .parish-agenda > h3 { margin: 0 0 13px; color: #6e5b37; font: 500 12px/1.7 var(--sans); }
.place-home .parish-agenda .event-card { gap: 14px; padding-block: 20px; border-top: 1px solid var(--experience-line); border-radius: 0; background: transparent; box-shadow: none; }
.place-home .parish-agenda .event-date strong { color: var(--color-primary); font-size: 30px; }
.place-home .parish-agenda .event-date span { color: var(--experience-muted); font-size: 10px; }
.place-home .parish-agenda .event-card h3 { margin: 8px 0; color: var(--color-primary); font: 500 25px/1.1 var(--serif); }
.place-home .parish-agenda .event-card :where(p,.tag) { font-size: 10px; line-height: 1.65; }
.place-home .parish-agenda .event-arrow { display: none; }
.place-home .community-sheet .daily-note { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(0,2fr); gap: 52px; width: 100%; margin: 52px 0 0; padding: 30px 0 0; border: 0; border-top: 1px solid #bebcaa; background: transparent; }
.place-home .daily-note h2 { margin: 0; font: 400 32px/1.05 var(--serif); }
.place-home .daily-note .cover-kicker { color: #6e5b37; font: 500 11px/1.7 var(--sans); letter-spacing: .05em; }
.place-home .daily-note > div > p { color: var(--experience-muted); font-size: 14px; }
.place-home .daily-note-link { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 22px; padding-block: 12px; color: var(--color-primary); font-size: 16px; }
.place-home .daily-note-link small { color: var(--experience-muted); font-size: 12px; }
.place-home .daily-note .text-link { font-size: 13px; }
/* A second, different photographic spread connects place and community. */
.place-passage { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 650px; padding-block: 65px 0; overflow: hidden; background: #132f36; color: #fffdf7; }
.place-passage > figure { position: absolute; inset: 0; z-index: -2; margin: 0; }
.place-passage > figure > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.place-passage > figure::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,#071b24dc 0%,#071b2480 55%,#071b241a),linear-gradient(0deg,#061c25ee,transparent 45%); }
.place-passage figcaption { position: absolute; z-index: 2; right: 4vw; top: 23px; color: #f8f3e8; font: 400 10px/1.7 var(--sans); }
.place-passage figcaption a { color: inherit; background: #08212cbb; padding: 6px 9px; }
.place-passage .section-overline { color: #e1c796; }
.place-passage h2 { margin: 16px 0 60px; color: #fffdf7; font: 400 clamp(50px,6vw,86px)/.98 var(--serif); letter-spacing: -.03em; }
.place-passage h2 em { font-weight: 400; }
.passage-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #b4beb299; }
.passage-index > a { display: grid; grid-template-columns: 1fr 25px; align-items: center; column-gap: 12px; padding: 30px 24px 32px 0; color: #fffdf7; font: 400 32px/1.1 var(--serif); }
.passage-index > a:not(:first-child) { padding-left: 30px; border-left: 1px solid #b4beb250; }
.passage-index small { grid-column: 1; margin-top: 8px; color: #e0e6df; font: 400 11px/1.6 var(--sans); }
.passage-index a > span:last-child { grid-column: 2; grid-row: 1 / 3; color: #e1c796; }
.passage-index a:hover > span:first-child { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.place-passage a:focus-visible { outline-color: #e5c98e; }
.place-home .parish-journal { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(0,2fr); gap: 0 52px; padding-block: 80px 60px; }
.place-home .parish-journal > .desk-heading { grid-column: 1; grid-row: 1 / span 5; }
.place-home .parish-journal > .desk-heading h2 { font-size: clamp(39px,4.2vw,60px); }
.place-home .journal-entry {
  grid-column: 2;
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) 25px;
  align-items: start;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid #bbbfb2;
  border-bottom: 0;
  color: var(--color-primary);
  transition: border-top-color 0.2s ease;
}
.place-home .journal-entry:hover {
  border-top-color: #b28d4b;
}
.place-home .journal-entry > span:first-child { padding-top: 4px; color: var(--experience-muted); font: 500 11px/1.65 var(--sans); }
.place-home .journal-entry small { display: block; font-size: 10px; }
.place-home .journal-entry h3 { margin: 0; font: 400 36px/1.08 var(--serif); letter-spacing: -.02em; }
.place-home .journal-entry > span:last-child { color: #b28d4b; font: 400 21px/1 var(--sans); transition: transform 0.2s ease, color 0.2s ease; }
.place-home .journal-entry:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: #102942; }
.place-home .journal-entry:hover > span:last-child { transform: translate(3px, -3px); color: #8c6729; }
.place-home .parish-journal > .small-note { grid-column: 2; }
.community-close { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 75px; padding-bottom: 65px; }
.place-home .visit-notebook { padding: 0; }
.place-home .visit-notebook > details > summary { padding-block: 22px; font: 400 30px/1.15 var(--serif); }
.place-home .visit-notebook summary > span { color: #b28d4b; font: 300 25px/1 var(--sans); }
.place-home .notebook-links { padding-bottom: 24px; }
.place-home .notebook-links a { min-height: 44px; color: #52615f; font-size: 13px; }
.place-home .notebook-links a:hover { color: #204c78; text-decoration: underline; text-underline-offset: 4px; }
.place-home .notebook-example > summary { font-size: 13px; }
.place-home .personal-desk { display: block; min-height: 0; margin: 0; padding: 28px 0 0; border: 0; border-top: 2px solid #b28d4b; border-radius: 0; background: transparent; }
.place-home .personal-desk .section-overline { margin-bottom: 10px; }
.place-home .personal-desk p { margin: 0 0 16px; color: var(--color-primary); font: 400 39px/1 var(--serif); }
.place-home .personal-desk .personal-desk-note { margin-bottom: 15px; color: var(--experience-muted); font: 400 14px/1.8 var(--sans); }
.place-home .personal-desk a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding: 5px 0; border: 0; border-bottom: 2px solid #b28d4b; color: var(--color-primary); font-size: 13px; font-weight: 600; }
.place-home .personal-desk a:hover { color: #8c6729; border-bottom-color: #8c6729; }

/* --- GPS Pilgrim Launch Banner & Travel Guide --- */
.pilgrim-gps-banner {
  background: radial-gradient(circle at 80% 20%, #173d63 0%, #0c233c 70%, #071728 100%);
  border: 1px solid rgba(178, 141, 75, 0.45);
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 35px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(12, 35, 60, 0.15);
}
.pilgrim-gps-banner .gps-info {
  flex: 1;
  min-width: 280px;
}
.pilgrim-gps-banner .gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(178, 141, 75, 0.22);
  border: 1px solid rgba(214, 180, 117, 0.5);
  border-radius: 12px;
  color: #f3e09d;
  font: 600 11px/1.4 var(--sans);
  margin-bottom: 12px;
}
.pilgrim-gps-banner h2 {
  margin: 0 0 8px;
  color: #fffdf8;
  font: 400 clamp(24px, 3vw, 32px)/1.2 var(--serif);
}
.pilgrim-gps-banner p {
  margin: 0;
  color: #dbe3db;
  font: 400 13px/1.6 var(--sans);
}
.pilgrim-gps-banner .gps-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Golden Unification for Celebrations & Procedures --- */
.schedule-table .schedule-row {
  transition: transform 0.2s ease, border-left-color 0.2s ease, background-color 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 14px;
}
.schedule-table .schedule-row:hover {
  border-left-color: #b28d4b;
  background: rgba(214, 180, 117, 0.06);
  transform: translateX(4px);
}
.calendar td.calendar-today time {
  background: linear-gradient(135deg, #d4af37 0%, #b28d4b 100%);
  color: #0b1f35 !important;
  font-weight: 700;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  box-shadow: 0 2px 8px rgba(178, 141, 75, 0.45);
}
.service-card {
  position: relative;
  background: #ffffff;
  border-top: 3px solid #b28d4b !important;
  border: 1px solid rgba(17, 46, 80, 0.1);
  padding: 32px 28px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 3px 10px rgba(17, 46, 80, 0.04);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 141, 75, 0.45);
  box-shadow: 0 10px 24px rgba(178, 141, 75, 0.12);
}

@media (max-width: 1100px) {
 .atrio-stage { grid-template-columns: minmax(0,1fr); column-gap: 30px; padding-inline: 32px; }
 .atrio h1 { font-size: 120px; }
 .community-sheet { padding-block: 65px 55px; }
 .place-home .parish-desk { grid-template-columns: minmax(0,1fr); gap: 32px; }
 .place-home .desk-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
 .place-home .desk-heading h2 { max-width: 620px; margin-bottom: 0; font-size: 48px; }
 .place-home .desk-columns { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 38px; }
 .place-home .desk-time { grid-template-columns: 85px 1fr; }
 .place-home .desk-time h3 { font-size: 15px; }
 .place-home .desk-time p { font-size: 13px; }
 .place-home .desk-time > time { font-size: 37px; }
 .place-home .parish-journal { gap: 0 35px; }
 .place-home .parish-journal > .desk-heading { display: block; }
 .place-home .journal-entry { grid-template-columns: 85px 1fr 20px; gap: 20px; }
 .place-home .journal-entry h3 { font-size: 31px; }
 .community-close { gap: 45px; }
}
@media (max-width: 760px) {
 .place-home .wrap { width: calc(100% - 40px); }
 .atrio-stage { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto auto; align-content: end; gap: 0; height: auto; min-height: 460px; max-height: none; padding: 24px 22px 14px; }
 .atrio-image img { object-position: 70% 42%; }
 .atrio-image::after { background: linear-gradient(0deg,#071b24fa 0%,#071b24e0 28%,#071b24bf 68%,#071b2480); }
 .atrio-top-bar { grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; width: 100%; }
 .atrio-location { gap: 3px; font-size: 10px; max-width: 260px; }
 .atrio-status-pill { font-size: 11px; padding: 6px 12px; width: 100%; justify-content: flex-start; }
 .atrio-image figcaption { top: auto; bottom: 7px; right: 20px; max-width: 240px; font-size: 8px; padding: 2px 5px; }
 .atrio-title { grid-row: 2; padding-top: 0; }
 .atrio h1 { font-size: clamp(88px,23vw,130px); line-height: .9; letter-spacing: -.045em; }
 .atrio h1 > span:first-child { font-size: 29px; margin-bottom: 6px; }
 .atrio .atrio-prelude { margin-bottom: 10px; color: #f8f3e8; font-size: 11px; }
 .atrio .atrio-notice { max-width: 480px; margin: 20px 0 20px; font-size: 13px; line-height: 1.7; }
 .atrio-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 18px; }
 .atrio-cta { width: 100%; text-align: center; }
 .atrio-paths { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; padding: 20px 0; }
 .atrio-card { padding: 16px 14px; min-height: 120px; }
 .atrio-card .path-badge { width: 24px; height: 24px; font-size: 10px; margin-bottom: 8px; }
 .atrio-card .path-text { font-size: 16px; }
 .atrio-card .path-text small { font-size: 10px; }
 .atrio-card .path-arrow { font-size: 14px; }
 .atrio-continue { grid-row: 4; margin-block: 12px 20px; font-size: 9px; }
 .atrio-continue > span { width: 26px; height: 26px; font-size: 15px; }
 .community-sheet { padding-block: 46px; }
 .place-home .desk-heading { display: block; }
 .place-home .desk-heading h2 { max-width: 420px; margin-bottom: 13px; font-size: 48px; }
 .place-home .desk-columns { grid-template-columns: minmax(0,1fr); gap: 32px; }
 .place-home .desk-time { grid-template-columns: 80px minmax(0,1fr); gap: 16px; }
 .place-home .desk-time > time { font-size: 34px; }
 .place-home .desk-schedules .filter-tabs { gap: 25px; }
 .place-home .filter-tabs button { font-size: 14px; }
 .place-home .desk-example { font-size: 11px; }
 .place-home .parish-agenda { padding: 22px 0 0; border: 0; border-top: 1px solid #bfc4b8; }
 .place-home .parish-agenda > h3 { font-size: 14px; }
 .place-home .parish-agenda .event-card h3 { font-size: 28px; }
 .place-home .parish-agenda .event-card :where(p,.tag) { font-size: 11px; }
 .place-home .community-sheet .daily-note { grid-template-columns: minmax(0,1fr); gap: 20px; margin-top: 30px; padding-top: 25px; }
 .place-home .daily-note h2 { font-size: 34px; }
 .place-home .daily-note-link { grid-template-columns: 1fr; gap: 4px; }
 .place-passage { min-height: 620px; padding-top: 60px; }
 .place-passage > figure > img { object-position: 36% 65%; }
 .place-passage figcaption { right: 20px; top: 18px; font-size: 8px; }
 .place-passage h2 { margin-bottom: 70px; font-size: clamp(44px,11.5vw,65px); line-height: 1.02; }
 .passage-index { grid-template-columns: minmax(0,1fr); }
 .passage-index > a { padding: 17px 0; font-size: 29px; }
 .passage-index > a:not(:first-child) { border-left: 0; border-top: 1px solid #b4beb250; padding-left: 0; }
 .passage-index small { font-size: 10px; margin-top: 5px; }
 .place-home .parish-journal { display: block; padding-block: 48px 35px; }
 .place-home .parish-journal > .desk-heading { padding-bottom: 25px; }
 .place-home .parish-journal > .desk-heading h2 { font-size: 45px; }
 .place-home .journal-entry { grid-template-columns: minmax(0,1fr) 20px; gap: 12px; padding-block: 23px; }
 .place-home .journal-entry > span:first-child { grid-column: 1 / -1; display: flex; gap: 12px; padding: 0; }
 .place-home .journal-entry h3 { font-size: 33px; }
 .community-close { display: block; padding-bottom: 45px; }
 .place-home .visit-notebook { padding-bottom: 30px; }
 .place-home .personal-desk { padding-top: 25px; }
 .portal-shell > .site-header .brand-copy small { font-size: 10px; line-height: 1.5; }
}
@media (max-width: 360px) {
 .atrio-stage { min-height: 450px; padding-inline: 18px; }
 .atrio-location { margin-bottom: 65px; }
 .atrio h1 { font-size: 81px; }
 .atrio-paths { column-gap: 14px; }
 .atrio-paths > a { font-size: 21px; }
 .portal-shell > .site-header .brand-copy small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
 .atrio *, .atrio *::after { animation: none !important; transition: none !important; }
}
@media print {
 .atrio { display: block; height: auto; min-height: 0; max-height: none; padding: 20px 0; background: #fff; color: #111; }
 .atrio-image::after, .atrio-image, .atrio-continue { display: none; }
 .atrio h1 { color: #111; font-size: 65px; }
 .atrio .atrio-notice, .atrio .atrio-prelude, .atrio-location, .atrio-paths a, .atrio-paths small { color: #333; }
 .atrio-paths { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
 .community-sheet { padding: 20px 0; }
 .place-home .parish-desk, .place-home .desk-columns { display: block; }
 .place-passage { min-height: 0; padding: 20px 0; background: #fff; }
 .place-passage > figure::after, .place-passage > figure { display: none; }
 .place-passage h2, .place-passage .section-overline, .passage-index a, .passage-index small { color: #111; }
 .place-passage h2 { font-size: 40px; margin-bottom: 20px; }
}
@media (max-width: 760px) {
 .atrio { margin: 14px 12px 0; }
 .atrio-paths { padding: 0 10px; }
}
@media print {
 .atrio-stage { display: block; min-height: 0; padding: 0; background: #fff; color: #111; }
}
