/* ==========================================================================
   Adria Owners Club UK — site stylesheet (reskin, Nov 2026)
   ========================================================================== */

:root {
  --navy: #0E3B78;
  --navy-deep: #082652;
  --red: #E2231A;
  --red-dark: #B8170F;
  --ink: #16213A;
  --slate: #5B6470;
  --line: #D6DDE6;
  --sky: #EEF3F9;
  --white: #FFFFFF;

  --font-display: "Outfit", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.7em 1.4em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: rgba(0,0,0,0.25); color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 84px;
}
.brand { flex: 0 0 auto; display: block; }
.brand img { width: clamp(180px, 22vw, 250px); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.site-nav .nav-join a { margin-left: 0.5rem; background: var(--red); color: #fff; padding-inline: 1.1rem; font-weight: 600; }
.site-nav .nav-join a:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--navy); border-radius: var(--radius);
  color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.5rem 0.9rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(8, 38, 82, 0.12);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .site-nav a { padding: 0.8rem 0.5rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav .nav-join a { margin: 0.75rem 0 0; text-align: center; border-radius: var(--radius); }
}

/* Hero: full-width photo, text in its own panel --------------------------- */
.hero { position: relative; isolation: isolate; min-height: clamp(380px, 48vw, 600px); display: flex; align-items: center; background: var(--sky); }
.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero .wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.hero-panel { max-width: 560px; }
.hero h1 { color: #fff; margin-bottom: 0.4em; text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 0 24px rgba(0,0,0,0.45); }
.hero p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #fff; margin-bottom: 1.4em; max-width: 42ch; text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 18px rgba(0,0,0,0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-dots { position: absolute; right: var(--gutter); bottom: 1.25rem; display: flex; gap: 0.5rem; z-index: 1; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgba(8,38,82,0.35); box-shadow: 0 0 0 1px rgba(8,38,82,0.4); cursor: pointer; }
.hero-dots button.is-active { background: var(--red); border-color: #fff; }
.hero-dots button:hover { background: rgba(255,255,255,0.7); }
@media (max-width: 700px) { .hero { align-items: flex-end; } .hero .wrap { padding-bottom: 3rem; } .hero-dots { left: var(--gutter); right: auto; bottom: 0.9rem; } }

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-tint { background: var(--sky); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-family: var(--font-display); font-weight: 600; }

/* Rally list — a dated list, not a card grid ----------------------------- */
.rally-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rally-list li { border-bottom: 1px solid var(--line); }
.rally-list a {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1.25rem 0; text-decoration: none; color: inherit;
}
.rally-list a:hover .rally-title { color: var(--red-dark); }
.rally-date {
  text-align: center; font-family: var(--font-display); line-height: 1;
  border-right: 2px solid var(--red); padding-right: 1rem;
}
.rally-date .d { display: block; font-size: 2rem; font-weight: 700; color: var(--navy); }
.rally-date .m { display: block; font-size: 0.95rem; font-weight: 600; color: var(--slate); margin-top: 0.3rem; }
.rally-title { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.rally-meta { display: block; color: var(--slate); margin-top: 0.2rem; }
.rally-status { font-family: var(--font-display); font-weight: 600; color: var(--red); white-space: nowrap; }
@media (max-width: 600px) {
  .rally-list a { grid-template-columns: 72px 1fr; }
  .rally-status { grid-column: 2; }
  .rally-date .d { font-size: 1.6rem; }
}
.empty-note { color: var(--slate); font-style: italic; }

/* News ------------------------------------------------------------------- */
.news-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-item time { display: block; color: var(--slate); font-size: 0.95rem; margin-bottom: 0.3rem; }
.news-item h3 { margin-bottom: 0.4rem; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { margin-bottom: 0.6rem; }

/* About (two columns: story left, three points right) -------------------- */
.about { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.about-story p { font-size: 1.2rem; max-width: none; }
.about-story .btn { margin-top: 1rem; }
.about-points { display: grid; gap: 1.75rem; }
.about-points div { padding-left: 1.25rem; border-left: 3px solid var(--red); }
.about-points h3 { margin-bottom: 0.3rem; }
.about-points p { max-width: none; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Featured (next) rally -------------------------------------------------- */
.rally-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rally-feature-img { min-height: 280px; background: var(--sky); }
.rally-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.rally-feature-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.rally-feature-body .when { font-family: var(--font-display); font-weight: 600; color: var(--red); margin-bottom: 0.4rem; }
.rally-feature-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.4rem; }
.rally-feature-body .where { color: var(--slate); margin-bottom: 1rem; }
.rally-feature-body .btn { align-self: flex-start; }
.rally-feature-body .rally-status { margin-left: 1rem; }
@media (max-width: 800px) { .rally-feature { grid-template-columns: 1fr; } .rally-feature-img { min-height: 220px; } }
.rally-list.compact { margin-top: 1.5rem; }

/* Classifieds ------------------------------------------------------------ */
.ad-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ad-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.ad-card:hover h3 { color: var(--red-dark); }
.ad-card .ad-img { flex: 0 0 auto; aspect-ratio: 4 / 3; background: var(--sky); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-card .ad-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-card .ad-noimg { font-family: var(--font-display); color: var(--slate); font-size: 0.95rem; }
.ad-card .ad-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.ad-card.ad-howto { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; }
.ad-card.ad-howto h3 { color: #fff; }
.ad-card.ad-howto p { color: rgba(255,255,255,0.88); margin-bottom: 1rem; }
.ad-card.ad-howto .btn { border-color: #fff; color: #fff; }
.ad-card.ad-howto .btn:hover { background: #fff; color: var(--navy); }
.ad-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ad-card time { display: block; color: var(--slate); font-size: 0.9rem; margin-bottom: 0.25rem; }
.ad-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.ad-card p { font-size: 1rem; color: var(--slate); max-width: none; }

/* Gallery preview -------------------------------------------------------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-tile { display: block; text-decoration: none; color: inherit; }
.gallery-tile .tile-img { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile span { display: block; margin-top: 0.6rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.gallery-more { margin-top: 2rem; }

/* Join band -------------------------------------------------------------- */
.join-band { background: var(--navy); color: #fff; }
.join-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.join-band h2 { color: #fff; margin: 0 0 0.3em; }
.join-band p { color: rgba(255,255,255,0.88); margin: 0; }
.join-band .btn { flex: 0 0 auto; }

.official-note { font-size: 0.95rem; color: var(--slate); max-width: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--sky); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 200px; margin-bottom: 1rem; }
.site-footer h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  color: var(--slate); font-size: 0.9rem;
}

/* Inner pages (shared) --------------------------------------------------- */
.page-head { background: var(--sky); border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { margin: 0; }
.page-head p { color: var(--slate); margin-top: 0.4em; font-size: 1.2rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }

/* Breadcrumbs & page-head extras ---------------------------------------- */
.crumbs { font-size: 0.95rem; color: var(--slate); margin-bottom: 0.75rem; }
.crumbs a { text-decoration: none; }
.page-head .when { font-family: var(--font-display); font-weight: 600; color: var(--red); margin-bottom: 0.3rem; display: block; }
.page-head .rally-status { margin-left: 0.75rem; }

/* Rally cards (rallies page) --------------------------------------------- */
.rally-cards { display: grid; gap: 2rem; }
.rally-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.rally-card-img { display: block; min-height: 240px; background: var(--sky); }
.rally-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rally-card-body { padding: clamp(1.25rem, 3vw, 2rem); }
.rally-card-body .when { font-family: var(--font-display); font-weight: 600; color: var(--red); margin-bottom: 0.3rem; }
.rally-card-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0.3rem; }
.rally-card-body h2 a { text-decoration: none; }
.rally-card-body h2 a:hover { text-decoration: underline; }
.rally-card-body .where { color: var(--slate); margin-bottom: 0.75rem; }
.rally-card-body p { margin-bottom: 1.25rem; }
.rally-card.is-cancelled .rally-card-img img { filter: grayscale(1); opacity: 0.7; }
@media (max-width: 700px) { .rally-card { grid-template-columns: 1fr; } .rally-card-img { min-height: 200px; } }

/* Rally detail ----------------------------------------------------------- */
.rally-detail { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: start; }
@media (max-width: 800px) { .rally-detail { grid-template-columns: 1fr; } }
.rally-detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.rally-detail-main h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.rally-detail-main h2:first-of-type { margin-top: 0; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); display: block; }
.side-box { background: var(--sky); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.side-box h3 { margin-bottom: 0.5rem; }
.side-box p { font-size: 1rem; margin-bottom: 1rem; }

/* News list & article ---------------------------------------------------- */
.news-list { display: grid; gap: 2.5rem; }
.news-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.news-row:has(> div:only-child) { grid-template-columns: 1fr; }
.news-row-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.news-row time { display: block; color: var(--slate); font-size: 0.95rem; margin-bottom: 0.3rem; }
.news-row h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.news-row h2 a { text-decoration: none; }
.news-row h2 a:hover { text-decoration: underline; }
.news-row p { margin-bottom: 0.5rem; }
@media (max-width: 600px) { .news-row { grid-template-columns: 1fr; } }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }

/* Gallery pages ---------------------------------------------------------- */
.year-head { font-size: 1.4rem; margin: 2rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.year-head:first-child { margin-top: 0; }
.gallery-tile small { display: block; color: var(--slate); font-size: 0.9rem; }
.gallery-grid + .year-head { margin-top: 3rem; }
.photo-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.photo-tile { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-tile:hover img { transform: scale(1.04); }

/* Lightbox (native dialog) ----------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 38, 82, 0.92); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem 4rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; font-family: var(--font-display); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 3rem 0.5rem; } .lb-prev { left: 0.25rem; } .lb-next { right: 0.25rem; } }

/* Classifieds page ------------------------------------------------------- */
.howto-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--sky); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 2.5rem; }
.howto-band h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.howto-band p { margin: 0; }
.ad-list { display: grid; gap: 2.5rem; }
.ad-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.ad-row:has(> .ad-row-body:only-child) { grid-template-columns: 1fr; }
.ad-row time { display: block; color: var(--slate); font-size: 0.95rem; margin-bottom: 0.3rem; }
.ad-row h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.ad-row-imgs { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; align-content: start; }
.ad-row-imgs .photo-tile:first-child:nth-last-child(1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .ad-row { grid-template-columns: 1fr; } }

/* Static pages ----------------------------------------------------------- */
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.lead { font-size: 1.25rem; }
.photo-stack { display: grid; gap: 1rem; }
.photo-stack img { width: 100%; border-radius: var(--radius); }
@media (max-width: 800px) { .photo-stack { grid-template-columns: 1fr 1fr; } }

.committee { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.committee > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.committee dt { font-family: var(--font-display); font-weight: 600; color: var(--slate); }
.committee dd { margin: 0; }
@media (max-width: 500px) { .committee > div { grid-template-columns: 1fr; gap: 0.2rem; } }

.link-list { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--line); }
.link-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.link-list a { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { color: var(--slate); font-size: 0.95rem; }
.promo-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.promo-row img { width: 100%; border-radius: var(--radius); }
@media (max-width: 600px) { .promo-row { grid-template-columns: 1fr; } }

.cookie-table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1rem 0 2rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-family: var(--font-display); color: var(--navy); }

.finder-frame { width: 100%; height: 4500px; border: 0; margin-top: 1.5rem; }

/* Forms ------------------------------------------------------------------ */
.form-error { background: #FDECEC; border-left: 4px solid var(--red); color: var(--red-dark); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }
.join-form fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.join-form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem; padding: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.35rem; }
.field label span { font-weight: 400; color: var(--red); font-size: 0.9rem; margin-left: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 1px solid #B9C3D0; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14,59,120,0.25); border-color: var(--navy); }
.field-short { max-width: 240px; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--slate); font-size: 0.95rem; }
.form-note em { color: var(--red); font-style: normal; }
.btn-lg { font-size: 1.2rem; padding: 0.85em 1.8em; }
.fee { font-size: 1.1rem; }
.fee strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); }
.fee small { color: var(--slate); }
.paypal-form { margin: 1.5rem 0; }

/* Dropdown (desktop) ----------------------------------------------------- */
.site-nav .has-sub { position: relative; }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(8,38,82,0.12); padding: 0.4rem; flex-direction: column; gap: 0; z-index: 60; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a { font-weight: 500; padding: 0.55rem 0.75rem; white-space: nowrap; text-align: left; }
@media (max-width: 900px) {
  .site-nav .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .site-nav .sub a { font-size: 1.05rem; }
}

/* Tabs (buying & selling) ------------------------------------------------ */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tabs a { font-family: var(--font-display); font-weight: 600; text-decoration: none; padding: 0.7rem 1rem; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--slate); }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }

/* Classifieds grid & detail ---------------------------------------------- */
.ad-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ad-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ad-grid-3 { grid-template-columns: 1fr; } }
.ad-card .ad-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-photos { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; align-content: start; }
.ad-photos .photo-tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* News article image ----------------------------------------------------- */
.news-figure { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky); }
.news-figure img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.news-figure:hover img { opacity: 0.92; }

/* Rally card without a photo: date panel ---------------------------------- */
.rally-card-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); color: #fff; text-decoration: none; font-family: var(--font-display); line-height: 1; padding: 2rem; }
.rally-card-date .d { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; }
.rally-card-date .m { font-size: 1.4rem; font-weight: 600; margin-top: 0.4rem; color: #fff; }
.rally-card-date .y { font-size: 1rem; margin-top: 0.4rem; color: rgba(255,255,255,0.7); }
.rally-card-date:hover { background: var(--navy-deep); color: #fff; }
.rally-card.is-cancelled .rally-card-date { background: var(--slate); }
