/* ============================================================
   TrackChaser — style.css
   1. Variables / Reset
   2. Base / Typography
   3. Links
   4. Layout
   5. Header / Nav
   6. Footer
   7. Content Card
   8. Data Table
   9. Rankings
   10. Story / Narrative
   11. Utility
   ============================================================ */

/* 1. Variables / Reset */
:root {
  --color-text:    #1b1b1b;
  --color-link-text: #0082cd;
  --color-link-text-hover: #055889;
  --color-link-text-alt: #fff;
  --color-link-text-alt-hover: #d6d6d6;
  --color-bg:       #f6f6f6;
  --color-bg-header: #000f1ebd;
  --color-card-bg:  #ffffff;
  --color-border:   #00a1ff;
  --color-border-alt: #c10808;
  --color-border-dark: #000f1ebd;
  --color-guide-bg: #CFF;
  --color-table-bg: #f8f8f8;
  --max-width: 1280px;
  --header-height: 100px;
}

*, *::before, *::after { box-sizing: border-box; }

@keyframes shadowFill {
  0% {
    background-size: 0% 100%;
    text-shadow: 0 0 2px rgba(0, 43, 68, 0.1);
  }
  50% { text-shadow: 0 0 1px rgba(0, 43, 68, 0.1);}
  100% {
    background-size: 100% 100%;
    text-shadow: 0 0 1px rgba(0, 43, 68, 0);
  }
}

html { font-size: 100%; }

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Gadget, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-image: 
  linear-gradient(
    to bottom, 
    transparent 0%, 
    var(--color-bg) 250px, 
    var(--color-bg) 80%, 
    transparent 100%    
  ),
  repeating-conic-gradient(rgba(0, 0, 0, 0.05) 0% 25%, rgba(147, 147, 147, 0.31) 0% 50%);
    
  background-size: 100% 100%, 80px 80px;
  background-repeat: no-repeat, repeat;  
}

body.page-default {
  background-image: 
  linear-gradient(
    to bottom, 
    transparent 35%, 
    var(--color-bg) 50%, 
    var(--color-bg) 80%, 
    transparent 100%    
  ),
  repeating-conic-gradient(rgba(0, 0, 0, 0.05) 0% 25%, rgba(147, 147, 147, 0.31) 0% 50%) 
}

/* 2. Typography */
h1 {
  font-family: 'Faster One';
  font-size: 2.5em;
  margin-bottom: 1em;
  margin: 0 auto .75em;
  line-height: 1;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 2px rgba(0, 43, 68, 0.2);
  background-image: linear-gradient(to right, rgb(0, 43, 68), rgb(164, 0, 0));
  background-repeat: no-repeat;
  
  /* Start with 0 width */
  background-size: 0% 100%; 
  
  animation: shadowFill 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;  
  display: inline-block;
}

h2, h3 { margin: 0 0 0.5em; }
h3 { font-size: 1em; margin: 0; }
p { margin: 0 0 1em; }
.faster-one-regular {
  font-family: "Faster One", system-ui;
  font-weight: 400;
  font-style: normal;
}
.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.racing-sans-one-regular {
  font-family: "Racing Sans One", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* 3. Links */
a, a:link, a:visited { color: var(--color-link-text); text-decoration: none; transition: all 200ms ease-out; }
a:hover, a:active { color: var(--color-link-text-hover); }
a.alt-link, a.alt-link:link, a.alt-link:visited { color: var(--color-link-text-alt); }
a.alt-link:hover, a.alt-link:active { color: var(--color-link-text-alt-hover); }

/* 4. Layout */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem 5rem;
}

/* main { padding: 0 0 2rem; } */

/* 5. Header / Nav */
.site-header {
  background-color: white;
  border-bottom: 2px solid var(--color-border-alt);
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 80px;
}

.page-default .site-header { background-color: var(--color-bg-header); }

.site-header__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.site-header__logo img { display: block; }
a.site-header__logo {text-decoration: none; }
a.site-header__logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav { display: flex; gap: 0; flex-wrap: nowrap; height: 100%; }

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  align-items: center;
  justify-content: center;
  z-index: 201;
  color: black;
}

.page-default .site-nav__toggle { color: white; }

.site-nav__close {
  display: none;
}

.site-nav__item { position: relative; display: flex; align-items: center; transition: 250ms background-color ease-out; }

