/* ===========================
   Phoenix Classics – Base CSS
   =========================== */

body {
  /* Black background */
  color: #dddddd;
  /* Text color */
  margin: 0;
  background-color: #1a1a1a;
  overflow-x: hidden;
}

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

.container {
  margin: 0 auto;
  max-width: 800px;
  padding: 1em;
}

.site-header {
  background: #222222;
  padding: 0.2em 0;
}

.site-header .logo {
  font-size: 2em;
  font-weight: bold;
}

/* ===========================
   Polished greyscale top nav
   =========================== */

.site-nav {
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;            /* compact, tidy rhythm */
  justify-content: center;     /* centred under logo */
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  position: relative;          /* needed for active underline */
  margin: 0;                   /* explicit: reset */
}

.site-nav a {
  --bg: rgba(255,255,255,0.04);
  --bd: rgba(255,255,255,0.14);
  --txt: #e6e6e6;

  display: inline-block;
  padding: .55rem 1rem;
  min-width: 7.5rem;
  text-align: center;
  text-decoration: none;

  /* Small caps + tidy tracking */
  font-size: .95rem;
  font-variant-caps: all-small-caps;
  font-variant-numeric: proportional-nums;
  letter-spacing: .3px;

  color: var(--txt);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0.02));
  border: 1px solid var(--bd);
  border-radius: 999px;               /* elegant pill */

  /* Engraved inner shadow + soft depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 8px 18px rgba(0,0,0,0.25);

  backdrop-filter: blur(2px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.site-nav a:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 14px 26px rgba(0,0,0,0.32);
  transform: translateY(-1px);
}

/* Strong, accessible keyboard focus */
.site-nav a:focus-visible {
  outline: none;
  border-color: #fff;
  box-shadow:
    0 0 0 2px #111,
    0 0 0 4px #fff,
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}

/* Current/active page */
.site-nav a[aria-current="page"],
.site-nav .is-active > a {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.site-nav .is-active > a::after,
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #777, #fff, #777);
  border-radius: 2px;
  opacity: .9;
}

/* Mobile tweaks (keeps the grace) */
@media (max-width: 640px) {
  .site-nav ul {
    gap: .5rem;
  }
  .site-nav a {
    min-width: auto;
    padding: .5rem .9rem;
    font-size: .95rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}

/* ===========================
   Main content + headings
   =========================== */

.main-content {
  margin: 0 auto;
  align-items: center;
  padding: 0em 1em;
  text-align: center;
  max-width: 1000px;
}

.content h1 {
  color: #dddddd;
  font-size: 4em;
  text-align: center;
  max-width: 1000px;
}

.site-footer {
  background: #222222;
  color: #aaa;
  font-size: 0.9em;
  padding: 1em;
  text-align: center;
}

.flex-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2em;
  justify-content: center;
  text-align: center;
}

.logo-img {
  height: 120px;
  max-width: 100%;
}

.page-layout {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 2em;
  justify-content: space-between;
}

.pageheader {
  font-family: "Euphoria Script", cursive;
  font-weight: 800;
  padding-bottom: 0.5em;
  padding-top: 1em;
}

.pagesubheader {
  font-family: "Euphoria Script", cursive;
  font-weight: 800;
  padding-bottom: 0.5em;
  padding-top: 1em;
}

.committeeheader {
  font-family: "Euphoria Script", cursive;
  font-size: 2em;
  font-weight: 400;
}

.euphoria-script-regular {
  font-family: "Euphoria Script", cursive;
  font-style: normal;
  font-weight: 400;
}

.euphoria-script-regular-nav {
  font-family: "Euphoria Script", cursive;
  font-size: 2em;
  font-style: normal;
  font-weight: 400;
}

/* Legacy hover kept consistent with new nav (no color pop) */
.site-nav a:hover {
  color: #fff;
}

/* Mobile header adjustments */
@media screen and (max-width: 600px) {
  .logo-img { height: 120px; }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    flex-wrap: wrap;
    gap: 2em 1em;
    justify-content: center;
  }
}

/* Sidebars + content */
.sidebar-left,
.sidebar-right {
  flex-shrink: 0;
  width: 150px;
}

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

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

/* ===========================
   Home hero (letterbox banner)
   =========================== */

.home-hero {
  text-align: center;
  margin: auto;
  padding: 0em 5em;
  max-width: 800px;
}

.home-hero h1,
.home-hero h2 {
  text-align: center;
  font-family: "Euphoria Script", cursive;
  font-weight: 400;
  color: #dddddd;
}

/* Letterbox hero */
.site-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;               /* rounded edges */
  height: clamp(140px, 18vw, 240px); /* slim, responsive letterbox */
  box-shadow: 0 6px 24px rgba(0,0,0,.25); /* soft depth */
  isolation: isolate;                /* ensure blends stay inside */
}

/* The image */
.site-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focal, center 50%);
  display: block;
  filter: saturate(0.85) contrast(0.95) brightness(0.96) sepia(0.08);
  transform: translateZ(0); /* perf hint */
}

/* Subtle overlays: gradient tone + vignette */
.site-hero::before,
.site-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}

