/*
 * SERA theme: Southern backwoods. Cypress green, red clay, cayenne and mustard on cream paper.
 * Customer-owned. css/public.css is generated from the colour tokens below (.tools/generate-public.mjs).
 * Fonts are self-hosted (SIL OFL, see licenses/FONTS-OFL.txt).
 */
:root {
  --background: #f6efdf;
  --foreground: #1c1a16;
  --card: #fffaf0;
  --card-foreground: #1c1a16;
  --popover: #fffaf0;
  --popover-foreground: #1c1a16;
  --primary: #b32a18;
  --primary-foreground: #ffffff;
  --secondary: #ebe0c8;
  --secondary-foreground: #2c2a24;
  --muted: #efe5cf;
  --muted-foreground: #5a5446;
  --accent: #f3d98a;
  --accent-foreground: #3b2a05;
  --destructive: #b32a18;
  --destructive-foreground: #ffffff;
  --success: #2f6b45;
  --success-foreground: #ffffff;
  --warning: #c98a00;
  --warning-foreground: #1c1a16;
  --border: #d6c9a8;
  --input: #cbbd98;
  --ring: #1f6b3d;
  --chart-1: #b32a18;
  --chart-2: #1f6b3d;
  --chart-3: #c98a00;
  --chart-4: #8a4a2b;
  --chart-5: #2f4f6b;
  --sidebar: #efe5cf;
  --sidebar-foreground: #1c1a16;
  --sidebar-primary: #b32a18;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f3d98a;
  --sidebar-accent-foreground: #3b2a05;
  --sidebar-border: #d6c9a8;
  --sidebar-ring: #1f6b3d;
  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking-normal: 0em;
  --radius: 0.375rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0px 2px 4px -1px rgb(28 26 22 / 0.06);
  --shadow-xs: 0px 2px 4px -1px rgb(28 26 22 / 0.06);
  --shadow-sm: 0px 2px 6px -1px rgb(28 26 22 / 0.12), 0px 1px 2px -2px rgb(28 26 22 / 0.12);
  --shadow: 0px 2px 6px -1px rgb(28 26 22 / 0.12), 0px 1px 2px -2px rgb(28 26 22 / 0.12);
  --shadow-md: 0px 4px 10px -2px rgb(28 26 22 / 0.14), 0px 2px 4px -2px rgb(28 26 22 / 0.12);
  --shadow-lg: 0px 8px 18px -4px rgb(28 26 22 / 0.18), 0px 4px 6px -4px rgb(28 26 22 / 0.12);
  --shadow-xl: 0px 12px 24px -6px rgb(28 26 22 / 0.22), 0px 8px 10px -6px rgb(28 26 22 / 0.14);
  --shadow-2xl: 0px 18px 40px -8px rgb(28 26 22 / 0.32);
  /* site tokens */
  --sera-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --sera-pine: #16301f;
  --sera-pine-2: #1f4a2e;
  --sera-pine-3: #2f6b45;
  --sera-clay: #a8472a;
  --sera-gold: #f2c744;
  --sera-gold-ink: #3b2a05;
  --sera-cream: #f6efdf;
  /* Follow Studio's Site look (the tokens above): brand red, page, alternate band and text. */
  --sera-cayenne: var(--primary);
  --sera-on-cayenne: var(--primary-foreground);
  --sera-cayenne-deep: color-mix(in srgb, var(--sera-cayenne) 80%, #000);
  --sera-paper: var(--background);
  --sera-paper-2: var(--secondary);
  --sera-ink: var(--foreground);
  --sera-link: var(--sera-cayenne-deep);
}

.dark {
  --background: #101a13;
  --foreground: #efe7d3;
  --card: #182a1e;
  --card-foreground: #efe7d3;
  --popover: #182a1e;
  --popover-foreground: #efe7d3;
  --primary: #e0553f;
  --primary-foreground: #1a0a06;
  --secondary: #1f3626;
  --secondary-foreground: #efe7d3;
  --muted: #16251b;
  --muted-foreground: #b7ae98;
  --accent: #5a4a14;
  --accent-foreground: #f6dd8f;
  --destructive: #e0553f;
  --destructive-foreground: #1a0a06;
  --success: #6fbf8a;
  --success-foreground: #0d1a12;
  --warning: #f2c744;
  --warning-foreground: #1c1a16;
  --border: #33513c;
  --input: #3b5c45;
  --ring: #f2c744;
  --chart-1: #e0553f;
  --chart-2: #6fbf8a;
  --chart-3: #f2c744;
  --chart-4: #d98a62;
  --chart-5: #7fb0d4;
  --sidebar: #0c150f;
  --sidebar-foreground: #efe7d3;
  --sidebar-primary: #e0553f;
  --sidebar-primary-foreground: #1a0a06;
  --sidebar-accent: #5a4a14;
  --sidebar-accent-foreground: #f6dd8f;
  --sidebar-border: #33513c;
  --sidebar-ring: #f2c744;
  /* Dark keeps SERA's own red and white button text: the dark brand token (lighter) would leave
     white text on buttons below 4.5:1. Page and text follow --background and --foreground. */
  --sera-cayenne: #b32a18;
  --sera-on-cayenne: #fff;
  --sera-paper-2: #15241a;
  --sera-link: #f2c744;
}

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/archivo-latin.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/big-shoulders-display-latin.woff2) format('woff2'); }

