/* Premium reference-led redesign. Local, dependency-free, fixed light palette.
   Load after styles.css and interface.css. Business logic stays in existing JS/PHP. */
:root {
  color-scheme: light;
  --primary: #171b21; --primary-dark: #303840; --primary-soft: #edf1f3;
  --primary-ring: rgba(23,27,33,.15); --accent: #171b21; --accent-dark: #303840; --accent-soft: #edf1f3;
  --background: #f5f5f3; --surface: #fff; --surface-2: #f7f8f7;
  --text: #171b21; --muted: #60676d; --border: #e3e6e5; --border-strong: #838c93;
  --info: #326c95; --info-soft: #edf5fa; --neutral: #58636a; --neutral-soft: #f1f3f3;
  --radius-md: 10px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20,30,35,.025);
  --shadow-md: 0 4px 18px rgba(20,30,35,.045);
  --shadow-lg: 0 20px 64px rgba(20,30,35,.12);
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
body { color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-weight: 600; letter-spacing: -.04em; }
a { text-underline-offset: 4px; }
.container { max-width: 1120px; }
.btn { font-size: 14px; letter-spacing: -.01em; font-weight: 600; border-radius: 8px; box-shadow: none; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-secondary { --btn-fg: var(--text); }
.btn-secondary:hover { --btn-fg: var(--text); }
:focus-visible,.btn:focus-visible { outline: 3px solid #326c95; outline-offset: 4px; }
.input,.field input:not([type="checkbox"]):not([type="radio"]),.field select,.field textarea {
  border-radius: 8px; border-color: var(--border-strong); min-height: 50px; background: #fff;
}
.field label { margin-bottom: 8px; }
input::placeholder,textarea::placeholder { color: #60676d; }
.card,.panel,.stat,.rec-card { border-radius: 12px; border-color: var(--border); box-shadow: none; }
.brand-name { text-transform: none; font-weight: 700; letter-spacing: -.035em; }
.brand-sub { font-size: 14px; }
.brand-logo { border-radius: 50%; }
/* A calm, inset canvas like the supplied reference. */
.public-home { margin: 28px; background: #f4f4f2; }
.public-home .site-header,.public-home main,.public-home .site-footer { background-color: #fff; }
.public-home .site-header { border-radius: 12px 12px 0 0; }
.site-header { position: relative; top: auto; height: auto; border-bottom: 0; padding: 22px 0; }
.site-header>.container { min-height: 44px; }
.site-nav { gap: 4px; }
.site-nav a:not(.btn) { text-transform: none; letter-spacing: 0; padding: 10px 14px; min-height: 44px; font-size: 14px; font-weight: 500; border-radius: 6px; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--text); box-shadow: none; border-radius: 6px; background: #f3f5f4; }
.site-nav .btn { margin-left: 12px; border-radius: 24px; }
.mobile-nav { border-top: 1px solid var(--border); margin-top: 16px; background: #fff; }
.mobile-nav a { min-height: 44px; }
.hero.hero-photo { position: relative; background: radial-gradient(ellipse at 12% 48%,#e8f6fa 0%,transparent 52%),radial-gradient(ellipse at 90% 45%,#fff8e3 0%,transparent 48%),#fff; padding: 64px 0 0; overflow: hidden; }
.hero.hero-photo::before { content: none; }
.hero-grid { display: block; }
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-photo .hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #58636a; font-size: 14px; font-weight: 500; letter-spacing: .11em; margin-bottom: 24px; }
.eyebrow-dot { width: 6px; height: 6px; background: #326c95; border-radius: 50%; }
.hero-photo .hero-copy h1 { color: #11171c; font-size: clamp(42px,5.2vw,72px); line-height: 1.02; letter-spacing: -.065em; font-weight: 500; text-shadow: none; margin: 0 0 24px; }
.title-dot { color: #326c95; }
.hero-photo .hero-copy .lead { color: #60676d; font-size: 16px; line-height: 1.65; max-width: 560px; margin: 0 auto 28px; }
.hero-copy .status-card { max-width: 620px; padding: 20px 24px; margin: 0 auto 16px; background: rgba(255,255,255,.8); border: 1px solid #dee6e5; border-radius: 12px; box-shadow: 0 4px 24px rgba(23,40,40,.03); }
.hero-photo .status-card { text-align: center; }
#status-body { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; text-align: left; }
#status-body .badge { justify-self: start; }
#status-body .status-msg { font-size: 16px; font-weight: 500; margin: 10px 0 4px; grid-column: 1; }
#status-body .status-hours { font-size: 14px; line-height: 1.6; margin: 0; grid-column: 1; color: var(--muted); }
#status-body>.btn { grid-column: 2; grid-row: 1/4; width: auto; margin: 0; border-radius: 28px; min-width: 155px; }
.hero-lookup-link { color: #303b43; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.hero-lookup-link:hover { border-color: #303b43; }
.hero-details { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; align-items: center; border-top: 1px solid #dfe7e5; margin-top: 48px; padding: 24px 0; color: #58636a; font-size: 14px; }
.hero-details>div { display: flex; align-items: center; justify-content: center; gap: 10px; }
.detail-icon { color: #326c95; font-size: 20px; }
.section { padding: 80px 0; }
.section-soft { background: #f7f9f8; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px,3vw,38px); line-height: 1.15; font-weight: 500; margin-bottom: 12px; }
.section-head p { font-size: 16px; }
.section-head .section-kicker { font-size: 14px; letter-spacing: .1em; color: #60676d; margin-bottom: 14px; }
.lookup-container { max-width: 740px; }
.lookup-panel { padding: 32px; background: #fff; }
.lookup-panel .btn { border-radius: 8px; }
.lookup-privacy { font-size: 14px; line-height: 1.55; margin: 16px 0 0; }
.steps { gap: 24px; }
.steps li { padding: 28px; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.steps li::before { width: auto; height: auto; background: none; color: #326c95; display: block; content: '0' counter(step); font-weight: 500; font-size: 28px; letter-spacing: -.06em; margin-bottom: 24px; }
.steps li strong { font-size: 18px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.025em; }
.steps li span { font-size: 16px; line-height: 1.6; }
.event-card { padding: 28px; }
.event-card.has-image { overflow: hidden; }
.event-card h3 { font-size: 22px; }
.date-chip { background: #f3f6f5; color: var(--text); }
.date-chip .m { color: #60676d; }
.site-footer { position: static; inset: auto; box-shadow: none; padding: 24px 0; background: #fff; }
.has-fixed-footer { padding-bottom: 0; }
.public-home .site-footer { border-radius: 0 0 12px 12px; }
.footer-inner { font-size: 14px; }
.staff-link { color: #303b43; }
/* Registration: editorial title, generous fields, understated notices. */
.page-narrow { max-width: 660px; padding-top: 48px; padding-bottom: 64px; }
.page-title { font-size: 40px; font-weight: 500; line-height: 1.1; margin-bottom: 16px; }
.page-lead { color: var(--muted); line-height: 1.65; }
.notice { background: #f2f7f8; border-color: #d6e2e5; padding: 24px; border-left: 3px solid #326c95; }
.notice h2 { color: #303b43; }
.notice ul { margin-top: 8px; }
.reg-form { padding: 32px; }
.privacy-note { line-height: 1.6; }
.result { padding: 40px; }
.result h1 { font-size: 32px; font-weight: 500; }
.hours-box,.schedule-box { background: #f2f6f6; }
/* Staff workspace: monochrome navigation, restrained semantic status colors. */
.admin-body { background: #f5f6f5; }
.sidebar { background: #fff; border-right: 1px solid var(--border); }
.workspace-label { letter-spacing: .12em; color: #667077; }
.sidebar .nav-link { border-radius: 8px; font-weight: 500; }
.sidebar .nav-link.active { background: #edf3f4; color: #171b21; box-shadow: none; }
.sidebar .nav-link.active::before { background: #326c95; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); }
.account-avatar { background: #edf3f4; color: #303b43; }
.page-header { padding-bottom: 8px; }
.page-header h1 { font-size: 32px; font-weight: 500; }
.page-header .sub { color: #60676d; }
.stat { padding: 24px; background: #fff; }
.stat-head { color: #60676d; }
.stat .stat-value { font-size: 38px; font-weight: 500; letter-spacing: -.05em; color: #171b21; }
.stat .stat-head .icon { color: #637a86; background: #f2f6f6; }
.stat:hover { border-color: #becacc; box-shadow: none; }
.progress { background: #eef1f0; height: 5px; }
.progress>span { background: #326c95; }
.sys-status { background: #fff; }
.sys-status.is-open { border-color: #cddfd4; background: linear-gradient(110deg,#f1f8f3,#fff 72%); }
.panel-head { background: #fff; padding: 24px; }
.panel-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.panel-head h2 .icon { color: #667d88; }
.panel-foot { background: #fafbfa; }
.mini-counts div { background: #f6f8f7; }
.mini-counts strong { font-weight: 500; }
.table thead th { background: #f5f7f6; color: #58636a; }
.table tbody tr:hover { background: #f8faf9; }
/* Login echoes the airy public hero, without external assets. */
.login-body { background: radial-gradient(ellipse at 10% 30%,#e8f6fa,transparent 55%),radial-gradient(ellipse at 90% 70%,#fff8e3,transparent 50%),#f7f8f6; }
.auth-card { padding: 40px; border-color: #e0e6e4; box-shadow: 0 16px 64px rgba(25,40,40,.06); }
.auth-card h1 { font-size: 36px; font-weight: 500; }
.auth-card .eyebrow { color: #60676d; font-size: 14px; }
.auth-card .brand { margin-bottom: 40px; }
.auth-card .auth-foot { line-height: 1.65; }
.error-card { width: min(100%,540px); padding: 48px; }
@media (max-width: 1100px) {
  .public-home { margin: 16px; }
  .site-header .brand-sub { display: none; }
  .site-nav a:not(.btn) { padding-inline: 10px; }
  .hero-details { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .site-header { padding: 16px 0; }
  .hero.hero-photo { padding-top: 48px; }
  .hero-photo .hero-copy h1 { font-size: clamp(40px,7.5vw,56px); }
  .hero-photo .hero-copy .eyebrow { font-size: 14px; letter-spacing: .06em; }
  .hero-details { margin-top: 32px; }
  .section { padding: 48px 0; }
}
@media (max-width: 639px) {
  .public-home { margin: 8px; }
  .container { width: calc(100% - 32px); }
  .site-header .brand-name { font-size: 16px; }
  .hero-photo .hero-copy h1 { font-size: 43px; }
  .hero-photo .hero-copy .lead br { display: none; }
  .hero-copy .status-card { padding: 20px; }
  #status-body { grid-template-columns: 1fr; gap: 0; }
  #status-body>.btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 20px; }
  .hero-details { padding: 24px 0; font-size: 14px; }
  .hero-details>div { justify-content: flex-start; gap: 12px; }
  .hero-details>div span { min-width: 0; }
  .hero-details .detail-icon { flex: 0 0 24px; text-align: center; }
  .lookup-panel,.reg-form { padding: 24px; }
  .page-title { font-size: 34px; }
  .notice { padding: 20px; }
  .page-narrow { padding-top: 32px; }
  .auth-card { padding: 28px 24px; }
  .auth-card .brand-sub { font-size: 14px; }
  .result,.error-card { padding: 28px 24px; }
  .footer-inner { align-items: center; }
  .footer-links { justify-content: center; }
  .stat { padding: 24px; }
  .stat .stat-value { font-size: 36px; }
}
@media print { .public-home { margin: 0; } .hero.hero-photo { background: #fff; } }

/* V3: original reference-inspired visual system + requested additions. */
/* Uniform cards across every row, including announcements without a photograph.
   Full text is available in a keyboard-accessible dialog, not lost to clipping. */
.events-grid { grid-auto-rows: 1fr; align-items: stretch; }
.events-grid>.event-card { height: 100%; }
.public-home .events-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.public-home .premium-announcement { height: 600px; display: grid; grid-template-rows: 176px minmax(0,1fr); padding: 0; gap: 0; overflow: hidden; border-color: #e3e6e5; background: #fff; transition: border-color .18s ease,box-shadow .18s ease; }
.public-home .premium-announcement:hover { border-color: #becacc; transform: none; box-shadow: 0 8px 24px rgba(24,35,56,.05); }
.announcement-image { position: relative; min-width: 0; overflow: hidden; background: #edf3f5; }
.announcement-image>.picture-open { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.announcement-image .picture-open img { position: static; object-fit: cover; }
.announcement-art { height: 100%; padding: 32px 28px; display: flex; justify-content: center; flex-direction: column; gap: 14px; background: radial-gradient(ellipse at 95% 5%,#fff8e3,transparent 70%),#edf5f8; color: #303b43; }
.announcement-art-small { font-size: 14px; letter-spacing: .08em; }
.announcement-art-title { font: 500 28px/1.15 var(--font); letter-spacing: -.04em; max-width: 180px; }
.announcement-date { position: absolute; top: 16px; right: 16px; width: 52px; min-height: 64px; padding: 8px; background: #fff; color: #303b43; border: 1px solid #e3e6e5; border-radius: 8px; text-align: center; pointer-events: none; }
.announcement-date>span { display: block; font-size: 14px; }
.announcement-date>strong { display: block; font-size: 24px; font-weight: 500; line-height: 1.1; }
.announcement-content { display: flex; flex-direction: column; min-width: 0; padding: 24px; gap: 10px; }
.announcement-category { margin: 0; font-size: 14px; line-height: 1.3; letter-spacing: .06em; color: #60676d; }
.public-home .event-card h3 { flex: none; min-height: 55px; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.public-home .event-card .event-meta { flex: none; min-height: 63px; margin: 0; font-size: 14px; line-height: 1.5; color: #60676d; }
.public-home .event-meta>div { align-items: flex-start; gap: 8px; }
.public-home .event-meta .icon { width: 16px; height: 16px; margin-top: 3px; color: #326c95; }
.public-home .event-desc { min-height: 51px; margin: 0; font-size: 16px; line-height: 1.6; color: #60676d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.announcement-read { border: 0; border-top: 1px solid #e3e6e5; background: transparent; min-height: 48px; color: #303b43; margin-top: auto; padding: 16px 0 0; width: 100%; display: flex; justify-content: space-between; align-items: center; font: 600 14px/1.5 var(--font); cursor: pointer; text-align: left; }
.announcement-read>span { font-size: 20px; }
.announcement-read:hover { color: #171b21; }
.announcement-detail>.picture-open { margin-bottom: 24px; }
.announcement-full-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
/* Gallery figures share a single aspect ratio and caption height. */
.public-home .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 24px; align-items: stretch; }
.community-gallery-card { margin: 0; border-color: #e3e6e5; background: #fff; }
.community-gallery-card>.picture-open { aspect-ratio: 4/3; border-radius: 0; }
.community-gallery-card .picture-hint { background: rgba(23,27,33,.9); }
.community-gallery-caption { min-height: 64px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #303b43; }
.gallery-index { color: #60676d; font: 500 22px/1 var(--font); }
/* Contact section; unknown details never become invented or broken links. */
.public-home .contact-section { background: #f2f6f7; border-top: 1px solid #e3e6e5; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.contact-card { padding: 32px; border: 1px solid #dfe5e7; border-radius: 12px; background: #fff; }
.contact-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.contact-card-head .section-kicker { margin: 0; font-size: 14px; }
.contact-symbol { width: 36px; height: 36px; border: 1px solid #838c93; color: #326c95; display: grid; place-items: center; border-radius: 50%; }
.contact-card h3 { font: 500 28px/1.2 var(--font); letter-spacing: -.035em; margin-bottom: 24px; color: #171b21; }
.contact-pending,.social-note { color: #60676d; font-size: 14px; line-height: 1.7; }
.contact-row { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; padding: 12px 0; border-top: 1px solid #e3e6e5; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-label { color: #60676d; font-size: 14px; }
.contact-row a { color: #303b43; }
#social-links { display: grid; gap: 8px; }
.social-link { display: flex; align-items: center; gap: 12px; min-height: 48px; color: #303b43; text-decoration: none; padding: 4px 0; border-bottom: 1px solid #e3e6e5; font-size: 16px; }
a.social-link:hover { background: #f3f6f7; }
.social-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dfe5e7; border-radius: 7px; font-size: 15px; line-height: 1; }
.social-mark i { line-height: 1; }
.social-arrow { margin-left: auto; }
.social-unconfigured { color: #60676d; }
.social-note { margin: 16px 0 0; }
/* Full, quiet, dark-green footer on both public routes. */
.site-footer.sanctuary-footer { background: #22362a; color: #ecf0e4; padding: 56px 0 24px; border-top: 0; }
.public-home .site-footer.sanctuary-footer { background-color: #22362a; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; }
.sanctuary-footer .brand { color: #f0f3e8; }
.sanctuary-footer .brand-emblem { background: transparent; border-color: #879a79; color: #e7ecd8; }
.sanctuary-footer .brand-sub { color: #c1cbb7; font-size: 14px; }
.sanctuary-footer .brand-name { color: #f5f6ed; font-size: 18px; }
.footer-about>p { font-size: 14px; line-height: 1.7; color: #c3cbb9; max-width: 320px; margin: 20px 0 0; }
.footer-nav h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #e0e7d6; margin: 4px 0 12px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: #c9d1be; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-care { margin-top: 40px; border-top: 1px solid #506147; padding: 24px 0; }
.footer-care p { margin: 0; max-width: 800px; font-size: 14px; line-height: 1.7; color: #bbc7ae; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #506147; padding-top: 16px; font-size: 14px; color: #c1cbb5; }
.sanctuary-footer .staff-link { color: #dde5d1; font-size: 14px; }
/* Borderless, transparent space for the owner's future hero picture. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero-copy { min-width: 0; max-width: none; margin: 0; text-align: left; }
.hero-photo .hero-copy h1 { font-size: clamp(42px, 4.4vw, 64px); }
.hero-photo .hero-copy .lead { margin-left: 0; margin-right: 0; }
.hero-copy .status-card { margin-left: 0; margin-right: 0; }
.hero-picture-holder { margin: 0; width: 100%; min-width: 0; aspect-ratio: 4 / 5; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-picture-holder>img { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; visibility: hidden; }
.hero-picture-holder>img.is-loaded { visibility: visible; }
.brand-logo { visibility: hidden; object-fit: contain; }
.brand-logo.is-loaded { visibility: visible; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { text-align: center; }
  .hero-photo .hero-copy .lead, .hero-copy .status-card { margin-left: auto; margin-right: auto; }
  .hero-picture-holder { max-width: 360px; margin: 0 auto; }
}
.editorial-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.editorial-head h2 { margin-bottom: 16px; }
.editorial-head>p { max-width: 560px; margin: 0 auto; line-height: 1.7; }
.section-head .section-kicker { font-size: 14px; letter-spacing: .1em; color: #60676d; margin-bottom: 14px; }
.public-home .steps { grid-auto-rows: 1fr; }
.public-home .steps li { height: 100%; }
.contact-grid { grid-auto-rows: 1fr; }
.contact-card { height: 100%; }
.contact-card-head .section-kicker { color: #60676d; }
/* A richer footer, using the original light palette rather than a new dark theme. */
.site-footer.sanctuary-footer,.public-home .site-footer.sanctuary-footer { background: #fff; color: #171b21; text-align: left; border-top: 1px solid #e3e6e5; }
.sanctuary-footer .brand { justify-content: flex-start; color: #171b21; }
.sanctuary-footer .brand-name { color: #171b21; }
.sanctuary-footer .brand-sub,.footer-about>p { color: #60676d; }
.footer-nav h2 { color: #303b43; }
.footer-nav a { color: #60676d; }
.footer-nav a:hover { color: #171b21; }
.footer-care,.footer-bottom { border-color: #e3e6e5; }
.footer-care p,.footer-bottom { color: #60676d; }
.sanctuary-footer .staff-link { color: #303b43; }
@media (max-width: 1100px) {
  .public-home .events-grid,.public-home .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about { grid-column: 1/-1; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 24px; }
  .footer-bottom>span { flex-basis: 100%; }
}
@media (max-width: 639px) {
  .public-home .events-grid { grid-template-columns: 1fr; gap: 24px; }
  .public-home .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .public-home .premium-announcement { height: 600px; }
  .contact-card { padding: 24px; }
  .contact-card h3 { font-size: 26px; }
  .contact-card-head { align-items: flex-start; }
  .contact-card-head .contact-symbol { flex: 0 0 36px; }
  .contact-card-head .section-kicker { font-size: 14px; letter-spacing: .035em; }
  .site-footer.sanctuary-footer { padding: 40px 0 24px; }
  .hero-photo .hero-copy h1 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .premium-announcement { transition: none; } }


/* Fixed public navbar with reserved page space and clear anchor targets. */
body:has(> .site-header) { padding-top: 88px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.public-home .site-header { left: 28px; right: 28px; border-radius: 0 0 12px 12px; }
.site-header .mobile-nav { max-height: calc(100dvh - 92px); overflow-y: auto; }
main [id], main[id] { scroll-margin-top: 104px; }
.picture-hint { width: 44px; height: 44px; padding: 0; justify-content: center; opacity: 1; transform: none; }
.site-footer .staff-link.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #171b21; border-radius: 8px; background: #171b21; color: #fff; text-decoration: none; white-space: nowrap; }
.site-footer .staff-link.btn:hover { background: #303840; border-color: #303840; color: #fff; }
@media (max-width: 1100px) { .public-home .site-header { left: 16px; right: 16px; } }
@media (max-width: 767px) {
  body:has(> .site-header) { padding-top: 76px; }
  main [id], main[id] { scroll-margin-top: 92px; }
}
@media (max-width: 639px) { .public-home .site-header { left: 8px; right: 8px; } }
@media print { body:has(> .site-header) { padding-top: 0; } }
@media (max-width: 639px) {
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Group registration: unnumbered entries and readable confirmation. */
.participant-entry { min-width: 0; margin: 0 0 24px; padding: 20px; border: 1px solid var(--border, #d6dce0); border-radius: 12px; }
.participant-entry legend { padding: 0 8px; font-weight: 600; }
.registration-summary { margin-top: 20px; padding: 20px; text-align: left; }
.registration-steps { list-style: none; }
.registration-steps li::before, .registration-steps li::after { content: none !important; }


/* Follow-up: consistent action icons and a compact registration status card. */
.btn { gap: 10px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.4; }
.btn > .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.action-icon-circle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #171b21; }
.action-icon-circle .icon { width: 16px; height: 16px; }
.hero-lookup-link { gap: 8px; }
#status-body { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
#status-body > .badge { align-self: flex-start; }
.status-details { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
.status-copy { min-width: 0; }
#status-body .status-msg { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; }
#status-body .status-hours { font-size: 14px; line-height: 1.6; margin: 0; }
.status-arrival { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.status-register { min-width: 176px; width: auto; border-radius: 999px; margin: 0 !important; padding: 14px 20px; gap: 16px; }
.hero-copy .status-card { padding: 24px; }
/* Only the body scrolls. The dialog and page never become extra scroll regions. */
dialog.modal { overflow: hidden; max-height: calc(100dvh - 32px); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal > .modal-head, dialog.modal > .modal-foot { flex: 0 0 auto; }
dialog.modal > .modal-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
dialog.modal > .modal-body > form { max-height: none; overflow: visible; }
@media (max-width: 639px) {
  .hero-copy .status-card { padding: 20px; }
  .status-details { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .status-register { width: 100%; justify-content: space-between; }
  dialog.modal { max-height: calc(100dvh - 24px); width: calc(100vw - 24px); }
  .modal-foot .btn { flex: 1 1 0; }
}

.modal-body .field textarea.announcement-description { overflow-y: hidden; resize: none; }
.contact-symbol .icon { width: 20px; height: 20px; }

/* Date-based closures: explicit labels, keyboard buttons, compact mobile calendar. */
.closure-calendar { min-width: 0; }
.closure-calendar h2 { font-size: 1.35rem; margin: 8px 0; }
.closure-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 24px; }
.closure-toolbar h3 { margin: 0; text-align: center; font-size: 1.1rem; }
.closure-toolbar .btn { min-height: 44px; padding: 8px 12px; }
.closure-legend { font-size: 14px; color: #526074; line-height: 1.5; margin: 16px 0; }
.closure-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.closure-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.closure-weekday { text-align: center; font-size: 14px; color: #526074; padding: 8px 0; }
.closure-grid .closure-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-width: 0; min-height: 94px; padding: 8px 2px; border: 1px solid #7b8796; border-radius: 8px; background: #fff; color: #263245; box-shadow: none; white-space: normal; }
.closure-day-number { font-weight: 700; font-size: 16px; }
.closure-day-state, .closure-reg-off { font-size: 14px; line-height: 1.2; font-weight: 500; }
.closure-grid .closure-day.is-closed { background: #fce9e7; color: #9a3026; border-color: #b35449; }
.closure-reg-off { color: #86471c; background: #fbebde; padding: 2px; border-radius: 3px; }
.closure-grid .closure-day.is-selected { outline: 3px solid #2264b3; outline-offset: -3px; }
.closure-grid .closure-day[aria-current="date"] .closure-day-number { text-decoration: underline; text-underline-offset: 4px; }
.closure-grid .closure-day.is-past { background: #f0efed; }
.closure-grid .closure-day:focus-visible { outline: 3px solid #2264b3; outline-offset: 2px; }
.closure-detail { background: #f6f8fb; border: 1px solid #dce2e9; border-radius: 8px; padding: 20px; min-width: 0; }
.closure-detail h3 { font-size: 1.2rem; margin: 8px 0 16px; }
.closure-detail p { overflow-wrap: anywhere; }
.closure-detail .btn { width: 100%; white-space: normal; min-height: 44px; }
@media (max-width: 1150px) { .closure-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .closure-calendar.card { padding: 16px 12px; }
  .closure-toolbar .btn { font-size: 14px; padding: 8px; }
  .closure-toolbar h3 { font-size: 16px; }
  .closure-grid { gap: 2px; }
  .closure-grid .closure-day { min-height: 88px; border-radius: 5px; }
  .closure-day-state, .closure-reg-off { font-size: 14px; letter-spacing: -.5px; }
}
.closure-grid .closure-day::before, .closure-grid .closure-day::after { content: none !important; display: none !important; }
.settings-wrap { max-width: 1000px; }
.closure-grid .closure-day { min-height: 88px; }
@media (max-width: 480px) {
  .settings-wrap > .closure-calendar.card { padding: 16px 10px; }
  .closure-grid .closure-day { padding: 8px 0; }
}
.closure-day { font-family: inherit; cursor: pointer; }
.closure-day:disabled { cursor: wait; }
.closure-calendar { margin-bottom: 20px; }
@media (max-width: 480px) {
  .main[data-page="settings"] { padding-left: 12px; padding-right: 12px; }
  .closure-grid { gap: 1px; }
  .settings-wrap > .closure-calendar.card { padding-left: 8px; padding-right: 8px; }
}

/* ID-style registration pass. Uses the webapp's charcoal/system-sans design. */
.registration-card-group { min-width: 0; margin: 24px 0; }
.registration-card-group > .number-download { width: 100%; min-height: 48px; white-space: normal; }
.number-ticket.registration-summary.id-pass { border: 1px solid #b7bec2; border-top: 4px solid var(--primary); background: #fff; color: var(--text); border-radius: 12px; padding: 0; margin: 0 0 12px; box-shadow: 0 2px 6px rgba(23,27,33,.035); text-align: left; overflow: hidden; font-family: var(--font); }
.id-pass-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.id-pass-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.id-pass-brand { min-width: 0; }
.id-pass .ticket-brand { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; color: var(--text); text-transform: none; margin: 0; }
.id-pass-kind { font-size: 14px; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.id-pass-mark { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: #58636a; }
.id-pass-mark .icon { width: 18px; height: 18px; }
.id-pass-body { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 24px; padding: 24px; align-items: stretch; }
.id-pass-holder { min-width: 0; }
.id-pass-label { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .055em; color: var(--muted); margin: 0 0 8px; }
.id-pass .ticket-name { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; margin: 0; color: var(--text); overflow-wrap: anywhere; }
.id-pass-date-label { margin-top: 24px; }
.id-pass .ticket-date { color: var(--text); font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.id-pass .ticket-weekday { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; }
.id-pass-number-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; background: var(--primary-soft); border-radius: 8px; padding: 16px 8px; }
.id-pass .ticket-number-label { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; margin: 0; }
.id-pass .ticket-number { color: var(--text); font-family: var(--font); font-variant-numeric: lining-nums tabular-nums; font-weight: 500; font-size: 64px; letter-spacing: -.06em; line-height: 1.15; margin: 12px 0; max-width: 100%; overflow-wrap: anywhere; }
.id-pass-number-caption { font-size: 14px; line-height: 1.4; color: var(--muted); }
.id-pass-footer { background: var(--primary); padding: 16px 24px; }
.id-pass .ticket-note { color: #fff; text-align: left; font-size: 14px; line-height: 1.5; font-weight: 500; margin: 0; padding: 0; border: 0; }
.id-pass-arrival { font-size: 14px; line-height: 1.5; color: #dce1e5; margin: 4px 0 0; }
.registration-picture-preview { display: block; width: 100%; max-height: 50vh; object-fit: contain; margin: 0 auto 16px; border: 1px solid #d6dbde; background: #fff; border-radius: 8px; }
.registration-picture-dialog .modal-body { overflow-y: auto; }
@media (max-width: 480px) {
  #view-success { padding: 20px 16px; }
  .id-pass-header { padding: 16px; gap: 10px; }
  .id-pass-logo { width: 40px; height: 40px; }
  .id-pass .ticket-brand { font-size: 16px; }
  .id-pass-mark { width: 28px; height: 32px; }
  .id-pass-body { padding: 20px 16px; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; }
  .id-pass .ticket-name { font-size: 19px; }
  .id-pass .ticket-number { font-size: 48px; }
  .id-pass-number-panel { padding: 16px 4px; }
  .id-pass-footer { padding: 16px; }
  .registration-picture-dialog .modal-foot .btn { width: 100%; white-space: normal; }
}
#registration-search-results > .panel { padding: 24px; }
/* Keep longer issued numbers on one line without changing the ID layout. */
.id-pass .ticket-number { white-space: nowrap; overflow-wrap: normal; }
.id-pass .ticket-number.id-digits-4 { font-size: 48px; }
.id-pass .ticket-number.id-digits-5, .id-pass .ticket-number.id-digits-6 { font-size: 32px; }
.id-pass .ticket-number.id-digits-7 { font-size: 18px; }
@media (max-width: 480px) {
  .id-pass .ticket-number.id-digits-4 { font-size: 36px; }
  .id-pass .ticket-number.id-digits-5, .id-pass .ticket-number.id-digits-6 { font-size: 24px; }
  .id-pass .ticket-number.id-digits-7 { font-size: 14px; }
}

/* Compact search preview: name/date left, issued number and download right. */
.lookup-registration { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: left; min-width: 0; }
.lookup-registration-copy { min-width: 0; flex: 1 1 0; }
.lookup-registration-label { font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.lookup-registration-name { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 8px; overflow-wrap: anywhere; }
.lookup-registration-date { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.lookup-registration-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.lookup-number-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; padding: 12px 8px; border-radius: 8px; background: var(--primary-soft); }
.lookup-number-label { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lookup-number { font-family: var(--font); font-size: 32px; line-height: 1.15; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.04em; color: var(--text); white-space: nowrap; }
.lookup-number.lookup-digits-5, .lookup-number.lookup-digits-6 { font-size: 24px; }
.lookup-number.lookup-digits-7 { font-size: 14px; }
.lookup-registration .lookup-download { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #7b8790; border-radius: 8px; box-shadow: none; }
.lookup-download:focus-visible { outline: 3px solid #2264b3; outline-offset: 3px; }
@media (max-width: 480px) {
  .lookup-registration { padding: 20px 16px; gap: 12px; }
  .lookup-registration-actions { gap: 8px; }
  .lookup-number-preview { min-width: 64px; padding: 12px 6px; }
  .lookup-registration-label { letter-spacing: 0; }
  .lookup-registration-name { font-size: 18px; }
}
