/* ===== Team color toggle ===== */

:root {
  --accent-rgb: 111, 183, 255; /* default: the site's usual blue */
}

body.theme-ravens {
  --accent-rgb: 157, 78, 221; /* Ravens purple */
}

body.theme-orioles {
  --accent-rgb: 255, 107, 26; /* Orioles orange */
}

/* Headings and default paragraph links get their color from the
   compiled Bootstrap theme (a fixed hex baked in at build time), not
   from this file — these two rules let the toggle reach them too.
   Anything more specific elsewhere (buttons, nav, muted table text,
   etc.) already has its own !important color and is unaffected. */
h1, h2, h3, h4, h5, h6 {
  color: rgb(var(--accent-rgb));
}

a:not(.cta-button) {
  color: rgb(var(--accent-rgb));
}

/* ===== Layout helpers ===== */

.hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 1rem 2.5rem 1rem;
  border-bottom: 1px solid rgba(91, 127, 166, 0.35);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.25rem;
}

.hero .tagline {
  font-size: 1.35rem;
  font-style: italic;
  color: #dbe6f5;
  opacity: 0.9;
  max-width: 640px;
  margin: 0.75rem auto 0 auto;
}

.gold-rule {
  width: 120px;
  height: 2px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, transparent, #e8c15a, transparent);
}

.sparkle {
  position: absolute;
  color: #e8c15a;
  pointer-events: none;
  animation: twinkle 2.6s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(232, 193, 90, 0.7);
}

/* ===== Buttons ===== */

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.cta-button {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 0.65rem 1.6rem;
  border: 1px solid rgb(var(--accent-rgb));
  color: rgb(var(--accent-rgb)) !important;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.2s ease-in-out;
}

.cta-button:hover {
  background: rgb(var(--accent-rgb));
  color: #05070d !important;
}

.cta-button.filled {
  background: linear-gradient(135deg, #e8c15a, #c9a13f);
  border-color: #e8c15a;
  color: #1c1204 !important;
  font-weight: 600;
}

.cta-button.filled:hover {
  background: linear-gradient(135deg, #f3d375, #dbb452);
  border-color: #f3d375;
  color: #1c1204 !important;
}

.cta-button.filled::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.cta-button.filled:hover::after {
  left: 130%;
}

/* ===== Comedian Cards ===== */

.comedian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.comedian-card {
  background: linear-gradient(180deg, rgba(28,63,110,0.12), rgba(5,7,13,0.4));
  border: 1px solid rgba(91, 127, 166, 0.35);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.comedian-card:hover {
  transform: translateY(-4px);
  border-color: #e8c15a;
  box-shadow: 0 4px 18px rgba(232, 193, 90, 0.15);
}

.comedian-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(var(--accent-rgb));
  margin: 0 auto 1rem auto;
  display: block;
  background: #0a0f1a;
}

.comedian-name {
  font-family: "Source Serif 4", serif;
  color: rgb(var(--accent-rgb));
  font-size: 1.3rem;
  margin: 0.25rem 0 0.15rem 0;
}

.comedian-tag {
  color: #5b7fa6;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.comedian-bio {
  font-size: 0.98rem;
  color: #dbe6f5;
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.social-links a {
  color: #a9c3de !important;
  opacity: 0.9;
  text-decoration: underline !important;
  text-decoration-color: rgba(var(--accent-rgb), 0.35) !important;
  text-underline-offset: 3px;
}

.social-links a:hover {
  color: rgb(var(--accent-rgb)) !important;
  opacity: 1;
  text-decoration-color: rgb(var(--accent-rgb)) !important;
}

/* ===== Media (podcasts, books, etc.) ===== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.media-card {
  background: linear-gradient(180deg, rgba(28,63,110,0.12), rgba(5,7,13,0.4));
  border: 1px solid rgba(91, 127, 166, 0.35);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: #e8c15a;
  box-shadow: 0 4px 18px rgba(232, 193, 90, 0.15);
}

.media-cover {
  width: 160px;
  height: 160px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(91, 127, 166, 0.4);
  margin: 0 auto 0.85rem auto;
  display: block;
  background: #0a0f1a;
}

.media-type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}

.media-type-podcast {
  background: rgba(111, 183, 255, 0.14);
  border-color: rgba(111, 183, 255, 0.4);
  color: #6fb7ff;
}

.media-type-book {
  background: rgba(232, 193, 90, 0.14);
  border-color: rgba(232, 193, 90, 0.4);
  color: #e8c15a;
}

.media-type-other {
  background: rgba(185, 138, 255, 0.14);
  border-color: rgba(185, 138, 255, 0.4);
  color: #b98aff;
}

.media-title {
  font-family: "Source Serif 4", serif;
  color: #dbe6f5;
  font-size: 1.2rem;
  margin: 0.15rem 0;
}

.media-creator {
  color: #5b7fa6;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.media-description {
  font-size: 0.95rem;
  color: #dbe6f5;
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

/* ===== Shows list ===== */

.show-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.show-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px dashed rgba(91, 127, 166, 0.35);
  flex-wrap: wrap;
}

.show-item .show-name a {
  font-family: "Source Serif 4", serif;
  font-size: 1.2rem;
  color: #dbe6f5 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.5);
}

.show-item .show-name a:hover {
  color: rgb(var(--accent-rgb)) !important;
}

.show-item .show-date {
  color: #5b7fa6;
  font-style: italic;
  white-space: nowrap;
}

.show-month-heading {
  color: #1c3f6e;
  background: none;
  -webkit-text-stroke: 0.5px rgb(var(--accent-rgb));
  margin-top: 2.5rem;
}

/* ===== Shows calendar grid ===== */

.cal-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 5px;
  min-width: 680px;
}

.cal-dow {
  text-align: center;
  font-family: "Source Serif 4", serif;
  color: rgb(var(--accent-rgb));
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(91, 127, 166, 0.35);
}

.cal-day {
  min-height: 92px;
  border: 1px solid rgba(91, 127, 166, 0.25);
  border-radius: 4px;
  padding: 0.4rem;
  background: rgba(28, 63, 110, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cal-day.empty {
  border-color: transparent;
  background: none;
}

.cal-daynum {
  font-size: 0.8rem;
  color: #5b7fa6;
  font-family: "Source Serif 4", serif;
}

.cal-show {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.14);
  color: #dbe6f5 !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-show:hover {
  background: rgba(232, 193, 90, 0.3);
  color: #1c1204 !important;
}

.cal-mic {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  background: rgba(185, 138, 255, 0.16);
  color: #e3d2ff !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.cal-mic:hover {
  background: rgba(185, 138, 255, 0.4);
  color: #1c1204 !important;
}

.cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #a9c3de;
  margin: 0.5rem 0 2rem 0;
}

.cal-legend-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.3rem;
}

