/*
 * Enduro Riders of Ohio theme: deep hardwood green and off-white from the southeast Ohio forest, with the copper and
 * red of the Ohio-outline badge as accents. Bitter (slab serif) for headings, Cabin for body text. Customer-owned.
 * css/public.css is generated from the colour tokens below (.tools/generate-public.mjs); mirror colour changes in
 * site.json participant.theme.
 */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,500;0,700;0,800;1,500&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --background: #f5f6f1;
  --foreground: #17211a;
  --card: #ffffff;
  --card-foreground: #17211a;
  --popover: #ffffff;
  --popover-foreground: #17211a;
  --primary: #1f4a34;
  --primary-foreground: #ffffff;
  --secondary: #e3eadd;
  --secondary-foreground: #17211a;
  --muted: #ebeee6;
  --muted-foreground: #46564b;
  --accent: #f1e1c8;
  --accent-foreground: #4a2808;
  --destructive: #c8102e;
  --destructive-foreground: #ffffff;
  --border: #c9d1c2;
  --input: #76877a;
  --ring: #a8620f;
  --chart-1: #1f4a34;
  --chart-2: #c8102e;
  --chart-3: #b8741a;
  --chart-4: #46564b;
  --chart-5: #7aa88a;
  --sidebar: #ebeee6;
  --sidebar-foreground: #17211a;
  --sidebar-primary: #1f4a34;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f1e1c8;
  --sidebar-accent-foreground: #4a2808;
  --sidebar-border: #c9d1c2;
  --sidebar-ring: #a8620f;
  --copper: #8f4f0f;
  --font-sans: 'Cabin', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Bitter', Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking-normal: 0em;
  --radius: 0.25rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0px 1px 2px -1px rgb(23 33 26 / 0.08);
  --shadow-xs: 0px 1px 2px -1px rgb(23 33 26 / 0.08);
  --shadow-sm: 0px 2px 4px -1px rgb(23 33 26 / 0.12), 0px 1px 2px -2px rgb(23 33 26 / 0.12);
  --shadow: 0px 2px 4px -1px rgb(23 33 26 / 0.12), 0px 1px 2px -2px rgb(23 33 26 / 0.12);
  --shadow-md: 0px 4px 8px -2px rgb(23 33 26 / 0.14), 0px 2px 4px -2px rgb(23 33 26 / 0.12);
  --shadow-lg: 0px 8px 16px -4px rgb(23 33 26 / 0.18), 0px 4px 6px -4px rgb(23 33 26 / 0.12);
  --shadow-xl: 0px 12px 24px -6px rgb(23 33 26 / 0.22), 0px 8px 10px -6px rgb(23 33 26 / 0.14);
  --shadow-2xl: 0px 18px 40px -8px rgb(23 33 26 / 0.32);
}

.dark {
  --background: #101813;
  --foreground: #e9eee6;
  --card: #17221b;
  --card-foreground: #e9eee6;
  --popover: #17221b;
  --popover-foreground: #e9eee6;
  --primary: #86c79a;
  --primary-foreground: #0e1f14;
  --secondary: #1f2e24;
  --secondary-foreground: #e9eee6;
  --muted: #1a261e;
  --muted-foreground: #a9b8ac;
  --accent: #3d2a12;
  --accent-foreground: #f2dcb8;
  --destructive: #d12a44;
  --destructive-foreground: #ffffff;
  --border: #2f4034;
  --input: #6f8576;
  --ring: #e0963f;
  --chart-1: #86c79a;
  --chart-2: #ef5a6f;
  --chart-3: #e0963f;
  --chart-4: #a9b8ac;
  --chart-5: #5f9a74;
  --sidebar: #0c120e;
  --sidebar-foreground: #e9eee6;
  --sidebar-primary: #86c79a;
  --sidebar-primary-foreground: #0e1f14;
  --sidebar-accent: #3d2a12;
  --sidebar-accent-foreground: #f2dcb8;
  --sidebar-border: #2f4034;
  --sidebar-ring: #e0963f;
  --copper: #e8a24e;
}

/* header and footer: deep hardwood green bar with a copper rule, in both colour modes (mirrored in site.json participant.theme) */
[data-theme-region="header"],
[data-theme-region="footer"] {
  --background: #14281d;
  --foreground: #f1f3ec;
  --muted: #223b2b;
  --muted-foreground: #c3d0c5;
  --border: #b8741a;
  --primary: #e0963f;
  --primary-foreground: #1b1008;
  --ring: #e8b56f;
  background: #14281d;
  color: #f1f3ec;
}

/* ---------- base type ---------- */
body {
  font-family: var(--font-sans);
}
main :is(h1, h2, h3),
[data-theme-region="footer"] :is(h2, .ero-footer__name) {
  font-family: var(--font-serif);
}
:focus-visible {
  outline-color: var(--ring);
}

/* ---------- header ---------- */
/* The template focus ring is a 50% alpha box-shadow; a solid outline keeps it above 3:1 on the green bar. */
[data-theme-region="header"] :is(a, button):focus-visible {
  outline: 3px solid #e8b56f;
  outline-offset: 2px;
  box-shadow: none;
}
[data-site-header] [data-header-brand] img {
  height: 3.25rem;
  max-width: none;
  width: auto;
}
[data-site-header] [data-header-actions] a[href$="/register"] {
  font-weight: 700;
}