a.site-nav__link {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-default a.site-nav__link { color: var(--color-link-text-alt); }

a.site-nav__link:hover { color: var(--color-link-text-alt-hover); }

/* Dropdown */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid black;
  min-width: 220px;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0;
  clip-path: inset(0 0 100% 0); 
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
  --s: 20px;
  background: repeating-conic-gradient(rgba(0, 0, 0, .5) 0% 25%, rgba(255, 255, 255, .35) 0% 50%) 50% / var(--s) var(--s);
}

.site-nav__item:hover { background-color: rgba(0,0,0,.7); cursor: pointer; }

.site-nav__item:hover .site-nav__dropdown { transform: translateY(0); clip-path: inset(0 0 0% 0);}

.site-nav__item:hover a.site-nav__link { color:white; } 

.site-nav__dropdown li {
  opacity: 0;
  transform: translateY(-15px);
  transition: 
    opacity 300ms ease, 
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav__item:hover .site-nav__dropdown li {
  opacity: 1;
  transform: translateY(0);
}

.site-nav__dropdown li:nth-child(1) { transition-delay: 0ms; }
.site-nav__dropdown li:nth-child(2) { transition-delay: 30ms; }
.site-nav__dropdown li:nth-child(3) { transition-delay: 60ms; }
.site-nav__dropdown li:nth-child(3) { transition-delay: 90ms; }

.site-nav__dropdown li a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

:not(.page-default) .site-nav__dropdown li a { background: rgba(0, 0, 0, .5); }

.site-nav__dropdown li a:hover { background: rgba(0, 0, 0, .8); }

/* 6. Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to right, #002b44, var(--color-bg));
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

.site-footer a { font-weight: bold; }
.site-footer h2 { margin: 0; }

/* 7. Content Card */
.content-card {
  background-color: var(--color-card-bg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, .2);  
}

.content-card.spotlight-card {
  background-image: linear-gradient(to right, red, transparent);
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: top left;
  transition: background-size 0.5s ease;
}

.content-card.spotlight-card:hover {
  background-size: 100% 3px;
}

@media screen and (max-width: 1024px) {
  .content-card.spotlight-card {
    background-size: 100% 3px;
  }
}

.heading-container { display: flex; gap:.5em; }

.heading-container > img { height: 2.5em; }

.content-card ul { padding-left: 1.5em; }

.content-card ol { 
  margin: .25em 0 1em;
  padding-left: 2em;
}

p>img {
  width: 100%;
  object-fit: contain;
  object-position: left;
}

/* 8. Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: white;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, .2);

}


@media screen and (max-width: 480px) {
  .page-rankings .data-table {
    table-layout: fixed;
  }  
}

.data-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid var(--color-border-dark);
  white-space: nowrap;
}

.data-table td {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]::after { position: relative; top: -1px; }
.data-table th[data-sort]::after { content: ' \2195'; opacity: 0.4; font-size: 0.75em; }
.data-table th[data-sort="asc"]::after  { content: ' \2191'; opacity: 1; }
.data-table th[data-sort="desc"]::after { content: ' \2193'; opacity: 1; }

.data-table tr:nth-child(even of tr:not(.visit-note-row)) {
  background-color: #f8f8f8;
}

@media (max-width: 480px) {
  .data-table .col-id { display: none; }
}

/* 9. Rankings */
.view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border-alt);
  flex-wrap: wrap;
}

.view-tab {
  padding: 0.4rem 1rem 6px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}

.view-tab:hover { color: var(--color-text); }

.view-tab--active {
  background: white;
  border-color: var(--color-border-alt);
  color: var(--color-text);
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.2), 5px 0 5px -5px rgba(0, 0, 0, 0.2);
}

/* 10. Story / Narrative */
.story > .page-wrapper { padding: 3rem 1rem 4rem; }
.story h1 { margin-bottom: 2rem; max-width: 30ch; }
.story p { max-width: 80ch; }

