/* ==========================================================================
   ccbSayIt — Shared Design System

   Used by setlists, discography, and future modernized sections.
   Section-specific styles live in setlists.css, music.css, etc.
   ========================================================================== */

/* --- Tokens --- */
:root {
  /* Colors */
  --cs-text:          #000;
  --cs-text-secondary:#666;
  --cs-text-muted:    #999;
  --cs-link:          #284560;
  --cs-gold:          #DB9301;
  --cs-gold-dark:     #906000;
  --cs-bg:            #fff;
  --cs-bg-aside:      #faf8f2;
  --cs-bg-card:       #f2f0e3;
  --cs-bg-card-hover: #e0dcd0;
  --cs-bg-dark:       #111;
  --cs-bg-darker:     #141414;
  --cs-border:        #e0dcd0;
  --cs-border-dark:   #3a3a3a;

  /* Typography */
  --cs-font:       'Work Sans', sans-serif;
  --cs-font-xs:    9pt;   /* labels, captions */
  --cs-font-sm:    10pt;  /* body secondary, nav, aside */
  --cs-font-base:  11pt;  /* body primary */
  --cs-font-lg:    13pt;  /* h3 */
  --cs-font-xl:    14pt;  /* h2, stat numbers */
  --cs-font-2xl:   16pt;  /* big stat numbers */
  --cs-font-3xl:   22pt;  /* h1, page titles */

  /* Spacing */
  --cs-space-xs:   4px;
  --cs-space-sm:   6px;
  --cs-space-md:   8px;
  --cs-space-lg:   12px;
  --cs-space-xl:   18px;
  --cs-space-2xl:  20px;
  --cs-space-3xl:  24px;

  /* Radius */
  --cs-radius-sm:  2px;
  --cs-radius-md:  3px;
  --cs-radius-lg:  4px;

  /* Icons */
  --cs-icon-lg:    24pt;
}

/* --- Reset --- */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--cs-font); font-size: var(--cs-font-sm); color: var(--cs-text); overflow-x: hidden; }
a { color: var(--cs-text); text-decoration: underline; }
img { border: 0; max-width: 100%; height: auto; }

/* ==========================================================================
   SITE SHELL — Header, Nav, Layout, Footer
   ========================================================================== */

/* Banner rotator */
.site-header {
  background: var(--cs-text);
  background-image: url('../img/banner/head_logo.jpg');
  background-repeat: no-repeat;
  background-position: center right 5%;
  background-size: contain;
}
.site-rotator {
  width: 100%;
  max-width: 556px;
  aspect-ratio: 556 / 94;
  position: relative;
  overflow: hidden;
}
.site-rotator img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: rot-fade 48s infinite;
}
.site-rotator img:nth-child(1)  { animation-delay:  0s; }
.site-rotator img:nth-child(2)  { animation-delay:  4s; }
.site-rotator img:nth-child(3)  { animation-delay:  8s; }
.site-rotator img:nth-child(4)  { animation-delay: 12s; }
.site-rotator img:nth-child(5)  { animation-delay: 16s; }
.site-rotator img:nth-child(6)  { animation-delay: 20s; }
.site-rotator img:nth-child(7)  { animation-delay: 24s; }
.site-rotator img:nth-child(8)  { animation-delay: 28s; }
.site-rotator img:nth-child(9)  { animation-delay: 32s; }
.site-rotator img:nth-child(10) { animation-delay: 36s; }
.site-rotator img:nth-child(11) { animation-delay: 40s; }
.site-rotator img:nth-child(12) { animation-delay: 44s; }
@keyframes rot-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  12%  { opacity: 1; }
  16%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Top navigation */