/* ---------- buttons and links (home) ---------- */
.ero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.5rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ero-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.ero-btn--solid {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.ero-btn--solid:hover {
  background: color-mix(in srgb, var(--primary) 85%, var(--foreground));
  border-color: color-mix(in srgb, var(--primary) 85%, var(--foreground));
}
.ero-btn--line {
  background: transparent;
  border-color: currentColor;
  color: var(--foreground);
}
.ero-btn--line:hover {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}
.ero-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.ero-link:hover {
  color: var(--copper);
}

/* ---------- home hero: the badge, the club name and the trail photo ---------- */
.ero-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(35rem, 75vh);
  background: #173325;
}
.ero-hero__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem);
  padding-left: max(clamp(1.25rem, 4vw, 4rem), calc((100vw - 76rem) / 2 + 2rem));
  background: #173325;
  color: #f3f5ee;
  text-align: left;
}
.ero-hero__badge {
  width: 8.5rem;
  height: auto;
}
.ero-hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.ero-hero__lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: #e8b56f;
}
.ero-hero__intro {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #dfe6dc;
}
.ero-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.ero-hero .ero-btn--solid {
  background: #e0963f;
  border-color: #e0963f;
  color: #1b1008;
}
.ero-hero .ero-btn--solid:hover {
  background: #f0ad5c;
  border-color: #f0ad5c;
}
.ero-hero .ero-btn--line {
  color: #f3f5ee;
}
.ero-hero .ero-btn--line:hover {
  background: #f3f5ee;
  border-color: #f3f5ee;
  color: #173325;
}
.ero-hero .ero-btn:focus-visible {
  outline-color: #e8b56f;
}
.ero-hero__photo {
  position: relative;
  min-height: 16rem;
}
.ero-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

/* ---------- home: community text and the field photo ---------- */
.ero-club {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
}
.ero-club__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
}
.ero-club__text p {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--foreground);
}
.ero-club__figure {
  margin: 0;
}
/* The photo file has a caption baked into its bottom edge: the crop hides it, the caption below is live text. */
.ero-club__crop {
  aspect-ratio: 841 / 212;
  overflow: hidden;
  border-radius: var(--radius);
}
.ero-club__crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.ero-club__figure figcaption {
  margin-top: 0.85rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--copper);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--foreground);
}

/* ---------- home: join band ---------- */
.ero-join {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-block: 1px solid var(--border);
}
.ero-join__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.25rem clamp(1.25rem, 4vw, 2rem);
}
.ero-join h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
}
.ero-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- inner pages ---------- */
main > section.py-16 {
  padding-block: 2.5rem 3.5rem;
}
main h1.text-3xl {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
main .cms-rich-content {
  max-width: 68ch;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: left;
}
main .cms-rich-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
main .cms-rich-content a:hover {
  color: var(--copper);
}
main article.rounded-lg {
  border-radius: var(--radius);
}

/* about page: text on the left at a readable measure, badge beside it */
.ero-about {
  padding: 2.5rem 0 3.5rem;
}
.ero-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(0, 17rem);
  grid-template-areas: "title badge" "text badge";
  column-gap: clamp(2rem, 6vw, 5rem);
  align-content: start;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.ero-about__inner > h1 {
  grid-area: title;
  margin: 0 0 1.25rem;
}
.ero-about__badge {
  grid-area: badge;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
}
.ero-about__text {
  grid-area: text;
}

/* ---------- footer ---------- */
.ero-footer {
  border-top: 3px solid #b8741a;
}
.ero-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2rem) 2.25rem;
  text-align: left;
}
.ero-footer__brand p {
  margin: 0 0 0.5rem;
  max-width: 38ch;
  font-size: 0.975rem;
  line-height: 1.55;
  color: #d5ddd2;
}
.ero-footer__brand .ero-footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.ero-footer__logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.ero-footer__logo img {
  display: block;
  width: 5.5rem;
  height: auto;
}
.ero-footer__col h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8b56f;
}
.ero-footer__col ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.975rem;
  color: #d5ddd2;
}
.ero-footer a {
  color: #f1f3ec;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ero-footer a:hover {
  color: #e8b56f;
}
.ero-footer a:focus-visible {
  outline: 3px solid #e8b56f;
  outline-offset: 3px;
}
.ero-footer__base {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  border-top: 1px solid #2f4a3a;
  font-size: 0.85rem;
  color: #c3d0c5;
}

/* ---------- narrow screens ---------- */
@media (max-width: 52rem) {
  .ero-hero__panel {
    padding-left: clamp(1.25rem, 4vw, 4rem);
  }
  .ero-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .ero-hero__photo {
    order: -1;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .ero-hero__badge {
    width: 6.5rem;
  }
  .ero-club {
    grid-template-columns: minmax(0, 1fr);
  }
  .ero-about__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "badge" "text";
  }
  .ero-about__badge {
    width: 9rem;
    margin: 0 0 1.25rem;
  }
  .ero-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 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; }
