/* ============================================
   Renn Driver CSS — Matching WordPress/Astra theme
   Colors extracted from renndriver.com
   ============================================ */

:root {
  --ast-global-color-0: #3AA6B9; /* Primary teal */
  --ast-global-color-1: #2997AA; /* Link teal */
  --ast-global-color-2: #0F172A; /* Dark navy - headings */
  --ast-global-color-3: #454F5E; /* Body text */
  --ast-global-color-4: #E9F8F9; /* Light teal bg */
  --ast-global-color-5: #FFFFFF; /* White */
  --ast-global-color-6: #CAE6E8; /* Muted teal */
  --ast-global-color-7: #181823; /* Near black */
  --ast-global-color-8: #222222; /* Dark text alt */
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65em;
  color: var(--ast-global-color-3);
  background: var(--ast-global-color-5);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ast-global-color-2);
  margin-bottom: 20px;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.222rem;
  font-weight: 500;
  line-height: 1.4em;
}

h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.778rem;
  font-weight: 500;
  line-height: 1.3em;
}

h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.389rem;
  font-weight: 500;
  line-height: 1.3em;
}

h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.333rem;
  font-weight: 500;
  line-height: 1.2em;
}

h5 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.111rem;
  font-weight: 500;
  line-height: 1.2em;
}

h6 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.778rem;
  font-weight: 500;
  line-height: 1.25em;
}

p { margin-bottom: 1em; }

a {
  color: var(--ast-global-color-1);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--ast-global-color-2);
}

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

ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

blockquote {
  border-left: 4px solid var(--ast-global-color-0);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--ast-global-color-4);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}
th, td {
  padding: 0.75em 1em;
  border: 1px solid #e6e6e6;
  text-align: left;
}
th {
  background: var(--ast-global-color-2);
  color: white;
  font-weight: 500;
}

/* ---- Header ---- */
.site-header {
  background: var(--ast-global-color-5);
  border-bottom: 1px solid #e6e6e6;
  z-index: 100;
}

.ast-primary-header-bar {
  max-width: 1200px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  min-height: 0;
}

.site-branding .custom-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.site-navigation {
  display: none;
}

@media (min-width: 922px) {
  .site-navigation {
    display: block;
  }
  .mobile-menu-trigger {
    display: none;
  }
}

.main-header-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-header-menu li { margin-bottom: 0; }

.main-header-menu .menu-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.889rem;
  font-weight: 500;
  color: var(--ast-global-color-2);
  transition: color 0.2s;
}

.main-header-menu .menu-link:hover {
  color: var(--ast-global-color-0);
}

.mobile-menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ast-global-color-2);
}

.mobile-menu {
  background: var(--ast-global-color-5);
  border-top: 1px solid #e6e6e6;
  padding: 16px 20px;
}
.mobile-menu.hidden { display: none; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  margin-bottom: 0;
}
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 0.889rem;
  font-weight: 500;
  color: var(--ast-global-color-2);
  border-bottom: 1px solid #f0f0f0;
}

/* ---- Main Content ---- */
.site-main {
  min-height: 60vh;
}

/* Page layout (for Elementor pages) */
.site-main > article.entry-content {
  /* Elementor pages are full-width */
}

/* Article/Post layout */
.post-article {
  padding: 40px 0 60px;
}

.ast-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  max-width: 750px;
  margin: 0 auto;
}

.entry-title {
  font-size: 2.222rem;
  margin-bottom: 10px;
}

.post-meta {
  color: #999;
  font-size: 0.833rem;
  margin-bottom: 2em;
}

/* Entry content (WordPress article body) */
.entry-content {
  line-height: 1.65em;
}

.entry-content h2 {
  margin-top: 2em;
}

