/* Fonts are loaded once from the document head (see layouts/base.njk). */

/* Alpine.js utilities */
[x-cloak] { display: none !important; }

/* Design tokens live in tokens.css (loaded before this file). */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.main {
  padding-bottom: 40px !important;
}

.site-footer { 
 margin-top: 40px !important;
}

body {
  font-family: var(--font-serif), Times New Roman, Times, serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Keep Public Sans for headings and navigation */
h1, h2, h3, h4, h5, h6,
.site-nav,
.nav-links,
.nav-links a,
.mobile-nav,
.button,
.hero-buttons,
.site-header .desktop-nav a,
.site-header .mobile-nav a {
  font-family: var(--font-sans), sans-serif;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  margin-top: 0;
  box-sizing: border-box;
}

.hero-section .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Above phone width the hero keeps the same side padding as the header and
   page container, so hero titles line up with the logo. */
@media (min-width: 769px) {
  .hero-section .container { padding: 0 2rem; }
}

.club-hero-content, .event-hero-content {
  text-align: left;
  margin: 0 auto;
}

/* Header styles */
.site-header {
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
  background: linear-gradient(135deg, #09484ad6 0%, #09484A 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Transparent header for the homepage and pages that set transparentHeader */
.home .site-header,
.transparent-header .site-header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  box-shadow: none;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styles */
.site-header .logo a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}

.site-header .logo-image {
  height: 70px;
  width: auto;
}

/* Desktop navigation */
.site-header .desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.site-header .desktop-nav li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.site-header .desktop-nav a,
.site-header .desktop-nav .dropdown-toggle {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
  position: relative;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.02rem;
  padding: 0.75rem 0; /* Add consistent padding */
  display: inline-block; /* Change to inline-block */
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav .dropdown-toggle:hover {
  opacity: 0.8;
}

.site-header .desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s;
}

.site-header .desktop-nav a:hover::after {
  width: 100%;
}

/* Prevent the underline effect on dropdown toggle */
.site-header .desktop-nav .dropdown-toggle::after {
  display: none;
}

/* Dropdown specific styles */
.site-header .desktop-nav .has-dropdown {
  position: relative;
}

.site-header .desktop-nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.site-header .desktop-nav .dropdown-arrow {
  margin-left: 5px;
  font-size: 10px;
  display: inline-block;
  vertical-align: middle;
}

.site-header .desktop-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.site-header .desktop-nav .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .desktop-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  white-space: nowrap;
  text-transform: none;
  font-size: 0.9rem;
}

.site-header .desktop-nav .dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/* Mobile menu toggle button */
.site-header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.site-header .hamburger-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 20px;
}

.site-header .bar {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.site-header .bar:nth-child(1) {
  top: 0px;
}

.site-header .bar:nth-child(2) {
  top: 6px;
}

.site-header .bar:nth-child(3) {
  top: 12px;
}

.site-header .bar:nth-child(4) {
  top: 18px;
}

/* Full screen mobile menu */
.site-header .mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #096459;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}

.site-header .mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.site-header .mobile-menu-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.site-header .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.site-header .mobile-menu-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
}

/* Mobile navigation */
.site-header .mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .mobile-nav li {
  margin-bottom: 1.5rem;
}

.site-header .mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
}

.site-header .mobile-nav a:hover {
  opacity: 0.8;
}

/* Footer styles */
.site-footer {
  background: #000000;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.site-footer .logo-column {
  grid-column: span 1;
}

