/* =====================================================================
   Wellspring — subpage components (loaded after main.css on inner pages)
   ---------------------------------------------------------------------
   Page hero · breadcrumbs · page sections · prose · split media · cards ·
   steps · FAQ · document list · resource library · schedule · callout ·
   quote · contact/map card · CTA band · related links · sticky sub-nav
   ===================================================================== */

/* ---------- Page hero -------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(480px, 64vh, 640px);
  padding: calc(var(--header-h) + 64px) 0 clamp(52px, 6vw, 88px);
  background: var(--ivory);
}
.page-hero__media { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: min(64%, 1060px); overflow: hidden; }
.page-hero__media picture, .page-hero__media img { display: block; width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(1.04); animation: hero-drift 24s ease-in-out infinite alternate; }
@keyframes hero-drift { to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); } }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(251, 248, 242, 0.86) 14%, rgba(251, 248, 242, 0.32) 38%, rgba(251, 248, 242, 0) 62%),
    linear-gradient(0deg, var(--ivory) 0%, rgba(251, 248, 242, 0) 26%),
    linear-gradient(180deg, rgba(251, 248, 242, 0.55) 0%, rgba(251, 248, 242, 0) 22%);
}
.page-hero__mist {
  position: absolute; z-index: -1; inset: auto -10% 0 30%; height: 46%; pointer-events: none; opacity: 0.75;
  background: radial-gradient(60% 60% at 50% 70%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%);
  filter: blur(12px); animation: mist-drift 18s ease-in-out infinite alternate;
}
@keyframes mist-drift { from { transform: translateX(-4%); } to { transform: translateX(6%); } }
.page-hero__inner { position: relative; }
.page-hero__copy { max-width: 620px; }
.page-hero__copy .eyebrow { margin-top: 22px; }
.page-hero__title {
  margin: 18px 0 18px; font-family: var(--font-display); font-weight: 340;
  font-size: clamp(2.9rem, 1.6rem + 4.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.038em;
  font-variation-settings: "opsz" 144; color: var(--ink); text-wrap: balance;
}
.page-hero__title em { font-style: italic; font-weight: 300; color: var(--teal); }
.page-hero__lead { max-width: 34em; font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.7; color: var(--ink-2); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-border); color: var(--ink-2);
  font-size: 0.85rem; font-weight: 550; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip .icon { color: var(--teal); width: 17px; height: 17px; }
.page-hero__credit {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; margin: 0;
  font-size: 0.72rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.6); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.page-hero__credit a { color: inherit; font-weight: 600; }

/* ---------- Breadcrumbs ------------------------------------------------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55; margin-right: 4px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--teal); font-weight: 600; }

/* ---------- Page sections ----------------------------------------------- */
.page-section { position: relative; padding-block: clamp(56px, 6.5vw, 96px); }
.page-section--tint { background: linear-gradient(180deg, var(--ice) 0%, #F3F8F7 100%); }
.page-section--paper { background: var(--paper); }
/* Only two consecutive plain sections collapse; after a tinted or paper band the full rhythm returns */
.page-section:not(.page-section--tint):not(.page-section--paper) + .page-section:not(.page-section--tint):not(.page-section--paper) { padding-top: clamp(24px, 3vw, 48px); }
.page-section__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.page-section__head .section-title { margin-top: 12px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.page-section__head > p { color: var(--muted); max-width: 34em; justify-self: end; }
.page-section__head--stack { grid-template-columns: 1fr; }
.page-section__head--stack > p { justify-self: start; }

/* ---------- Layout with sticky aside / sub-nav --------------------------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.page-layout__aside { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 16px; }
.subnav { padding: 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.subnav__title { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.subnav ul { position: relative; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.subnav a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; border-left: 2px solid transparent; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.subnav a:hover { background: var(--ice); color: var(--teal); }
.subnav a[aria-current="true"] { color: var(--teal); background: var(--ice); border-left-color: var(--teal); }
.aside-card { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(165deg, #EDF5F5, #F8F5EE); border: 1px solid var(--line); }
.aside-card h2, .aside-card h3 { font-family: var(--font-display); font-weight: 420; font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.aside-card p { color: var(--ink-2); font-size: 0.95rem; }
.aside-card .btn { margin-top: 14px; }

/* ---------- Prose ------------------------------------------------------- */
.prose { max-width: 68ch; color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; font-family: var(--font-display); font-weight: 380; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: 110px; }
.prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-weight: 450; font-size: 1.35rem; letter-spacing: -0.015em; color: var(--ink); font-variation-settings: "opsz" 36; scroll-margin-top: 110px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--teal); font-weight: 550; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li + li, .prose ol li + li { margin-top: 0.45em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0.25em; top: 0.62em; width: 0.5em; height: 0.62em;
  background: var(--turquoise); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform: rotate(180deg); opacity: 0.8;
}
.prose ol li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--glacier); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.prose .lead { font-size: 1.2rem; color: var(--ink-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose cite { font-style: italic; }

/* ---------- Split media (text + photo) ---------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media .frame { overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-3); aspect-ratio: 4 / 3; }
.split__media .frame--arch { border-radius: 999px 999px var(--r-xl) var(--r-xl); aspect-ratio: 4 / 5; }
.split__media picture { display: block; width: 100%; height: 100%; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.value-list { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.value-list li { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.value-list strong { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); padding-top: 3px; }
.value-list p { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 640px) { .value-list li { grid-template-columns: 1fr; gap: 4px; } }
.split__media figcaption { position: absolute; left: 18px; bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- Cards -------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }
/* One H2 size on every sub-page (the larger homepage titles stay unique to the homepage) */
.page-section .section-title { margin-top: 12px; margin-bottom: 18px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.page-section__head .section-title { margin-bottom: 0; }
.info-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(11, 110, 115, 0.22); }
.info-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--teal); background: linear-gradient(150deg, #FFFFFF, #E2F0F1); box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.12), 0 10px 22px -16px rgba(11, 110, 115, 0.6); }
.info-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-family: var(--font-display); font-weight: 420; font-size: 1.38rem; line-height: 1.15; letter-spacing: -0.018em; color: var(--ink); font-variation-settings: "opsz" 48; }
.info-card p { color: var(--muted); font-size: 0.98rem; }
.info-card .text-link { margin-top: auto; padding-top: 6px; }
.info-card--link { cursor: pointer; }
.info-card--link .text-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.info-card__meta, .info-card p.info-card__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

.photo-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.photo-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.photo-card__media picture, .cta-band__media picture, .split__media .frame picture { display: block; width: 100%; height: 100%; }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-card:hover .photo-card__media img { transform: scale(1.05); }
.photo-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.photo-card__body h3 { font-family: var(--font-display); font-weight: 420; font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.015em; }
.photo-card__body p { color: var(--muted); font-size: 0.96rem; }
.photo-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); }
.photo-card__more .icon { transition: transform 0.45s var(--ease); }
.photo-card:hover .photo-card__more .icon { transform: translateX(3px); }