.entry-content h3 {
  margin-top: 1.5em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content img.alignnone {
  display: block;
  margin: 1em 0;
}

.entry-content img.aligncenter {
  display: block;
  margin: 1.5em auto;
}

.entry-content img.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.entry-content img.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

/* WordPress Table of Contents plugin */
#toc_container {
  background: var(--ast-global-color-4);
  border: 1px solid var(--ast-global-color-6);
  border-radius: 8px;
  padding: 20px 30px;
  margin: 1.5em 0 2em;
  display: inline-block;
}

#toc_container .toc_title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ast-global-color-2);
  margin-bottom: 0;
}

#toc_container .toc_title .toc_toggle {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ast-global-color-1);
  cursor: pointer;
  margin-left: 4px;
}
#toc_container .toc_title .toc_toggle:hover {
  text-decoration: underline;
}

#toc_container.collapsed .toc_list {
  display: none;
}
#toc_container:not(.collapsed) .toc_title {
  margin-bottom: 12px;
}

#toc_container .toc_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#toc_container .toc_list li {
  margin-bottom: 6px;
}

#toc_container .toc_list a {
  font-size: 0.889rem;
}

#toc_container .toc_number {
  color: var(--ast-global-color-0);
  font-weight: 500;
  margin-right: 6px;
}

#toc_container .toc_list ul {
  margin: 6px 0 6px 20px;
  list-style: none;
  padding: 0;
}

/* ---- Homepage ---- */

.hp-hero {
  max-width: 1140px;
  margin: 0 auto 2em;
  padding-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.hp-hero-text {
  flex: 1 1 400px;
}

.hp-hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hp-subtitle {
  font-size: 1.15rem;
  color: var(--ast-global-color-3);
}

.hp-hero-img {
  flex: 0 1 280px;
  text-align: center;
}

.hp-hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 180px;
}

.hp-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
}

.hp-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ast-global-color-3);
}

.hp-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #C0392B;
  color: white !important;
  font-size: 0.833rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
  line-height: 1;
}
.hp-btn:hover {
  background: #A93226;
}

.hp-section {
  max-width: 1140px;
  margin: 0 auto 2em;
}

.hp-section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1em;
}

/* Alternating section background */
.hp-section-alt {
  background: var(--ast-global-color-4);
  border-radius: 12px;
  padding: 0.5em 24px 2em;
}
.hp-section-alt h2 {
  margin-top: 0.4em;
}

/* ---- Essentials Grid ---- */
.hp-essentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-ess-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-ess-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.hp-ess-label {
  background: var(--ast-global-color-2);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 0;
}

.hp-ess-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hp-ess-card:hover img {
  transform: scale(1.03);
}

.hp-ess-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ast-global-color-2);
  margin: 14px 16px 4px;
}

.hp-ess-card p {
  font-size: 0.9rem;
  color: var(--ast-global-color-3);
  margin: 0 16px 16px;
}

/* ---- Hub Grid ---- */
.hp-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-hub-col {
  text-align: center;
}

.hp-hub-label {
  background: var(--ast-global-color-2);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.hp-hub-col p {
  font-size: 0.95rem;
  color: var(--ast-global-color-3);
  margin-bottom: 16px;
  padding: 0 8px;
}

.hp-hub-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--ast-global-color-2);
  color: white !important;
  font-size: 0.833rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.hp-hub-btn:hover {
  background: var(--ast-global-color-0);
}

@media (max-width: 767px) {
  .hp-essentials-grid,
  .hp-hub-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Porsche 911 Generations Grid */
.hp-gen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp-gen-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-gen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hp-gen-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.hp-gen-card:hover img {
  transform: scale(1.03);
}

.hp-gen-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 2px;
  color: var(--ast-global-color-2);
}

.hp-gen-card p {
  font-size: 0.85rem;
  color: var(--ast-global-color-3);
  margin: 0;
}

