:root {
  /* Primary brand */
  --brand-primary: #b33133; /* CCWC maroon */
  --brand-primary-600: #7b221d;
  --brand-primary-700: #5f1b16;

  /* Accents (use sparingly; dark text on golds) */
  --brand-accent-gold: #f0c28e; /* dark text */
  --brand-accent-gold-deep: #f0aa61; /* dark text */
  --brand-accent-orange: #db622d; /* white text OK */

  /* Neutrals */
  --brand-bg: #ffffff;
  --brand-surface: #f3ede8; /* off-white surface */
  --brand-text: #111111;
  --brand-muted: #6b7280;
}

/* Base text and backgrounds */
html,
body {
  background: var(--brand-bg);
  color: var(--brand-text);
}

/* Links */
a,
.link {
  color: var(--brand-primary);
  text-decoration-color: rgba(0, 0, 0, 0.1);
}
a:hover,
a:focus {
  color: var(--brand-primary-700);
}

/* Buttons (generic names + Crafto-ish helpers) */
.btn-primary,
.button-primary,
.ccwc-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 1px solid var(--brand-primary);
}
.btn-primary:hover,
.button-primary:hover,
.ccwc-btn-primary:hover {
  background: var(--brand-primary-700);
  border-color: var(--brand-primary-700);
}
.btn-outline-primary,
.ccwc-btn-outline {
  color: var(--brand-primary);
  background: transparent;
  border: 1px solid var(--brand-primary);
}
.btn-outline-primary:hover,
.ccwc-btn-outline:hover {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Badges / chips */
.ccwc-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
}
.ccwc-badge--gold {
  background: var(--brand-accent-gold);
  color: #111;
}
.ccwc-badge--orange {
  background: var(--brand-accent-orange);
  color: #fff;
}

/* Surfaces & helpers */
.bg-surface {
  background: var(--brand-surface);
}
.text-primary {
  color: var(--brand-primary) !important;
}
.bg-primary {
  background: var(--brand-primary) !important;
  color: #fff;
}
.text-muted {
  color: var(--brand-muted) !important;
}

/* Form focus ring (subtle maroon) */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(179, 49, 51, 0.3);
  outline-offset: 2px;
}

/* Simple brand mark spacing */
.ccwc-brand {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  margin-right: 1rem;
}

/* ===== CCWC UI helpers ===== */
.ccwc-hero {
  position: relative;
  overflow: hidden;
}
.ccwc-hero .ccwc-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}
.ccwc-hero .ccwc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
}
.ccwc-hero .ccwc-hero-body {
  position: relative;
}

.ccwc-card {
  background: var(--brand-surface);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-card h2,
.ccwc-card h3 {
  margin-top: 0;
}

.ccwc-logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.ccwc-logo-wall img {
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
}
.ccwc-logo-wall img:hover {
  filter: none;
  opacity: 1;
}

/* ===== CCWC UI helpers ===== */
.ccwc-hero {
  position: relative;
  overflow: hidden;
}
.ccwc-hero .ccwc-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}
.ccwc-hero .ccwc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
}
.ccwc-hero .ccwc-hero-body {
  position: relative;
}

.ccwc-card {
  background: var(--brand-surface);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-card h2,
.ccwc-card h3 {
  margin-top: 0;
}

.ccwc-logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.ccwc-logo-wall img {
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
}
.ccwc-logo-wall img:hover {
  filter: none;
  opacity: 1;
}

/* Prose typography for content pages */
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.25rem;
}
.prose h1 {
  font-size: 2rem;
}
.prose h2 {
  font-size: 1.5rem;
}
.prose h3 {
  font-size: 1.25rem;
}
.prose p {
  line-height: 1.7;
  margin: 0 0 1rem;
}
.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li {
  margin: 0.25rem 0;
}
.prose a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ===== CCWC Sessions UI v1 ===== */
.ccwc-session-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ccwc-session-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}
.ccwc-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-surface);
  color: #111;
  font-size: 0.8125rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-session-title a {
  text-decoration: none;
}
.ccwc-session-title a:hover {
  text-decoration: underline;
}

/* ===== CCWC Session Detail UI v1 ===== */
.ccwc-session-hero {
  background: var(--brand-surface);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}