/* 11. Utility */
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-0 { margin-bottom: 0; }
.no-header-offset { padding-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex-wrap { flex-wrap: wrap;}
.w-full { width: 100%; }

/* Tag pills (track profile) */
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border: 1px solid var(--color-border-alt);
  font-size: 0.8rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Stats bar (chaser profile) */
.stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stats-bar__item { text-align: center; }
.stats-bar__value { display: block; font-size: 1.5rem; font-weight: bold; }
.stats-bar__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* TID badge on chaser track list */
.track-tid { font-size: 0.75rem; color: #999; }

/* Details/summary for vnotes */
details.visit-note { margin: 0; }
details.visit-note summary { cursor: pointer; font-size: 0.75rem; color: var(--color-text); }

/* Featured gallery slideshow */

.gallery {
  --gallery-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: var(--gallery-ratio);
}

@media screen and (min-width: 768px) {
  .gallery { --gallery-ratio: 4 / 3; }
  .gallery-wrapper li figure > figcaption { font-size: 2.5rem; }
}

@media screen and (min-width: 1024px) {
  .gallery { --gallery-ratio: 16 / 9; }
  .gallery-wrapper li figure > figcaption { font-size: 3.5rem; }
}

@media screen and (min-width: 1024px) {
  .featured-gallery {
    aspect-ratio: unset;
    height: 600px;
    position: relative;
    background-color: black;
  }
}

@media screen and (min-width: 1440px) {
  .featured-gallery::before,
  .featured-gallery::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%; /* Adjust width of the fade */
    z-index: 2;
    pointer-events: none; /* Allows clicking through the scrim */
  }
  
  .featured-gallery::before {
    left: 0;
    background: linear-gradient(to right, black, transparent);
  }
  
  .featured-gallery::after {
    right: 0;
    background: linear-gradient(to left, black, transparent);
  }  

  .gallery-wrapper li figure > img {
    object-fit: none;
  }  
}

.gallery-wrapper {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.39, 0.575, 0.565, 1);
}

.gallery-wrapper > * {
  flex: 0 0 100%;
  box-sizing: border-box;
}

.gallery-wrapper li figure {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-wrapper li figure > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.gallery-wrapper li figure > figcaption {
  position: absolute;
  bottom: 2.5em;
  left: 1rem;
  right: 0;
  z-index: 10;
  color: white;
  font-size: 1.75em;
  text-transform: uppercase;
  max-width: var(--max-width);
  margin: auto;
  padding: 0 0.5em .25em;
  transition:
    opacity 200ms 500ms, 
    transform 300ms 500ms cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 2000ms 800ms ease-out;
  transition-delay: 500ms;
  will-change: opacity, transform;
  opacity: 0;
  transform: translateX(-100%);
  letter-spacing: normal;
}

.gallery-wrapper li.active-item figure > figcaption {
  opacity: 1;
  transform: translateX(0);
  letter-spacing: 0.2rem;
  transition-delay: 0;
}

.gallery-wrapper li:not(.active-item) > a {
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .gallery-wrapper li figure > figcaption { font-size: 2.5rem; bottom: 1.5em; }
}

@media screen and (min-width: 1024px) {
  .gallery-wrapper li figure > figcaption { font-size: 3.5rem; bottom: 0.75em; }
}

.gallery-nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  padding: 0;
  position: absolute;
  bottom: 2em;
  left: 50%;  
  transform: translateX(-50%);
}

.gallery-nav-menu li {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background 200ms;
}

@media screen and (min-width: 768px) {
  .gallery-nav-menu {
    gap: 0.5rem;
  }
  .gallery-nav-menu li {
    width: 10px;
    height: 10px;
  }
}

.gallery-nav-menu li.active {
  background: var(--color-border-alt);
}

/* 12. Responsive */

@media (max-width: 1023px) {
  :root {
    --header-height: 80px;
  }

  html { font-size: 93.75%; } /* ~15px */

  .site-header { height: 70px; }

  .site-header__logo img { height: 60px; }

  .site-nav__toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding-top: 1rem;
    background: #000f1e;
    gap: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-nav--open .site-nav { clip-path: inset(0 0 0 0); }
  .site-nav--open .site-nav__toggle { display: none; }

  .site-nav__close {
    display: block !important;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.4rem 0.5rem;
    z-index: 100;
  }

  .site-nav__item {
    height: auto;
    width: 100%;
    flex-wrap: wrap;
  }

  .site-nav__item:hover { background-color: transparent; }

  a.site-nav__link {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    color: white;
  }

  .site-nav__dropdown { 
    width: 100%;
    position: static;
    min-width: auto;
    clip-path: none;
   }
   .site-nav__dropdown li {
    opacity: 1;
    transform: none;
    line-height: clamp(1.5, 3vh, 2.5);
   }
   .site-nav__dropdown li a {
    padding: .25rem 2rem;
   }
}

@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  html { font-size: 87.5%; } /* 14px */

  .site-header { height: 60px; }

  .site-header__logo img { height: 50px; }
}

/* 13. Chaser Profile */
.chaser-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .chaser-header h1,
  .story h1 {
    word-break: break-word;
    font-size: 2em;
  }
}