/* ---------- Steps -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.steps--row .step { grid-template-columns: 1fr; gap: 10px; }
.step::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 1.3rem; color: #fff;
  background: linear-gradient(160deg, #1A9097 0%, var(--teal) 50%, var(--teal-deep) 100%); box-shadow: 0 12px 24px -14px rgba(11, 110, 115, 0.9);
}
.step h3 { font-family: var(--font-display); font-weight: 430; font-size: 1.28rem; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 4px; font-variation-settings: "opsz" 36; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- FAQ (native details) ---------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color 0.3s; }
.faq details[open] { border-color: rgba(11, 110, 115, 0.3); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--teal); }
.faq .faq__body { padding: 0 22px 20px; color: var(--ink-2); }
.faq .faq__body > * + * { margin-top: 0.7em; }
.faq .faq__body a { color: var(--teal); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Documents ----------------------------------------------------- */
.doc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.doc {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.doc:hover { border-color: rgba(11, 110, 115, 0.32); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.doc__icon { position: relative; display: grid; place-items: center; width: 46px; height: 54px; border-radius: 10px; background: linear-gradient(160deg, #F4FAFA, #DDEFF0); color: var(--teal); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; }
.doc__icon::before { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: linear-gradient(225deg, var(--paper) 50%, #C9E3E6 50%); border-radius: 0 10px 0 4px; }
.doc__title { font-weight: 600; line-height: 1.35; }
.doc__meta { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.doc__action { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--teal); white-space: nowrap; }

/* ---------- Resource library (filters + grid) ------------------------------ */
.library__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.library__search { position: relative; flex: 1 1 260px; }
.library__search input {
  width: 100%; min-height: 48px; padding: 12px 14px 12px 44px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.library__search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 115, 0.14); }
.library__search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; height: 19px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.filter-chip:hover { border-color: rgba(11, 110, 115, 0.45); color: var(--teal); }
.filter-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-chip__count { min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: rgba(16, 38, 46, 0.07); font-size: 0.78rem; text-align: center; font-variant-numeric: tabular-nums; }
.filter-chip[aria-pressed="true"] .filter-chip__count { background: rgba(3, 38, 42, 0.32); }
.library__status { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.library__empty { padding: 36px; text-align: center; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); color: var(--muted); }
.library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.resource-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.resource-card[hidden] { display: none; }
.resource-card__cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 11; padding: 18px 20px; color: #fff; isolation: isolate; overflow: hidden; }
.resource-card__cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.resource-card:hover .resource-card__cover img { transform: scale(1.05); }
.resource-card__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 40, 46, 0.15), rgba(6, 34, 40, 0.82)); }
/* Dark glass so white text stays ≥ 4.5:1 even over the brightest snow or sky */
.resource-card__type { align-self: flex-start; padding: 5px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(6, 34, 40, 0.72); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.resource-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.resource-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.resource-card__body p { color: var(--muted); font-size: 0.95rem; }
.resource-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.84rem; color: var(--ink-2); }
.resource-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.resource-card__body .text-link { margin-top: auto; padding-top: 6px; }

/* ---------- Schedule ------------------------------------------------------ */
.schedule { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.schedule__item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.schedule__day { display: grid; place-items: center; height: 56px; border-radius: 16px; color: #fff; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; background: linear-gradient(160deg, #1A9097 0%, var(--teal) 50%, var(--teal-deep) 100%); }
.schedule__name { font-family: var(--font-display); font-weight: 430; font-size: 1.24rem; letter-spacing: -0.012em; color: var(--ink); }
.schedule__detail { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
.schedule__time { font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Callout & quote --------------------------------------------- */
.callout { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: #F1F8F8; border: 1px solid rgba(11, 110, 115, 0.18); color: var(--ink-2); }
.callout--warm { background: #FBF3E6; border-color: rgba(181, 101, 15, 0.25); }
.callout__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--teal); box-shadow: inset 0 0 0 1px rgba(11, 110, 115, 0.12); }
.callout--warm .callout__icon { color: var(--focus); }
.callout__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { color: var(--ink); }
.callout a { color: var(--teal); font-weight: 600; }
.quote-block { position: relative; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: linear-gradient(160deg, #FFFFFF 0%, #F2F8F8 100%); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.quote-block::before { content: "“"; position: absolute; top: -0.12em; left: 0.22em; font-family: var(--font-display); font-size: 7rem; line-height: 1; color: rgba(11, 110, 115, 0.14); }
.quote-block p { position: relative; font-family: var(--font-display); font-style: italic; font-weight: 330; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.quote-block footer { margin-top: 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

/* ---------- Contact / map card -------------------------------------------- */
.map-card { position: relative; overflow: hidden; display: grid; align-content: end; min-height: 280px; padding: 24px; border-radius: var(--r-xl); color: var(--ink); background: #EAF3F4; border: 1px solid var(--line); box-shadow: var(--shadow-1); isolation: isolate; }
.map-card__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.map-card__pin { position: absolute; left: 58%; top: 34%; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(160deg, #1A9097, var(--teal-deep)); box-shadow: 0 14px 28px -12px rgba(11, 110, 115, 0.9); }
.map-card__pin::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.map-card__pulse { position: absolute; left: calc(58% + 2px); top: calc(34% + 34px); width: 40px; height: 14px; border-radius: 50%; background: rgba(11, 110, 115, 0.25); animation: map-pulse 2.6s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
.map-card__label { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); }
.map-card__label strong { font-family: var(--font-display); font-weight: 450; font-size: 1.2rem; }

/* ---------- CTA band ------------------------------------------------------ */
/* Bright closing band: the photo dissolves into ivory behind the copy, like the page heroes */
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); color: var(--ink); background: var(--ice); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band { background: linear-gradient(110deg, var(--paper) 0%, var(--ice) 52%, var(--glacier-soft) 100%); padding-bottom: clamp(64px, 7vw, 96px); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 120% at 92% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 62%); }
/* The same pale mountain ridge that closes the homepage contact card */
.cta-band::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(70px, 9vw, 120px); pointer-events: none; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 92 L40 70 L70 82 L118 44 L160 74 L196 60 L240 30 L286 66 L320 54 L362 76 L410 40 L452 62 L496 50 L540 72 L600 58 L600 120 L0 120Z' fill='%23D7E9EE'/><path d='M0 104 C80 94 140 100 220 96 C320 90 380 104 470 98 C530 94 570 100 600 98 L600 120 L0 120Z' fill='%23E6F1F3'/></svg>") bottom / 100% 100% no-repeat; opacity: 0.85; }
.cta-band h2 { font-family: var(--font-display); font-weight: 350; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1.04; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.cta-band h2 em { font-style: italic; color: var(--teal); }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cta-band .btn--light { --btn-bg: var(--teal); --btn-fg: #fff; --btn-border: transparent; box-shadow: 0 12px 26px -14px rgba(11, 110, 115, 0.9); }
.cta-band .btn--light:hover { --btn-bg: var(--teal-deep); }
.cta-band .btn--outline-light { --btn-bg: rgba(255, 255, 255, 0.78); --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.cta-band .btn--outline-light:hover { --btn-bg: #fff; --btn-border: rgba(11, 110, 115, 0.35); }

/* ---------- Related links -------------------------------------------------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
/* 3 or 4 links: fixed columns so a row never ends with a lone card (4 → 2 → 1, 3 → 1) */
.related:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .related:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .related:has(> :nth-child(3):last-child), .related:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.related a small { display: block; font-weight: 400; font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.related a:hover { border-color: rgba(11, 110, 115, 0.3); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.related a .icon { color: var(--teal); }

/* ---------- Simple data table --------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); background: #F5FAFA; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-layout > *, .page-layout__aside > * { min-width: 0; }
  .page-layout__aside { position: static; order: -1; }
  .page-layout__aside .subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .page-layout__aside .subnav a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .page-section__head { grid-template-columns: 1fr; }
  .page-section__head > p { justify-self: start; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
}
@media (max-aspect-ratio: 21/20), (max-width: 699px) {
  .page-hero { display: block; min-height: 0; padding: 0 0 44px; }
  .page-hero__media { position: relative; width: 100%; height: clamp(250px, 44svh, 420px); }
  .page-hero__media::after { background: linear-gradient(0deg, var(--ivory) 0%, rgba(251, 248, 242, 0) 48%), linear-gradient(180deg, rgba(251, 248, 242, 0.5) 0%, rgba(251, 248, 242, 0) 30%); }
  .page-hero__mist { display: none; }
  .page-hero__inner { margin-top: -28px; }
  /* Photo credit flows as a small caption under the hero copy, so it can never cover the breadcrumbs */
  .page-hero__credit { position: static; display: block; width: auto; margin: 26px var(--gutter) 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--muted); }
}
@media (max-width: 640px) {
  .page-hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .page-hero__actions .btn { flex: 1 1 100%; }
  .schedule__item { grid-template-columns: 60px 1fr; row-gap: 2px; }
  .schedule__day { grid-row: span 2; align-self: center; }
  .schedule__time { grid-column: 2; }
  .doc { grid-template-columns: 40px 1fr; }
  .doc__action { grid-column: 2; }
  .step { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__media img, .page-hero__mist { animation: none; }
}

/* ---------- Small helpers used across pages ------------------------------ */
.info-card__title-lg { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.link-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.link-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; text-decoration: none; }
.link-list a::before { content: "↗"; font-size: 0.85em; opacity: 0.7; }
.link-list a:hover { text-decoration: underline; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lang-chips li { padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.lang-chips li small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 450; font-size: 1.15rem; color: var(--ink); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #FBF3E6; color: #8A5A1A; border: 1px solid rgba(181, 101, 15, 0.25); }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 18px; }

/* ---------- 404 ---------- */
.page-404 { min-height: min(100svh, 980px); display: grid; align-items: center; background: radial-gradient(60% 50% at 85% 20%, rgba(140, 199, 220, 0.22), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(30, 154, 160, 0.1), transparent 70%); }
.page-404__inner { max-width: 820px; }
.page-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 40px; }
.page-404__routes { padding-top: 26px; border-top: 1px solid var(--line); }
.page-404__routes .link-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 28px; }
.page-404__routes .link-list a { min-height: 32px; }
.page-404__routes .link-list a::before { content: "→"; }

/* ---------- Shared helpers (v2) ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 1080px) {
  /* Arched frames would grow very tall in a single column: cap the whole figure (frame + caption together) */
  .split__media:has(> .frame--arch) { width: 100%; max-width: 460px; margin-inline: auto; }
}
/* Row steps: titles stay aligned when neighbouring cards wrap differently */
.steps--row .step { align-content: start; }
@media (max-width: 640px) {
  .btn-row .btn { flex: 1 1 100%; }
  /* Compact library cards on phones: thumbnail + type + title, then the details (about 40% shorter) */
  .library__grid { gap: 12px; }
  .resource-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding: 14px 14px 0; }
  .resource-card__cover { display: contents; color: inherit; }
  .resource-card__cover::after { display: none; }
  .resource-card__cover picture { position: relative; grid-column: 1; grid-row: 1 / span 2; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; }
  .resource-card__cover img { position: static; z-index: auto; width: 100%; height: 100%; object-fit: cover; }
  .resource-card__cover .chip, .resource-card__cover .resource-card__type { grid-column: 2; grid-row: 1; align-self: start; justify-self: start; margin: 0; }
  .resource-card__cover .chip { background: var(--ice); border-color: transparent; padding: 4px 11px; font-size: 0.8rem; }
  .resource-card__title { grid-column: 2; grid-row: 2; align-self: start; margin-top: 8px; color: var(--ink); font-size: 1.16rem; }
  .resource-card__body { grid-column: 1 / -1; padding: 12px 2px 16px; }
}
.split--top { align-items: start; }

/* ---------- Contact page ---------- */
.office-card .info-card__meta { margin-top: 4px; }
.office-card__link { margin-top: 2px; }
.office-card__link .text-link { font-size: 0.95rem; }
.office-card__actions { margin-top: auto; padding-top: 10px; }
.office-card__actions .btn { flex: 0 1 auto; }
.map-card--tall { min-height: clamp(340px, 34vw, 460px); }
.map-card__label .muted a { color: var(--teal); font-weight: 600; }
.form-card { padding: clamp(24px, 3.6vw, 44px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.contact-form--inline { padding: 0; }
.contact-form--inline .section-title { margin: 12px 0 8px; }
.form-card__intro { margin-bottom: 22px; color: var(--muted); }
.message-aside { display: grid; gap: 18px; align-content: start; padding-top: clamp(0px, 2vw, 24px); }
.message-aside .contact-list a { color: var(--teal); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .office-card__actions .btn { flex: 1 1 100%; }
}
/* The sticky aside keeps only the sub-nav where space is tight: on tablets/phones the card would sit
   above the content (repeating the hero CTA), and on short laptop screens it would push the sticky
   aside past the bottom of the viewport. */
@media (max-width: 1080px), (max-height: 700px) { .page-layout__aside .aside-card { display: none; } }

/* Long single-column pages (Ministry): a hairline marks where each topic begins */
.page-layout > div:first-child > .page-section + .page-section { border-top: 1px solid var(--line); padding-top: clamp(48px, 5.5vw, 80px); }
/* "On this page" jump chips in a hero (long pages without a sub-nav, e.g. Resources) */
.page-jump .chip { min-height: 36px; text-decoration: none; color: var(--ink-2); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.page-jump .chip:hover { background: var(--white); color: var(--teal); border-color: rgba(11, 110, 115, 0.3); }
/* The whole location card opens directions (pointer/touch); the visible link remains the keyboard path */
.map-card__hit { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.map-card__label { position: relative; z-index: 1; }
.map-card:hover .map-card__pin { transform: rotate(-45deg) translate(2px, -2px); }
.map-card__pin { transition: transform 0.4s var(--ease); }

/* ---------- Sticky section pills on tablets & phones (Ministry) ---------- */
@media (min-width: 1081px) { .page-layout__aside { margin-top: clamp(24px, 6.5vw, 96px); } }
@media (max-width: 1080px) {
  /* A flex column lets the pill bar stick across the whole layout (a grid item sticks only within its row) */
  .page-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .page-layout__aside { position: sticky; top: calc(var(--header-h) + 18px); z-index: 30; order: -1; margin: clamp(18px, 3vw, 28px) 0 0; transition: top 0.4s var(--ease); }
  html:has(.site-header.is-hidden) .page-layout__aside { top: 10px; }
  .page-layout__aside .subnav { padding: 6px; border-radius: 999px; background: rgba(255, 253, 249, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-1); }
  .page-layout__aside .subnav__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .page-layout__aside .subnav ul { padding-bottom: 0; }
  .page-layout__aside .subnav a { padding: 7px 14px; font-size: 0.9rem; }
  .page-layout > div:first-child > .page-section { scroll-margin-top: calc(var(--header-h) + 90px); }
}

/* ---------- Phone compactions (v2) ---------- */
@media (max-width: 640px) {
  /* Number discs and icons sit beside the text instead of on a row of their own */
  .step, .steps--row .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 20px; align-items: start; }
  .step::before { width: 40px; height: 40px; font-size: 1.05rem; }
  .info-card:has(> .info-card__icon) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-content: start; }
  .info-card:has(> .info-card__icon) > * { grid-column: 2; }
  .info-card:has(> .info-card__icon) > .info-card__icon { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; }
  /* Library cards: price and store link share a row */
  .resource-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .resource-card__body > * { grid-column: 1 / -1; }
  .resource-card__body > .price { grid-column: 1; }
  .resource-card__body > :last-child { grid-column: 2; justify-self: end; }
  .resource-card__body > .price + :last-child { grid-row: auto; }
  /* Arched photos: a wider crop keeps the arch but saves a screen of scrolling */
  .split__media .frame--arch { aspect-ratio: 16 / 11; }
  /* Download rows: only the arrow shows on phones (the label is still read by screen readers) */
  .doc { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
  .doc__action { grid-column: 3; font-size: 0; gap: 0; }
  .doc__action .icon { width: 18px; height: 18px; }
  /* Whole email row is the tap target */
  .message-aside .contact-list li { position: relative; }
  .message-aside .contact-list a::after { content: ""; position: absolute; inset: 0; }
}
/* Static tags must not look like buttons */
.lang-chips li { padding: 6px 12px; border: 0; border-radius: 10px; background: var(--ice); font-weight: 500; font-size: 0.9rem; }
/* Deep links to a single title (e.g. from the homepage shelf) land below the header and are highlighted */
.resource-card { scroll-margin-top: calc(var(--header-h) + 40px); }
.resource-card:target { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 115, 0.16), var(--shadow-2); }
