/* Public tenant sites. Colours come from CSS variables set per tenant (see Color::cssVars).
   Themes change fonts, shapes and header style: body.theme-startup | classic | community | civic */
:root {
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
  --radius: 12px; --radius-btn: 8px;
  --ink: var(--c-dark); --muted: #4B5563; --line: #E2E8F0; --bg: #FFFFFF; --surface: #FFFFFF;
  /* 8px spacing scale */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
  --sec-pad: clamp(var(--s-6), 7vw, var(--s-12));
  /* fluid type scale (~1.25 ratio) */
  --fs-sm: .875rem; --fs-base: 1rem; --fs-md: clamp(1.05rem, 1rem + .25vw, 1.15rem);
  --fs-lg: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); --fs-xl: clamp(1.4rem, 1.2rem + .9vw, 1.85rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); --fs-3xl: clamp(2.2rem, 1.6rem + 3vw, 3.75rem);
  /* elevation + motion */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .22);
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: .22s;
  --header-bg: rgba(255, 255, 255, .82);
}
.theme-classic { --font-body: "Source Sans 3", system-ui, sans-serif; --font-head: "Libre Baskerville", Georgia, serif; --radius: 2px; --radius-btn: 2px; }
.theme-community { --font-body: Nunito, system-ui, sans-serif; --font-head: Nunito, system-ui, sans-serif; --radius: 22px; --radius-btn: 999px; --bg: #FFFDF8; --header-bg: rgba(255, 253, 248, .85); }
.theme-civic { --font-body: "Public Sans", system-ui, sans-serif; --font-head: "Public Sans", system-ui, sans-serif; --radius: 0; --radius-btn: 2px; --muted: #374151; --shadow-md: none; --shadow-lg: 0 0 0 2px var(--c-primary); }
.theme-classic { --shadow-md: 0 2px 8px rgba(15, 23, 42, .07); }

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.012em; text-wrap: balance; }
.theme-classic h1, .theme-classic h2, .theme-classic h3 { letter-spacing: 0; }
p { text-wrap: pretty; }
h1 { font-size: var(--fs-3xl); }
.theme-community h1, .theme-community h2 { font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
a { color: var(--c-primary-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 200; border-radius: 6px; box-shadow: var(--shadow-md); }
.skip-link:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 820px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview-ribbon { background: #F59E0B; color: #111; text-align: center; font-size: .85rem; font-weight: 700; padding: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius-btn); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.btn-lg { min-height: 52px; padding: 0 var(--s-4); font-size: 1rem; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-secondary { background: var(--c-secondary); color: var(--c-on-secondary); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-light { background: #fff; color: #111; }
.btn-ghost { background: transparent; border: 2px solid; }
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-outline:hover, .btn-ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .08); }

/* header */
.topbar { background: var(--c-dark); color: #E5E7EB; font-size: .875rem; }
.theme-civic .topbar { background: #F3F4F6; color: #111827; border-bottom: 1px solid #D1D5DB; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; align-items: center; }
.topbar a { color: inherit; font-weight: 600; }
.theme-classic .topbar a:last-child { color: var(--c-secondary); }
.topbar-links { display: flex; gap: 14px; align-items: center; }
.ts-btn { min-width: 34px; height: 32px; border: 1px solid #9CA3AF; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--bg); } }
.theme-classic .site-header { border-bottom: 3px solid var(--c-secondary); }
.theme-community .site-header { border-bottom: 0; }
.theme-community .site-header.is-scrolled { border-bottom: 1px solid var(--line); }
.theme-civic .site-header { background: var(--c-primary); color: var(--c-on-primary); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.logo-img { height: 48px; width: auto; max-width: 160px; object-fit: contain; }
.theme-civic .logo-img { background: #fff; padding: 4px; }
.logo-mark { width: 44px; height: 44px; border-radius: calc(var(--radius) / 1.2); background: var(--c-primary); color: var(--c-on-primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.theme-civic .logo-mark { background: #fff; color: var(--c-primary-ink); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.theme-classic .brand-name { font-size: 1.4rem; }
.theme-civic .brand-name { color: inherit; font-weight: 800; font-size: 1.3rem; }
.brand-tagline { font-size: .8rem; color: var(--muted); }
.theme-civic .brand-tagline { color: inherit; opacity: .85; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0; font-weight: 600; font-size: .9rem; justify-content: flex-end; flex: 1 1 auto; }
.header-cta { flex: none; margin-left: auto; }
.site-nav a { position: relative; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: var(--radius-btn); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.site-nav a:hover, .site-nav a.is-current { color: var(--c-primary-ink); }
.theme-startup .site-nav a::after, .theme-classic .site-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.theme-startup .site-nav a:hover::after, .theme-startup .site-nav a.is-current::after,
.theme-classic .site-nav a:hover::after, .theme-classic .site-nav a.is-current::after { transform: scaleX(1); }
.theme-community .site-nav { background: var(--c-light); padding: 4px; border-radius: 999px; }
.theme-community .site-nav a { border-radius: 999px; }
.theme-community .site-nav a.is-current { background: #fff; color: var(--ink); }
.theme-civic .site-nav { flex-basis: 100%; order: 5; background: rgba(0,0,0,.18); margin: 0 -24px -12px; padding: 0 16px; }
.theme-civic .site-nav a { color: #fff; border-radius: 0; padding: 14px; border-bottom: 4px solid transparent; }
.theme-civic .site-nav a.is-current, .theme-civic .site-nav a:hover { color: #fff; border-bottom-color: var(--c-secondary); }
.menu-toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-btn); font: inherit; font-weight: 700; cursor: pointer; }
.site-flash { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-btn); font-weight: 600; }
.site-flash-success { background: #DCFCE7; color: #166534; }
.site-flash-error { background: #FEE2E2; color: #991B1B; }
.site-flash-info { background: #E0E7FF; color: #1E3A8A; }

/* sections */
.site-main { min-height: 50vh; }
.sec { padding: calc(var(--sec-pad) / 2) 0; }
.sec:first-child { padding-top: calc(var(--sec-pad) * .7); }
.sec:last-child { padding-bottom: var(--sec-pad); }
.sec-bg-light, .sec-bg-primary, .sec-bg-secondary, .sec-bg-dark { padding: var(--sec-pad) 0; margin: calc(var(--sec-pad) / 2) 0; }
.sec-bg-light:first-child, .sec-bg-primary:first-child, .sec-bg-secondary:first-child, .sec-bg-dark:first-child { margin-top: 0; }
.sec-bg-light { background: var(--c-light); color: var(--c-on-light); }
.sec-bg-primary { background: var(--c-primary); color: var(--c-on-primary); }
.sec-bg-secondary { background: var(--c-secondary); color: var(--c-on-secondary); }
.sec-bg-dark { background: var(--c-dark); color: #fff; --line: rgba(255, 255, 255, .16); }
.sec-bg-primary, .sec-bg-dark { position: relative; isolation: isolate; }
.theme-startup .sec-bg-primary::before, .theme-startup .sec-bg-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 85% 0%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(0, 0, 0, .18), transparent 70%); }
.sec-bg-primary h1, .sec-bg-primary h2, .sec-bg-primary h3, .sec-bg-primary a:not(.btn) { color: inherit; }
.sec-bg-secondary h1, .sec-bg-secondary h2, .sec-bg-secondary h3, .sec-bg-secondary a:not(.btn) { color: inherit; }
.sec-bg-dark h1, .sec-bg-dark h2, .sec-bg-dark h3, .sec-bg-dark a:not(.btn) { color: #fff; }
.sec-bg-dark .muted, .sec-bg-primary .muted, .sec-bg-secondary .muted { color: inherit; opacity: .85; }
.sec-grid { display: grid; gap: clamp(var(--s-3), 4vw, var(--s-6)); }
.layout-1 { grid-template-columns: minmax(0, 1fr); }
.layout-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.layout-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sec-col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.page-title { font-size: var(--fs-2xl); }
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 600; }

/* widgets */
.align-center { text-align: center; }
.align-right { text-align: right; }
.w-hero { display: flex; flex-wrap: wrap; gap: clamp(var(--s-4), 5vw, var(--s-8)); align-items: center; padding: clamp(var(--s-2), 4vw, var(--s-6)) 0; }
.w-hero .hero-text { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.w-hero.align-center .hero-text { align-items: center; text-align: center; }
.w-hero .hero-img { flex: 1 1 360px; width: 100%; aspect-ratio: 4 / 3; max-height: 440px; object-fit: cover; border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow-lg); }
.hero-title { font-size: var(--fs-3xl); line-height: 1.06; letter-spacing: -.025em; margin: 0; max-width: 18ch; }
.align-center .hero-title { margin-inline: auto; }
.theme-classic .hero-title { letter-spacing: -.01em; }
.hero-sub { font-size: var(--fs-lg); line-height: 1.55; margin: 0; opacity: .88; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-1); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-ink); }
.theme-startup .eyebrow { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); letter-spacing: .08em; }
.theme-startup .sec-bg-primary .eyebrow, .theme-startup .sec-bg-dark .eyebrow { background: rgba(255, 255, 255, .12); }
.sec-bg-primary .eyebrow, .sec-bg-dark .eyebrow { color: var(--c-secondary); }
.theme-classic .w-hero { justify-content: center; }
.theme-community .sec-bg-light .w-hero, .theme-community .sec-bg-secondary .w-hero { padding: 32px; }
.w-heading { margin: 0; }
.w-text { font-size: var(--fs-md); }
.prose p { margin: 0 0 1em; }
.prose img { border-radius: calc(var(--radius) / 2); }
.prose blockquote { margin: 1em 0; padding: 8px 18px; border-left: 4px solid var(--c-secondary); color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.w-image { margin: 0; }
.w-image img { width: 100%; border-radius: var(--radius); display: block; }
.w-image.rounded-square img { border-radius: 0; }
.w-image.rounded-round img { border-radius: 24px; }
.w-image figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.w-spacer-small { height: 16px; } .w-spacer-medium { height: 40px; } .w-spacer-large { height: 80px; }
.w-divider { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.w-video { position: relative; aspect-ratio: 16 / 9; }
.w-video iframe, .w-map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.w-map iframe { height: 320px; }
.ph { display: grid; place-items: center; background: var(--c-light); color: var(--muted); border-radius: var(--radius); min-height: 180px; font-size: .9rem; }
.ph-video { aspect-ratio: 16 / 9; }
.w-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding: clamp(var(--s-3), 5vw, var(--s-6)); border-radius: var(--radius); }
.w-cta h2 { margin: 0; font-size: var(--fs-xl); color: inherit; }
.w-cta p { margin: 6px 0 0; }
.cta-primary { background: var(--c-primary); color: var(--c-on-primary); }
.cta-secondary { background: var(--c-secondary); color: var(--c-on-secondary); }
.cta-light { background: var(--c-light); color: var(--c-on-light); }
.cta-dark { background: var(--c-dark); color: #fff; }
.cta-dark .btn-dark { background: #fff; color: #111; }
.cta-white { background: #fff; border: 1px solid var(--line); }
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-box { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); display: flex; flex-direction: column; gap: 4px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.theme-civic .stat-box { border-top: 5px solid var(--c-primary); }
.stat-num { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--c-primary-ink); }
.stat-label { color: var(--muted); font-size: .95rem; }
.w-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.w-head h2 { margin: 0; }
.see-all { font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--s-3); }
.post-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-card:hover, .post-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--line)); }
.post-card .post-title a::after, .post-row .post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card .pill { position: relative; z-index: 2; align-self: flex-start; }
.theme-civic .post-card { border-top: 5px solid var(--c-primary); }
.post-card-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-card-img { transform: scale(1.03); }
.post-card-img.ph, .post-row-img.ph { min-height: 0; border-radius: 0; }
.post-card-body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.post-meta { font-size: .85rem; font-weight: 600; color: var(--c-primary-ink); }
.sec-bg-primary .post-meta, .sec-bg-dark .post-meta { color: inherit; }
.post-title { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-row { position: relative; display: flex; gap: var(--s-2); align-items: center; background: var(--surface); border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.post-row:hover, .post-row:focus-within { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.post-row-img { width: 110px; height: 78px; object-fit: cover; border-radius: calc(var(--radius) / 2); flex: none; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--c-light); color: var(--c-on-light); }
.pill-on-dark { background: rgba(255,255,255,.2); color: inherit; }
.w-announcement { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; background: var(--c-dark); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: .95rem; }
.theme-classic .w-announcement { background: var(--c-secondary); color: var(--c-on-secondary); }
.ann-badge { background: var(--c-secondary); color: var(--c-on-secondary); font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.theme-classic .ann-badge { background: var(--c-dark); color: #fff; }
.ann-link { color: inherit !important; font-weight: 700; }
.w-announcement.is-empty { opacity: .6; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; font-weight: 600; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dir-card { display: flex; gap: 12px; align-items: center; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.dir-card:hover, .dir-card:focus-visible { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dir-logo { width: 52px; height: 52px; border-radius: calc(var(--radius) / 1.2); object-fit: contain; flex: none; background: #fff; }
.dir-initials { display: grid; place-items: center; font-weight: 800; }
.dir-text { display: flex; flex-direction: column; min-width: 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { display: flex; gap: 12px; align-items: center; }
.people-cards .person { flex-direction: column; align-items: flex-start; }
.people-cards .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); font-size: 2.4rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--c-light); color: var(--c-on-light); display: grid; place-items: center; font-weight: 700; flex: none; }
.person strong { display: block; }
.role { display: block; color: var(--muted); font-size: .9rem; }
.dept-card, .quote-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); margin: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dept-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quote-card blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: .8; color: var(--c-secondary-ink); font-style: normal; }
.dept-card h3 { margin: 0 0 6px; }
.dept-card p { margin: 0; color: var(--muted); }
.quote-card blockquote { margin: 0 0 10px; font-size: 1.05rem; font-style: italic; }
.quote-card figcaption { color: var(--muted); font-weight: 600; }
.w-accordion details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--s-3); margin-bottom: 12px; background: var(--surface); color: var(--ink); transition: box-shadow var(--dur) var(--ease); }
.w-accordion details[open] { box-shadow: var(--shadow-md); padding-bottom: var(--s-2); }
.w-accordion summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
.w-accordion summary::-webkit-details-marker { display: none; }
.w-accordion summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform var(--dur) var(--ease); }
.w-accordion details[open] summary::after { transform: rotate(45deg); }
.w-accordion p { margin: 10px 0 0; }
.form-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(var(--s-3), 4vw, var(--s-4)); box-shadow: var(--shadow-md); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.form-card label, .side-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; font-size: 1rem; font-weight: 400; color: #111; border: 1px solid #8B95A5; border-radius: calc(var(--radius-btn) / 1.5); padding: 10px 12px; min-height: 44px; width: 100%; background: #fff; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
input:hover, select:hover, textarea:hover { border-color: #6B7280; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid transparent; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 35%, transparent); }
.theme-community input, .theme-community select, .theme-community textarea { border-radius: 12px; }
.field-error { color: #991B1B; font-weight: 600; font-size: .875rem; margin: -6px 0 0; }
.contact-details { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.w-ad { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border: 1px dashed #94A3B8; background: #FFF7ED; color: #111; border-radius: var(--radius); padding: 20px 24px; }
.w-ad.is-empty { opacity: .7; display: block; }
.ad-img { height: 64px; width: auto; border-radius: 8px; }
.ad-text { display: flex; flex-direction: column; flex: 1 1 260px; }
.ad-label { font-size: .75rem; font-weight: 700; color: #9A3412; text-transform: uppercase; letter-spacing: .08em; }
.pager { display: flex; gap: 6px; margin-top: 24px; }
.pager a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); text-decoration: none; transition: border-color var(--dur) var(--ease); }
.pager a:hover { border-color: var(--c-primary); }
.pager a.is-current { background: var(--c-primary); color: var(--c-on-primary); }

/* post page */
.post-h1 { font-size: var(--fs-3xl); margin: var(--s-1) 0; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin: var(--s-3) 0 var(--s-4); box-shadow: var(--shadow-md); }
.prose { font-size: var(--fs-md); line-height: 1.75; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.tags { margin-top: 24px; }

/* directory */
.dir-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.dir-filter input { flex: 1 1 260px; width: auto; }
.dir-filter select { flex: 0 1 220px; width: auto; }
.dir-hero { padding: var(--sec-pad) 0; }
.dir-hero-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.dir-hero-logo { width: 112px; height: 112px; border-radius: 20px; background: #fff; object-fit: contain; padding: 8px; font-size: 2.5rem; }
.dir-hero-text { flex: 1 1 380px; }
.dir-hero-text h1 { color: inherit; font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0; }
.dir-hero-text .lead { margin: 0; font-size: 1.1rem; opacity: .9; }
.dir-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dir-tabs { border-bottom: 1px solid var(--line); }
.dir-tabs .wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.dir-tabs a { padding: 14px 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.dir-body { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.dir-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.dir-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); background: var(--surface); box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.1rem; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mini-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-2) var(--s-3); background: var(--surface); }
.mini-card p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.person-row { display: flex; gap: 12px; align-items: center; }

/* footer */
.site-footer { background: var(--c-dark); color: #CBD5E1; margin-top: var(--s-5); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.theme-community .site-footer { background: var(--c-primary); color: var(--c-on-primary); }
.theme-civic .site-footer { background: #111827; color: #E5E7EB; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between; padding-top: var(--s-8); padding-bottom: var(--s-4); }
.footer-about p { max-width: 46ch; }
.footer-about { flex: 1 1 300px; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.theme-community .footer-name { color: inherit; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px var(--s-3); align-content: flex-start; flex: 1 1 340px; }
.footer-nav a, .site-footer a { color: inherit; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.theme-community .footer-bottom { border-top-color: color-mix(in srgb, currentColor 22%, transparent); }

/* builder preview helpers */
.pv-widget { position: relative; outline: 1px dashed transparent; outline-offset: 4px; cursor: pointer; }
.pv-widget:hover { outline-color: #60A5FA; }
.pv-widget.pv-selected { outline: 2px solid #2563EB; }
.pv-widget[data-lock="locked"]:hover { outline-color: #F87171; }

@media (max-width: 860px) {
  .layout-1-1, .layout-1-1-1, .layout-2-1, .layout-1-2 { grid-template-columns: minmax(0, 1fr); }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: var(--s-1); }
  .site-nav.is-open { display: flex; animation: nav-in var(--dur) var(--ease); }
  .site-nav a { padding: 12px; }
  .theme-startup .site-nav a::after, .theme-classic .site-nav a::after { display: none; }
  .site-header { max-height: 100vh; overflow-y: auto; }
  .theme-community .site-nav { border-radius: 16px; }
  .theme-civic .site-nav { margin: 0 -24px -12px; }
  .header-cta { display: none; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* keep buttons visible on coloured sections */
.sec-bg-primary .btn-primary { background: var(--c-secondary); color: var(--c-on-secondary); }
.sec-bg-secondary .btn-primary { background: var(--c-dark); color: #fff; }
.sec-bg-dark .btn-primary { background: var(--c-secondary); color: var(--c-on-secondary); }
.cta-primary .btn-dark, .cta-dark .btn-dark { background: #fff; color: #111; }

/* scroll reveal: only active once site.js adds .js-reveal to <html> (content stays visible without JS) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .btn:hover, .post-card:hover, .post-card:focus-within, .dir-card:hover, .dept-card:hover { transform: none; }
  .post-card:hover .post-card-img, .gallery-item:hover img { transform: none; }
}
@media print {
  .site-header { position: static; box-shadow: none; }
  .topbar, .menu-toggle, .header-cta, .footer-nav, .skip-link { display: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
.align-center .hero-actions { justify-content: center; }
.sec-bg-secondary .eyebrow { color: inherit; }
@media (max-width: 860px) {
  .site-brand { flex: 1 1 0; min-width: 0; }
  .brand-name { overflow-wrap: anywhere; }
  .brand-tagline { display: none; }
}

/* technical posts: code, tables (never overflow the page) */
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .12em .4em; border-radius: 5px; background: color-mix(in srgb, var(--c-dark) 7%, transparent); overflow-wrap: anywhere; }
.prose pre { position: relative; max-width: 100%; margin: 0 0 1.4em; padding: var(--s-3) var(--s-3) var(--s-2); border-radius: calc(var(--radius) / 1.5 + 4px); background: #0F172A; color: #E2E8F0; overflow-x: auto; line-height: 1.6; tab-size: 2; }
.theme-civic .prose pre, .theme-classic .prose pre { border-radius: 4px; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: .86rem; overflow-wrap: normal; white-space: pre; }
.prose pre > span:first-child { position: absolute; top: 6px; right: 12px; font: 600 .7rem/1 ui-monospace, Menlo, Consolas, monospace; color: #94A3B8; text-transform: lowercase; }
.prose table { display: block; overflow-x: auto; }
.prose h2, .prose h3 { scroll-margin-top: 96px; }

/* quick posts: caption, photo grid, video */
.prose-social { font-size: var(--fs-lg); }
.post-photos { display: grid; gap: 6px; margin: var(--s-3) 0; border-radius: var(--radius); overflow: hidden; }
.post-photos-1 { grid-template-columns: 1fr; }
.post-photos-2 { grid-template-columns: 1fr 1fr; }
.post-photos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-photos-3 .post-photo:first-child { grid-row: span 2; }
.post-photos-4 { grid-template-columns: repeat(2, 1fr); }
.post-photo { display: block; overflow: hidden; background: var(--c-light); aspect-ratio: 4 / 3; }
.post-photos-1 .post-photo { aspect-ratio: auto; max-height: 640px; }
.post-photos-3 .post-photo:first-child { aspect-ratio: auto; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-photo:hover img, .post-photo:focus-visible img { transform: scale(1.03); }
.post-video { display: block; width: 100%; margin: var(--s-3) 0; border-radius: var(--radius); background: #000; max-height: 75vh; }
@media (max-width: 560px) {
  .post-photos-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .post-photos-3 .post-photo:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* circulars */
.circular-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin: var(--s-3) 0; padding: var(--s-3); border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--c-primary); background: var(--surface); }
.circular-no { margin: 0; font-size: var(--fs-md); }

/* association member table */
.w-member-table { display: flex; flex-direction: column; gap: var(--s-2); }
.w-member-table .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.member-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.member-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.member-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.member-table tr:last-child td { border-bottom: 0; }
.member-table td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.member-table a { font-weight: 600; text-decoration: none; }
.member-table a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  /* each member becomes a small card */
  .w-member-table .table-scroll { border: 0; background: none; overflow: visible; }
  .member-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .member-table, .member-table tbody, .member-table tr, .member-table td { display: block; width: 100%; }
  .member-table tr { margin-bottom: var(--s-2); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .member-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 4px 0; border: 0; overflow-wrap: anywhere; }
  .member-table td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .member-table td:empty { display: none; }
}

/* Dropdown menus (menu items with sub-items) */
.nav-item { position: relative; display: flex; align-items: center; }
.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 32px; margin-left: -6px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--radius-btn); }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; display: none; flex-direction: column; min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-btn); box-shadow: var(--shadow-md); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: flex; animation: nav-in var(--dur) var(--ease); }
.site-nav .sub-menu a { padding: 9px 12px; color: var(--ink); border: 0; border-radius: calc(var(--radius-btn) - 2px); white-space: nowrap; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu a.is-current { background: var(--c-light); color: var(--c-primary-ink); }
.site-nav .sub-menu a::after { display: none; }
.theme-civic .sub-toggle { color: #fff; }

/* Custom header / footer code (sandboxed frames sized to their content) */
.custom-header { position: sticky; top: 0; z-index: 50; }
.code-frame.has-dialog { position: relative; z-index: 2147483000; }
.code-frame.part-frame { display: block; width: 100%; height: 40px; min-height: 0; border: 0; background: transparent; }

@media (max-width: 860px) {
  .nav-item { flex-wrap: wrap; }
  .nav-item > a { flex: 1 1 auto; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 6px 14px; border: 0; box-shadow: none; background: none; animation: none; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: flex; }
  .theme-civic .site-nav .sub-menu a { color: #fff; }
}

/* Install-app popup (TETA palette): bottom sheet on phones, corner card on larger screens */
.app-pop[hidden] { display: none; }
.app-pop { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; padding: 14px; pointer-events: none; }
.app-pop-card { pointer-events: auto; margin-left: auto; max-width: 400px; background: #fff; color: #10263A; border-radius: 18px; border-top: 4px solid #F29D25;
  box-shadow: 0 20px 60px rgba(0,46,78,.28); padding: 18px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.app-pop-logo { width: 56px; height: 56px; display: grid; place-items: center; }
.app-pop-logo img, .app-pop-logo .logo-img { max-width: 56px; max-height: 56px; object-fit: contain; }
.app-pop-body strong { display: block; font-size: 1.02rem; line-height: 1.3; color: #004A7C; }
.app-pop-body p { margin: .3rem 0 .8rem; font-size: .9rem; color: #4B5563; }
.app-pop-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-pop-actions .btn { background: #004A7C; border-color: #004A7C; color: #fff; }
.app-pop-close { background: none; border: 0; color: #64748B; font: inherit; font-size: .9rem; padding: .4rem; cursor: pointer; }
.app-pop-close:hover { color: #10263A; }
@media (max-width: 600px) { .app-pop-card { max-width: none; } }

/* Pre-header for signed-in users (Dashboard / Sign out): one aligned row, TETA navy. */
.access-bar[hidden] { display: none; }
.access-bar { background: #002E4E; color: #fff; font-size: .85rem; line-height: 1; }
.access-inner { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
.access-form { margin: 0; display: inline-flex; }
.access-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: transparent; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.access-link:hover, .access-link:focus-visible { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.access-form .access-link { border-color: #F29D25; color: #FFD08A; }
.access-form .access-link:hover { background: #F29D25; color: #002E4E; }
/* Member cards: firm name under the member's name */
.dir-firm { font-size: .9rem; font-weight: 600; color: var(--ink); opacity: .8; }
/* Offline page (service worker fallback) */
.offline-page { display: grid; place-items: center; min-height: 100vh; margin: 0; background: #F4F6F9; }
.offline-box { text-align: center; padding: 2rem; max-width: 420px; }

/* Event detail page (TETA design: number, title, badges, large + small photos, "+N", lightbox) */
.event-detail .wrap { max-width: 1160px; }
.ev-head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 22px; align-items: start; margin: 18px 0 22px; }
.ev-num { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; color: #F29D25; }
.ev-title h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; }
.ev-lead { margin: 0; color: var(--muted); }
.ev-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ev-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ev-date { background: #004A7C; color: #fff; }
.ev-count { background: #FDF1DE; color: #8A5208; }
.ev-venue { background: #EEF4F9; color: #004A7C; text-transform: none; letter-spacing: 0; }
.ev-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 220px)); gap: 10px; }
.ev-gallery.ev-n1 { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 460px); }
.ev-gallery.ev-n2, .ev-gallery.ev-n3 { grid-template-columns: 2fr 1fr; }
.ev-photo { position: relative; padding: 0; border: 0; background: #E8E4D8; cursor: zoom-in; overflow: hidden; border-radius: 10px; min-height: 0; }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ev-photo:hover img, .ev-photo:focus-visible img { transform: scale(1.04); }
.ev-main { grid-row: 1 / span 2; }
.ev-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,46,78,.72); color: #F29D25; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.ev-all { margin: 10px 0 24px; }
.link-like { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #004A7C; cursor: pointer; border-bottom: 2px solid #F29D25; }
.ev-body { max-width: 760px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,15,25,.94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(5,15,25,.94); }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-stage img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lb-stage figcaption { color: #cbd5e1; font-size: .9rem; }
.lb-nav, .lb-close { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: #F29D25; color: #002E4E; }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 760px) {
  .ev-head { grid-template-columns: auto 1fr; }
  .ev-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .ev-gallery, .ev-gallery.ev-n2, .ev-gallery.ev-n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px repeat(2, 120px); }
  .ev-main { grid-column: 1 / -1; grid-row: auto; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { width: 38px; height: 38px; font-size: 1.4rem; }
}