html, body { background: var(--background); color: var(--foreground); }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:focus-visible { outline: 3px solid var(--sera-gold); outline-offset: 2px; }
.sera-band :focus-visible, main :focus-visible { outline-color: var(--ring); }
.dark main :focus-visible { outline-color: var(--sera-gold); }
.tone-2 :focus-visible, .sera-head :focus-visible, .sera-hero :focus-visible { outline-color: var(--sera-gold); }

/* ------------------------------------------------------------ header and footer: always cypress green */
[data-theme-region="header"], [data-theme-region="footer"] {
  --background: #16301f; --foreground: #f6efdf; --border: #2d5139; --muted: #214430; --muted-foreground: #e3dbc4;
  --popover: #1b3a27; --popover-foreground: #f6efdf; --accent: #2a5239; --accent-foreground: #f6efdf; --primary: #f2c744; --primary-foreground: #2a1c02;
}
[data-theme-region="header"] { background: #16301f; border-bottom: 4px solid var(--sera-gold); }
[data-site-header] [data-header-brand] img { height: 46px; width: auto; max-width: none; border-radius: 3px; }
[data-site-header] [data-nav-item] > a, [data-site-header] [data-nav-item] > button, [data-site-header] [data-more-item] > button { font-family: var(--sera-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: #f6efdf; background: transparent; }
[data-site-header] [data-nav-item] > a:hover, [data-site-header] [data-nav-item] > button:hover, [data-site-header] [data-more-item] > button:hover { background: #24472f; color: #fff; }
[data-site-header] [data-nav-item] > a[aria-current="page"] { color: var(--sera-gold); }
[data-site-header] [data-header-actions] a { font-family: var(--sera-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; color: #f6efdf; height: 2.5rem; padding-inline: .9rem; }
[data-site-header] [data-header-actions] a:last-child { background: var(--sera-gold); color: #2a1c02; }
[data-site-header] [data-header-actions] a:last-child:hover { background: #ffd95e; }
[data-site-header] [data-header-actions] a:first-child:hover { background: #24472f; }
[data-site-header] button { color: #f6efdf; }
[data-site-header] button:hover { background: #24472f; }
.sera-foot { margin-top: 0; background: #0f2217; color: #e9e1cc; border-top: 0; }
.sera-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .sera-wrap { padding-inline: 1.5rem; } }
.sera-foot-top { padding-block: 3rem 2rem; background: radial-gradient(circle at 12% 0%, #1d4a2f 0%, transparent 55%), #0f2217; border-top: 4px solid var(--sera-clay); }
.sera-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.sera-foot h2 { font: 800 1.15rem/1 var(--sera-display); letter-spacing: .12em; text-transform: uppercase; color: var(--sera-gold); margin: .4rem 0 1rem; }
.sera-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sera-foot a { color: #f1ead6; text-decoration: none; font-size: .95rem; }
.sera-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sera-foot-logo { height: 64px; width: auto; border-radius: 3px; }
.sera-foot-brand p { color: #cfc7b0; font-size: .95rem; max-width: 38ch; margin: 1rem 0; }
.sera-foot [data-slot="card"] { background: rgb(255 255 255 / .06); box-shadow: none; color: #f6efdf; --tw-ring-color: rgb(255 255 255 / .18); }
.sera-foot-base { border-top: 1px solid #28452f; background: #0a1810; padding-block: 1rem; font-size: .8rem; color: #bfb7a0; }
.sera-foot-base .sera-wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (max-width: 1000px) { .sera-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sera-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sera-foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ page head: pine band with topo lines */
main { display: block; }
.sera-head { position: relative; isolation: isolate; overflow: hidden; background: var(--sera-pine); color: #f6efdf; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sera-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%232f6b45' stroke-width='1.6'%3E%3Cpath d='M-20 380C80 330 140 400 250 360S380 250 470 290 640 380 740 320 880 250 930 280'/%3E%3Cpath d='M-20 340C90 290 150 360 255 322S385 214 470 252 636 340 738 284 880 216 930 244'/%3E%3Cpath d='M-20 300C100 250 160 320 260 284S390 180 470 214 632 300 736 248 880 182 930 208'/%3E%3Cpath d='M-20 260C110 212 168 280 266 246S396 146 470 176 628 260 734 212 880 148 930 172'/%3E%3Cpath d='M-20 220C120 174 176 240 272 208S402 112 470 140 624 220 732 176 880 114 930 136'/%3E%3Cpath d='M-20 180C130 136 184 200 278 170S408 78 470 104 620 180 730 140 880 80 930 100'/%3E%3Cpath d='M-20 420C70 372 130 440 244 400S374 290 470 330 650 420 746 364 880 290 930 320'/%3E%3Cpath d='M-20 460C60 414 120 478 238 440S368 330 470 370 660 460 752 408 880 330 930 360'/%3E%3C/svg%3E"); background-size: 900px 520px; background-position: right -80px bottom -40px; background-repeat: no-repeat; }
.sera-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: -1; background: repeating-linear-gradient(90deg, var(--sera-cayenne) 0 56px, var(--sera-gold) 56px 112px); }
.sera-head-grid { display: grid; gap: 2rem; align-items: center; }
.sera-head.has-img .sera-head-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 800px) { .sera-head.has-img .sera-head-grid { grid-template-columns: 1fr; } }
.sera-eyebrow { display: flex; align-items: center; gap: .6rem; font: 800 .95rem/1.2 var(--sera-display); letter-spacing: .22em; text-transform: uppercase; color: var(--sera-gold); margin: 0 0 .8rem; }
.sera-eyebrow::before { content: ""; width: 1.7rem; height: .8rem; flex: none; background: var(--sera-cayenne); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); outline: 0; }
main h1 { font-family: var(--sera-display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: .005em; text-wrap: balance; }
.sera-head h1 { font-size: clamp(2.8rem, 7.5vw, 5.4rem); margin: 0; color: #fffaf0; }
.sera-lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; color: #eadfc4; max-width: 58ch; margin: 1rem 0 0; }
.sera-head-fig { margin: 0; justify-self: end; max-width: 460px; width: 100%; }
.sera-head-fig img { display: block; width: 100%; height: auto; border: 6px solid #f6efdf; box-shadow: 10px 10px 0 var(--sera-clay); transform: rotate(1.4deg); background: #fff; }

/* ------------------------------------------------------------ bands */
.sera-band { padding-block: clamp(2rem, 5vw, 3.75rem); background: var(--sera-paper); color: var(--foreground); }
.sera-band.tone-1 { background: var(--sera-paper-2); }
.sera-band.tone-2 { background: var(--sera-pine); color: #f6efdf; position: relative; }
.sera-band.tone-2 a:not(.sera-btn) { color: var(--sera-gold); }
.sera-band.tone-2 .sera-prose h2, .sera-band.tone-2 h2 { color: #fffaf0; }
.sera-band.tone-2 .sera-prose, .sera-band.tone-2 p { color: #f6efdf; }
.dark .sera-band.tone-1 { background: #15241a; }
.dark .sera-band.tone-2 { background: #0f2217; }
.sera-band > .sera-wrap > * + * { margin-top: 1.75rem; }
.sera-band > .sera-wrap > .sera-prose:only-child, .sera-prose { max-width: 70ch; }
.sera-band .sera-wrap > .sera-cards, .sera-band .sera-wrap > .sera-rounds, .sera-band .sera-wrap > .sera-gallery, .sera-band .sera-wrap > .sera-videos, .sera-band .sera-wrap > .sera-files { max-width: none; }
.sera-prose { font-size: 1.06rem; line-height: 1.7; overflow-wrap: anywhere; }
.sera-prose > * + * { margin-top: 1rem; }
.sera-prose h2, main h2 { font-family: var(--sera-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: .98; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; color: var(--sera-pine); text-wrap: balance; }
.dark .sera-prose h2, .dark main h2 { color: #f6efdf; }
.sera-prose h2 { margin-top: 0; }
.sera-prose h3 { font-family: var(--sera-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; line-height: 1.05; margin: 1.6rem 0 0; color: var(--sera-clay); }
.dark .sera-prose h3 { color: #f0a07e; }
.tone-2 .sera-prose h3 { color: var(--sera-gold); }
.sera-prose a { color: var(--sera-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sera-prose a:hover { text-decoration-color: var(--sera-gold); }
.sera-prose ul, .sera-prose ol { padding-left: 1.4rem; display: grid; gap: .45rem; }
.sera-prose ul { list-style: none; padding-left: 1.2rem; }
.sera-prose ul li { position: relative; }
.sera-prose ul li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: .55rem; height: .55rem; background: var(--sera-cayenne); clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); }
.sera-prose ol { list-style: decimal; }
.sera-prose ol li::marker { font-family: var(--sera-display); font-weight: 900; color: var(--sera-cayenne); font-size: 1.2em; }
.sera-prose figure { margin: 0; }
.sera-prose img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.sera-prose hr { border: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--sera-cayenne) 0 24px, var(--sera-gold) 24px 48px); }
.sera-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.sera-prose td, .sera-prose th { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; }
.sera-prose strong { font-weight: 800; }
.sera-article .sera-prose, .sera-article.sera-prose { max-width: 68ch; }
.sera-article .sera-prose { font-size: 1.12rem; line-height: 1.78; }
.sera-article .sera-prose > p:first-of-type { font-size: 1.15em; }

/* buttons */
.sera-btn, .sera-prose a.sera-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 800 1.1rem/1 var(--sera-display); letter-spacing: .08em; text-transform: uppercase; padding: .85rem 1.25rem; border: 2px solid var(--sera-cayenne); background: var(--sera-cayenne); color: var(--sera-on-cayenne); text-decoration: none; border-radius: 4px; cursor: pointer; transition: transform .12s, background .12s; }
.sera-btn:hover, .sera-prose a.sera-btn:hover { background: var(--sera-cayenne-deep); border-color: var(--sera-cayenne-deep); color: var(--sera-on-cayenne); transform: translateY(-1px); }
.tone-2 .sera-btn, .sera-hero .sera-btn { background: var(--sera-gold); border-color: var(--sera-gold); color: #2a1c02; }
.tone-2 .sera-btn:hover, .sera-hero .sera-btn:hover { background: #ffd95e; border-color: #ffd95e; color: #2a1c02; }
.sera-btn-ghost, .sera-hero .sera-btn.sera-btn-ghost { background: transparent; color: #fffaf0; border-color: #fffaf0; }
.sera-hero .sera-btn.sera-btn-ghost:hover { background: rgb(255 250 240 / .14); border-color: #fffaf0; color: #fff; }
.sera-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* media */
.sera-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.sera-gallery figure { margin: 0; overflow: hidden; border-radius: 4px; border: 4px solid #fffaf0; box-shadow: var(--shadow-md); background: #fff; }
.sera-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sera-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; }
.sera-vcard h3 { font: 800 1.35rem/1.05 var(--sera-display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; color: var(--sera-clay); }
.sera-video { position: relative; aspect-ratio: 16 / 9; background: #0e1a12; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid var(--sera-pine); }
.sera-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sera-cap { margin: .6rem 0 0; font-weight: 600; }

/* files */
.sera-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 52rem; }
.sera-files-grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sera-files a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-left: 6px solid var(--sera-cayenne); border-radius: 4px; color: var(--foreground); text-decoration: none; font-weight: 600; }
.sera-files a:hover { border-left-color: var(--sera-gold); background: #fff; box-shadow: var(--shadow-sm); }
.dark .sera-files a:hover { background: #1f3626; }
.sera-file-name { overflow-wrap: anywhere; }
.sera-file-tag { flex: none; font: 800 .8rem/1 var(--sera-display); letter-spacing: .12em; padding: .35rem .5rem; background: var(--sera-pine); color: #f6efdf; border-radius: 3px; }

/* cards */
.sera-cards, .sera-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.sera-card, .sera-round { background: var(--card); border: 1px solid var(--border); border-top: 8px solid var(--sera-clay); border-radius: 4px; padding: 1.25rem 1.25rem 1.5rem; box-shadow: var(--shadow-sm); }
.sera-round { border-top-color: var(--sera-pine-3); }
.sera-card .sera-prose, .sera-round .sera-prose { font-size: 1rem; line-height: 1.55; }
.sera-card .sera-prose h2, .sera-card .sera-prose h3, .sera-round .sera-prose h2, .sera-round .sera-prose h3 { margin-top: 0; font-size: 1.7rem; color: var(--sera-pine); }
.dark .sera-card .sera-prose h2, .dark .sera-card .sera-prose h3, .dark .sera-round .sera-prose h3 { color: #f6efdf; }
.sera-officer .sera-name { font: 900 1.6rem/1 var(--sera-display); text-transform: uppercase; letter-spacing: .03em; }
.sera-year-h { padding-bottom: .5rem; border-bottom: 6px solid var(--sera-gold); display: inline-block; }
.sera-year .sera-prose h3 { margin-top: 1.75rem; font-size: 1.7rem; color: var(--sera-pine); }
.dark .sera-year .sera-prose h3 { color: var(--sera-gold); }

/* events (flyer + details) */
.sera-event { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 720px) { .sera-event { grid-template-columns: 1fr; } .sera-flyer { max-width: 320px; } }
.sera-flyer { margin: 0; }
.sera-flyer img { display: block; width: 100%; height: auto; border: 6px solid #fffaf0; box-shadow: 8px 8px 0 var(--sera-pine-3), var(--shadow-md); background: #fff; }
.sera-event-body > h2 { margin-bottom: 1rem; }
.sera-upnext .sera-flyer img { box-shadow: 10px 10px 0 var(--sera-cayenne), var(--shadow-md); transform: rotate(-1.2deg); }
.sera-upnext .sera-eyebrow { color: var(--sera-cayenne); }
.dark .sera-upnext .sera-eyebrow { color: var(--sera-gold); }
.sera-first { background: var(--sera-paper); }
.sera-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .sera-split { grid-template-columns: 1fr; } }
.sera-split > * + * { margin-top: 0; }
.sera-feature { background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--border); border-radius: 4px; padding: clamp(1.1rem, 3vw, 1.75rem); }
.tone-2 .sera-feature { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); }
.sera-feature > * + * { margin-top: 1.1rem; }
.sera-feature .sera-prose { max-width: none; }
.sera-merch img { width: 100%; height: auto; }
.sera-steps .sera-prose ol { gap: .7rem; }
.sera-block { margin-top: 2rem; max-width: 56rem; }
.sera-block .sera-videos { grid-template-columns: minmax(0, 560px); }
.sera-sponsor-h { text-align: center; }
.sera-sponsors { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1rem; }
.sera-sponsors li a { display: grid; place-items: center; height: 100px; padding: .75rem; background: #fff; border: 1px solid var(--border); border-bottom: 5px solid var(--sera-gold); border-radius: 4px; }
.sera-sponsors li a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sera-sponsors img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sera-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.sera-tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 1.25rem 1.25rem 1.4rem; border-left: 8px solid var(--sera-cayenne); }
.sera-tile:nth-child(3n+2) { border-left-color: var(--sera-pine-3); }
.sera-tile:nth-child(3n) { border-left-color: var(--sera-gold); }
.sera-tile h3 { font: 900 1.9rem/1 var(--sera-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .4rem; }
.sera-tile h3 a { color: var(--foreground); text-decoration: none; }
.sera-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.sera-tile:hover { box-shadow: var(--shadow-md); }
.sera-tile:hover h3 a { color: var(--sera-cayenne); }
.dark .sera-tile:hover h3 a { color: var(--sera-gold); }
.sera-tile p { margin: 0; color: var(--muted-foreground); }
.sera-notice .sera-prose h2 { color: #fffaf0; }
.sera-calendar:empty { display: none; }

/* hero */
.sera-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sera-pine); color: #fffaf0; min-height: min(84svh, 740px); display: flex; align-items: flex-end; }
.sera-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -2; }
.sera-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 34 23 / .94) 0%, rgb(15 34 23 / .74) 42%, rgb(15 34 23 / .12) 100%), linear-gradient(0deg, rgb(15 34 23 / .9) 0%, transparent 46%); }
.sera-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 0; background: repeating-linear-gradient(90deg, var(--sera-cayenne) 0 64px, var(--sera-gold) 64px 128px); }
.sera-hero-body { padding-block: 5rem 4rem; width: 100%; }
.sera-hero h1 { font-size: clamp(3.4rem, 10.5vw, 8.2rem); line-height: .84; margin: .25rem 0 1.1rem; color: #fffaf0; max-width: 11ch; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.sera-hero .sera-lede { color: #f1e8d0; max-width: 52ch; }
.sera-hero .sera-eyebrow { color: var(--sera-gold); }

/* forms (contact) */
.sera-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.sera-form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.sera-form input, .sera-form textarea { width: 100%; background: #fff; color: #1c1a16; border: 2px solid #7a6f55; border-radius: 4px; padding: .7rem .8rem; font: inherit; }
.dark .sera-form input, .dark .sera-form textarea { background: #0f1a13; color: #efe7d3; border-color: #7e987f; }
.sera-form input:focus, .sera-form textarea:focus { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--sera-pine); }
.dark .sera-form input:focus, .dark .sera-form textarea:focus { outline-color: var(--sera-gold); border-color: var(--sera-gold); }
.sera-form input[aria-invalid="true"], .sera-form textarea[aria-invalid="true"] { border-color: var(--sera-cayenne); }
.text-destructive { color: var(--destructive); }
.dark .text-destructive { color: #f0a07e; }
.livelaps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* LiveLaps racing pages inherit the palette through the tokens; a little polish for their intro */
.mrc-public { font-family: var(--font-sans); }
main > section[data-cms-section="page-heading"] h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--sera-pine); margin: 0; }
.dark main > section[data-cms-section="page-heading"] h1 { color: #f6efdf; }
@media (prefers-reduced-motion: reduce) { .sera-btn, .sera-sponsors li a { transition: none; } }
@media (max-width: 700px) { .sera-hero::before { background: linear-gradient(0deg, rgb(15 34 23 / .97) 0%, rgb(15 34 23 / .93) 45%, rgb(15 34 23 / .35) 100%); } .sera-hero-img { object-position: 40% 0; } }
.sera-gallery.sera-logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.sera-logos figure { display: grid; place-items: center; height: 100px; padding: .75rem; background: #fff; border: 1px solid var(--border); border-bottom: 5px solid var(--sera-gold); box-shadow: none; border-radius: 4px; }
.sera-logos figure a { display: grid; place-items: center; width: 100%; height: 100%; }
.sera-logos img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; }
.sera-logos figure.on-dark, .sera-sponsors li.on-dark a { background: var(--sera-pine); }
.dark .sera-round .sera-prose h2 { color: #f6efdf; }
/* Up next: event card */
.sera-upnext { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
@media (max-width: 720px) { .sera-upnext { grid-template-columns: 1fr; } }
.sera-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; margin-bottom: 1.25rem; padding: .85rem 1rem; background: var(--sera-pine); color: #fffaf0; border-left: 8px solid var(--sera-gold); border-radius: 4px; }
.sera-when .sera-prose { max-width: none; }
.sera-when .sera-prose h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--sera-gold); }
.sera-when .sera-prose p { color: #f6efdf; margin: 0; }
.sera-when .sera-prose a { color: #fffaf0; }
.sera-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.sera-fact { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--sera-clay); border-radius: 4px; padding: .7rem .9rem .85rem; }
.sera-fact:nth-child(3n+2) { border-top-color: var(--sera-pine-3); }
.sera-fact:nth-child(3n) { border-top-color: var(--sera-gold); }
.sera-fact-k { margin: 0 0 .25rem; font: 800 .8rem/1.1 var(--sera-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sera-clay); }
.dark .sera-fact-k { color: #f0a07e; }
.sera-fact .sera-prose { font-size: .98rem; line-height: 1.45; }
.sera-fact .sera-prose > * + * { margin-top: .35rem; }
.sera-callout { margin-top: 1.25rem; padding: 1rem 1.2rem; background: var(--sera-gold); color: #2a1c02; border: 3px solid var(--sera-cayenne); border-radius: 4px; box-shadow: 6px 6px 0 var(--sera-pine); }
.sera-callout .sera-prose { max-width: none; font-weight: 600; color: #2a1c02; }
.sera-callout .sera-prose a { color: #5a1208; }
.sera-callout .sera-prose p:first-child { font: 800 1.2rem/1.3 var(--font-sans); }
.sera-ask { margin-top: 1rem; }
.sera-ask .sera-prose { max-width: none; font-weight: 700; }
/* Dark mode: the prose component keeps Tailwind's light slate tokens; map them to the site palette */
.dark .prose, .dark .sera-prose, .dark .cms-rich-content {
  --tw-prose-body: #efe7d3; --tw-prose-headings: #f6efdf; --tw-prose-lead: #e3dbc4; --tw-prose-links: #f2c744;
  --tw-prose-bold: #fffaf0; --tw-prose-counters: #f2c744; --tw-prose-bullets: #f0a07e; --tw-prose-hr: #4a6b53;
  --tw-prose-quotes: #efe7d3; --tw-prose-quote-borders: #4a6b53; --tw-prose-captions: #cfc6ad; --tw-prose-kbd: #efe7d3;
  --tw-prose-code: #efe7d3; --tw-prose-pre-code: #efe7d3; --tw-prose-pre-bg: #0c150f; --tw-prose-th-borders: #4a6b53; --tw-prose-td-borders: #33513c;
  --tw-prose-invert-body: #efe7d3; --tw-prose-invert-headings: #f6efdf; --tw-prose-invert-links: #f2c744; --tw-prose-invert-bold: #fffaf0;
  color: #efe7d3;
}
.dark .sera-prose strong { color: #fffaf0; }
.dark .sera-fact .sera-prose, .dark .sera-card .sera-prose, .dark .sera-round .sera-prose { color: #efe7d3; }
.dark .sera-callout .sera-prose, .dark .sera-callout .sera-prose p { color: #2a1c02; }
.dark .sera-callout .sera-prose strong { color: #2a1c02; }
.dark .sera-when .sera-prose p, .dark .tone-2 .sera-prose, .dark .tone-2 .sera-prose p { color: #f6efdf; }
.dark .sera-vcard h3 { color: #f0a07e; }

/* Menus opened from the header: body-level dropdowns/mobile sheet and the in-header theme menu. */
:is(.imported-menu-popup, .imported-sheet-panel, [data-slot="navigation-menu-content"], [data-slot="sheet-content"]) :is(a, button, summary, [role="button"]):focus-visible,
[role="menu"] [role^="menuitem"]:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; box-shadow: none; }