/* Gentle tone overlay (works on light/dark) */
.site-hero::before {
  background:
    linear-gradient(
      0deg,
      rgba(12,12,14,0.35) 0%,
      rgba(12,12,14,0.18) 45%,
      rgba(12,12,14,0.45) 100%
    );
  mix-blend-mode: multiply;
}

/* Soft vignette at edges */
.site-hero::after {
  background:
    radial-gradient(120% 70% at 50% 50%,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,0.13) 85%,
      rgba(0,0,0,0.28) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .site-hero img { transition: none; }
}

@media (prefers-color-scheme: dark) {
  .site-hero img { filter: saturate(0.8) contrast(0.98) brightness(0.9) sepia(0.06); }
}

/* ===========================
   Next event card + button
   =========================== */

.next-event-box {
  background: #333333;
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.next-event-box h3 {
  font-family: 'Euphoria Script', cursive;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Greyscale button to match brand (removed orange) */
.next-event-box .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(#f2f2f2, #dcdcdc);
  color: #111 !important;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #c9c9c9;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 6px 14px rgba(0,0,0,.25);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.next-event-box .btn:hover {
  transform: translateY(-1px);
  border-color: #bdbdbd;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(0,0,0,.16),
    0 10px 18px rgba(0,0,0,.32);
}

.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 600px) { /* adjust width threshold if needed */
  .hide-mobile { display: none; }
}

.footer-logo {
  display: block;
  margin: 0 auto;
}

/* ===========================
   Events calendar layout/cards
   =========================== */

/* Layout: two months per row on larger screens, stacks on mobile */
.month-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-block: 1rem 2rem;
}

.month-block {
  flex: 1 1 460px;      /* wraps below ~460px */
  max-width: 560px;     /* keeps cards pleasantly narrow */
  min-width: 320px;
}

/* Card look (greyscale) */
.card {
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.04);
  overflow: hidden;     /* ensures rounded corners apply to table header */
}

/* Month title bar */
.month-title {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(#4f4f4f, #3a3a3a);
  border-bottom: 1px solid #2b2b2b;
  letter-spacing: 0.3px;
}

/* Table */
.event-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* keeps header + cells aligned */
  background-color: #fcfcfc;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  color: #222;
}

.event-table th,
.event-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.event-table thead th {
  background: linear-gradient(#666, #4a4a4a);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: left;
}

/* Align the Date column nicely */
.event-table .date-cell {
  text-align: center;
  font-weight: 500;
}

.event-table tr:nth-child(even) td {
  background-color: #f4f4f4;
}

.event-table tbody tr:hover td {
  background-color: #eaeaea;
}

/* Links + note line */
.event-table td a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.event-table td a:hover {
  text-decoration: underline;
}

.event-table td small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444;
  border-top: 1px solid #e3e3e3; /* subtle divider above the note */
  padding-top: 0.35rem;
}

.venue-address {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
}

/* Tighten spacing on very small screens */
@media (max-width: 380px) {
  .event-table th, .event-table td { padding: 0.6rem 0.7rem; }
}

/* Sticky header option */
@supports (position: sticky) {
  .event-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

/* ===========================
   Committee grid/cards
   =========================== */

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

.committee-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Euphoria Script', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #e6e6e6;
  letter-spacing: 0.5px;
}

/* Grid */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Card */
.committee-card {
  background: rgba(255,255,255,0.03);              /* translucent over dark bg */
  border: 1px solid rgba(255,255,255,0.08);        /* subtle keyline */
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  backdrop-filter: blur(2px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 16px rgba(0,0,0,0.25);
}

.committee-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 24px rgba(0,0,0,0.35);
}

/* Avatar */
.avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.committee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);              /* enforce grayscale */
  transition: filter 160ms ease, transform 160ms ease;
}

.committee-card:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);                /* tiny lift on hover if you want a pop */
}

/* Text */
.committee-card .name {
  margin: 0.25rem 0 0.1rem;
  font-size: 1.15rem;
  color: #f0f0f0;
  font-family: 'Publico', Georgia, 'Times New Roman', serif; /* your body font */
  font-weight: 600;
}

.committee-card .role {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: #bfbfbf;                       /* mid-grey accent */
  text-transform: uppercase;
}

.committee-card .about {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cfcfcf;
}

/* Small screens */
@media (max-width: 420px) {
  .avatar-wrap { width: 96px; height: 96px; }
  .committee-card { padding: 0.9rem; }
}

/* ===========================
   Utilities
   =========================== */

.print-link {
  display: inline-block;
  background: #444;      /* dark grey background */
  color: #fff !important;/* white text, override browser defaults */
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none; /* remove underline */
  font-size: 14px;
  font-weight: 600;
}
.print-link:hover {
  background: #000;      /* darker on hover */
}