.site-nav {
  display: flex;
  align-items: stretch;
  background: var(--cs-link);
  padding: 0 var(--cs-space-md);
  font-size: var(--cs-font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-nav-link {
  display: flex;
  align-items: center;
  padding: var(--cs-space-md) var(--cs-space-lg);
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.site-nav-link:hover { color: var(--cs-gold); border-bottom-color: var(--cs-gold); }
.site-nav-link.active { color: var(--cs-gold); border-bottom-color: var(--cs-gold); }

/* Nav dropdowns */
.site-nav-dropdown {
  position: relative;
  display: flex; /* stretch the trigger link to the nav's full height, like the plain links */
}
.site-nav-dropdown > a {
  user-select: none;
}
.site-nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--cs-link); min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10000;
}
.site-nav { position: relative; z-index: 1000; }
.site-nav-dropdown:hover .site-nav-dropdown-menu {
  display: block;
}
.site-nav-dropdown-menu a {
  display: block; padding: 8px 16px;
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: var(--cs-font-sm); font-weight: 500;
  letter-spacing: 0.03em;
}
.site-nav-dropdown-menu a:hover {
  color: #fff; background: rgba(255,255,255,0.1);
}

.site-nav-spacer { margin-left: auto; }
.site-nav-user {
  display: flex; align-items: center; gap: 4px;
  padding: var(--cs-space-md) var(--cs-space-sm);
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: var(--cs-font-xs); white-space: nowrap;
}
.site-nav-user:hover { color: #fff; }
.site-nav-logout { color: rgba(255,255,255,0.3); }

/* Nav search — white pill on desktop, magnifying-glass toggle on narrow screens.
   The pill sits the same distance from the nav's top, bottom, and right edges. */
.site-nav-search {
  --nav-search-inset: 5px;
  display: flex; align-items: stretch;
}
.site-nav:has(> .site-nav-search:last-child) { padding-right: 0; }
.site-nav-search-field {
  display: flex; align-items: center; gap: var(--cs-space-sm);
  width: 200px;
  margin: var(--nav-search-inset);
  padding: 0 var(--cs-space-lg);
  background: #fff;
  border-radius: 999px;
  color: var(--cs-text-muted);
  font-size: var(--cs-font-xs);
  cursor: text;
  transition: box-shadow 0.15s;
}
.site-nav-search-field:focus-within { box-shadow: 0 0 0 2px var(--cs-gold); color: var(--cs-text-secondary); }
.site-nav-search-input {
  flex: 1; min-width: 0;
  padding: 0;
  background: none; border: none; outline: none;
  -webkit-appearance: none; appearance: none;
  color: var(--cs-text);
  font-family: var(--cs-font); font-size: var(--cs-font-sm); font-weight: 400; line-height: 1;
  text-transform: none; letter-spacing: normal;
}
.site-nav-search-input::placeholder { color: var(--cs-text-muted); }
.site-nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-nav-search-toggle {
  display: none; place-items: center;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: var(--cs-font-base);
  padding: var(--cs-space-md) var(--cs-space-lg);
}
.site-nav-search-toggle:hover { color: var(--cs-gold); }
/* Magnifying glass and × share one grid cell and cross-fade with a quarter turn */
.site-nav-search-toggle > i { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.25s; }
.site-nav-search-icon-close { opacity: 0; transform: rotate(-90deg); }

/* CSS Grid layout */
.site-layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  min-height: calc(100vh - 130px);
}
.site-layout:has(> .site-right:empty),
.site-layout:not(:has(> .site-right)) {
  grid-template-columns: 260px 1fr;
}

/* Left sidebar */
.site-left {
  background: var(--cs-bg-dark);
  color: #fff;
  font-family: var(--cs-font);
  font-size: var(--cs-font-sm);
  padding: var(--cs-space-xl);
  line-height: 1.5;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.site-left::-webkit-scrollbar { width: 4px; }
.site-left::-webkit-scrollbar-track { background: transparent; }
.site-left::-webkit-scrollbar-thumb { background: var(--cs-text-secondary); border-radius: var(--cs-radius-sm); }

.site-left a { color: #fff; text-decoration: none; }
.site-left a:hover { color: var(--cs-gold); }

/* Left sidebar sections — use shared cs-aside-section / cs-aside-heading */
.site-left-show-date { display: block; font-size: var(--cs-font-sm); font-weight: 600; color: var(--cs-gold); margin-bottom: 2px; }
.site-left-show-date:hover { color: #fff; }
.site-left-venue { font-size: var(--cs-font-sm); color: var(--cs-text-muted); margin-bottom: var(--cs-space-sm); }
.site-left-venue a { color: #fff; }
.site-left-venue a:hover { color: var(--cs-gold); }
.site-left-tracks { font-size: var(--cs-font-sm); line-height: 1.5; margin-bottom: var(--cs-space-sm); }
.site-left-track { display: flex; gap: var(--cs-space-xs); padding: 1px 0; }
.site-left-track-num { color: var(--cs-text-secondary); width: 16px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.site-left-track a { color: #fff; }
.site-left-track a:hover { color: var(--cs-gold); }
.site-left-track-note { color: var(--cs-text-muted); }
.site-left-note { font-size: var(--cs-font-xs); color: var(--cs-text-secondary); margin-bottom: var(--cs-space-sm); border-top: 1px solid var(--cs-border-dark); padding-top: var(--cs-space-xs); }
.site-left-note-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.site-left-note.expanded .site-left-note-body { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.site-left-note-toggle {
  background: none; border: none; padding: 0; margin-top: 2px; cursor: pointer;
  font-family: var(--cs-font); font-size: var(--cs-font-xs); color: var(--cs-text-muted);
  text-decoration: underline; text-underline-offset: 2px;
}
.site-left-note-toggle:hover { color: var(--cs-gold); }
.site-left-detail { font-size: var(--cs-font-xs); color: var(--cs-text-muted); }
.site-left-detail strong { color: #fff; }
.site-left-more { display: block; font-size: var(--cs-font-xs); color: var(--cs-text-secondary); margin-top: var(--cs-space-sm); }
.site-left-more:hover { color: var(--cs-gold); }

/* Main content area */
.site-main {
  padding: var(--cs-space-2xl) var(--cs-space-3xl);
  font-family: var(--cs-font);
  font-size: var(--cs-font-base);
  min-width: 0;
}

/* Right sidebar */
.site-right {
  background: var(--cs-bg-aside);
  padding: var(--cs-space-xl);
  font-family: var(--cs-font);
  font-size: var(--cs-font-sm);
  line-height: 1.5;
  border-left: 1px solid var(--cs-border);
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.site-right a { color: var(--cs-link); text-decoration: none; }
.site-right a:hover { color: var(--cs-gold); }

.site-right-show {
  display: block;
  padding: var(--cs-space-xs) 0;
  border-bottom: 1px solid var(--cs-border);
  text-decoration: none;
}
.site-right-show:last-child { border-bottom: none; }
.site-right-show:hover .site-right-show-venue { color: var(--cs-gold); }
.site-right-show-date { font-size: var(--cs-font-xs); color: var(--cs-text-muted); display: block; }
.site-right-show-venue { font-size: var(--cs-font-sm); color: var(--cs-link); font-weight: 500; display: block; }

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.search-result {
  padding: var(--cs-space-sm) 0;
  border-bottom: 1px solid var(--cs-border);
  font-size: var(--cs-font-base);
}
.search-result-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--cs-space-sm) var(--cs-space-md);
  border-radius: var(--cs-radius-md);
  border-bottom: 1px solid var(--cs-border);
}
.search-result-link:hover { background: var(--cs-bg-aside); }
.search-result-title { color: var(--cs-link); text-decoration: none; font-weight: 500; }
.search-result-title:hover { color: var(--cs-gold); }
.search-result-link:hover .search-result-title { color: var(--cs-gold); }
.search-result-date { color: var(--cs-text-muted); font-size: var(--cs-font-sm); margin-right: var(--cs-space-md); font-variant-numeric: tabular-nums; }
.search-result-meta { color: var(--cs-text-muted); font-size: var(--cs-font-sm); margin-left: var(--cs-space-md); }

/* ==========================================================================
   NEWS
   ========================================================================== */
.news-item {
  padding: var(--cs-space-xl);
  margin-bottom: var(--cs-space-xl);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-lg);
}
.news-header { margin-bottom: var(--cs-space-md); }
.news-date {
  display: block;
  font-size: var(--cs-font-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-gold-dark);
  margin-bottom: 2px;
}
.news-title { font-size: var(--cs-font-xl); font-weight: 700; color: var(--cs-text); margin: 0; line-height: 1.3; }
.news-count { font-size: var(--cs-font-sm); color: var(--cs-text-muted); }
.news-body {
  font-size: var(--cs-font-base);
  line-height: 1.7;
  color: var(--cs-text);
  overflow: hidden;
}
.news-body img {
  display: block;
  max-width: 320px;
  max-height: 400px;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--cs-radius-md);
  margin: var(--cs-space-lg) auto;
}
.news-body a { color: var(--cs-link); }
.news-body a:hover { color: var(--cs-gold); }
.news-more { margin-top: var(--cs-space-lg); }

/* Stat grid links */
.cs-big-stat--link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cs-big-stat--link:hover { background: var(--cs-bg-card-hover); }
.cs-big-stat--link:hover .cs-big-num { color: var(--cs-gold); }

/* Homepage — On This Day */
.home-otd-show {
  display: flex;
  align-items: baseline;
  gap: var(--cs-space-md);
  padding: var(--cs-space-sm) 0;
  border-bottom: 1px solid var(--cs-border);
  text-decoration: none;
  color: inherit;
}
.home-otd-show:last-child { border-bottom: none; }
.home-otd-show:hover .home-otd-venue { color: var(--cs-gold); }
.home-otd-year { font-size: var(--cs-font-sm); font-weight: 600; color: var(--cs-text-muted); flex-shrink: 0; width: 32px; font-variant-numeric: tabular-nums; }
.home-otd-venue { font-size: var(--cs-font-sm); font-weight: 500; color: var(--cs-link); display: block; }
.home-otd-loc { font-size: var(--cs-font-xs); color: var(--cs-text-muted); display: block; }

/* Homepage — Album grid */
.home-albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--cs-space-sm); margin-bottom: var(--cs-space-sm); }
.home-album { display: block; }
.home-album img { width: 100%; border-radius: var(--cs-radius-md); border: 1px solid var(--cs-border); }
.home-album:hover img { border-color: var(--cs-gold); }

/* Homepage — Explore links */
.home-explore { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-space-xs); }
.home-explore a {
  display: flex;
  align-items: center;
  gap: var(--cs-space-sm);
  padding: var(--cs-space-md);
  font-size: var(--cs-font-sm);
  font-weight: 500;
  color: var(--cs-link);
  text-decoration: none;
  background: var(--cs-bg-card);
  border-radius: var(--cs-radius-md);
}
.home-explore a:hover { color: var(--cs-gold); background: var(--cs-bg-card-hover); }
.home-explore a i { color: var(--cs-gold); font-size: var(--cs-font-base); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-category { margin-bottom: var(--cs-space-2xl); }
.faq-question {
  display: block;
  padding: var(--cs-space-sm) 0;
  font-size: var(--cs-font-base);
  color: var(--cs-link);
  text-decoration: none;
  border-bottom: 1px solid var(--cs-border);
  line-height: 1.4;
}
.faq-question:hover { color: var(--cs-gold); }
.faq-question.active { color: var(--cs-text); font-weight: 600; border-left: 3px solid var(--cs-gold); padding-left: var(--cs-space-md); }

/* FAQ answer in right sidebar */
.faq-answer-panel {
  padding: var(--cs-space-2xl) var(--cs-space-xl);
}
.faq-answer-title { font-size: var(--cs-font-xl); font-weight: 700; color: var(--cs-text); margin: 0 0 var(--cs-space-lg) 0; line-height: 1.3; }

/* Wider right sidebar for FAQ */
.site-layout--wide-aside { grid-template-columns: 260px 1fr 420px; }
.faq-answer-body { font-size: var(--cs-font-base); line-height: 1.7; color: var(--cs-text); }
.faq-answer-body a { color: var(--cs-link); text-decoration: none; }
.faq-answer-body a:hover { color: var(--cs-gold); }

/* ==========================================================================
   DOWNLOADS
   ========================================================================== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cs-space-2xl);
}
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: var(--cs-space-2xl) var(--cs-space-lg);
  border-radius: var(--cs-radius-lg);
  border: 1px solid var(--cs-border);
}
.dl-card:hover { border-color: var(--cs-gold); }
.dl-card-icon { max-width: 80px; margin-bottom: var(--cs-space-md); }
.dl-card-name { font-size: var(--cs-font-base); font-weight: 600; color: var(--cs-text); }
.dl-card:hover .dl-card-name { color: var(--cs-gold); }
.dl-card-count { font-size: var(--cs-font-xs); color: var(--cs-text-muted); }

.dl-item {
  display: flex;
  gap: var(--cs-space-lg);
  padding: var(--cs-space-md) 0;
  border-bottom: 1px solid var(--cs-border);
  align-items: start;
}
.dl-item:last-child { border-bottom: none; }
.dl-item-icon { width: 40px; flex-shrink: 0; }
.dl-item-info { flex: 1; }
.dl-item-name { font-size: var(--cs-font-base); }
.dl-item-name a { color: var(--cs-link); text-decoration: none; }
.dl-item-name a:hover { color: var(--cs-gold); }
.dl-item-variants { font-size: var(--cs-font-xs); color: var(--cs-text-muted); margin-top: 2px; }
.dl-item-variants a { color: var(--cs-link); text-decoration: none; }
.dl-item-variants a:hover { color: var(--cs-gold); }
.dl-item-author { font-size: var(--cs-font-xs); color: var(--cs-text-muted); }

/* Download thumbnail grid */
.dl-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--cs-space-2xl); }
.dl-thumb-grid--icons { grid-template-columns: repeat(auto-fill, minmax(80px, 100px)); gap: var(--cs-space-lg); }
.dl-thumb-grid--icons .dl-thumb-img img { image-rendering: pixelated; }
.dl-thumb-card { text-align: center; }
.dl-thumb-img { display: block; margin-bottom: var(--cs-space-sm); }
.dl-thumb-img img { width: 100%; border-radius: var(--cs-radius-lg); border: 1px solid var(--cs-border); }
.dl-thumb-img:hover img { border-color: var(--cs-gold); }
.dl-thumb-name { font-size: var(--cs-font-sm); font-weight: 500; color: var(--cs-text); }
.dl-thumb-links { font-size: var(--cs-font-xs); color: var(--cs-text-muted); margin-top: 2px; }
.dl-thumb-links a { color: var(--cs-link); text-decoration: none; }
.dl-thumb-links a:hover { color: var(--cs-gold); }
.dl-thumb-author { font-size: var(--cs-font-xs); color: var(--cs-text-muted); }

/* ==========================================================================
   LINKS
   ========================================================================== */
.link-item { padding: var(--cs-space-md) 0; }
.link-name { font-size: var(--cs-font-base); font-weight: 600; color: var(--cs-link); text-decoration: none; }
.link-name:hover { color: var(--cs-gold); }
.link-desc { font-size: var(--cs-font-sm); color: var(--cs-text-secondary); margin-top: var(--cs-space-xs); line-height: 1.5; }
.link-desc a { color: var(--cs-link); text-decoration: none; }
.link-desc a:hover { color: var(--cs-gold); }
.press-archive-badge { font-size: var(--cs-font-xs); color: var(--cs-text-muted); margin-left: var(--cs-space-sm); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-info { font-size: var(--cs-font-base); line-height: 1.8; max-width: 540px; }
.contact-info a { color: var(--cs-link); text-decoration: none; }
.contact-info a:hover { color: var(--cs-gold); }


/* ==========================================================================
   MEDIA
   ========================================================================== */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cs-space-2xl); }
.media-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--cs-space-md);
  padding: var(--cs-space-3xl) var(--cs-space-lg);
  border-radius: var(--cs-radius-lg);
  border: 1px solid var(--cs-border);
  text-decoration: none;
  color: var(--cs-link);
  font-size: var(--cs-font-base);
  font-weight: 600;
}
.media-card i { font-size: var(--cs-icon-lg); }
.media-card:hover { border-color: var(--cs-gold); color: var(--cs-gold); }
.media-card-disabled { color: var(--cs-text-muted); border-color: var(--cs-bg-card); cursor: not-allowed; }
.media-card-disabled:hover { color: var(--cs-text-muted); border-color: var(--cs-bg-card); }