.ccwc-meta .chip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}
.ccwc-sidebar {
  background: var(--brand-surface);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-sticky {
  position: sticky;
  top: 24px;
}
.ccwc-list-clean {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.ccwc-list-clean li {
  margin: 0.25rem 0;
}

/* ===== CCWC Sessions UI v1 ===== */
.ccwc-session-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ccwc-session-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}
.ccwc-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-surface);
  color: #111;
  font-size: 0.8125rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-session-title a {
  text-decoration: none;
}
.ccwc-session-title a:hover {
  text-decoration: underline;
}

/* ===== CCWC Session Detail UI v1 ===== */
.ccwc-session-hero {
  background: var(--brand-surface);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}
.ccwc-meta .chip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}
.ccwc-sidebar {
  background: var(--brand-surface);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-sticky {
  position: sticky;
  top: 24px;
}
.ccwc-list-clean {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.ccwc-list-clean li {
  margin: 0.25rem 0;
}

/* ===== CCWC Agenda Timeline v1 ===== */
.ccwc-timeline {
  position: relative;
  padding-left: 1.25rem;
}
.ccwc-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}
.ccwc-slot {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
}
.ccwc-slot::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--brand-primary);
}
.ccwc-slot-card {
  background: var(--brand-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

/* ===== CCWC Speakers UI v1 ===== */
.ccwc-speaker-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ccwc-speaker-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.ccwc-speaker-card .name {
  margin: 0.75rem 0 0.25rem;
}
.ccwc-speaker-card .meta {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.ccwc-speaker-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .ccwc-speaker-hero {
    flex-direction: column;
  }
}
.ccwc-speaker-photo {
  width: 280px;
  max-width: 100%;
}
.ccwc-speaker-photo img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== CCWC Sponsors UI v1 ===== */
.ccwc-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 1199px) {
  .ccwc-sponsor-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (max-width: 767px) {
  .ccwc-sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ccwc-sponsor-logo-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  height: 100%;
}
.ccwc-sponsor-logo-card img {
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
}
.ccwc-sponsor-logo-card:hover img {
  filter: none;
  opacity: 1;
}
.ccwc-sponsor-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .ccwc-sponsor-hero {
    flex-direction: column;
  }
}
.ccwc-sponsor-logo {
  background: var(--brand-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.ccwc-sponsor-logo img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}

/* ===== CCWC Announcements UI v1 ===== */
.ccwc-announce-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem;
}
.ccwc-announce-card.pinned {
  border-left: 4px solid var(--brand-primary);
}
.ccwc-announce-meta {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

/* ===== CCWC Footer UI v1 ===== */
.ccwc-footer {
  background: var(--brand-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 3rem;
}
.ccwc-footer a {
  text-decoration: none;
}
.ccwc-footer a:hover {
  text-decoration: underline;
}

/* ===== CCWC Devbar UI v1 ===== */
.ccwc-devbar {
  background: #111;
  color: #fff;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.ccwc-devbar a {
  color: #fff;
  text-decoration: none;
}
.ccwc-devbar a:hover {
  text-decoration: underline;
}

/* ===== CCWC Sessions UI v2 ===== */
.ccwc-session-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f3f3;
  margin-bottom: 0.75rem;
}
.ccwc-session-meta .time {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

/* ===== CCWC Session Detail UI v2 ===== */
.ccwc-session-banner {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #f3f3f3;
}
.ccwc-action-group .btn {
  width: 100%;
}
@media (min-width: 480px) {
  .ccwc-action-group .btn {
    width: auto;
  }
}

/* ===== CCWC Speakers UI v2 ===== */
.ccwc-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}
.ccwc-alpha a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.ccwc-alpha a.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}
.ccwc-speaker-card .name a {
  text-decoration: none;
}
.ccwc-speaker-card .name a:hover {
  text-decoration: underline;
}

/* ===== CCWC Sponsors UI v2 ===== */
.ccwc-featured-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: var(--brand-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
}
.ccwc-featured-strip img {
  height: 40px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.ccwc-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 12px;
}
.ccwc-level-header::before {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.ccwc-level-header span {
  white-space: nowrap;
  font-weight: 600;
  color: #111;
}
.ccwc-level-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* ===== CCWC Announcements UI v2 ===== */
.ccwc-announce-hint {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-bottom: 1rem;
}
.ccwc-announce-list {
  display: grid;
  gap: 12px;
}

/* ===== CCWC Agenda Timeline v2 ===== */
.ccwc-badge--talk {
  background: rgba(179, 49, 51, 0.08);
  color: #111;
  border: 1px solid rgba(179, 49, 51, 0.25);
}
.ccwc-badge--meal {
  background: rgba(255, 200, 0, 0.12);
  color: #111;
  border: 1px solid rgba(255, 200, 0, 0.35);
}
.ccwc-badge--break {
  background: rgba(0, 0, 0, 0.05);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* ===== Prose typography v1 ===== */
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.25rem;
}
.prose h1 {
  font-size: 2rem;
}
.prose h2 {
  font-size: 1.5rem;
}
.prose h3 {
  font-size: 1.25rem;
}
.prose p {
  line-height: 1.7;
  margin: 0 0 1rem;
}
.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li {
  margin: 0.25rem 0;
}
.prose a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ===== CCWC Error UI v1 ===== */
.ccwc-error {
  background: var(--brand-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
}
.ccwc-error-code {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* ===== CCWC Nav UI v1 ===== */
.ccwc-nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
}
.ccwc-nav a:hover {
  text-decoration: underline;
}
.ccwc-nav a.is-active {
  background: var(--brand-surface);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== CCWC Nav UI v2 ===== */
.ccwc-nav-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ccwc-nav {
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.ccwc-nav .ccwc-brand {
  font-weight: 700;
  margin-right: 0.5rem;
}
@media (max-width: 575px) {
  .ccwc-nav {
    gap: 0.75rem;
  }
}

/* ===== CCWC NowNext UI v1 ===== */
.ccwc-now-next {
  display: grid;
  gap: 12px;
}
.ccwc-now-next .item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
}
.ccwc-now-next .meta {
  font-size: 0.9rem;
  color: var(--brand-muted);
}

/* ===== CCWC Auth UI v1 ===== */
.ccwc-auth-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.ccwc-auth-card {
  max-width: 520px;
  margin: 0 auto;
}
/* R34: Sessions table widths */
.ccwc-table {
  table-layout: fixed;
  width: 100%;
}
.ccwc-table th,
.ccwc-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.ccwc-table .text-nowrap {
  white-space: nowrap;
}

/* CCWC: compact gold action button */
.ccwc-btn-gold {
  background-color: #d8a200; /* CCWC gold */
  border-color: #d8a200;
  color: #1a1a1a; /* good contrast on gold */
}
.ccwc-btn-gold:hover,
.ccwc-btn-gold:focus {
  background-color: #c29100;
  border-color: #c29100;
  color: #111;
}

/* smaller, no-wrap utility for list tables */
.btn-compact {
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 9999px; /* pill */
}

/* keep gold button tidy on narrow screens */
@media (max-width: 380px) {
  .btn-compact {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* === CCWC MVP polish: cards & logo strip (S1) === */
.ccwc-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ccwc-card h2,
.ccwc-card .h5 {
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 12px !important;
  color: #3a3333;
}

.ccwc-card ul li a {
  font-weight: 600;
  text-decoration: none;
}

.ccwc-card ul li small {
  margin-top: 2px;
}

/* “logo wall” inside Featured Sponsors */
.ccwc-logo-wall {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ccwc-logo-wall img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: saturate(0.85);
}

.ccwc-logo-wall img:hover {
  opacity: 1;
  filter: none;
}

.ccwc-logo-wall .ccwc-btn-outline {
  margin-left: auto; /* keeps “All sponsors” aligned right */
}

/* Slightly strengthen hero CTA affordances */
.ccwc-btn-primary,
a.ccwc-btn-primary {
  border-radius: 999px;
  padding: 10px 16px;
}

.ccwc-btn-outline,
a.ccwc-btn-outline {
  border-radius: 999px;
  padding: 9px 15px;
  border-width: 1.5px;
}

/* === CCWC MVP polish: vertical logo stack for Featured Sponsors (S2) === */
/* Override the earlier horizontal logo wall */
.ccwc-logo-wall {
  display: block; /* stack vertically */
}

.ccwc-logo-wall a {
  display: block;
  margin-bottom: 12px; /* space between logos */
}

.ccwc-logo-wall img {
  display: block;
  width: 100%; /* full width of the card */
  height: auto; /* preserve aspect */
  max-height: 160px; /* keep very tall images reasonable */
  object-fit: contain; /* no distortion within the box */
  background: #fff;
  padding: 8px; /* breathing room around logos */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

/* Put the "All sponsors" button below the logos and full width */
.ccwc-logo-wall .ccwc-btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  margin: 4px 0 0 0; /* top spacing from last logo */
}

/* === CCWC Sessions polish v1 (do not remove marker) === */
.ccwc-btn-gold {
  --ccwc-gold-bg: #d9a84e;
  --ccwc-gold-fg: #1f1f1f;
  --ccwc-gold-bd: #d9a84e;
  background: var(--ccwc-gold-bg) !important;
  color: var(--ccwc-gold-fg) !important;
  border-color: var(--ccwc-gold-bd) !important;
}
.ccwc-btn-gold:hover,
.ccwc-btn-gold:focus {
  filter: brightness(0.95);
  color: var(--ccwc-gold-fg) !important;
}
.ccwc-btn-gold:disabled,
.ccwc-btn-gold[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Day chips (active = gold) */
#ccwc-daychips .btn.active,
#ccwc-daychips .btn.btn-primary.ccwc-btn-gold {
  background: #d9a84e !important;
  border-color: #d9a84e !important;
  color: #1f1f1f !important;
}

/* Compact table helpers (already used inline; leaving here for reuse) */
.ccwc-table .nowrap {
  white-space: nowrap;
}

/* Optional: brand alert (gold) to replace inline notice blocks later */
.ccwc-alert-gold {
  background: #fff7e0;
  border: 1px solid #f0d89c;
  color: #8c6a00;
  border-radius: 0.375rem; /* ~6px */
  padding: 0.75rem 1rem;
}
/* === /CCWC Sessions polish v1 === */

/* === CCWC Sessions table group style v1 === */
.ccwc-group-row td {
  background: #f8f6f4;
  color: #493c3c;
  font-weight: 600;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* === CCWC Sessions Table Polish v2 (safe append) === */
.table.ccwc-table thead th {
  background: #f3efea;
  color: #2b2b2b;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.table.ccwc-table tbody tr:hover td {
  background: #fbfaf8;
}
.table.ccwc-table tbody tr:nth-child(odd) td {
  background: #fcfbf9;
}
.table.ccwc-table th,
.table.ccwc-table td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  vertical-align: middle;
}
.table.ccwc-table td.nowrap {
  white-space: nowrap;
}
.table.ccwc-table a.btn.btn-compact {
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.1;
  border-radius: 0.375rem;
}
/* Group header row (kept from earlier suggestion, slight tweak) */
.ccwc-group-row td {
  background: #f8f6f4;
  color: #493c3c;
  font-weight: 700;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Keep gold style consistent for controls/pager */
.ccwc-btn-gold {
  background: #d9a84e;
  border-color: #d9a84e;
  color: #1f1f1f;
}
.ccwc-btn-gold:hover,
.ccwc-btn-gold:focus {
  filter: brightness(0.96);
  color: #1f1f1f;
}
/* === /CCWC Sessions Table Polish v2 === */

/* === CCWC Sessions Table Polish v2 (safe append) === */
.table.ccwc-table thead th {
  background: #f3efea;
  color: #2b2b2b;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.table.ccwc-table tbody tr:hover td {
  background: #fbfaf8;
}
.table.ccwc-table tbody tr:nth-child(odd) td {
  background: #fcfbf9;
}
.table.ccwc-table th,
.table.ccwc-table td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  vertical-align: middle;
}
.table.ccwc-table td.nowrap {
  white-space: nowrap;
}
.table.ccwc-table a.btn.btn-compact {
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.1;
  border-radius: 0.375rem;
}
/* Group header row */
.ccwc-group-row td {
  background: #f8f6f4;
  color: #493c3c;
  font-weight: 700;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Gold button */
.ccwc-btn-gold {
  background: #d9a84e;
  border-color: #d9a84e;
  color: #1f1f1f;
}
.ccwc-btn-gold:hover,
.ccwc-btn-gold:focus {
  filter: brightness(0.96);
  color: #1f1f1f;
}
/* === /CCWC Sessions Table Polish v2 === */

/* === CCWC Speakers Grid v1 === */
.ccwc-speaker-card img.ccwc-headshot {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.ccwc-speaker-card .name {
  line-height: 1.2;
}
.ccwc-speaker-card .meta {
  color: #6c757d;
  font-size: 0.95rem;
}
/* Gold alert utility (already added earlier; keep here in case) */
.ccwc-alert-gold {
  background: #fff7e0;
  border: 1px solid #f0d89c;
  color: #8c6a00;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}
/* === /CCWC Speakers Grid v1 === */

/* === CCWC Nav polish v1 === */
.ccwc-nav a {
  position: relative;
  text-decoration: none;
}
.ccwc-nav a:is(:hover, :focus) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ccwc-nav a.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* === /CCWC Nav polish v1 === */

/* Auth inputs focus ring */
.auth input:focus,
.card input:focus {
  outline: none;
  border-color: #b33133;
  box-shadow: 0 0 0 2px rgba(179, 49, 51, 0.15);
}

/* Footer logo sizing */
.ccwc-footer-logo {
  height: 44px; /* bigger on desktop */
  width: auto;
  vertical-align: middle; /* aligns with text nicely */
  display: inline-block;
}
@media (max-width: 576px) {
  .ccwc-footer-logo {
    height: 36px;
  } /* slightly smaller on mobile */
}

.btn-outline-danger {
  border-color: #b33133;
  color: #b33133;
}
.btn-outline-danger:hover {
  background: #b33133;
  color: #fff;
}

.ccwc-footer a,
a[href="/sessions"]:hover {
  filter: brightness(0.95);
}

/* === CCWC: kill Crafto body padding/background that creates footer gaps === */
body {
  padding-top: 0 !important; /* we'll control header spacing elsewhere */
  padding-bottom: 0 !important; /* removes gap below footer */
  background: #ffffff !important; /* prevents beige frame */
  border-top: 0 !important;
  margin: 0 !important;
}

/* Restore header spacing on nav wrapper instead of body */
.ccwc-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Keep content readable with spacing under nav */
.ccwc-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
}

/* === CCWC FINAL FIX: remove unintended footer spacing === */

/* 1) Remove space BELOW footer (body padding from Crafto) */
body {
  padding-bottom: 0 !important;
  background: #ffffff !important;
}

/* 2) Remove space ABOVE footer (footer margin) */
footer.ccwc-footer {
  margin-top: 0 !important;
}

/* === CCWC FOOTER COLORS (VISUAL PROOF STEP) === */

/* Main footer area = BLUE */
.ccwc-footer {
  background: #173f6d !important; /* CCWC blue */
  color: #ffffff;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Footer links */
.ccwc-footer a {
  color: #ffffff;
}
.ccwc-footer a:hover {
  color: #f0c28e; /* gold hover */
}

/* Divider */
.ccwc-footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 16px 0;
}

/* Copyright strip = BLACK */
.ccwc-footer-legal {
  background: #000000;
  color: #ffffff;
  padding: 16px 12px;
  margin-top: 16px;
}

.ccwc-footer-legal a {
  color: #ffffff;
  text-decoration: underline;
}

/* === CCWC Footer text contrast fix === */

/* Footer section headings (e.g. Advisory Board, Account, Legal) */
.ccwc-footer .fw-semibold,
.ccwc-footer .small.text-muted {
  color: #ffffff !important;
  opacity: 0.9;
}

/* === CCWC Footer full-width legal bar === */

.ccwc-footer-legal {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.ccwc-footer .fw-semibold {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === CCWC Footer: force all muted text to white === */
.ccwc-footer .text-muted {
  color: #ffffff !important;
  opacity: 0.85;
}

/* === CCWC Footer: make black bar end the page === */

/* Remove any padding below the legal bar */
.ccwc-footer {
  padding-bottom: 0 !important;
}

/* Ensure black bar is the final visible block */
.ccwc-footer-legal {
  margin-bottom: 0 !important;
}

/* Prevent footer background from showing below legal bar */
.ccwc-footer > .container {
  padding-bottom: 0 !important;
}

/* === Home CTA cards with images === */

.cta-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0; /* image sits flush */
}

.cta-image-link {
  display: block;
}

.cta-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Slight separation between image and content */
.cta-card > h2,
.cta-card > p,
.cta-card > ul {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cta-card hr {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* === Home CTA cards with images === */

.cta-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0; /* image sits flush */
}

.cta-image-link {
  display: block;
}

.cta-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Slight separation between image and content */
.cta-card > h2,
.cta-card > p,
.cta-card > ul {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cta-card hr {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.cta-image-link:hover .cta-image {
  filter: brightness(1.05);
  transition: filter 0.15s ease;
}

/* ===============================
   CCWC PAGE HERO
   =============================== */

.ccwc-page-hero {
  width: 100%;
  background: #000;
}

.ccwc-page-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .ccwc-page-hero-img {
    height: 240px;
  }
}

/* =====================================================
   CCWC INTERNAL PAGE HERO (NON-HOME ONLY)
   ===================================================== */

.ccwc-page-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0; /* removes inline-image gaps */
  background: transparent;
}

.ccwc-page-hero-img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ccwc-page-hero-img {
    height: 240px;
  }
}

/* ===============================
   CCWC HEADING SYSTEM
   =============================== */

/* All other headings */
h2,
h3,
h4,
h5 {
  color: #111;
  font-weight: 600;
}

/* ===============================
   HOME HERO — NEVER OVERRIDE
   =============================== */

.ccwc-hero,
.ccwc-hero * {
  color: #ffffff !important;
}

/* ===============================
   INTERNAL PAGE CONTENT STYLING
   =============================== */

/* Primary page titles (About page, etc.) */
.ccwc-page h1,
.ccwc-page .page-title {
  color: var(--brand-accent-orange);
  font-weight: 700;
}

/* Subheadings */
.ccwc-page h2,
.ccwc-page h3 {
  color: #111;
  font-weight: 600;
}

/* ===============================
   INTERNAL PAGE TITLE SIZE
   =============================== */

.ccwc-page h1 {
  font-size: 2.25rem; /* ≈ 36px, matches brand comp */
  line-height: 1.2;
}

@media (max-width: 768px) {
  .ccwc-page h1 {
    font-size: 1.75rem; /* ≈ 28px on mobile */
  }
}

/* ===============================
   CCWC PAGE TITLES (CANONICAL)
   =============================== */

.page-title {
  color: var(--brand-accent-orange); /* CCWC orange */
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
}

/* Eyebrow stays neutral */
.ccwc-eyebrow {
  color: #111;
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* Advisory Subcommittees graphic sizing */
.advisory-graphic {
  max-width: 100%;
  max-height: 420px; /* larger than before */
  object-fit: contain; /* prevents crop */
}

@media (max-width: 991px) {
  .advisory-graphic {
    max-height: 320px;
  }
}

/* Advisory Subcommittee Cards */
.subcommittee-card {
  padding: 1.5rem;
}

.subcommittee-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Red subcommittee titles */
.subcommittee-title {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Mobile image balance */
@media (max-width: 767px) {
  .subcommittee-image {
    height: 180px;
  }
}

.subcommittee-title {
  color: var(--brand-primary); /* CCWC dark red */
  font-weight: 700;
}

/* Subcommittee card titles — force CCWC dark red */
.ccwc-page h3.subcommittee-title {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Allow outline buttons in hero to use brand text color */
.ccwc-hero .ccwc-btn-outline {
  color: var(--brand-primary) !important;
}

/* --- CCWC Nav Dropdown --- */
.ccwc-nav-dropdown {
  position: relative;
}

.ccwc-nav-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ccwc-nav-caret {
  font-size: 0.7em;
}

.ccwc-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  z-index: 1000;
}

.ccwc-nav-dropdown:hover .ccwc-nav-dropdown-menu {
  display: block;
}

.ccwc-nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #212529;
  font-size: 0.95rem;
}

.ccwc-nav-dropdown-menu a:hover,
.ccwc-nav-dropdown-menu a.is-active {
  background: #f8f9fa;
  font-weight: 600;
}

/* Active About dropdown label */
.ccwc-nav-dropdown.is-active > .ccwc-nav-dropdown-toggle {
  color: var(--brand-primary);
  font-weight: 600;
}

.ccwc-nav-dropdown-toggle:hover {
  color: var(--brand-primary);
}

/* Match nav link color for dropdown toggle */
.ccwc-nav-dropdown-toggle {
  color: var(--brand-primary);
  font-weight: 500;
}

/* Active About dropdown */
.ccwc-nav-dropdown.is-active .ccwc-nav-dropdown-toggle {
  color: var(--brand-primary);
  font-weight: 600;
}

.ccwc-nav-dropdown-toggle:hover {
  color: var(--brand-primary);
}

/* FORCE About dropdown label to match nav links */
.ccwc-nav .ccwc-nav-link,
.ccwc-nav .ccwc-nav-dropdown-toggle {
  color: var(--brand-primary);
}

.ccwc-nav .ccwc-nav-link:hover,
.ccwc-nav-dropdown.is-active .ccwc-nav-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.content-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.content-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3f4f6;
}

.content-card-body {
  padding: 12px 14px;
}

.ccwc-content-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f3f4f6;
}
