/* community.twinlakescdjr.com - shared styles. Header/nav mirror twinlakescdjr.com (white bar, black logo,
   Roboto uppercase nav, Twin Lakes blue #27a1db), slimmed down. Event pages add their own theme on top. */
:root {
  --ink: #111417; --text: #2b3035; --muted: #5f6870; --line: #e3e6ea; --soft: #f4f6f8; --white: #fff;
  --blue: #27a1db; --blue-d: #1878a8; --navy: #0f2233;
  --green: #0d2b1e; --green-2: #1c5a40; --gold: #d9b34a; --mint: #bfe3c8;
  --red: #c8102e;
  --head-h: 76px;
  --body: "Roboto", "Segoe UI", system-ui, sans-serif;
  --cond: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;
  --wrap: 1200px; --gut: 24px; --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--cond); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
             backdrop-filter: saturate(1.4) blur(8px); }
.head-row { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; }
.logo-tag { font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-d);
            padding-left: 12px; border-left: 2px solid var(--line); line-height: 1.1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
              text-decoration: none; border-radius: 8px; }
.site-nav a:hover { color: var(--blue-d); background: var(--soft); }
.site-nav a.active { color: var(--blue-d); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px !important; background: #fff; border: 1px solid var(--line); border-radius: 12px;
       box-shadow: 0 18px 40px rgba(15,34,51,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.sub a { text-transform: none; font-size: 15px; letter-spacing: 0; padding: 10px 12px; }
.sub a.active { box-shadow: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --head-h: 64px; --gut: 16px; }
  .logo img { height: 36px; }
  .logo-tag { font-size: 11px; padding-left: 10px; }
  .menu-btn { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--head-h) 0 auto 0; max-height: calc(100dvh - var(--head-h)); overflow-y: auto; background: #fff;
              border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15,34,51,.12); display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 16px; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 14px 4px; font-size: 15px; }
  .site-nav a.active { box-shadow: none; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .sub-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px 12px !important; border: 0; box-shadow: none; opacity: 1; visibility: visible;
         transform: none; display: none; }
  .sub.open { display: block; }
  .sub a { padding: 10px 4px; }
}

/* ------------------------------------------------------------------ breadcrumb */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut) 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b4bbc2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-d); text-decoration: underline; }

/* ------------------------------------------------------------------ sections */
.sec { padding: 72px 0; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--navy); color: #d7e2ec; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .18em;
           text-transform: uppercase; color: var(--blue-d); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--blue); }
.sec.dark .eyebrow { color: #8fd2f2; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
.sec.dark .lede { color: #d7e2ec; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
       background: var(--ink); color: #fff; font: 700 15px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: transparent; color: #fff; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.two.top { align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); gap: 32px; } .sec { padding: 52px 0; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.photo { border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 50px rgba(15,34,51,.16); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }
.cap { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
                  background: linear-gradient(90deg, rgba(9,22,34,.92) 0%, rgba(9,22,34,.72) 45%, rgba(9,22,34,.25) 100%),
                              linear-gradient(0deg, rgba(9,22,34,.55) 0%, rgba(9,22,34,0) 40%); }
.hero-in { position: relative; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: center; padding: 72px 0; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--blue); }
.hero .lede { color: #e6eef5; max-width: 600px; }
.hero .eyebrow { color: #8fd2f2; }
.hero.short .hero-in { min-height: 0; padding: 64px 0 56px; }
@media (max-width: 700px) {
  .hero-bg::after { background: linear-gradient(0deg, rgba(9,22,34,.94) 10%, rgba(9,22,34,.6) 60%, rgba(9,22,34,.4) 100%); }
  .hero-in { min-height: 0; padding: 120px 0 44px; }
  .hero.short .hero-in { padding: 48px 0 40px; }
}

/* ------------------------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } .cards.two-up { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
        box-shadow: 0 2px 4px rgba(15,34,51,.04); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(15,34,51,.14); }
.card-img { position: relative; aspect-ratio: 10 / 7; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; border-top: 5px solid var(--blue); }
.card.keys .card-body { border-top-color: var(--gold); }
.card.raminator .card-body { border-top-color: var(--red); }
.card .eyebrow { margin: 0; font-size: 12px; }
.card .eyebrow::before { display: none; }
.card-title { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.card-text { font-size: 15.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.card-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.card:hover .card-cta { color: var(--blue-d); }
.card:hover .card-cta svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--navy); padding: 34px 28px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.stat-n { font-family: var(--cond); font-weight: 800; font-size: clamp(44px, 5.5vw, 68px); line-height: 1; color: #fff; }
.stat-l { font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #8fd2f2; }
.stat-s { font-size: 14px; color: #a9bccd; }
.stats-note { font-size: 13px; color: #a9bccd; text-align: center; margin: 16px 0 0; }
@media (max-width: 700px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat { padding: 26px 20px; } }

/* ------------------------------------------------------------------ gallery strip */
.gstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; }
.gs-tile { border-radius: 12px; overflow: hidden; background: var(--soft); }
.gs-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gs-tile:nth-child(6), .gs-tile:nth-child(7) { grid-column: span 2; }   /* 7 tiles fill 4 columns exactly */
.gs-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gs-tile:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .gstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gs-tile:nth-child(6), .gs-tile:nth-child(7) { grid-column: span 1; } }

/* ------------------------------------------------------------------ lists */
.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.programs li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.p-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.p-kind { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-d); }
.p-note { font-size: 14px; color: var(--muted); line-height: 1.45; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
                    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 5px); width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
                    font: 800 17px/1 var(--cond); margin-bottom: 12px; }
.steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 24px 0 0; }
.facts div { padding: 16px 18px; border-radius: 12px; background: var(--soft); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
.callout { padding: 26px 28px; border-radius: var(--r); background: #eaf6fc; border: 1px solid #c4e6f6; }
.callout h3 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ sponsor wall */
.sponsor-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; min-height: 150px; border-radius: 12px; background: #fff;
      border: 1px solid var(--line); text-align: center; }
.sp-logos { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; }
.sp-logos img { max-height: 64px; max-width: 140px; width: auto; object-fit: contain; }
.sp-logos img + img { max-width: 70px; }
.sp-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ------------------------------------------------------------------ forms */
.req fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.req legend { font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; padding: 0; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
/* justify-content:flex-end: in a two-column row the cells stretch to the same height, so every input sits on the same
   line even when one label wraps to two lines (Kylen 10/13: "Business or team name (optional)") */
.fd { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-width: 0; }
.fd.wide { grid-column: 1 / -1; }
/* one column whenever the form itself is narrow (phones, and the 1000-1150px laptops where the form card shares the row) */
.req { container-type: inline-size; }
@container (max-width: 420px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.fd label, .fd .lab { font-weight: 700; font-size: 15px; color: var(--ink); }
.fd label i, .fd .lab i { color: var(--red); font-style: normal; }
.fd label em, .fd .lab em { font-weight: 500; font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.fd label, .fd .lab { line-height: 1.35; }
.req input:not([type=checkbox]), .req select { height: 48px; }
.fd .hint { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: -2px; }
.req input, .req select, .req textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #cdd3d9; border-radius: 10px; background: #fff;
                                          font: 16px/1.4 var(--body); color: var(--ink); }
.req textarea { resize: vertical; min-height: 120px; }
.req input:focus, .req select:focus, .req textarea:focus { border-color: var(--blue); outline: 3px solid rgba(39,161,219,.25); outline-offset: 0; }
.req [aria-invalid="true"] { border-color: var(--red); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; font-size: 15px; padding: 10px 12px; border: 1.5px solid #e1e5e9; border-radius: 10px; cursor: pointer; }
.chk input { width: 20px; height: 20px; min-height: 0; accent-color: var(--blue-d); margin: 0; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.f-fine { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1 1 280px; }
.f-status { margin-top: 18px; }
.f-status:empty { display: none; }
.f-status .ok, .f-status .err { padding: 16px 18px; border-radius: 12px; font-weight: 500; }
.f-status .ok { background: #e7f6ec; border: 1px solid #b6e0c3; color: #14532d; }
.f-status .err { background: #fdecee; border: 1px solid #f5c2c9; color: #7f1d1d; }
.form-card { padding: 34px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(15,34,51,.08); }
@media (max-width: 640px) { .form-card { padding: 22px 18px; } }

/* ------------------------------------------------------------------ footer */
.site-foot { background: #0b1620; color: #b9c6d2; padding: 56px 0 0; font-size: 15px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.foot-brand img { width: 200px; margin-bottom: 16px; }
.foot-h { font-family: var(--cond); font-size: 15px; letter-spacing: .14em; color: #8fd2f2; margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-contact { line-height: 1.9; }
.foot-social { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-main { font-weight: 700; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #7f8f9e; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ------------------------------------------------------------------ event themes */
.theme-keys .hero { background: var(--green); }
.theme-keys .hero-bg::after { background: linear-gradient(90deg, rgba(10,34,24,.94) 0%, rgba(10,34,24,.74) 45%, rgba(10,34,24,.2) 100%),
                                          linear-gradient(0deg, rgba(10,34,24,.5) 0%, rgba(10,34,24,0) 40%); }
.theme-keys .hero h1 span, .theme-keys .sec.dark h2 span { color: var(--gold); }
.theme-keys .hero .eyebrow, .theme-keys .sec.dark .eyebrow { color: var(--mint); }
.theme-keys .eyebrow::before { background: var(--gold); }
.theme-keys .eyebrow { color: var(--green-2); }
.theme-keys .sec.dark { background: var(--green); }
.theme-keys .btn:not(.light):not(.outline-light):not(.ghost):hover { background: var(--green-2); border-color: var(--green-2); }
.theme-keys .ticks li::before { background: var(--green-2); }
.theme-keys .steps li::before { background: var(--green); color: var(--gold); }
.theme-keys .callout { background: #eef6f0; border-color: #cfe5d6; }
.theme-keys .programs li { border-left-color: var(--gold); }
.theme-keys .programs .p-kind { color: var(--green-2); }
.theme-raminator .hero { background: #0c0c0c; }
.theme-raminator .hero-bg::after { background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.7) 45%, rgba(8,8,8,.15) 100%),
                                               linear-gradient(0deg, rgba(8,8,8,.5) 0%, rgba(8,8,8,0) 40%); }
.theme-raminator .hero h1 span { color: #ff3b4d; }
.theme-raminator .hero .eyebrow, .theme-raminator .sec.dark .eyebrow { color: #ff8a95; }
.theme-raminator .eyebrow::before { background: var(--red); }
.theme-raminator .eyebrow { color: var(--red); }
.theme-raminator .sec.dark { background: #141414; }
.theme-raminator .ticks li::before { background: var(--red); }
.theme-raminator .btn:not(.light):not(.outline-light):not(.ghost):hover { background: var(--red); border-color: var(--red); }
@media (max-width: 700px) {
  .theme-keys .hero-bg::after { background: linear-gradient(0deg, rgba(10,34,24,.95) 10%, rgba(10,34,24,.62) 60%, rgba(10,34,24,.4) 100%); }
  .theme-raminator .hero-bg::after { background: linear-gradient(0deg, rgba(8,8,8,.95) 10%, rgba(8,8,8,.6) 60%, rgba(8,8,8,.4) 100%); }
}
.fd.bad .lab { color: var(--red); }
a.p-name { color: var(--ink); }
a.p-name:hover { color: var(--blue-d); }
.foot-contact .ph { display: block; } .foot-contact b { display: inline-block; min-width: 64px; font-weight: 500; color: #8fa2b3; }
.sec.dark .sponsor-wall .sp { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.sec.dark .sp-name { color: #eaf3ed; }
.sec.dark .sec-head p { color: #c9dccf; }
.sp-logos img.glow { filter: drop-shadow(0 0 1px rgba(255,255,255,.75)) drop-shadow(0 0 3px rgba(255,255,255,.18)); }
.sp-logos img.plate { border-radius: 4px; }

/* photo rows with captions (library photos, 10/17) */
.pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pics.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pics figure { margin: 0; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--soft); }
.pics figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sec.dark .pics figcaption { color: #a9bccd; }
@media (max-width: 900px) { .pics, .pics.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pics, .pics.c4 { gap: 10px; } .pics figcaption { font-size: 12.5px; } }

/* ------------------------------------------------------------------ photo galleries (assets/gallery.js) */
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; }
.gal-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gal-tile.tB { grid-column: span 2; grid-row: span 2; }
.gal-tile.tW { grid-column: span 2; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gal-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%); opacity: 0; transition: opacity .2s; }
.gal-tile:hover img, .gal-tile:focus-visible img { transform: scale(1.05); }
.gal-tile:hover::after, .gal-tile:focus-visible::after { opacity: 1; }
.gal-cap { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.gal-tile:hover .gal-cap, .gal-tile:focus-visible .gal-cap { opacity: 1; }
@media (max-width: 900px) { .gal-grid { grid-auto-rows: 150px; } }
@media (max-width: 600px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 6px; } .gal-cap { display: none; } }
.gv { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 60px minmax(0, 1fr) auto;
      background: rgba(8,12,16,.96); color: #e6edf3; }
.gv[hidden] { display: none; }
.gv-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 22px; }
.gv-n { font-weight: 700; font-size: 13px; letter-spacing: .1em; color: #9fb0bf; }
.gv-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); cursor: pointer; }
.gv-btn:hover { background: rgba(255,255,255,.15); }
.gv-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gv-prev, .gv-next { align-self: center; justify-self: center; }
.gv-stage { grid-column: 2; grid-row: 2; margin: 0; display: grid; place-items: center; min-height: 0; min-width: 0; }
.gv-stage img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gv-cap { grid-column: 1 / -1; margin: 0; padding: 12px 24px 22px; text-align: center; font-size: 14.5px; line-height: 1.45; }
.gv-cap b { display: block; margin-bottom: 3px; font-family: var(--cond); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8fd2f2; }
@media (max-width: 900px) {
  .gv { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .gv-prev, .gv-next { position: fixed; bottom: 18px; z-index: 2; }
  .gv-prev { left: 18px; } .gv-next { right: 18px; }
  .gv-stage { padding: 0 8px; }
  .gv-stage img { max-height: calc(100dvh - 190px); }
  .gv-cap { padding: 12px 84px 26px; font-size: 13px; }
}