.chaser-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .chaser-avatar {    
    width: 70px;
    height: 70px;
  }
  .chaser-header h1 {
    word-break: break-word;
    font-size: 2em;
  }
}

.chaser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chaser-avatar__initials {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

.chaser-info h1 { margin-bottom: 0.25rem; }
.chaser-info p { margin: 0 0 0.2rem; font-size: 0.9rem; color: #555; }

.visit-note-row td {
  background: #e9e9e9;
  padding: 0.125rem 0.6rem;
  border-bottom: 1px solid #ddd;
  font-size: 0.875rem;
}

.visit-note-row td p {
  margin: 0;
}

/* 14. Filter Form */
.filter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.filter-form label,
.name-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-form select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.875rem;
  background: white;
  min-width: 160px;
  cursor: pointer;
}

.filter-form input[type="text"],
.filter-form input[type="search"] {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.875rem;
  background: white;
  min-width: 200px;
}

.name-search-wrap input[type="search"] {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.875rem;
  background: white;
  min-width: 240px;
  align-self: flex-start;
}

.filter-form button[type="submit"] {
  padding: 0.4rem 1rem;
  background: var(--color-border);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.875rem;
  align-self: flex-end;
}

.filter-form button.btn-search {
  background: black;
  padding: 0.4rem 0.5rem;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.875rem;
}

.filter-form button[type="submit"]:hover { background: var(--color-link-text-hover); }

/* 15. Track Profile */
.track-image {
  max-height: 360px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.track-gallery { position: relative; }

.track-gallery__img { 
  width: 100%;
  height: 360px;
  object-fit: contain;  
  display: none; 
}
.track-gallery__img--active { display: block; }

.track-gallery__nav {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.track-gallery__btn {
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transition: background 150ms ease;
}
.track-gallery__btn:hover { background: rgba(0, 0, 0, 0.85); }

.track-header { margin-bottom: 1rem; }
.track-header h1 { margin-bottom: 0.35rem; }
.track-tags { margin-bottom: 1rem; }

.track-meta {
  display: grid;
  grid-template-rows: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .track-meta {
    grid-template-rows: auto;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.track-specs p { margin: 0 0 0.35rem; }

.track-gps { white-space: nowrap; }

@media (min-width: 768px) {
  .track-gps { justify-self: end; }
}

.track-config-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.track-count {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #555;
}

.pagination {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  justify-content: space-between;
}

.col-permanent { display: none; }

@media (max-width: 767px) {
  .col-location,
  .col-status { display: none; }
}

/* 16. Leadership Page */
.leadership-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.leadership-member {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 767px) {
  .leadership-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .leadership-member {
    flex-basis: calc(50% - 1.25rem);
    flex-grow: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .leadership-member {
    flex-basis: calc(33.333% - 1.25rem);    
  }
}

.leadership-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .leadership-avatar {
    width: 100px;
    height: 100px;
  }
}

.leadership-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-avatar .chaser-avatar__initials {
  font-size: 1.25rem;
}

.leadership-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
}

.leadership-info strong {
  font-size: 1rem;
}

/* 17. Homepage Grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .card-rankings {
    grid-column: span 2;
  }
}

.home-visit-form { margin-top: 2rem; }

.home-visit-cta {
  margin-top: 60px;
  text-align: center;
}

.home-visit-cta > h3 {
  font-size: 1.5rem;
}

.home-visit-cta > h3 > a {
  display: block;
}

/* 18. Contact / Submission Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 680px;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
  width: 100%;
  font-weight: normal;
}

.contact-form textarea { resize: vertical; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.contact-form .form-date {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.contact-form .form-date label { flex: 1; min-width: 120px; }

.contact-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.55rem 1.5rem;
  background: var(--color-border);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.contact-form button[type="submit"]:hover { background: var(--color-link-text-hover); }

.form-group-label {
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  margin-bottom: 0;
}

.form-optional { font-weight: normal; font-size: 0.8rem; color: #777; }

.form-radios {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.35rem;
}

.form-radio-label {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.4rem;
  font-weight: normal !important;
  align-items: center;
}

.form-message {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.form-message--success { background: #e6f7e6; color: #1a6b1a; border-left: 4px solid #1a6b1a; }
.form-message--error   { background: #fce6e6; color: #8b0000; border-left: 4px solid #8b0000; }

/* 19. Driver Project */
.driver-list { display: flex; flex-direction: column; }

.driver-entry {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.driver-entry:last-of-type { border-bottom: none; }

.driver-entry h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}