@media (max-width: 767px) {
  .hp-hero-text h1 { font-size: 1.8rem; }
  .hp-hero-img { flex: 0 1 200px; }
  .hp-gen-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hp-cta { flex-direction: column; text-align: center; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hp-gen-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card Tables (directory page) */
.card-table-wrapper { margin-bottom: 2em; }

.tablepress {
  width: 100%;
  border-collapse: collapse;
}

.tablepress th {
  background: var(--ast-global-color-2);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.889rem;
}

.tablepress td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 0.889rem;
}

.tablepress .row-hover tr:hover td {
  background: var(--ast-global-color-4);
}

/* WP blocks compatibility */
.wp-block-heading { margin-top: 1.5em; }
.wp-block-list { margin-bottom: 1.5em; }
.wp-block-image { margin: 1.5em 0; }
.wp-block-image img { border-radius: 4px; }
.wp-block-image figcaption {
  text-align: center;
  font-size: 0.833rem;
  color: #999;
  margin-top: 8px;
}

.wp-block-table { margin: 1.5em 0; }
.wp-block-table table { width: 100%; }

.wp-block-separator {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 2em 0;
}

.wp-block-quote {
  border-left: 4px solid var(--ast-global-color-0);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--ast-global-color-4);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #e6e6e6;
  margin-top: 60px;
}

.site-primary-footer-wrap {
  background: #f9f9f9;
  padding: 45px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-menu .menu-link {
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--ast-global-color-2);
}

.footer-social-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.social-link svg {
  width: 24px;
  height: 24px;
}
.social-link:hover { opacity: 0.7; }
.social-facebook { color: #1877F2; }
.social-youtube { color: #FF0000; }
.social-instagram { color: #E4405F; }

.site-below-footer-wrap {
  padding: 20px 0;
  border-top: 1px solid #e6e6e6;
}

.ast-footer-copyright p {
  font-size: 0.778rem;
  color: #999;
  margin: 0;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  html { font-size: 16px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .content-area {
    padding: 0;
  }

  .entry-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 921px) {
  .site-navigation { display: none; }
  .mobile-menu-trigger { display: block; }
}

/* ---- Back to Hub & Featured Image ---- */
.back-to-hub {
  display: inline-block;
  margin-bottom: 1.2em;
  color: var(--ast-global-color-1);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.back-to-hub:hover {
  text-decoration: underline;
}

.featured-image {
  margin-bottom: 1em;
}
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ---- Utility Box (Places/Events) ---- */
.rdss-utility-box {
  margin: 0 0 1.5em;
}

.rdss-utility-box table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  font-size: inherit;
}

.rdss-utility-box table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.rdss-utility-box table td.rdss-label {
  width: 40%;
  font-weight: 500;
  color: #374151;
}

.rdss-utility-box table td:last-child {
  color: #1f2937;
}

.rdss-utility-box table a {
  color: #5eadb0;
  text-decoration: none;
}

.rdss-utility-box table a:hover {
  text-decoration: underline;
}

.rdss-maps-embed {
  margin-top: 1.5em;
}

.rdss-maps-embed iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 4px;
}

/* ---- Guides/Resources Listing ---- */
.listing-section {
  padding: 40px 0 60px;
}

.listing-grid {
  display: grid;
  gap: 30px;
}

.listing-card {
  display: flex;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e6e6e6;
}

.listing-card-image {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
}

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card-content {
  flex: 1;
  min-width: 0;
}

.listing-card-content h3 {
  margin-bottom: 8px;
}

.listing-card-content h3 a {
  color: var(--ast-global-color-2);
}

.listing-card-content h3 a:hover {
  color: var(--ast-global-color-0);
}

.listing-card-meta {
  color: #999;
  font-size: 0.833rem;
  margin-bottom: 12px;
}

.listing-card-excerpt {
  color: var(--ast-global-color-3);
  font-size: 0.889rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-readmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--ast-global-color-1);
}

.listing-card-readmore:hover {
  color: var(--ast-global-color-2);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--ast-global-color-2);
  transition: all 0.2s;
}

.pagination-wrap a:hover {
  background: var(--ast-global-color-4);
  border-color: var(--ast-global-color-0);
  color: var(--ast-global-color-0);
}

.pagination-wrap span.active {
  background: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
  color: white;
}

/* ---- Hub Directory ---- */
.hub-wrap {
  padding: 0 0 60px;
}

/* Page Title */
.hub-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ast-global-color-2);
  letter-spacing: -0.3px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 32px;
}

