/* Dementia Café – site styles (from the Main.dc design). Google Fonts are requested here and allowed in src/index.ts (fonts.custom CSP). */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Alex+Brush&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.min.css');

:root {
  --accent: #8FB56B;
  --ink: #102A4C;
  --ink-soft: #41566F;
  --bg: #F3F8FA;
  --panel: #DDEBF1;
  --line: #D0E0E8;
  --dark-card: #1B3D63;
  --on-dark: #D3E5EE;
  --on-dark-soft: #BCD6E3;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--font-body); font-size: 20px; line-height: 1.55; }
body, html, * { font-family: var(--font-body); }
.dc a { color: var(--ink); }
.dc a:hover { text-decoration: underline; }
.dc a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dc h1, .dc h2, .dc h3, .dc-brand-name, .dc-big { font-family: var(--font-head); font-weight: 800; margin: 0; }
.dc p { margin: 0; }

.dc-wrap { max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 96px 32px; }
.dc-wrap-sm { max-width: 900px; margin: 0 auto; box-sizing: border-box; padding: 88px 32px; }
.dc-stack { display: flex; flex-direction: column; gap: 48px; }
.dc-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.dc-eyebrow { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dc-dark .dc-eyebrow { color: var(--on-dark-soft); }
.dc h2 { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.dc-lead { font-size: 22px; }
.dc-row { display: flex; flex-wrap: wrap; }
.dc-icon { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.dc-header { max-width: 1200px; margin: 0 auto; padding: 24px 32px 8px; box-sizing: border-box; }
.dc-header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dc-brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.dc-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; display: block; }
.dc-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.dc-brand-name { font-size: 28px; letter-spacing: -.01em; }
.dc-brand-sub { font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.dc-nav-shell { display: flex; flex: none; align-items: center; gap: 16px; }
.dc-nav-shell a.dc-nav-cta { font-weight: 700; text-decoration: none; padding: 12px 24px; border: 3px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.dc-nav-shell a.dc-nav-cta:hover { background: var(--accent); text-decoration: none; }
.dc-subnav { align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 36px; padding-top: 8px; }
.dc-subnav a { font-weight: 700; text-decoration: none; padding: 12px 0; }
.dc-subnav a:hover { text-decoration: underline; }

/* Hamburger (behaviour from core's main.js) */
.dc .hamburger-menu { cursor: pointer; position: relative; padding: 8px; display: flex; flex-direction: column; justify-content: space-around; width: 44px; height: 44px; box-sizing: border-box; background: transparent; border: 3px solid var(--ink); border-radius: 999px; }
.dc .hamburger-menu span { width: 20px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: all .3s ease; }
.dc .hamburger-dropdown { position: absolute; top: 100%; right: 0; margin-top: .5rem; min-width: 14rem; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(18, 48, 63, .2); z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; overflow: hidden; }
.dc .hamburger-dropdown.open { opacity: 1; visibility: visible; pointer-events: auto; }
.dc .hamburger-dropdown a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; text-decoration: none; }
.dc .hamburger-dropdown a.md\:hidden { display: block; }
@media (min-width: 768px) { .dc .hamburger-dropdown a.md\:hidden { display: none; } }
.dc .hamburger-dropdown button { display: block; width: 100%; text-align: left; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dc .hamburger-dropdown button:hover { background: var(--bg); }
.dc .hamburger-dropdown a:last-child { border-bottom: 0; }
.dc .hamburger-dropdown a:hover { background: var(--bg); }
@media (max-width: 767px) { .dc .hamburger-dropdown { position: fixed; top: 4.5rem; left: 1rem; right: 1rem; } }

/* Hero: invitation card */
.dc-hero { background: var(--panel); }
.dc-hero-inner { max-width: 1040px; margin: 0 auto; padding: 24px 32px 56px; box-sizing: border-box; }
.dc-invite { background: #fff;  color: var(--ink); border-radius: 36px; box-shadow: 0 0 0 6px var(--panel), 0 0 0 9px var(--ink); padding: 28px 40px 28px 0px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; }
.dc-invite-logo { width: 100%; max-width: 320px; height: auto; display: block; flex: none; }
.dc-invite-body { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dc-small-caps { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.dc .dc-script { font-family: 'Alex Brush', 'Brush Script MT', cursive; font-weight: 400; letter-spacing: 0; color: var(--ink); margin: 0; }
.dc h1.dc-script { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.dc-when { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; border-top: 2px solid var(--line); padding-top: 14px; }
.dc-when > div, .dc-place { display: flex; flex-direction: column; align-items: center; }
.dc-when .dc-script { font-size: 42px; line-height: 1.1; }
.dc-place .dc-script { font-size: 46px; line-height: 1.1; }
.dc-place b { font-size: 20px; }
.dc-invite-note { font-size: 18px; font-weight: 700;}
.dc .dc-btns-sm { justify-content: center; gap: 12px; }
.dc .dc-btns-sm .dc-btn { min-height: 52px; padding: 0 30px; font-size: 19px; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.dc .dc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 36px; box-sizing: border-box; font-weight: 700; font-size: 20px; text-decoration: none; border-radius: 999px; color: var(--ink); border: 3px solid transparent; }
.dc .dc-btn-fill { background: var(--accent); }
.dc .dc-btn-line { border-color: var(--ink); }
.dc .dc-btn-sm { min-height: 52px; padding: 0 28px; font-size: inherit; align-self: flex-start; border-color: var(--ink); }
.dc .dc-btn { transition: background-color .15s ease, border-color .15s ease; }
.dc .dc-btn:hover { text-decoration: none; }
.dc .dc-btn-fill:hover { border-color: var(--ink); }
.dc .dc-btn-line:hover, .dc .dc-btn-sm:hover { background: var(--accent); }
.dc-big { font-size: 36px; line-height: 1.15; }

/* Cards */
.dc-white { background: #fff; }
.dc-cards { display: flex; flex-wrap: wrap; gap: 28px; margin-top:2rem; }
.dc-card { flex: 1 1 300px; min-width: 0; box-sizing: border-box; border: 2px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); }
.dc-white .dc-card, .dc-card-white { background: #fff; }
.dc-card h3 { font-size: 28px; line-height: 1.15; }
.dc-card p.grow { flex: 1; }
.dc-badge { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.dc-badge .dc-icon { width: 32px; height: 32px; }
.dc-badge-sm { width: 56px; height: 56px; }
.dc-badge-sm .dc-icon { width: 28px; height: 28px; }

/* What happens (dark) */
.dc-dark { background: var(--ink); color: #fff; }
.dc-dark .dc-cards { gap: 24px; }
.dc-dcard { flex: 1 1 320px; min-width: 0; box-sizing: border-box; background: var(--dark-card); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.dc-dcard .dc-icon { width: 40px; height: 40px; stroke: var(--accent); }
.dc-dcard h3 { font-size: 26px; line-height: 1.15; }
.dc-dcard p { color: var(--on-dark); }

/* Typical visit */
.dc-steps { display: flex; flex-wrap: wrap; gap: 24px; }
.dc-step { flex: 1 1 240px; min-width: 0; box-sizing: border-box; background: #fff; border-top: 8px solid var(--accent); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dc-step .dc-num { font-size: 44px; line-height: 1; }
.dc-step .dc-time { font-weight: 700; color: var(--ink-soft); }
.dc-step h3 { font-size: 24px; line-height: 1.15; }
.dc-step p { font-size: 18px; }

/* Plan your visit */
.dc-visit { display: flex; flex-wrap: wrap; gap: 56px; }
.dc-visit-info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.dc-items { display: flex; flex-direction: column; gap: 24px; }
.dc-item { display: flex; gap: 20px; align-items: flex-start; }
.dc-item b { display: block; }
.dc-map { flex: 1 1 400px; min-width: 0; min-height: 420px; box-sizing: border-box; background: var(--panel); border-radius: 36px; overflow: hidden; z-index: 0; }

/* Promise band */
.dc-band { background: var(--accent); }
.dc-band .dc-wrap-sm { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.dc-band h2 { font-size: 52px; line-height: 1.08; }
.dc-band p { font-size: 22px; max-width: 640px; }

/* Footer */
.dc-footer-inner { max-width: 1200px; margin: 0 auto; padding: 88px 32px 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 56px; }
.dc-contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.dc-contact-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dc-contact-copy p { font-size: 22px; color: var(--on-dark); max-width: 520px; }
.dc-contact-links { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dc-footer a.dc-contact-link { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; font-weight: 700; font-size: 26px; }
.dc-legal { border-top: 2px solid #2C4F78; padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 17px; color: var(--on-dark-soft); }
.dc-legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.dc-footer .dc-legal a { color: var(--on-dark-soft); }

/* Floating back-to-top button */
.dc .dc-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 9000; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); border: 3px solid transparent; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(18, 48, 63, .3); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.dc .dc-to-top:hover { border-color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.dc .dc-to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dc .dc-to-top { transition: none; } }

/* Cookie banner (markup generated by core's main.js) */
#cookie-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 1200px; margin: 0 auto; box-sizing: border-box;
  background: var(--ink); color: #fff;
  border: 3px solid #fff; border-radius: 28px; box-shadow: 0 12px 40px rgba(18, 48, 63, .35);
  font-family: var(--font-body); font-size: 18px; line-height: 1.5;
}
.cookie-banner-inner { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.cookie-banner-text { margin: 0; max-width: 760px; color: var(--on-dark); }
.cookie-banner-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.cookie-banner-link:hover { color: #fff; }
.cookie-banner-link:focus-visible, .cookie-banner-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cookie-banner-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cookie-banner-button {
  appearance: none; cursor: pointer; white-space: nowrap;
  min-height: 52px; padding: 0 28px; box-sizing: border-box;
  border: 3px solid #fff; border-radius: 999px; background: transparent; color: #fff;
  font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.cookie-banner-button:hover { background: rgba(255, 255, 255, .12); }
.cookie-banner-button-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cookie-banner-button-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 900px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
@media (max-width: 480px) {
  .cookie-banner-button { flex: 1 1 100%; }
}

/* Policy / 404 pages */
.dc-policy-hero { background: var(--panel); color: var(--ink); padding: 72px 32px; text-align: center; }
.dc-policy-hero * { color: var(--ink) !important; }
.dc-policy-hero h1, .dc-policy-hero h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; }

/* About page: alternating coloured panels */
.dc-about-intro { background: #fff; }
.dc-about-past { background: var(--bg); }
.dc-about-present { background: var(--panel); }
.dc-about-future { background: color-mix(in srgb, var(--accent) 35%, #fff); }
.dc-about .dc-policy h2 { margin-top: 0; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-bottom: 28px; padding-bottom: 18px; position: relative; }
.dc-about .dc-policy h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); }
.dc-about-future .dc-policy h2::after { background: var(--ink); }
@media (max-width: 640px) { .dc-about .dc-policy h2 { font-size: 30px; } }

/* Policy text: spacing between paragraphs, lists and headings (content strings contain raw <p>/<ul>/<h3>) */
.dc-policy { font-size: 18px; line-height: 1.65; }
.dc-policy p, .dc-policy ul, .dc-policy ol { margin: 0 0 1.1em; }
.dc-policy ul { list-style: disc; padding-left: 1.5em; }
.dc-policy ol { list-style: decimal; padding-left: 1.5em; }
.dc-policy li { margin: 0 0 .5em; }
.dc-policy h2 { font-size: 30px; line-height: 1.2; margin: 48px 0 20px; }
.dc-policy h3 { font-size: 22px; line-height: 1.25; margin: 32px 0 14px; }
.dc-policy a:not(.dc-btn) { font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.dc-policy .dc-btn { margin-top: .5em; }
.dc-policy strong { font-weight: 700; }
/* Arrow bullets (core's list component; markup from renderList) */
.dc-policy ul.dc-bullets { list-style: none; padding-left: 0; }
.dc-bullets li { margin: 0; padding: 8px 0; align-items: flex-start; }
.dc .dc-bullet { width: 28px; height: 28px; margin: 2px 16px 0 0; background: var(--accent); border: 2px solid var(--ink); box-shadow: none; line-height: 0; }
.dc-bullet svg { display: block; }

@media (max-width: 640px) {
  .dc h2, .dc-band h2 { font-size: 34px; }
  .dc-wrap, .dc-wrap-sm { padding-top: 64px; padding-bottom: 64px; }
  .dc-invite { padding: 24px; }
  .dc-when .dc-script { font-size: 34px; }
  .dc-place .dc-script { font-size: 38px; }
  .dc-header { padding-left: 16px; padding-right: 16px; }
  .dc-brand-name { font-size: 20px; }
  .dc-logo { width: 48px; height: 48px; }
  .dc-nav-shell a.dc-nav-cta { padding: 8px 16px; }
}
.dc-sponsors { background: var(--bg); }
.dc-sponsors .dc-card { flex: 1 1 340px; }
.dc-sponsor-logo { height: 96px; display: flex; align-items: center; }
.dc-sponsor-logo-lg { height: 120px; margin-bottom: 8px; }
.dc-sponsor-page { padding: 48px; gap: 0; font-size: 19px; line-height: 1.65; }
.dc-sponsor-page h2 { font-size: 32px; line-height: 1.15; margin: 40px 0 14px; }
.dc-sponsor-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dc-sponsor-head .dc-sponsor-logo-lg { margin-bottom: 0; }
.dc-sponsor-head-end { justify-content: flex-end; }
.dc-sponsor-page .dc-sponsor-head + h2 { margin-top: 8px; }
.dc-sponsor-page p { margin: 0; }
.dc-sponsor-page .dc-btns { margin-top: 40px; }
@media (max-width: 640px) { .dc-sponsor-page { padding: 28px 22px; } .dc-sponsor-page h2 { font-size: 26px; } }
.dc-sponsor-logo img { display: block; height: 100%; width: auto; max-width: 220px; object-fit: contain; }

/* Language switcher modal */
.dc-lang-title { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 20px; }
.dc-lang-list { display: flex; flex-direction: column; gap: 12px; }
.dc-lang-btn, .dc-lang-close { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 14px 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.dc-lang-btn:hover, .dc-lang-close:hover { background: var(--accent); }
.dc-lang-btn:focus-visible, .dc-lang-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dc-lang-close { margin-top: 20px; text-align: center; background: var(--bg); }
#languageModal { background: rgba(16, 42, 76, .6); }
#languageModal > div { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 32px; max-width: 28rem; }

/* Why it matters page */
.dc-why-intro, .dc-why-growing, .dc-why-friends, .dc-why-sources { background: #fff; }
.dc-why-tea, .dc-why-tomorrow { background: color-mix(in srgb, var(--accent) 35%, #fff); }
.dc-why-carers, .dc-why-stats { background: var(--panel); }
.dc-why-moment, .dc-why-video { background: var(--dark-card); }
.dc-why { padding-top: 80px !important; padding-bottom: 80px !important; }
.dc-why-intro .dc-policy { font-size: 21px; }
.dc-why-intro .dc-policy p:first-child { font-size: 26px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.dc-why .dc-policy h2 { font-size: 38px; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-bottom: 28px; padding-bottom: 18px; position: relative; }
.dc-why .dc-policy h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); }
.dc-why .dc-policy p { font-size: 19px; }
.dc-why-moment .dc-policy, .dc-why-video .dc-policy { color: var(--on-dark); }
.dc-why-moment .dc-policy p, .dc-why-video .dc-policy p { color: var(--on-dark); }
.dc-why-moment .dc-policy h2, .dc-why-video .dc-policy h2 { color: #fff; }
.dc-why-moment .dc-policy p:last-child { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.3; color: #fff; }
.dc-why-video .dc-video-caption { color: var(--on-dark-soft); }
.dc-why-video .dc-video-frame { border-color: var(--on-dark-soft); }
.dc-why-carers .dc-policy p:last-child { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--ink); }
@media (max-width: 640px) { .dc-why { padding-top: 56px !important; padding-bottom: 56px !important; } .dc-why .dc-policy h2 { font-size: 30px; } .dc-why-intro .dc-policy p:first-child { font-size: 22px; } }

.dc-stats { justify-content: center; }
.dc-stats .dc-stat { flex: 1 1 240px; text-align: center; align-items: center; justify-content: flex-start; padding: 32px 24px; }
.dc-stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 6vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.dc-stat-label { font-size: 18px; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.dc-video { margin: 8px 0 0; }
.dc-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 2px solid var(--line); background: #000; }
.dc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dc-video-caption { margin: 12px 0 0; font-size: 16px; color: var(--ink-soft); }
.dc-sources { list-style: disc; padding-left: 1.5em; margin: 0 0 1.2em; }
.dc-sources li { margin: 0 0 .6em; }
.dc-sources-note { font-size: 16px; color: var(--ink-soft); }

/* Committee page */
.dc-member-a { background: #fff; }
.dc-member-b { background: color-mix(in srgb, var(--accent) 35%, #fff); }
.dc-member { padding-top: 80px !important; padding-bottom: 80px !important; }
.dc-member-inner { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); align-items: center; gap: 56px; }
.dc-member-b .dc-member-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.dc-member-nophoto .dc-member-inner { grid-template-columns: minmax(0, 1fr); }
.dc-member-b .dc-member-inner > div:first-child { order: 2; }
.dc-member-inner > div:first-child { width: 100%; }
.dc-member-photo { width: 100%; height: auto; border-radius: 28px; border: 2px solid var(--line); display: block; }
.dc-member-body { min-width: 0; font-size: 19px; line-height: 1.65; }
.dc-member-role { display: inline-block; align-self: flex-start; margin: 0 0 14px; padding: 6px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.dc-member-body h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin: 0 0 28px; padding-bottom: 18px; position: relative; }
.dc-member-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); }
.dc-member-b .dc-member-body h2::after { background: var(--ink); }
@media (max-width: 900px) { .dc-member-inner, .dc-member-b .dc-member-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } .dc-member-b .dc-member-inner > div:first-child { order: 0; } .dc-member { padding-top: 56px !important; padding-bottom: 56px !important; } .dc-member-body h2 { font-size: 32px; } }
.dc-sponsor-page h3 { font-size: 24px; line-height: 1.2; margin: 32px 0 8px; color: var(--ink); }
.dc-sponsor-page h2::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); margin-top: 18px; }
.dc-sponsor-page p + p { margin-top: 1em; }
.dc-sponsor-page .dc-sponsor-head + div > p:first-child { margin-top: 0; }
.dc-contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.dc-sponsor-page a:not(.dc-btn) { font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.dc-sponsor-page ul { list-style: disc; padding-left: 1.5em; margin: 1em 0; }
.dc-sponsor-page li { margin: 0 0 .5em; }
.dc-quote { margin: 8px 0 0; padding: 24px 28px; border-left: 6px solid var(--accent); background: var(--bg); border-radius: 0 20px 20px 0; }
.dc-quote p { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0; }
.dc-quote footer { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .dc-footer a.dc-contact-link { font-size: 18px; gap: 12px; overflow-wrap: anywhere; }
  .dc-footer a.dc-contact-link > :first-child { flex-shrink: 0; }
}

/* Home page video panel (portrait film on the left, intro on the right) */
.dc-film { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px; }
.dc-film-copy { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dc-film-player { width: 100%; max-width: 380px; aspect-ratio: 478 / 850; border-radius: 16px; background: #000; border: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.dc-sponsor-category + .dc-sponsor-category { margin-top: 64px; }
.dc-sponsor-category-title { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 28px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.dc-sponsor-category .dc-card { flex: 0 1 calc(50% - 14px); }
@media (max-width: 720px) { .dc-sponsor-category .dc-card { flex-basis: 100%; } }

/* Memories at a Glance: film on the left, intro + four facts (2x2) on the right */
.dc-glance { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; }
.dc-glance .dc-film { display: block; }
.dc-glance .dc-film-player { display: block; max-width: 380px; }
.dc-glance-side { display: flex; flex-direction: column; gap: 32px; }
.dc-glance-side .dc-film-copy { flex: none; gap: 16px; }
.dc-glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.dc-glance-tile { box-sizing: border-box; padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18); display: flex; flex-direction: column; gap: 12px; }
.dc-glance-tile h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.dc-glance-tile p { margin: 0; font-size: 18px; line-height: 1.4; }
.dc-glance-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px !important; white-space: nowrap; }
@media (max-width: 900px) { .dc-glance { grid-template-columns: 1fr; } .dc-glance .dc-film-player { margin: 0 auto; } }
@media (max-width: 560px) { .dc-glance-grid { grid-template-columns: 1fr; } .dc-glance-label { white-space: normal; } }

/* Support Our Work page */
.dc-support h3 { font-size: 28px; line-height: 1.2; margin: 36px 0 16px; color: var(--ink); }
.dc-support ul { margin: 0 0 20px; padding-left: 28px; }
.dc-support li { margin-bottom: 8px; }
.dc-support .dc-btns { margin: 28px 0 20px; }
.dc-support-alt { background: #fff; }
.dc-support-badge { display: inline-block; margin: 0 0 24px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 16px; }
.dc-support-tag { font-weight: 700; font-size: 22px; }
.dc-donate-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.dc-donate-table th, .dc-donate-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.dc-donate-table thead th { background: var(--ink); color: #fff; }
.dc-donate-table tbody th { width: 28%; font-size: 24px; font-weight: 800; }
.dc-donate-table tbody tr:last-child th, .dc-donate-table tbody tr:last-child td { border-bottom: 0; }
.dc-support-dark { background: var(--ink); color: #fff; }
.dc-support-dark .dc-policy h2, .dc-support-dark .dc-policy h3, .dc-support-dark .dc-policy p, .dc-support-dark .dc-policy li, .dc-support-dark .dc-policy a:not(.dc-btn) { color: #fff; }
.dc-support-leaf { background: #E8F1DD; }
.dc-support-tint { background: #E3EEF4; }
.dc-support-quote { margin: 32px 0; padding: 36px 40px; border-radius: 28px; background: var(--accent); text-align: center; }
.dc-support .dc-support-quote p { font-size: 32px; line-height: 1.25; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.dc-support .dc-support-quote p:last-child { margin-bottom: 0; }
.dc-support-fundraising ul { columns: 2; column-gap: 40px; }
.dc-support-fundraising li { break-inside: avoid; }
.dc-support-fundraising .dc-policy h2 { font-size: 44px; }
@media (max-width: 700px) { .dc-support-fundraising ul { columns: 1; } .dc-support .dc-support-quote p { font-size: 24px; } }
.dc-support-dark .dc-btn-line { color: #fff; border-color: #fff; }
.dc-support-dark .dc-btn-line:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 560px) { .dc-donate-table th, .dc-donate-table td { padding: 12px; } .dc-donate-table tbody th { width: 30%; font-size: 20px; } }
.dc-support-other .dc-policy.max-w-4xl { max-width: 1120px; }
.dc-support-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.dc-support-col { display: flex; flex-direction: column; box-sizing: border-box; padding: 32px; background: #fff; border: 2px solid var(--line); border-radius: 28px; }
.dc-support-col h3 { margin: 0 0 16px; font-size: 26px; }
.dc-support-col p { font-size: 18px; }
.dc-support-col .dc-btns { margin: auto 0 0; padding-top: 16px; justify-content: center; }
.dc-support-col .dc-btn { min-height: 52px; padding: 8px 16px; font-size: 16px; text-align: center; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) { .dc-support-col .dc-btn { white-space: normal; } }
@media (max-width: 900px) { .dc-support-cols { grid-template-columns: 1fr; } }
.dc-support-counter { font-family: var(--font-head); font-weight: 800; font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 0 0 32px; }
.dc-support-dark .dc-policy p.dc-support-counter { color: var(--accent); font-size: clamp(56px, 9vw, 96px); line-height: 1.1; text-align: center; margin: 40px 0 40px; padding: 0; }

/* Blog post hero: black overlay over the photo (class comes from core's post template) */
.bg-hero-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); z-index: 0; }
:has(> .bg-hero-overlay) { position: relative; }

/* Latest blog posts widget (footer). Core's widget uses Tailwind utilities that this site doesn't compile, so lay it out here. */
.dc-news { background: var(--accent); color: var(--ink); padding: 88px 32px; box-sizing: border-box; }
.dc-news > div > div { max-width: 1136px; margin: 0 auto; }
.dc-news .text-3xl { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1.15; text-align: left; color: var(--ink); margin: 0 0 36px; }
.dc-news .grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .dc-news .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dc-news .grid { grid-template-columns: repeat(3, 1fr); } }
.dc-news .grid > div { border-radius: 20px; box-shadow: none; }
.dc-news .grid img { border-radius: 20px 20px 0 0; }
.dc-news .text-center { display: flex; justify-content: center; margin-top: 44px; }
.dc .dc-news .dc-btn-line:hover { background: #fff; }

/* Blog card meta row (category left, read time right) - used by the footer widget and the blog list */
:has(> .blog-card-category-link) { display: flex; align-items: center; gap: 12px; }
.blog-card-category-link ~ .ml-auto { margin-left: auto; }

/* Blog post body (core renders it inside #blogpost-content) */
#blogpost-content { padding-top: 56px; padding-bottom: 24px; }
#blogpost-content p { margin: 0 0 1.4em; line-height: 1.75; }
#blogpost-content h2 { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 2.2em 0 .7em; }
#blogpost-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); }
#blogpost-content blockquote p { margin: 0; font-size: 22px; font-style: italic; }

/* Blog post images */
#blogpost-content figure { margin: 2em auto; max-width: 460px; }
#blogpost-content img { display: block; width: 100%; height: auto; border-radius: 20px; }
#blogpost-content .blog-fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2em 0; }
#blogpost-content .blog-fig-row figure { margin: 0; max-width: none; }
#blogpost-content .blog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0 2em; }
#blogpost-content .blog-gallery figure { margin: 0; max-width: none; }
#blogpost-content .blog-gallery img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 700px) {
  #blogpost-content .blog-fig-row { grid-template-columns: 1fr; }
  #blogpost-content .blog-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Blog post meta strip (date / read time / category) under the post hero */
.blogstrip { background-color: var(--ink); color: #fff; padding: 16px 0; }
.blogstrip .blog-post-meta-strip-inner { background: transparent; }
.blogstrip, .blogstrip * { color: #fff; }
.blogstrip .blog-post-meta-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 56px; max-width: none; padding: 0 24px; }