/* Accessible helper for the hidden figcaption */
.visually-hidden {
  position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

a {
  color: #cccccc; /* Light grey for contrast on dark backgrounds */
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #ffffff; /* Bright white on hover/focus */
  text-decoration: none;
}


/* ===========================
   Newsletter page (scoped)
   =========================== */

/* Scope: wrap the newsletter body in <div class="container newsletter"> */
.newsletter{
  /* force left alignment on this page only */
  text-align: left;
  max-width: 900px;         /* a little wider than default container */
  margin-inline: auto;
}

/* Masthead: small identity block */
.newsletter .newsletter-masthead{
  display:flex; align-items:center; gap:16px; margin:8px 0 20px;
}
.newsletter .newsletter-logo{
  width:56px; height:56px; border-radius:12px; background:#222;
  display:flex; align-items:center; justify-content:center;
}
.newsletter .newsletter-logo img{ width:42px; height:42px; opacity:.9; }
.newsletter .newsletter-brand{ display:flex; flex-direction:column; }
.newsletter .newsletter-brand .club{
  font-family:"Euphoria Script",cursive;
  font-size:38px; line-height:1; margin-bottom:-2px; color:#e6e6e6;
}
.newsletter .newsletter-brand .kicker{ font-size:14px; }

/* Title + meta line */
.newsletter h1{
  margin:0 0 6px; font-weight:700; font-size:28px; letter-spacing:.2px; color:#e6e6e6;
}
.newsletter .meta{ color:#bdbdbd; font-size:14px; margin-bottom:20px; }

/* Section nav (light pills) */
.newsletter .nl-nav{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 22px; }
.newsletter .nl-nav .pill{
  border:1px solid rgba(255,255,255,0.12);
  padding:8px 12px; border-radius:999px; background:#151515;
}
.newsletter .nl-nav .pill a{ color:#e6e6e6; text-decoration:none; }
.newsletter .nl-nav .pill a:hover{ color:#fff; }

/* Section “wells” */
.newsletter .nl-section{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px 18px 8px;
  margin: 0 0 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 16px rgba(0,0,0,0.18);
}
.newsletter .nl-section h2{ margin:0 0 10px; font-size:22px; color:#f0f0f0; }
.newsletter .nl-section h3{ margin:16px 0 6px; font-size:18px; color:#f0f0f0; }

/* Figures */
.newsletter .nl-section figure{ margin:10px 0 4px; }
.newsletter .nl-section figcaption{ color:#bdbdbd; font-size:13px; margin-top:6px; }

/* Clean lists */
.newsletter ul.clean{ list-style:none; margin:0; padding:0; }
.newsletter ul.clean>li{ padding:10px 0; border-top:1px solid rgba(255,255,255,0.10); }
.newsletter ul.clean>li:first-child{ border-top:0; }

/* Venue/address + date */
.newsletter address.venue{ display:inline; font-style:normal; }
.newsletter .venue{ font-style:normal; }
.newsletter time{ white-space:nowrap; }

/* Callout line */
.newsletter .callout{
  border-left:3px solid #2f2f2f; padding-left:12px; color:#bdbdbd; margin-top:10px;
}

/* Neutral button */
.newsletter .btn{
  display:inline-block; padding:10px 14px; border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; background:#1d1d1d; color:#e6e6e6; text-decoration:none;
  transition:background .15s ease, transform .15s ease, border-color .15s ease;
}
.newsletter .btn:hover{ background:#202020; border-color:#3a3a3a; transform:translateY(-1px); }

.newsletter #highlights article{
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.newsletter #highlights article:first-of-type{
  border-top: 0;
}


/* Articles rhythm */
.newsletter article>header h3{ margin:0 0 .5rem; }
.newsletter article+article{ margin-top:1rem; }

/* Entity hooks */
.newsletter .member{ font-weight:600; }
.newsletter .member[data-role]::after{ content:" (" attr(data-role) ")"; color:#bdbdbd;}
.newsletter .vehicle{ font-weight:500; }
.newsletter .vehicle .make{ font-variant-caps: all-small-caps; letter-spacing:.3px; }
.newsletter .vehicle .model{ font-weight:700; }
.newsletter .event{ font-weight:600; }
.newsletter .award{ font-style:italic; }
/* .newsletter .award::before{ content:"🏆 "; } */

/* Print tidy */
@media print{
  .newsletter .nl-nav{ display:none; }
  .newsletter .nl-section{ background:#fff; border-color:#ddd; box-shadow:none; }
  .newsletter a{ color:#000; text-decoration:none; }
}


/* Screen-only style for the print button */
.btn-print { cursor:pointer; }

/* Print rules (simplify to black on white, hide nav/headers/etc.) */
@media print {
  /* white paper, dark text */
  body { background:#fff !important; color:#000 !important; }
  .newsletter .nl-section { background:#fff; border-color:#ddd; box-shadow:none; }

  /* hide site chrome + non-essential UI */
  header, .site-header, nav, .nl-nav, .btn, .btn-print, footer { display:none !important; }

  /* tidy typography + spacing */
  .newsletter h1, .newsletter h2, .newsletter h3 { color:#000 !important; }
  .newsletter .venue, .newsletter time { color:#000 !important; }

  /* avoid awkward breaks */
  .newsletter .nl-section { page-break-inside: avoid; }
  .newsletter figure { page-break-inside: avoid; }

  /* optionally show URLs after external links */
  a[href^="http"]:after {
    content:" (" attr(href) ")"; font-size:0.9em;
  }
}