/* ---- Next Up Section ---- */
.hub-nextup {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 0 32px;
}
.hub-nextup-inner {
  background: var(--ast-global-color-2);
  border-radius: 14px;
  padding: 28px 32px 32px;
}
.hub-nextup-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FCD34D;
  margin-bottom: 18px;
}
.hub-nextup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hub-nextup-single {
  grid-template-columns: 1fr;
  max-width: 540px;
}
.hub-nextup-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 24px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-nextup-card:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hub-nextup-date {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FCD34D;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.hub-nextup-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.hub-nextup-location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
}
.hub-nextup-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}
.hub-nextup-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hub-nextup-status--confirmed { color: #4ade80; }
.hub-nextup-status--tentative { color: rgba(255,255,255,0.85); }
.hub-nextup-status--cancelled { color: #f87171; }

/* Tabs */
.hub-tabs-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin: 24px 0 28px;
  padding-bottom: 0;
}
.hub-tab {
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9ca3af;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  border-radius: 6px 6px 0 0;
}
.hub-tab:hover {
  color: var(--ast-global-color-2);
  background: rgba(0,0,0,0.02);
}
.hub-tab.active {
  color: var(--ast-global-color-0);
  border-bottom-color: var(--ast-global-color-0);
  background: rgba(58,166,185,0.04);
}
.hub-tab-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.hub-tab.active .hub-tab-count {
  background: rgba(58,166,185,0.12);
  color: var(--ast-global-color-0);
}

/* ---- Event Cards (date-forward) ---- */
.hub-group {
  margin-bottom: 32px;
}
.hub-group:last-child {
  margin-bottom: 0;
}
.hub-group-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9ca3af;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
}
.hub-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-ecard {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--ast-global-color-0);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hub-ecard:hover {
  border-color: var(--ast-global-color-0);
  box-shadow: 0 4px 16px rgba(58,166,185,0.12);
  transform: translateX(2px);
}
.hub-ecard-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 16px 12px;
  background: var(--ast-global-color-0);
  color: #fff;
  text-align: center;
  flex-shrink: 0;
}
.hub-ecard-date--tbd {
  background: #6b7280;
}
.hub-ecard-month {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.hub-ecard-day {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}
.hub-ecard-tbd {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.hub-ecard-info {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}
.hub-ecard-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ast-global-color-2);
  margin: 0 0 4px;
  line-height: 1.3;
}
.hub-ecard:hover .hub-ecard-name {
  color: var(--ast-global-color-0);
}
.hub-ecard-location {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 8px;
}
.hub-ecard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
}
.hub-ecard-freq {
  color: #9ca3af;
  font-weight: 500;
}
.hub-ecard-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.hub-ecard-status--confirmed { color: #16a34a; }
.hub-ecard-status--tentative { color: #d97706; }
.hub-ecard-status--cancelled { color: #dc2626; }

/* Panels */
.hub-panel {
  display: none;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.hub-panel.active {
  display: block;
}

/* Card Grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Cards */
.hub-card {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}
.hub-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hub-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hub-card:hover .hub-card-bg {
  transform: scale(1.04);
}
.hub-card-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.hub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.hub-card-overlay h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
}
.hub-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.hub-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(58,166,185,0.2);
  color: #fff;
}

/* Filter Pills */
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hub-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.hub-pill:hover {
  border-color: var(--ast-global-color-0);
  color: var(--ast-global-color-0);
}
.hub-pill.active {
  background: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
  color: #fff;
}

/* Calendar — two-column layout */
.hub-cal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.hub-calendar {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 24px;
}
.hub-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hub-cal-header h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #e5e7eb;
  margin: 0;
}
.hub-cal-nav {
  background: #2a2a4a;
  border: 1px solid #3a3a5a;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.hub-cal-nav:hover {
  border-color: var(--ast-global-color-0);
  color: var(--ast-global-color-0);
}
.hub-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.hub-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.hub-cal-day {
  position: relative;
  text-align: center;
  padding: 10px 4px;
  font-size: 0.8rem;
  color: #4b5563;
  border-radius: 6px;
  transition: background 0.15s;
}
.hub-cal-day.empty {
  pointer-events: none;
}
.hub-cal-day.today {
  font-weight: 700;
  color: #e5e7eb;
}
.hub-cal-day.has-event {
  cursor: pointer;
  font-weight: 600;
  color: #3aa6b9;
}
.hub-cal-day.has-event:hover,
.hub-cal-day.selected {
  background: rgba(58,166,185,0.2);
}
.hub-cal-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ast-global-color-0);
  margin: 3px auto 0;
}