/* ==========================================================================
   VIDEOS
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--cs-space-2xl); }

.video-card { cursor: pointer; }
.video-card:hover .video-title { color: var(--cs-gold); }
.video-card:hover .video-play-overlay { opacity: 1; }

.video-thumb {
  position: relative;
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cs-bg-dark);
  margin-bottom: var(--cs-space-sm);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-empty { display: flex; align-items: center; justify-content: center; }

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cs-text);
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
  font-size: var(--cs-icon-lg);
}
.video-card:hover .video-play-overlay { opacity: 0.5; }
.video-thumb-empty .video-play-overlay { opacity: 0.3; }

.video-title { font-size: var(--cs-font-sm); font-weight: 600; color: var(--cs-text); line-height: 1.3; }
.video-desc { font-size: var(--cs-font-xs); color: var(--cs-text-muted); margin-top: 2px; }

/* Video overlay player */
.video-overlay {
  position: fixed;
  inset: 0;
  background: var(--cs-bg-darker);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-overlay.active { display: flex; }
.video-overlay-inner { width: 90%; max-width: 900px; }
.video-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--cs-space-md);
  color: #fff;
  font-size: var(--cs-font-base);
  font-weight: 600;
}
.video-overlay-desc { font-size: var(--cs-font-xs); color: var(--cs-text-muted); font-weight: 400; margin-top: 2px; }
.video-overlay-close {
  background: none;
  border: none;
  color: var(--cs-text-muted);
  font-size: var(--cs-icon-lg);
  cursor: pointer;
  line-height: 1;
}
.video-overlay-close:hover { color: #fff; }
.video-overlay-inner video { width: 100%; border-radius: var(--cs-radius-lg); background: var(--cs-text); }

/* Admin edit link (visible only when logged in) */
.cs-admin-edit {
  display: inline-flex;
  align-items: center;
  gap: var(--cs-space-xs);
  font-size: var(--cs-font-xs);
  color: var(--cs-text-muted);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.cs-admin-edit:hover { opacity: 1; color: var(--cs-gold); }
.cs-admin-edit i { font-size: var(--cs-font-xs); }

/* Copyright — pushed to bottom of main via flex spacer */
.site-main { display: flex; flex-direction: column; }
.site-copyright-spacer { flex: 1; min-height: 48px; }
.site-copyright {
  padding-top: var(--cs-space-sm);
  border-top: 1px solid var(--cs-border);
  font-size: var(--cs-font-xs);
  color: var(--cs-text-muted);
}

/* ==========================================================================
   LEFT NAV (dark sidebar)
   ========================================================================== */
.cs-nav { padding: var(--cs-space-xs) 0; }
.cs-nav-divider { height: 1px; background: var(--cs-border-dark); margin: var(--cs-space-md) 0; }

.cs-nav-link {
  display: block;
  padding: 3px 0 3px var(--cs-space-md);
  font-size: var(--cs-font-sm);
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-nav-link:hover { color: var(--cs-gold); }
.cs-nav-link.active { color: var(--cs-gold); font-weight: 600; border-left-color: var(--cs-gold); }

.cs-nav-label {
  font-size: var(--cs-font-xs);
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 0 2px var(--cs-space-md);
}

/* ==========================================================================
   RIGHT SIDEBAR
   ========================================================================== */
.cs-aside-section { margin-bottom: var(--cs-space-xl); }
.cs-aside-section:last-child { margin-bottom: 0; }

.cs-aside-heading {
  display: flex; align-items: center; gap: var(--cs-space-md);
  font-size: var(--cs-font-xs);
  font-weight: 600;
  color: var(--cs-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--cs-space-md);
}
/* Neutral rule trailing from the label to the section's right edge */
.cs-aside-heading::after { content: ''; flex: 1; height: 1px; background: var(--cs-border); }
.site-left .cs-aside-heading::after { background: var(--cs-border-dark); }

.site-right p { font-size: var(--cs-font-sm); line-height: 1.5; margin: 2px 0; }

/* Stat grid (big numbers, 2-up) */
.cs-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: var(--cs-space-sm); }
.cs-big-stat { background: var(--cs-bg-card); border-radius: var(--cs-radius-md); padding: var(--cs-space-md) var(--cs-space-sm); text-align: center; }
.cs-big-num { font-size: var(--cs-font-2xl); font-weight: 700; color: var(--cs-text); line-height: 1; font-variant-numeric: tabular-nums; }
.cs-big-label { font-size: var(--cs-font-xs); color: var(--cs-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Bar charts */
.cs-chart { width: 100%; border-collapse: collapse; }
.cs-chart td { padding: var(--cs-space-xs) 0; vertical-align: middle; font-size: var(--cs-font-sm); }
.cs-chart-label { white-space: nowrap; padding-right: var(--cs-space-md) !important; }
.cs-chart-label a { color: var(--cs-link); text-decoration: none; }
.cs-chart-label a:hover { color: var(--cs-gold); }
.cs-chart-bar { width: 80px; padding: 0 var(--cs-space-xs) !important; }
.cs-chart-bar-fill { display: block; height: 6px; background: var(--cs-gold); border-radius: var(--cs-radius-md); }
.cs-chart-num { text-align: right; font-weight: 600; color: var(--cs-text); font-variant-numeric: tabular-nums; padding-left: var(--cs-space-xs) !important; white-space: nowrap; }
.cs-chart-footer { margin-top: var(--cs-space-sm); }

/* Stat rows */
.cs-stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; font-size: var(--cs-font-sm); }
.cs-stat-row a { color: var(--cs-link); text-decoration: none; }
.cs-stat-row a:hover { color: var(--cs-gold); }
.cs-stat-label { color: var(--cs-text-secondary); }

/* Subtitle (secondary text below a heading) */
.cs-subtitle { font-size: var(--cs-font-sm); color: var(--cs-text-secondary); }
.cs-subtitle a { color: var(--cs-link); text-decoration: none; }
.cs-subtitle a:hover { color: var(--cs-gold); }

/* Heatmap (GitHub streak style — shared by setlists + music) */
.cs-heatmap { margin-bottom: var(--cs-space-2xl); font-size: var(--cs-font-sm); }

.cs-heatmap-header {
  display: grid; grid-template-columns: 36px repeat(12, 1fr);
  gap: 1px; margin-bottom: 1px; font-size: var(--cs-font-xs); color: var(--cs-text-muted); text-align: center;
}

.cs-heatmap-row {
  display: grid; grid-template-columns: 36px repeat(12, 1fr);
  gap: 1px; margin-bottom: 1px;
}
.cs-heatmap-row--mini { grid-template-columns: 22px repeat(12, 1fr); }

.cs-heatmap-year {
  font-size: var(--cs-font-sm); color: var(--cs-text-secondary);
  text-align: right; padding-right: var(--cs-space-xs);
  font-variant-numeric: tabular-nums; line-height: 22px;
  text-decoration: none;
}
.cs-heatmap-year a { color: var(--cs-text-secondary); text-decoration: none; }
.cs-heatmap-year a:hover { color: var(--cs-gold); }
.cs-heatmap-year--mini { font-size: var(--cs-font-xs); line-height: 12px; padding-right: 3px; color: var(--cs-text-muted); }
.cs-heatmap-year--mini:hover { color: var(--cs-gold); }

.cs-heatmap-cell {
  display: block; height: 22px; background: var(--cs-bg-card);
  border-radius: var(--cs-radius-sm); text-align: center; line-height: 22px;
  font-size: var(--cs-font-xs); color: transparent; text-decoration: none;
}
.cs-heatmap-cell.filled { background: var(--cs-gold); color: #fff; font-weight: 600; }
.cs-heatmap-cell:hover { outline: 1px solid var(--cs-gold-dark); outline-offset: -1px; }
.cs-heatmap-cell--mini { height: 12px; border-radius: 1px; line-height: 12px; font-size: 0; }

/* List row spacing normalization */
.cs-list-row {
  padding: var(--cs-space-sm) 0;
  border-bottom: 1px solid var(--cs-border);
}
.cs-list-row:last-child { border-bottom: none; }

/* ==========================================================================
   PAGE COMPONENTS
   ========================================================================== */

/* Top nav bar (back + optional prev/next) */
.cs-page-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--cs-space-lg); }
.cs-page-nav-pn { display: flex; gap: var(--cs-space-xs); }
.cs-nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: var(--cs-space-sm) var(--cs-space-lg); font-size: var(--cs-font-sm); color: var(--cs-text-secondary);
  text-decoration: none; background: var(--cs-bg-card); border-radius: var(--cs-radius-lg);
}
.cs-nav-btn:hover { color: var(--cs-text); background: var(--cs-bg-card-hover); }

/* Page header */
.cs-page-header { margin-bottom: var(--cs-space-2xl); }

/* Headings */
.cs-h1 { font-size: var(--cs-font-3xl); font-weight: 700; color: var(--cs-text); line-height: 1.2; margin: 0 0 var(--cs-space-sm) 0; }
.cs-h1 a { color: var(--cs-text); text-decoration: none; }
.cs-h1 a:hover { color: var(--cs-link); }
.cs-h2 { font-size: var(--cs-font-xl); font-weight: 700; color: var(--cs-text); margin: var(--cs-space-3xl) 0 var(--cs-space-md) 0; padding-bottom: var(--cs-space-sm); border-bottom: 1px solid var(--cs-border); }
.cs-h3 { font-size: var(--cs-font-lg); font-weight: 700; color: var(--cs-text); margin: 16px 0 var(--cs-space-xs) 0; }
.cs-h3 a { color: var(--cs-text); text-decoration: none; }
.cs-h3 a:hover { color: var(--cs-link); }
.cs-h3 span { font-size: var(--cs-font-sm); color: var(--cs-text-muted); font-weight: 400; }

/* Player (dark block) */
.cs-player { background: var(--cs-bg-dark); color: #fff; border-radius: var(--cs-radius-lg); padding: var(--cs-space-lg); }
.cs-player audio { display: none; }

/* Player bar (play btn + scrubber + time) */
.cs-player-bar { display: flex; align-items: center; gap: 10px; padding-bottom: var(--cs-space-sm); }

.cs-player-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--cs-border-dark); color: #fff; cursor: pointer;
  font-size: var(--cs-font-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cs-player-btn:hover { background: var(--cs-gold); }
.cs-player-btn.playing { background: var(--cs-gold); }

.cs-player-mid { flex: 1; min-width: 0; }
.cs-player-now { font-size: var(--cs-font-xs); color: var(--cs-text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.cs-player-now a { color: var(--cs-gold); text-decoration: none; }
.cs-player-now a:hover { color: #fff; }

.cs-player-scrubber { height: 6px; padding: 2px 0; cursor: pointer; position: relative; }
.cs-player-scrubber::before { content: ''; display: block; height: 4px; background: var(--cs-border-dark); border-radius: var(--cs-radius-sm); position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); }
.cs-player-scrubber-fill { height: 4px; background: var(--cs-gold); border-radius: var(--cs-radius-sm); width: 0%; position: relative; z-index: 1; transition: width 0.2s linear; }

.cs-player-time { font-size: var(--cs-font-xs); color: var(--cs-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }

/* Player tracklist */
.cs-player-tracks { max-height: 200px; overflow-y: auto; font-size: var(--cs-font-sm); line-height: 1.4; background: var(--cs-bg-darker); border-radius: 0 0 var(--cs-radius-lg) var(--cs-radius-lg); margin: var(--cs-space-md) calc(-1 * var(--cs-space-lg)) calc(-1 * var(--cs-space-lg)); padding: var(--cs-space-sm) var(--cs-space-md); }
.cs-player-tracks a { color: var(--cs-text-muted); text-decoration: none; display: block; padding: 3px var(--cs-space-xs); border-radius: var(--cs-radius-sm); }
.cs-player-tracks a:hover { color: #fff; background: var(--cs-border-dark); }
.cs-player-tracks a.playing { color: var(--cs-gold); font-weight: 600; }
.cs-player-tracks::-webkit-scrollbar { width: 4px; }
.cs-player-tracks::-webkit-scrollbar-track { background: transparent; }
.cs-player-tracks::-webkit-scrollbar-thumb { background: var(--cs-text-secondary); border-radius: var(--cs-radius-sm); }

/* Button outline variant */
.cs-nav-btn--outline { border: 1px solid var(--cs-border); color: var(--cs-link); margin-top: var(--cs-space-md); }
.cs-nav-btn--outline:hover { color: var(--cs-text); border-color: var(--cs-text-secondary); }

/* Pill / tag */
.cs-pill {
  display: inline-block;
  font-size: var(--cs-font-sm);
  padding: 2px 10px;
  background: var(--cs-bg-card);
  border-radius: var(--cs-radius-md);
  margin: 2px 1px;
  color: var(--cs-text-secondary);
  text-decoration: none;
}
.cs-pill:hover { color: var(--cs-gold); background: var(--cs-bg-card-hover); }

/* Centered art section */
.cs-aside-art { text-align: center; }

/* Interpretation / about text */
.cs-interpretation { font-size: var(--cs-font-sm); line-height: 1.6; color: var(--cs-text-secondary); }

/* Track number (reusable) */
.cs-track-num {
  color: var(--cs-text-muted);
  font-size: var(--cs-font-sm);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Track note */
.cs-track-note { font-size: var(--cs-font-sm); color: var(--cs-text-muted); }

/* Month label */
.cs-month-label {
  font-size: var(--cs-font-sm); font-weight: 600; color: var(--cs-link);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: var(--cs-space-lg) 0 var(--cs-space-xs); border-bottom: 1px solid var(--cs-border);
}

/* ==========================================================================
   HAMBURGER BUTTON + DRAWER (hidden on desktop)
   ========================================================================== */
.hamburger-btn {
  display: none; /* shown via media query */
  background: none; border: none; color: #fff; font-size: var(--cs-font-base);
  padding: var(--cs-space-md) var(--cs-space-lg); cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn:hover { color: var(--cs-gold); }

.drawer-backdrop {
  display: none;
  position: fixed; inset: 0; background: var(--cs-text); opacity: 0;
  z-index: 999; transition: opacity 0.25s;
}
.drawer-backdrop.open { display: block; opacity: 0.5; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- Tablet landscape --- */
@media (max-width: 960px) {
  /* Left sidebar becomes a drawer */
  .hamburger-btn { display: flex; align-items: center; }

  .site-layout { grid-template-columns: 1fr 320px; }
  .site-layout:not(:has(> .site-right)) { grid-template-columns: 1fr; }

  .site-left {
    position: fixed;
    left: -280px;
    top: 0; bottom: 0;
    width: 280px;
    z-index: 1000;
    transition: left 0.25s ease;
    max-height: 100vh;
    overflow-y: auto;
  }
  .site-left.open { left: 0; }

  .site-right { padding: 14px; }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  /* Right sidebar flows below content */
  .site-layout { grid-template-columns: 1fr; }

  .site-main { order: 1; padding: var(--cs-space-lg); }

  .site-right {
    order: 2;
    position: static;
    max-height: none;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid var(--cs-border);
  }

  /* Nav: scrollable row */
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 0; /* let the sticky search icon sit flush with the edge */
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav-link { white-space: nowrap; flex-shrink: 0; }
  .site-nav-spacer { display: none; }
  .site-nav-user { font-size: 8pt; padding: var(--cs-space-sm) var(--cs-space-xs); }

  /* Nav search collapses to an icon pinned to the right edge of the scrolling nav */
  .site-nav-search {
    position: sticky; right: 0; margin-left: auto;
    background: var(--cs-link);
    box-shadow: -10px 0 8px -2px var(--cs-link);
  }
  .site-nav-search-toggle { display: grid; }

  /* The pill is anchored to the icon's left edge and grows leftward across the row when opened.
     The links stay in the layout (just faded out) so the nav keeps its height. */
  .site-nav-search-field {
    position: absolute; top: 0; bottom: 0; right: 100%;
    width: 0; margin: var(--nav-search-inset) 0;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s 0.1s, visibility 0s 0.3s;
  }
  .site-nav-search-input { font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .site-nav > :not(.site-nav-search) { transition: color 0.15s, opacity 0.2s 0.1s; }

  .site-nav.is-searching > :not(.site-nav-search) {
    opacity: 0; visibility: hidden;
    transition: opacity 0.15s, visibility 0s 0.15s;
  }
  .site-nav.is-searching .site-nav-search { box-shadow: none; }
  .site-nav.is-searching .site-nav-search-field {
    width: calc(100vw - 100% - var(--nav-search-inset));
    opacity: 1; visibility: visible;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.1s;
  }
  .site-nav.is-searching .site-nav-search-icon-open { opacity: 0; transform: rotate(90deg); }
  .site-nav.is-searching .site-nav-search-icon-close { opacity: 1; transform: none; }

  /* Grids */
  .home-albums { grid-template-columns: repeat(3, 1fr); }
  .home-explore { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .news-body img { max-width: 100%; max-height: none; }

  /* Show page: promote player above map on mobile */
  .sl-aside-recording { order: -1; }

  /* FAQ answer panel: full width below questions */
  .faq-answer-panel { border-left: none; border-top: 1px solid var(--cs-border); }
  .site-layout--wide-aside { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav > *, .site-nav-search-field, .site-nav-search-toggle > i { transition: none !important; }
}

/* --- Phone --- */
@media (max-width: 600px) {
  .site-main { padding: var(--cs-space-md); }

  /* Header: shrink logo */
  .site-header { background-position: top right; background-size: 100px; }

  /* Nav: smaller */
  .site-nav-link { padding: var(--cs-space-sm) var(--cs-space-lg); font-size: var(--cs-font-xs); }

  /* Touch targets */
  .cs-player-btn { width: 44px; height: 44px; font-size: var(--cs-font-base); }
  .cs-player-tracks a { padding: var(--cs-space-sm) var(--cs-space-md); }
  .sl-sort-btn { padding: var(--cs-space-sm) var(--cs-space-lg); }

  /* Tables: scrollable */
  .sl-stats-table { display: block; overflow-x: auto; }

  /* Heatmap: bigger cells for touch */
  .cs-heatmap-cell { height: 26px; line-height: 26px; }
  .cs-heatmap-year { line-height: 26px; }
  .cs-heatmap-row { grid-template-columns: 28px repeat(12, 1fr); }
  .cs-heatmap-header { grid-template-columns: 28px repeat(12, 1fr); }

  /* Album detail: stack */
  .mu-album-layout { grid-template-columns: 1fr; }
  .mu-album-art-col { position: static; text-align: center; }
  .mu-album-hero-art { max-width: 200px; margin: 0 auto; }

  /* Grids: tighter */
  .mu-album-grid { grid-template-columns: repeat(2, 1fr); gap: var(--cs-space-lg); }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-thumb-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: var(--cs-space-lg); }
  .home-explore { grid-template-columns: 1fr; }
  .home-albums { grid-template-columns: repeat(2, 1fr); }

  /* Show rows */
  .sl-show-row-icons { width: auto; min-width: auto; gap: var(--cs-space-xs); }

  /* Media grid */
  .media-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SOCIAL: Favorites + Attendance
   ========================================================================== */

:root {
  --ccb-heart: #c0543e;
}

/* --- Inline heart button (songs, albums) --- */
.ccb-fav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 2px 0;
  font-size: inherit; color: var(--cs-text-muted);
  cursor: pointer; font-family: inherit; text-decoration: none;
  vertical-align: middle; line-height: 1;
  transition: color 0.15s;
}
.ccb-fav-btn i {
  font-size: 1.15em;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s;
}
.ccb-fav-btn:hover { color: var(--ccb-heart); text-decoration: none; }
.ccb-fav-btn.active, .ccb-fav-btn.active i { color: var(--ccb-heart); }

/* --- Count --- */
.ccb-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--cs-font-sm);
  color: inherit; opacity: 0.7;
}

/* --- Pop animation --- */
@keyframes ccb-pop {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.5); }
  50%  { transform: scale(0.85); }
  75%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.ccb-fav-btn.pop i, .ccb-attend-btn-lg.pop i {
  animation: ccb-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Sidebar "I was there" pill --- */
.ccb-attend-btn-lg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  background: none; border: 1px solid var(--cs-border); border-radius: 20px;
  font-size: var(--cs-font-sm); font-family: inherit; font-weight: 500;
  color: var(--cs-text-muted); cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}
.ccb-attend-btn-lg:hover { border-color: var(--cs-gold); color: var(--cs-gold); }
.ccb-attend-btn-lg.active {
  background: var(--cs-bg-card); border-color: var(--cs-gold); color: var(--cs-gold);
  font-weight: 600;
}
.ccb-attend-btn-lg.active:hover { border-color: var(--cs-gold-dark); color: var(--cs-gold-dark); }

/* --- Attendee badges (sidebar) --- */
.ccb-attend-list { display: flex; flex-wrap: wrap; gap: var(--cs-space-xs); }
.ccb-attend-badge {
  font-size: var(--cs-font-sm); color: var(--cs-text-secondary); text-decoration: none;
  background: var(--cs-bg-card); padding: 2px var(--cs-space-md); border-radius: var(--cs-radius-md);
}
.ccb-attend-badge:hover { color: var(--cs-gold); background: var(--cs-bg-card-hover); }

/* --- Heart count on album track listings (right-aligned) --- */
.mu-track-fav {
  font-size: var(--cs-font-xs); color: var(--ccb-heart); opacity: 0.6;
  margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 3px;
}

/* --- Attendance count on setlist year index (right-aligned) --- */
.sl-attend-count {
  font-size: var(--cs-font-xs); color: var(--cs-text-muted); opacity: 0.7;
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; gap: 3px;
}

/* --- Login modal --- */
.ccb-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.ccb-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.ccb-modal-box {
  position: relative; z-index: 1;
  width: 360px; max-width: 90vw;
  font-family: var(--cs-font);
}
.ccb-modal-rlt {
  background: #000; color: #fff;
  border: 1px solid #ff0000;
  border-radius: 0;
  padding: 20px 24px;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 11px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.ccb-modal-brand {
  text-align: center; margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ff0000;
}
.ccb-modal-brand img { max-width: 200px; height: auto; }
.ccb-modal-brand a { display: inline-block; }
.ccb-modal-subtitle {
  text-align: center; color: #999933;
  font-size: 11px; font-weight: bold;
  margin-bottom: 16px;
  font-family: Verdana, Helvetica, sans-serif;
}
.ccb-modal-close {
  position: absolute; top: 10px; right: 14px;
  font-size: 18px; color: #666; text-decoration: none;
  line-height: 1; cursor: pointer;
}
.ccb-modal-close:hover { color: #fff; }
.ccb-modal-field {
  margin-bottom: 10px;
}
.ccb-modal-field input[type="text"],
.ccb-modal-field input[type="email"],
.ccb-modal-field input[type="password"] {
  width: 100%; padding: 4px 6px; box-sizing: border-box;
  border: 1px solid #999933;
  font-size: 11px; font-family: Verdana, Helvetica, sans-serif;
  background: #1a1a1a; color: #fff;
}
.ccb-modal-field input:focus {
  outline: none; border-color: #bbbb44;
}
.ccb-modal-error {
  color: #ff0000; font-size: 11px;
  margin-bottom: 10px;
  font-family: Verdana, Helvetica, sans-serif;
}
.ccb-modal-submit {
  width: 100%; padding: 4px 12px;
  background: #d4d0c8; color: #000;
  border: 2px outset #d4d0c8;
  font-size: 11px; font-family: Verdana, Helvetica, sans-serif;
  cursor: pointer; margin-top: 4px;
}
.ccb-modal-submit:hover { background: #e0ddd6; }
.ccb-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.ccb-modal-footer {
  margin-top: 14px; text-align: center;
  font-size: 11px; color: #666;
  font-family: Verdana, Helvetica, sans-serif;
  padding-top: 10px;
  border-top: 1px solid #222;
}
.ccb-modal-footer a { color: #999933; text-decoration: none; }
.ccb-modal-footer a:hover { text-decoration: underline; }
.ccb-modal-rlt label { cursor: pointer; }
.ccb-modal-rlt label a { color: #999933; }

/* --- Suggest edit link --- */
.ccb-suggest-edit {
  font-size: var(--cs-font-xs); color: var(--cs-text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.ccb-suggest-edit:hover { color: var(--cs-gold); }