.site-footer .footer-logo h3,
.site-footer .footer-logo .footer-logo-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.site-footer .tagline {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-footer .footer-blurb {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

.site-footer .footer-column {
  text-align: left !important;
}

.site-footer .footer-column h2 {
  text-align: left !important;
  display: flex;
  align-items: center;
  padding-left: 0;
}

.site-footer .footer-column h2::after {
  display: none !important;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.75rem;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.site-footer .footer-links a:hover {
  color: #9ee0d8;
  padding-left: 5px;
}

.site-footer .footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.site-footer .footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .site-footer .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  
  .site-footer .footer-column:nth-child(5) {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 992px) {
  .site-footer .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .site-footer .logo-column {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .site-footer .footer-content {
    grid-template-columns: 1fr;
  }
  .site-footer .logo-column {
    grid-column: span 1;
  }
  .site-footer .footer-column h2::after {
    display: none !important;
  }
  .site-footer .footer-column,
  .site-footer .footer-links,
  .site-footer .footer-links li,
  .site-footer .footer-links a {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
  }
  .site-footer .footer-bottom {
    text-align: left;
  }
}

/* Auction Card Styles */
@import "auction-card.css";
/* Club Card Styles */
.club-card {
  background-color: white;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*Showcase styles*/
.club-showcase-badge {
  position: absolute;
  /*top: -5px;*/
  right: 0px;
  background-color: #09484A;
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  z-index: 10;
  font-style: italic;
  /* display: none; */
  width: 100%;
  text-align: center;
}

/* Top banner badge for showcase club pages */
.hero-section-showcase .club-showcase-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #09484A;
  color: #fff;
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  z-index: 20;
  font-style: italic;
  text-align: center;
}

/* Featured badge shown on cards */
.club-card .club-showcase-badge {
  width: 100%;
  left: 0;
  right: auto;
  top: 0;
  text-align: center;
}

.showcase-about-expanded ul, .showcase-map ul, .showcase-related-clubs ul {
  list-style: square;
  padding-left: 20px;
  padding-bottom: 20px;
}

.showcase-about-expanded ul li::marker, .showcase-map ul li::marker, .showcase-related-clubs ul li::marker {
  color: var(--button-colour)
}

/* Featured Club Card Styles */
.featured-club-card {
  border: 1px solid #e0e0e0;
}

.featured-club-card .club-image {
  height: 265px;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-club-card .club-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-club-card:hover .club-image img {
  transform: scale(1.05);
}

/* Standard Club Card Styles */
.standard-club-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.standard-club-card .club-content {
  padding-bottom: 0.5rem;
}

.club-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.club-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.club-location {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.club-category {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f2f2f2;
  color: #333;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.club-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #FFD700;
  color: #333;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  z-index: 10;
}

.club-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 140px;
}

.button-primary {
  background-color: var(--button-colour);
  color: white;
  text-transform: uppercase; /* Making text uppercase */
  font-family: var(--font-sans), sans-serif; /* Using Public Sans for button text */
}

a.button.button-primary.header-cta-button.desktop-only {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  font-family: var(--font-sans), sans-serif;
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  border-color: black;
  border-image: initial;
}

.button-primary:hover {
  background-color: #8cceC6; /* Slightly darker shade on hover */
  color: black;
  text-decoration: none;
  border-color: #8cceC6;
}

.button-secondary {
    background-color: white; /* Changed to white */
    color: black; /* Changed text to black */
    border: 1px solid black; /* Added border for consistency */
}

.button-secondary:hover {
  background-color: #eee;
  color: black;
  text-decoration: none;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Event Card Styles */
.event-card {
  background-color: #09484A !important;
  color: white;
  border-radius: 8px;
  overflow: visible;
  box-shadow: none !important;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* margin-bottom: 60px; */
}

/* Club Events Listing page specific style */
.club-events-page .event-card {
  background-color: white !important;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.club-events-page .event-card .event-title a {
  color: #333;
}

.club-events-page .event-card .event-meta {
  color: #555;
}

.club-events-page .event-card .event-location, 
.club-events-page .event-card .event-time {
  color: #555;
}

.club-events-page .event-card .event-categories .event-category {
  background-color: rgba(56, 142, 60, 0.1);
  color: #1b5e20;
}

/* Auction Listing page specific style */
.auction-page .event-card {
  background-color: white !important;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.auction-page .event-card .event-title {
  color: #333;
}

.auction-page .event-card .event-location,
.auction-page .event-card .event-time {
  color: #555;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.event-image {
  height: 270px;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

/* Brand-coloured placeholder: shown when an event has no bespoke artwork
   and its eventImageUrl ends in /event-placeholder-brand.svg. Renders the
   event's own title centred in white serif on a brand-green gradient, so
   the listing doesn't read as a Classic Car Clubs UK production.
   Absolute-positioned against .event-image (position: relative, 270px tall)
   because the wrapping <a> is inline and would collapse height: 100% to 0. */
.event-card .event-image > a {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
}
.event-card .event-image .event-image-brand-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1b5e20 0%, #0e3a13 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
.event-card .event-image .event-image-brand-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.event-card .event-image .event-image-brand-title {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  position: relative;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-decoration: none;
}

/* Larger variant for the event detail page hero */
.event-gallery-brand-placeholder {
  background: linear-gradient(135deg, #1b5e20 0%, #0e3a13 100%);
  border-radius: 8px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.event-gallery-brand-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.event-gallery-brand-title {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  max-width: 90%;
}

/* Fuller event pages: lead image, highlights and the rest of the weekend */
.event-lead {
  position: relative;
  margin-bottom: 2rem;
}

.event-lead img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.event-lead__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.event-description p + p {
  margin-top: 1rem;
}

/* Extra sections on an event page (eventSections, eventRecap). */
.event-description + .event-description {
  margin-top: 2rem;
}

.event-description ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.event-description li + li {
  margin-top: 0.5rem;
}

.event-description ul + p {
  margin-top: 1rem;
}

.event-description a {
  color: var(--teal-700);
  text-decoration: underline;
}

.event-highlights,
.event-highlights + .event-details,
.event-weekend {
  margin-top: 2.5rem;
}

.event-highlights__grid,
.event-weekend__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.event-highlight {
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--teal-700);
  background: #f6f6f1;
}

.event-highlight h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.event-highlight p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-weekend__item {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #e0e0d9;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.2s;
}

.event-weekend__item:hover {
  border-color: var(--teal-700);
}

.event-weekend__when {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.event-weekend__title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.event-weekend__text {
  display: block;
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 639px) {
  .event-lead__badge {
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 640px) {
  .event-highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-weekend__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-weekend__grid:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--button-colour);
  color: white;
  border-radius: 4px;
  text-align: center;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.event-location, .event-time {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.event-price {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-color);
}

.event-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}
/* Highlights on auction cards (auctions index, homepage, auction-house pages).
   Lot lines are long, so they sit in a compact list under a small label, capped
   at three with a link to the rest. Colours inherit so the block works on the
   white listing cards and the teal homepage cards alike. */
.auction-lots {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.auction-lots__label {
  font-family: var(--font-display);
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* 0.75, not lower: at 0.65 the #333 label on a white card blends to about
     4.3:1, under the 4.5:1 that small text needs. */
  opacity: 0.75;
  margin: 0 0 0.5rem;
}

.auction-lots__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.auction-lots__list li {
  position: relative;
  padding-left: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--text-meta);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.auction-lots__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.auction-lots__more {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.auction-lots__more:hover {
  opacity: 1;
  text-decoration: underline;
}


.event-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(27, 94, 32, 0.85);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Search and Filter Styles */
.search-container {
  padding: 1.75rem;
  margin-bottom: 2rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.search-form {
  width: 100%;
}

.search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.custom-search-group {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.custom-search-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.custom-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.custom-search-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #000;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right center;
  padding: 0.75rem 1rem 0.75rem 2.5rem !important;
}

select.custom-search-input option {
  color: #333;
  background-color: white;
  padding: 0.5rem;
}



.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  z-index: 1;
  pointer-events: none;
}

.custom-search-group label.input-label {
  position: absolute;
  left: 12px;
  top: 13px;
  color: #666;
  z-index: 1;
}

.custom-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--button-colour);
  color: white;
  border: none;
  border-radius: 1px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: var(--secondary-color);
}

.reset-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: #fff;
  border: 0px solid #ddd;
  border-radius: 1px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.reset-button:hover {
  background-color: #f0f0f0;
  color: #333;
}

@media (max-width: 768px) {
  .search-grid {
    flex-direction: column;
  }

  .custom-search-group {
    width: 100%;
  }

  select#search-category, select#search-location {
    min-height: 50px;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.5rem;
}

.pagination-number,
.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-number:hover,
.pagination-arrow:hover {
  background-color: #e8f5e9;
  border-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-number.active {
  color: white;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  border-color: #1b5e20;
  box-shadow: 0 2px 5px rgba(27, 94, 32, 0.4);
}

.pagination-arrow {
  color: #1b5e20;
  font-weight: bold;
  padding: 0 1rem;
  white-space: nowrap;
}

.pagination-arrow.disabled {
  color: #aaa;
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.pagination-ellipsis {
  color: #666;
  padding: 0 0.5rem;
  font-weight: bold;
}

.pagination-info {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

@media (max-width: 500px) {
  .pagination-controls {
    flex-wrap: wrap;
  }

  .pagination-number {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }

  .pagination-arrow {
    padding: 0 0.75rem;
    font-size: 0.9rem;
  }
}

/* Club Websites Page */
.features-section {
  padding: 3rem 0;
  background-color: #f5f5f5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
    color: black;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.8rem;
}

.pricing-section {
  padding: 3rem 0 0 0;
}

.pricing-card {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pricing-header {
  background-color: #1c4b45;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.pricing-header h3 {
  margin: 0;
  font-size: 1.8rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0.5rem 0 0;
}

.pricing-price span{
font-size:1.2rem
}

.pricing-subtext {
  font-size: 0.95rem;
  color: #cfe3de;
  margin: 0.75rem 0 0;
}

.pricing-features {
  padding: 2rem;
}

.pricing-features h4 {
  margin-top: 0;
  color: #285A43;
}

.pricing-features ul {
  list-style-type: none;
  padding: 0;
}

.pricing-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 2rem;
}

.pricing-features li:before {
  content: "✓";
  color: #9ee0d8;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.contact-section {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-card h3 {
  color: #285A43;
  margin-top: 0;
}

.contact-card a {
  color: #285A43;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #9ee0d8;
}

/* Newsletter Section Styles (Deprecated) */
.newsletter-section {
  padding: 4rem 0;
  background-color: #f5f5f5;
  margin-top: 3rem;
}

.newsletter-container {
  background-color: white;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-subtitle {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: 'Public Sans', sans-serif;
}

.newsletter-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #000;
  line-height: 1.2;
  font-family: 'Public Sans', sans-serif;
}

.newsletter-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.newsletter-form {
  margin-top: 2rem;
}

.newsletter-form-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #333;
  font-family: 'Public Sans', sans-serif;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
  outline: none;
  border-color: #9ee0d8;
  box-shadow: 0 0 0 3px rgba(158, 224, 216, 0.2);
}

.newsletter-submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  margin-top: 1.55rem;
}

.newsletter-disclaimer {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 1.5rem;
  text-align: center;
}

.newsletter-disclaimer a {
  color: #666;
  text-decoration: underline;
}

.newsletter-disclaimer a:hover {
  color: #333;
}

.newsletter-success, .newsletter-error {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.newsletter-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.newsletter-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
  .newsletter-container {
    padding: 2rem;
  }
  
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .newsletter-form-fields {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 5px 0;
  font-size: 14px;
  margin-left: 2px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li a {
  color: var(--primary-color); /* Changed to black */
  text-decoration: none;
}

.hero-section .breadcrumbs li a {
  color: white;
  opacity: 0.9;
}

.breadcrumbs li a:hover {
  text-decoration: underline;
  opacity: 1;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #aaa;
}

.hero-section .breadcrumbs li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs li:last-child a {
  color: #666;
  pointer-events: none;
}

.hero-section .breadcrumbs li:last-child a {
  color: white;
  opacity: 0.7;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 850px;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
}

.home-hero-section {
  align-items: flex-end;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
}

.home-hero-content {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  max-width: 800px;
  align-self: flex-end;
  padding-bottom: 50px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: right top;
}

.club-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/images/classic-car-club-meeting-2025.avif');
  background-size: cover;
  background-position: center;
  padding: 0;
}

.event-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/classic-car-events.avif');
  background-size: cover;
  background-position: center;
  padding: 0;
}

.advertise-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/zenified-classic-car-clubs-advertise.avif');
  background-size: cover;
  background-position: center;
  padding: 0;
  align-items: flex-end;
}

.contact-hero-section {
  height: 50vh;
  min-height: 450px;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('/assets/images/contact-hero.avif');
  background-size: cover;
  background-position: center;
  padding: 0;
}

/* Bottom-weighted overlay keeps the title legible without flattening the image */
.contact-hero-section .hero-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

/* Full-bleed signature-green band around the contact form and sidebar */
.contact-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: var(--teal-700, #09484A);
  margin-top: 0;
  padding: 3.5rem 0;
}

.contact-band .detail-content {
  max-width: 1200px;
  margin: 0 auto;
}


.hero-section-showcase {
  position: relative;
  height: 30vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/assets/images/hero-background.jpg);
  background-size: cover;
  background-position: center;
}

/* Add this new style for the showcase banner image */
.showcase-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Add styling for showcase header overlay */
.showcase-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Style for showcase header content */
.showcase-header-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
}

.hero-search {
  margin-top: 2rem;
  width: 100%;
}

.event-search {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
}

.event-search .search-grid {
  gap: 1rem;
}

.event-search .custom-search-input {
  background-color: rgba(255, 255, 255, 0.9);
  min-height: 40px;
}

.event-search label {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.event-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-title {
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  line-height: 0.9;
  text-transform: uppercase;
  margin-left: -6px;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: white;
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 3rem;
  } 

  .hero-subtitle {
    font-size: 1rem;
  }
  .home-hero-content {
    padding-bottom: 0px;
  }

  /* Shift the hero crop leftward on mobile to reveal more of the central content */
  .hero-video {
    object-position: 75% top;
  }

  /* Add this new style for mobile hero-section-showcase */
  .hero-section-showcase {
    height: auto;
    min-height: 350px;
    position: relative;
    overflow: hidden;
  }
  
  /* Ensure the showcase banner fully covers on mobile */
  .showcase-banner {
    height: 100%;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
  }
}

/* Club Grid Styles */
.club-grid,
.club-grid.standard-club-grid,
.event-grid,
.auction-grid,
.featured-clubs .club-grid,
.featured-clubs-section .club-grid,
.featured-section .featured-grid,
.featured-clubs-section,
.featured-events-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  width: 100%;
  margin: 1.5rem 0;
}

/* Fix for "Other Upcoming Auctions" on single auction page */
.detail-content + .container .auction-grid {
  max-width: 100%;
}

.detail-content + .container .auction-grid .auction-card {
  max-width: 100%;
}

.detail-content + .container .auction-grid .auction-image {
  height: 180px;
}

/* Update responsive breakpoints for all grids */
@media (max-width: 1024px) {
  .club-grid,
  .club-grid.standard-club-grid,
  .event-grid,
  .auction-grid,
  .featured-clubs .club-grid,
  .featured-clubs-section .club-grid,
  .featured-section .featured-grid,
  .featured-clubs-section,
  .featured-events-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .club-grid,
  .club-grid.standard-club-grid,
  .event-grid,
  .auction-grid,
  .featured-clubs .club-grid,
  .featured-clubs-section .club-grid,
  .featured-section .featured-grid,
  .featured-clubs-section,
  .featured-events-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Featured club grid is handled by the general grid breakpoints above */

/* Feature Section Styles */
.featured-section {
  margin: 3rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
  line-height: 3rem;
}

.section-subtitle {
  color: #353535;
  font-size: clamp(1.375rem, 1.1667rem + .9259vw, 1.4rem);
  line-height: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 3.5rem;
}

/* A-Z Filter */
.az-filter-container {
  margin: 1.5rem 0;
  background-color: white;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-header {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #333;
}

.az-filter-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.az-filter-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.az-filter-letter:hover {
  background-color: #e8f5e9;
  border-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.az-filter-letter.active {
  color: white;
  background: #009294;
  border-color: #1b5e20;
  box-shadow: 0 2px 5px rgba(27, 94, 32, 0.4);
}

.search-status {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-status p {
  margin: 0;
  font-weight: 500;
}

.exit-search-button {
  background-color: transparent;
  border: 1px solid #856404;
  color: #856404;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.exit-search-button:hover {
  background-color: #856404;
  color: white;
}

/* Detail Page Styles */
.detail-header {
  padding: 2rem 0rem 0rem 0rem;
  margin-bottom: 2rem;
  background-color: white;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #666;
}

/* Event page, once the event has finished (club-events/event.njk). */
.event-past-note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--teal-700);
  background: var(--wash-green);
  color: var(--ink-700);
}

.event-past-note a {
  color: var(--teal-700);
  text-decoration: underline;
}

.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 0 1rem;
}

.auction-details h3 {
  margin-bottom: 0px;
}

.auction-details h2 {
  border-bottom: 1px solid #dfdfdf;
}

.detail-main {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
}

.detail-sidebar {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-sidebar-section {
  margin-bottom: 2rem;
}

.detail-sidebar-section:last-child {
  margin-bottom: 0;
}

.detail-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.club-highlights {
  padding-top: 20px;
}

.club-highlights ul {
  padding: 2px 0px 20px 20px;
}

.club-highlights ul li::marker {
  color: #009294;
}

@media (max-width: 992px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-title {
    font-size: 1.75rem;
  }
  .detail-main {
    padding: 0.2rem;
  }
}

/* Contact Form Styles */
.contact-form {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
  background-color: white;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--secondary-color);
}

/* About Section Styles */
.about-section {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  line-height: 1.6;
}

.about-image {
  text-align: center;
}

.rounded-image {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    grid-row: 1;
    margin-bottom: 1.5rem;
  }

  .about-text {
    grid-row: 2;
  }
}

/* Club Types Section Styles */
.club-types-section {
  padding: 3rem 0;
}

.club-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1200px) {
  .club-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .club-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .club-types-grid {
    grid-template-columns: 1fr;
  }
}

.club-type-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.club-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.club-type-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Leave space between text and button */
.club-type-card p:first-of-type {
  margin-bottom: 1.5rem;
}

/* Make consistent button size */
.club-type-card .button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  width: 100%;
}

/* CTA Section Styles */
.cta-section {
  padding: 3rem 0;
  background-color: #f0f7f0;
  margin-top: 3rem;
}

.cta-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 7120;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-button {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Advertise Page Styles */
.advertise-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}
.advertise-page ul {
  padding: 0;
  margin-left: 20px;
  margin-bottom:40px;
}

.advertise-page h2 {
  font-size: 1.7rem;
  padding: 1rem 0;
  margin: 0;
}

.advertise-content {
  background-color: white;
  padding: 3.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.advertise-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.advertise-option-card {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-left: 4px solid #9ee0d8;
}

.advertise-option-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.contact-details {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.advertise-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Mobile Menu with Circled Arrows */
@media (max-width: 1080px) {
  .site-header .desktop-nav {
    display: none;
  }

  .site-header .mobile-menu-toggle {
    display: block !important;
  }
  
  .header-cta-button,
  .header-cta-button.desktop-only {
    display: none !important;
  }
  
  .site-header .hamburger-icon {
    display: block !important;
  }
  
  .site-header .bar {
    display: block !important;
  }
  .auction-hero-section {
    position: relative;
    height: 50vh;
    min-height: 450px;
    padding: 0;
}
}

/* Additional club grid settings */
.club-grid {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.site-nav,
.nav-links,
.nav-links a,
.nav-item,
.mobile-nav,
.mobile-menu,
.mobile-menu-links,
.mobile-menu-links a {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  font-weight: 500;
}

.site-nav {
  background-color: rgba(0, 0, 0, 0.7); /* More transparent header */
  padding: 1rem 0;
  backdrop-filter: blur(5px); /* Adds blur effect */
}

section.standard-section {
    padding-top: 3rem;
}

/* Remove global padding */
/* main {
    padding-top: 110px; 
} */

/* Add padding only to non-home pages */
/* body:not(.home) main {
    padding-top: 110px; 
} */

.site-header .bar:nth-child(1) {
  top: 0px;
}

/* Add negative margin ONLY to specific hero sections on non-home pages */
.event-hero-section,
.club-hero-section,
.advertise-hero-section,
.contact-hero-section,
.showcase-hero-section,
.auction-hero-section,
.secondary-hero-section {
    position: relative; /* Ensure stacking context if needed */
    z-index: 5; /* Ensure it's behind the header (z-index 1000) */
}

/* Apply negative margin only on larger screens */
@media (min-width: 769px) { /* Use breakpoint just above mobile */
  .event-hero-section,
  .club-hero-section,
  .advertise-hero-section,
  .contact-hero-section,
  .showcase-hero-section {
    margin-top: -104px; /* Adjust value as needed */
  }

  /* These heroes slide up behind the header but keep their original
     visible height and content position: the 104px pulled behind the
     bar is added back as top padding, outside the declared height
     (content-box), so only the image gains ground. */
  .hero-section.auction-hero-section,
  .hero-section.secondary-hero-section {
    margin-top: -104px;
    box-sizing: content-box;
    padding-top: 104px;
  }

  /* With a transparent (absolute) header there is no bar to slide behind:
     the hero already starts at the top of the page. Keep the 104px padding
     so breadcrumbs and title clear the floating header. */
  .transparent-header .hero-section.secondary-hero-section {
    margin-top: 0;
  }
}

/* On phones the secondary hero normally sits below a solid header. With the
   header floating, pad the hero so its content clears the bar (1rem padding
   top and bottom around a 50px logo). */
@media (max-width: 768px) {
  .transparent-header .hero-section.secondary-hero-section {
    box-sizing: content-box;
    padding-top: 82px;
  }
}

/* Ensure no negative margin on the homepage hero */
.home-hero-section {
    margin-top: 0; /* Override if needed */
}

/* Section Styling */
.showcase-section,
.featured-section,
.standard-clubs-section,
.event-section,
.about-section,
.club-types-section,
.cta-section,
.features-section,
.pricing-section,
.contact-section,
.newsletter-section {
  margin: 3rem 0;
}

/* Remove potential duplicate margin from featured-section if it exists below */
/* .featured-section {
  margin: 3rem 0;
} */


/* Calendar View Styles */
.events-view-toggle {
  margin-bottom: 1.5rem;
}

.events-view-toggle .button.active-view {
  border-bottom: 3px solid var(--button-colour);
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

#calendar {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day-header {
  font-weight: bold;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #f5f5f5;
  border-bottom: 2px solid var(--button-colour);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.calendar-day {
  min-height: 100px;
  border: 1px solid #eee;
  padding: 0.5rem;
  position: relative;
  background: white;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background-color: #f9f9f9;
}

.calendar-day.empty {
  background: #f9f9f9;
}

.day-number {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.calendar-event {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  background: var(--button-colour);
  color: white;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Modal for event details */
.event-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.event-modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.event-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.event-modal-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.event-modal-description {
  line-height: 1.6;
}

@media (max-width: 768px) {
  #calendar {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.9rem;
    gap: 0.25rem;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 0.25rem;
  }
  
  .day-number {
    font-size: 0.9rem;
  }
  
  .calendar-event {
    padding: 0.15rem 0.25rem;
    font-size: 0.7rem;
  }
  
  .calendar-day-header {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
}

.secondary-hero-section {
  height: 30vh;
  min-height: 450px;
}

@media (max-width: 1080px) {
  .site-header .desktop-nav {
    display: none;
  }

  .site-header .mobile-menu-toggle {
    display: block !important;
  }
  
  .header-cta-button,
  .header-cta-button.desktop-only {
    display: none !important;
  }
  
  .site-header .hamburger-icon {
    display: block !important;
  }
  
  .site-header .bar {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.7rem;
  }
}

.auction-hero-section {
  position: relative;
  height: 50vh;
  min-height: 450px;
  padding: 0;
}

/* Phones: at least 70% of the screen tall, but growing to fit the title,
   filters and buttons. A fixed 70vh with the content pinned to the bottom
   and overflow hidden pushed the title off the top on shorter phones, where
   it was cut in half under the header (28 Nov 2026). */
@media (max-width: 768px) {
  .hero-section.auction-hero-section {
    height: auto;
    min-height: max(70vh, 450px);
    padding-top: 1.5rem;
  }
}

/* Specific background for auction listings */
.auction-page .auction-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/auctions/classic-car-auctions-2.avif');
  background-size: cover;
  /* 23% down, not top: anchored to the top, the H1 crossed the
     auctioneer's face on desktop. Phones crop the sides, so this only
     moves the desktop view. */
  background-position: 50% 23%;
}

/* Specific background for auction houses listings */
.auction-houses-page .auction-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('/assets/images/auction-houses/auction-house-hero.avif');
  background-size: cover;
  background-position: top;
}

/* Specific background for venues directory */
.venues-page .auction-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('/assets/images/venues/venues-hero.avif');
  background-size: cover;
  background-position: center;
}

/* Specific background for restorers directory */
.restorers-page .auction-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('/assets/images/restorers/restorers-hero.avif');
  background-size: cover;
  background-position: center;
}

/* Dropdown menu styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.dropdown-arrow {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown-arrow.rotate {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #27595b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #27595b;
}

/* Mobile dropdown adjustments */
@media (max-width: 1080px) {
  .dropdown {
    width: 100%;
  }
  
  .dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }
  
  .dropdown-menu a {
    padding: 0.75rem 2rem;
    color: white;
  }
  
  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Ensure [x-cloak] elements are hidden until Alpine.js initializes */
[x-cloak] {
  display: none !important;
}

/* Update desktop nav for dropdowns */
.site-header .desktop-nav .has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-header .desktop-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .desktop-nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .desktop-nav a {
  display: flex;
  align-items: center;
}

.site-header .desktop-nav .dropdown-arrow {
  margin-left: 5px;
  font-size: 10px;
  margin-bottom: 1px;
}

.site-header .desktop-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #27595b;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.site-header .desktop-nav .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .desktop-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  white-space: nowrap;
  text-transform: none;
  font-size: 0.9rem;
}

.site-header .desktop-nav .dropdown-menu a:hover {
  background-color: #27595b;
}

/* Mobile dropdown items */
.mobile-nav .mobile-dropdown-menu {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.mobile-nav .mobile-dropdown-toggle {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav .arrow-icon.rotate {
  transform: rotate(90deg);
}

/* Mobile Menu with Circled Arrows */
@media (max-width: 1080px) {
  .mobile-nav .arrow-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
  }
  .section-subtitle {
    font-size: 1.2rem;
  }
}
/* ---- Club enquiry panel (restyled properly in Phase 2 reskin) ---- */
.club-enquiry { max-width: 640px; margin: 3rem 0; padding: 2rem; background: #f5f5f5; border: 1px solid #e0e0e0; }
.club-enquiry-title { margin-top: 0; }
.club-enquiry .form-group { margin-bottom: 1rem; }
.club-enquiry label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.club-enquiry input[type="text"], .club-enquiry input[type="email"], .club-enquiry textarea { width: 100%; padding: 0.5rem; border: 1px solid #ccc; font-family: inherit; }
.club-enquiry-consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0; font-size: 0.9rem; }
.club-enquiry-consent input { margin-top: 0.2rem; }
.club-enquiry-error { color: #b00020; }
.club-enquiry-success { color: #09484A; font-weight: 500; }
.enq-hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* ===== Trevor (folded from trevor.css, Aug 2026) ===== */
/* Trevor takeover UI. Palette mapped to CCC's tokens (src/assets/css/tokens.css):
   teal-700 = signature accent, teal-900 = dark overlay wash, paper = white text
   on dark, gold-400 = existing "Featured" accent reused for the error line. */
.trevor-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-family: var(--font-display, "Public Sans", sans-serif);
  font-weight: 600;
  cursor: pointer;
  background: var(--teal-700, #09484A);
  color: var(--paper, #fff);
  box-shadow: var(--shadow-lift, 0 5px 15px rgba(0, 0, 0, 0.2));
}
.trevor-launcher:hover { filter: brightness(1.1); }

.trevor-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: color-mix(in srgb, var(--teal-900, #062f31) 97%, transparent);
  display: flex;
}
body.trevor-open { overflow: hidden; }

.trevor-panel {
  margin: auto;
  width: min(720px, 94vw);
  height: min(760px, 96dvh);
  display: flex;
  flex-direction: column;
  color: var(--paper, #f5f4f0);
  font-family: var(--font-body, "EB Garamond", serif);
}

.trevor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  letter-spacing: var(--tracking-caps, 0.08em);
  text-transform: uppercase;
  font-family: var(--font-display, "Public Sans", sans-serif);
  font-size: var(--text-tag, 0.72rem);
}
.trevor-brand em { font-style: normal; opacity: 0.6; margin-left: 0.6rem; }
.trevor-close {
  border: none; background: none; color: inherit;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* overflow-y:auto combined with justify-content:flex-end makes the
   start-edge overflow unreachable in Chrome/Safari once content grows
   taller than the stage, so the group is bottom-anchored with margin-top:auto
   on whichever leading block (hero or transcript) is visible instead. */
.trevor-stage { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.trevor-hero,
.trevor-transcript { margin-top: auto; }
.trevor-kicker {
  color: var(--mint-300, #9ee0d8);
  font-family: var(--font-display, "Public Sans", sans-serif);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow, 0.16em);
  font-size: var(--text-eyebrow, 0.78rem);
}
.trevor-hero h2 {
  font-family: var(--font-display, "Public Sans", sans-serif);
  font-size: var(--text-h2, clamp(1.9rem, 3.2vw, 2.4rem));
  line-height: var(--leading-tight, 1.15);
  margin: 0.4rem 0;
}
.trevor-sub { opacity: 0.7; max-width: 34rem; line-height: var(--leading-body, 1.7); }

.trevor-transcript { display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1rem; }
.trevor-line { margin: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-callout, 12px); max-width: 85%; }
.trevor-line-user { align-self: flex-end; background: var(--teal-700, #09484A); color: var(--paper, #fff); }
.trevor-line-agent { align-self: flex-start; background: rgba(255, 255, 255, 0.08); }

.trevor-status { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-size: var(--text-meta, 0.9rem); }
.trevor-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.trevor-bars i { width: 3px; background: var(--mint-300, #9ee0d8); border-radius: 2px; animation: trevor-bounce 0.9s ease-in-out infinite; }
.trevor-bars i:nth-child(2) { animation-delay: 0.15s; }
.trevor-bars i:nth-child(3) { animation-delay: 0.3s; }
.trevor-bars i:nth-child(4) { animation-delay: 0.45s; }
.trevor-bars i:nth-child(5) { animation-delay: 0.6s; }
@keyframes trevor-bounce { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.trevor-status[data-state='muted'] .trevor-bars i,
.trevor-status[data-state='thinking'] .trevor-bars i { animation-play-state: paused; height: 4px; }
.trevor-status button { border: 1px solid rgba(255,255,255,0.25); background: none; color: inherit; border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; font: inherit; font-size: var(--text-button, 0.8rem); }

.trevor-permission { background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-callout, 12px); padding: 1.25rem; margin-bottom: 1rem; max-width: 26rem; }
.trevor-permission h3 { margin-top: 0; font-family: var(--font-display, "Public Sans", sans-serif); }
.trevor-permission-note { font-size: var(--text-meta, 0.85rem); opacity: 0.8; }
.trevor-allow { background: var(--teal-700, #09484A); color: var(--paper, #fff); border: none; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; font: inherit; margin-right: 0.5rem; }
.trevor-deny { background: none; border: 1px solid rgba(255,255,255,0.25); color: inherit; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; font: inherit; }

.trevor-error { color: var(--gold-400, #e0a458); }

.trevor-line a.trevor-link { color: var(--mint-300, #9ee0d8); text-decoration: underline; text-underline-offset: 0.15em; word-break: break-word; }
.trevor-line a.trevor-link:hover { color: var(--paper, #fff); }
.trevor-linkcard a.trevor-link { display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.55rem 1.1rem; text-decoration: none; }
.trevor-linkcard a.trevor-link:hover { border-color: var(--mint-300, #9ee0d8); }

/* Claude-composer layout: full-width growing textarea on top, buttons on
   their own row below, so the message and the controls are always visible
   at the same time (the old single-row layout left a phone-width textarea
   a couple of words wide). */
.trevor-composer { display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-callout, 12px); padding: 0.6rem; }
.trevor-composer textarea { width: 100%; min-height: 3.2rem; max-height: 10.5rem; overflow-y: auto; resize: none; border: none; background: none; color: inherit; font: inherit; outline: none; }
.trevor-composer-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; }
.trevor-voicebtn { background: none; border: 1px solid rgba(255,255,255,0.25); color: inherit; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; font: inherit; font-size: var(--text-meta, 0.85rem); white-space: nowrap; }
.trevor-voicebtn-live { background: #a03232; border-color: #a03232; color: #fff; font-weight: 600; }
.trevor-voicebtn-live:hover { filter: brightness(1.15); }
.trevor-send { background: var(--teal-700, #09484A); color: var(--paper, #fff); border: none; border-radius: 999px; padding: 0.45rem 1.1rem; cursor: pointer; font: inherit; }

.trevor-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.9rem 0 1.2rem; }
.trevor-chip { background: none; border: 1px solid rgba(255,255,255,0.2); color: inherit; border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; font: inherit; font-size: var(--text-meta, 0.85rem); }
.trevor-chip:hover { border-color: var(--mint-300, #9ee0d8); }

@media (max-width: 640px) {
  .trevor-panel { width: 100vw; height: 100dvh; padding: 0 1rem; }
}

/* Author `display` rules beat the UA `[hidden] { display: none }` rule at
   equal origin, so every toggled-via-`.hidden` element that also carries an
   author `display` value needs an explicit [hidden] override, or it renders
   permanently regardless of the hidden attribute (this bit the overlay,
   transcript and status strip in production: they rendered full-bleed and
   the voice bars animated on every page, forever, because .trevor-overlay,
   .trevor-transcript and .trevor-status all set `display: flex` above).
   Kept last in the file (specificity already wins this on its own, but
   source order is a belt-and-braces second reason it wins, and it also
   makes this rule set trivially auditable against the toggled selectors). */
.trevor-overlay[hidden],
.trevor-transcript[hidden],
.trevor-status[hidden] {
  display: none;
}

/* Screen-reader-only text (e.g. the article title after a "Read More" link). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