/* Calendar sidebar (event details) */
.hub-cal-sidebar {
  min-height: 200px;
}
.hub-cal-sidebar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 0.85rem;
}
.hub-cal-sidebar-empty p {
  margin: 0;
}
.hub-cal-event-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-cal-event-card:hover {
  border-color: var(--ast-global-color-0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hub-cal-event-card img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.hub-cal-event-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ast-global-color-2);
  font-weight: 500;
}
.hub-cal-event-card span {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* Mobile */
@media (max-width: 640px) {
  .hub-wrap {
    padding-bottom: 40px;
  }
  .hub-title {
    font-size: 1.3rem;
    padding: 0 16px;
    margin-top: 16px;
  }
  .hub-nextup {
    padding: 0 16px;
    margin-top: 20px;
  }
  .hub-nextup-inner {
    padding: 20px 18px 24px;
  }
  .hub-nextup-grid {
    grid-template-columns: 1fr;
  }
  .hub-nextup-name {
    font-size: 1.05rem;
  }
  .hub-tabs-wrap {
    padding: 0 16px;
  }
  .hub-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .hub-tab {
    padding: 10px 14px;
    white-space: nowrap;
    font-size: 0.75rem;
  }
  .hub-panel {
    padding: 0 16px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .hub-card {
    aspect-ratio: 16/9;
  }
  .hub-ecard-date {
    min-width: 60px;
    padding: 12px 8px;
  }
  .hub-ecard-day {
    font-size: 1.3rem;
  }
  .hub-ecard-info {
    padding: 12px 14px;
  }
  .hub-ecard-name {
    font-size: 0.9rem;
  }
  .hub-cal-layout {
    grid-template-columns: 1fr;
  }
  .hub-calendar {
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Editorial Section (The Renn Take) ---- */
.renn-take {
  margin-top: 1.5em;
}

.renn-take h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.389rem;
}

/* ---- Photo Gallery ---- */
.rd-gallery {
  margin-top: 1.5em;
}
.rd-gallery h2 {
  margin-bottom: 12px;
  font-size: 1.389rem;
}
.rd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.rd-gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.rd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.rd-gallery-item:hover img {
  transform: scale(1.05);
}
.rd-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.rd-gallery-item:hover .rd-gallery-caption {
  opacity: 1;
}

/* Lightbox */
.rd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.rd-lightbox.active {
  display: flex;
}
.rd-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.rd-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
.rd-lightbox-prev,
.rd-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0 16px;
}
.rd-lightbox-prev { left: 8px; }
.rd-lightbox-next { right: 8px; }
.rd-lightbox-caption {
  color: #ccc;
  margin-top: 12px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .rd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: Cards go vertical on mobile */
@media (max-width: 767px) {
  .listing-card {
    flex-direction: column;
  }

  .listing-card-image {
    width: 100%;
    height: 200px;
  }


  .rdss-utility-box table td {
    padding: 8px 12px;
    font-size: 14px;
  }

  .rdss-utility-box table td.rdss-label {
    width: 35%;
  }

  .rdss-maps-embed iframe {
    height: 280px;
  }
}

/* Responsive embed (YouTube etc) */
.ast-oembed-container,
.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.ast-oembed-container iframe,
.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Entry content extras */
.entry-content h4 {
  margin-top: 1.5em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 2em 0;
}
.entry-content ul {
  padding-left: 4em;
  margin-left: 0;
  list-style-position: outside;
}
.entry-content li {
  margin-bottom: 0.5em;
}

/* Active nav link */
.main-header-menu .menu-link.active {
  color: var(--ast-global-color-0);
}

/* (Old rd-cardtable styles removed — replaced by hp-essentials-grid and hp-hub-grid above) */

/* Hub date container */
.hub-next-date-container {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #eeeeee;
  line-height: 1.2;
  clear: both;
}
.hub-date-label, .hub-date-value { text-align: left; display: block; }
.hub-date-label {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.hub-date-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

/* Back to hub button */
.back-to-hub-btn {
  display: inline-block;
  background-color: #000;
  color: #fff !important;
  padding: 10px 24px;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid #000;
}
.back-to-hub-btn:hover {
  background-color: #333;
  border-color: #333;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================
   Contact Form
   ============================================ */
.rd-contact-form {
  max-width: 600px;
  margin-top: 1.5em;
}
.rd-contact-form .form-row {
  display: flex;
  gap: 16px;
}
.rd-contact-form .form-row .form-field {
  flex: 1;
}
.rd-contact-form .form-field {
  margin-bottom: 16px;
}
.rd-contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.889rem;
  color: var(--ast-global-color-2);
}
.rd-contact-form input[type="text"],
.rd-contact-form input[type="email"],
.rd-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ast-global-color-3);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.rd-contact-form input:focus,
.rd-contact-form textarea:focus {
  outline: none;
  border-color: var(--ast-global-color-0);
  box-shadow: 0 0 0 2px rgba(58, 166, 185, 0.15);
}
.rd-contact-form textarea {
  resize: vertical;
}
.form-submit-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--ast-global-color-2);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit-btn:hover {
  background: var(--ast-global-color-0);
}
.form-success {
  padding: 24px;
  background: var(--ast-global-color-4);
  border-radius: 8px;
  margin-top: 1.5em;
}
.form-success p {
  margin: 0;
  font-weight: 500;
  color: var(--ast-global-color-2);
}
@media (max-width: 480px) {
  .rd-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ============================================
   About Page
   ============================================ */
/* Constrain about page content to readable width */
/* WordPress artifact cleanup */
.ql-block {
  margin-bottom: 1em;
}
.ql-heading {
  margin-top: 1.5em;
}
/* data-color spans from WP editor — force inherit so text is visible */
[data-color] {
  color: inherit !important;
}
/* Strip UAGB wrapper boxes — show children normally */
.wp-block-uagb-image,
.wp-block-uagb-container {
  display: contents;
}
/* Google maps embed already rendered from structured data */
.uagb-google-map__wrap {
  display: none;
}
/* TOC container from WP plugin */
#toc_container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
}
#toc_container .toc_title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  cursor: pointer;
}
#toc_container .toc_toggle {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ast-global-color-0);
  margin-left: 8px;
  cursor: pointer;
}
#toc_container.collapsed .toc_list {
  display: none;
}
#toc_container .toc_list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#toc_container .toc_list li {
  margin: 4px 0;
  padding: 0;
}
#toc_container .toc_list li ul {
  padding-left: 16px;
}
#toc_container .toc_list a {
  color: var(--ast-global-color-2);
  text-decoration: none;
}
#toc_container .toc_list a:hover {
  color: var(--ast-global-color-0);
}
#toc_container .toc_number {
  margin-right: 6px;
  color: #9ca3af;
}