.cal-legend-show {
  background: rgba(var(--accent-rgb), 0.6);
}

.cal-legend-mic {
  background: rgba(185, 138, 255, 0.7);
}

/* Toggled by the "Hide Open Mics" button on the Shows page */
body.hide-mics .cal-mic,
body.hide-mics .cal-legend-mic-item {
  display: none;
}

@media (max-width: 700px) {
  .cal-grid {
    min-width: 560px;
    gap: 3px;
  }
  .cal-day {
    min-height: 76px;
    padding: 0.3rem;
  }
  .cal-show,
  .cal-mic {
    font-size: 0.72rem;
  }
}

/* ===== Search inputs ===== */

.site-search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(28, 63, 110, 0.1);
  border: 1px solid rgba(91, 127, 166, 0.4);
  border-radius: 20px;
  color: #dbe6f5;
  font-size: 0.95rem;
  font-family: "Source Sans 3", sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.site-search-input::placeholder {
  color: #5b7fa6;
}

.site-search-input:focus {
  border-color: rgb(var(--accent-rgb));
}

/* ===== Callout / funny asides ===== */

.aside-note {
  border-left: 3px solid #1c3f6e;
  padding: 0.6rem 1rem;
  color: #5b7fa6;
  font-style: italic;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

/* ===== Embedded external sheet ===== */

.sheet-embed-wrap {
  border: 1px solid rgba(91, 127, 166, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0 2.5rem 0;
  background: #f4f6f8; /* the sheet itself renders white/light */
  position: relative;
  min-height: 1000px;
}

.sheet-embed-wrap iframe {
  display: block;
  position: relative;
  z-index: 1;
}

.sheet-loading-note {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b7fa6;
  font-style: italic;
  font-size: 1.05rem;
  background: #0a0f1a;
}

/* ===== Open Mic table ===== */

.openmic-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem 0;
  border: 1px solid rgba(91, 127, 166, 0.35);
  border-radius: 4px;
}

table.openmic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.openmic-table caption {
  caption-side: top;
  color: #5b7fa6;
  font-style: italic;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

table.openmic-table th {
  background: rgba(28, 63, 110, 0.25);
  color: rgb(var(--accent-rgb));
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(91, 127, 166, 0.4);
  white-space: nowrap;
}

table.openmic-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px dashed rgba(91, 127, 166, 0.25);
  color: #dbe6f5;
  vertical-align: top;
}

table.openmic-table tr:hover td {
  background: rgba(var(--accent-rgb), 0.06);
}

table.openmic-table tr {
  scroll-margin-top: 90px;
}

table.openmic-table tr.openmic-highlight td {
  background: rgba(232, 193, 90, 0.28);
  transition: background 0.3s ease;
}

table.openmic-table td.last-verified {
  color: #5b7fa6;
  font-style: italic;
  white-space: nowrap;
}

table.openmic-table a {
  color: rgb(var(--accent-rgb));
}

/* ===== Accessibility badges ===== */

.access-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  font-size: 0.78rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.access-confirmed {
  background: rgba(90, 200, 130, 0.16);
  border-color: rgba(90, 200, 130, 0.5);
  color: #7fe0a3;
}

.access-likely {
  background: rgba(232, 193, 90, 0.14);
  border-color: rgba(232, 193, 90, 0.45);
  color: #e8c15a;
}

.access-unknown {
  background: rgba(91, 127, 166, 0.14);
  border-color: rgba(91, 127, 166, 0.4);
  color: #a9c3de;
}

.access-no {
  background: rgba(224, 90, 90, 0.14);
  border-color: rgba(224, 90, 90, 0.45);
  color: #e88a8a;
}

.access-legend {
  font-size: 0.85rem;
  color: #a9c3de;
  margin: 0.75rem 0 2rem 0;
  line-height: 1.8;
}

/* ===== Submit page ===== */

.form-embed-wrap {
  border: 1px solid rgba(91,127,166,0.4);
  border-radius: 4px;
  padding: 1.5rem;
  background: rgba(28,63,110,0.08);
  text-align: center;
  margin: 2rem 0;
}
