/* ============================================
   FESTIVAL.CSS — Generic Festival Site Template
   Default theme; overridden at runtime by branding loaded from Firestore.
   ============================================ */

/* ============================================
   CUSTOM PROPERTIES (BRANDING DEFAULTS)
   Overridden at runtime by tatApplyBranding()
   ============================================ */

:root {
  --tat-primary:       #ff8c00;
  --tat-accent:        #ffd700;
  --tat-bg:            #0a0a0a;
  --tat-surface:       #141414;
  --tat-surface2:      #1e1e1e;
  --tat-text:          #f0f0f0;
  --tat-text-muted:    #999;
  --tat-border-color:  #ff8c00;
  --tat-border-style:  solid;
  --tat-border-color-2:  #9333ea;
  --tat-border-width-2:  3px;
  --tat-border-radius-2: 12px;
  --tat-border-style-2: solid;
  --tat-border-color-3:  #22c55e;
  --tat-border-width-3:  1px;
  --tat-border-radius-3: 8px;
  --tat-border-style-3:  solid;
  --tat-border-width:  3px;
  --tat-border-radius: 12px;
  --tat-font-family:   'Enchanted Land', Georgia, serif;

  --tat-nav-height: 64px;
  --tat-glow:          0 0 12px rgba(255, 140, 0, 0.45);
  --tat-glow-accent:   0 0 10px rgba(255, 215, 0, 0.4);
  --tat-transition:    0.2s ease;

  /* Extended radius tokens */
  --tat-hero-radius:   18px;   /* hero image — more prominent frame */
  --tat-card-radius:   16px;   /* schedule slots + event cards — fuller rounding */
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--tat-bg);
  color: var(--tat-text);
  font-family: var(--tat-font-family);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--tat-primary);
  text-decoration: none;
  transition: color var(--tat-transition), text-shadow var(--tat-transition);
}

a:hover {
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.tat-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--tat-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.4s ease;
}

.tat-loading-screen.tat-loading-hidden {
  opacity: 0;
  pointer-events: none;
}

.tat-loading-label {
  color: var(--tat-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Spinner */
.tat-spinner {
  width: 52px;
  height: 52px;
  border: var(--tat-border-width) solid rgba(255, 140, 0, 0.25);
  border-top-color: var(--tat-primary);
  border-radius: 50%;
  animation: tat-spin 0.8s linear infinite;
  box-shadow: var(--tat-glow);
}

.tat-spinner--sm {
  width: 28px;
  height: 28px;
  border-width: 2px;
}

@keyframes tat-spin {
  to { transform: rotate(360deg); }
}

.tat-page-loading {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

/* ============================================
   NAV
   ============================================ */

#tat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--tat-surface);
  border-bottom: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  box-shadow: 0 2px 16px rgba(255, 140, 0, 0.2);
}

.tat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--tat-nav-height);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo / festival name */
.tat-nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--tat-primary);
  text-shadow: var(--tat-glow);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
}

.tat-nav-logo:hover {
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
}

/* Nav links container */
.tat-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Individual nav links — thick pill-style bordered buttons */
.tat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0.85rem;
  border: var(--tat-border-width) solid transparent;
  border-radius: 999px;
  color: var(--tat-text);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  transition:
    color var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition),
    box-shadow var(--tat-transition);
  white-space: nowrap;
  background: none;
}

.tat-nav-link:hover {
  color: var(--tat-primary);
  border-color: var(--tat-primary);
  box-shadow: var(--tat-glow);
  text-shadow: none;
}

.tat-nav-link.tat-nav-active {
  color: var(--tat-bg);
  background-color: var(--tat-primary);
  border-color: var(--tat-primary);
  box-shadow: var(--tat-glow);
}

/* Dropdown chevron */
.tat-dropdown-arrow {
  font-size: 0.7em;
  transition: transform var(--tat-transition);
}
.tat-dropdown.dropdown-open .tat-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown container */
.tat-dropdown {
  position: relative;
}

.tat-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 0.4rem 0;
  box-shadow: var(--tat-glow), 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}

.tat-dropdown.dropdown-open .tat-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.tat-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--tat-text);
  font-size: 0.9rem;
  transition: background-color var(--tat-transition), color var(--tat-transition);
}

.tat-dropdown-item:hover,
.tat-dropdown-item.tat-nav-active {
  background-color: var(--tat-primary);
  color: var(--tat-bg);
}

/* Hamburger button (hidden on desktop) */
.tat-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.tat-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--tat-primary);
  border-radius: 2px;
  transition: background-color var(--tat-transition);
}

.tat-hamburger:hover span {
  background-color: var(--tat-accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

#tat-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Shared block heading */
.tat-block-heading {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--tat-accent);
  text-shadow: var(--tat-glow-accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Centered headings for table + schedule blocks — matches 2025 site layout */
.tat-table-block > .tat-block-heading,
.tat-schedule-group > .tat-block-heading {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.tat-table-block > .tat-block-subtitle,
.tat-schedule-group > .tat-block-subtitle {
  text-align: center;
}

.tat-block-subtitle {
  color: var(--tat-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Shared empty state */
.tat-empty-state {
  color: var(--tat-text-muted);
  font-style: italic;
  padding: 1rem 0;
}

/* Not found / error */
.tat-not-found,
.tat-error-screen {
  text-align: center;
  padding: 4rem 1rem;
}

.tat-not-found h2,
.tat-error-screen h2 {
  color: var(--tat-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tat-not-found p,
.tat-error-screen p {
  color: var(--tat-text-muted);
  margin-bottom: 1.5rem;
}

.tat-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: var(--tat-border-width) solid var(--tat-primary);
  border-radius: 999px;
  color: var(--tat-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color var(--tat-transition),
    color var(--tat-transition),
    box-shadow var(--tat-transition);
}

.tat-btn:hover {
  background-color: var(--tat-primary);
  color: var(--tat-bg);
  box-shadow: var(--tat-glow);
}

/* ============================================
   HERO IMAGE
   ============================================ */

.tat-hero-image {
  width: 100%;
  /* Outer frame: thick orange border + generous radius */
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-hero-radius);
  overflow: hidden;
  /* Double-glow: orange ambient + strong drop shadow for depth */
  box-shadow:
    var(--tat-glow),
    0 0 0 var(--tat-border-width) var(--tat-surface),
    0 0 0 calc(var(--tat-border-width) * 2 + 2px) var(--tat-border-color),
    0 8px 32px rgba(0, 0, 0, 0.7);
  background-color: var(--tat-surface);
}

.tat-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ============================================
   TEXT BLOCK — markdown prose
   ============================================ */

.tat-text-block {
  line-height: 1.75;
  /* Card treatment: bordered panel matching the site's framed-content style */
  background-color: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tat-text-block h2 {
  font-size: 1.5rem;
  color: var(--tat-primary);
  text-shadow: var(--tat-glow);
  margin: 1.5rem 0 0.5rem;
}

.tat-text-block h3 {
  font-size: 1.2rem;
  color: var(--tat-primary);
  margin: 1.25rem 0 0.4rem;
}

.tat-text-block h4 {
  font-size: 1rem;
  color: var(--tat-accent);
  margin: 1rem 0 0.3rem;
}

.tat-text-block p {
  margin-bottom: 0.85rem;
}

.tat-text-block ul,
.tat-text-block ol {
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.tat-text-block li {
  margin-bottom: 0.25rem;
}

.tat-text-block a {
  color: var(--tat-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tat-text-block a:hover {
  color: var(--tat-accent);
}

.tat-text-block code {
  font-family: 'Courier New', monospace;
  background: var(--tat-surface2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.tat-text-block blockquote {
  border-left: 4px solid var(--tat-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--tat-text-muted);
  font-style: italic;
}

.tat-text-block hr {
  border: none;
  border-top: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  margin: 1.5rem 0;
  opacity: 0.4;
}

/* ============================================
   TABLE BLOCK
   ============================================ */

.tat-table-block {
  width: 100%;
  /* Outer card wrapper — same panel look as text block */
  background-color: var(--tat-surface);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tat-table-scroll {
  overflow-x: auto;
  /* Inner scroll border matches site's nested-frame style */
  border: var(--tat-border-width) solid rgba(255, 140, 0, 0.35);
  border-radius: calc(var(--tat-border-radius) - 4px);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
  background-color: var(--tat-surface2);
}

.tat-table-block table,
.tat-event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.tat-table-block th,
.tat-event-table th {
  background-color: rgba(255, 140, 0, 0.12);
  color: var(--tat-accent);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-bottom: 2px var(--tat-border-style, solid) var(--tat-border-color);
  text-shadow: var(--tat-glow-accent);
}

.tat-table-block td,
.tat-event-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 140, 0, 0.15);
  color: var(--tat-text);
  vertical-align: middle;
}

/* Alternating row backgrounds */
.tat-table-block tbody tr:nth-child(even),
.tat-event-table tbody tr:nth-child(even) {
  background-color: var(--tat-surface);
}

.tat-table-block tbody tr:last-child td,
.tat-event-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hoverable linked rows */
.tat-table-row-linked:hover {
  background-color: rgba(255, 140, 0, 0.08);
  cursor: pointer;
}

.tat-table-link {
  color: var(--tat-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tat-table-link:hover {
  color: var(--tat-accent);
}

/* Live row highlight */
.tat-event-table tr.tat-event-live td {
  background-color: rgba(255, 215, 0, 0.08);
}

/* ============================================
   PARTICIPANT GRID
   ============================================ */

/* Outer wrapper: centered heading, panel feel */
.tat-participant-grid {
  width: 100%;
}

.tat-participant-grid > .tat-block-heading {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tat-participant-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Each participant card — rounded panel with orange border */
.tat-participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem 1rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  color: var(--tat-text);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition),
    transform var(--tat-transition);
}

a.tat-participant-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
  color: var(--tat-text);
  transform: translateY(-2px);
}

.tat-participant-logo-wrap {
  position: relative;
  display: inline-block;
}

.tat-participant-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--tat-border-width) solid var(--tat-primary);
  display: block;
  box-shadow: var(--tat-glow);
}

/* Initial fallback circle */
.tat-participant-initial {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) solid var(--tat-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--tat-primary);
  font-weight: bold;
  box-shadow: var(--tat-glow);
}

.tat-participant-name {
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.3;
  text-align: center;
  color: var(--tat-text);
}

/* "Here Now" badge */
.tat-here-now-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: #22c55e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ============================================
   EVENT LIST
   ============================================ */

.tat-event-list {
  width: 100%;
}

/* Cards layout */
.tat-event-list--cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tat-event-list--cards > .tat-block-heading {
  margin-bottom: 0.75rem;
}

/* Event card thumbnail */
.tat-event-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: calc(var(--tat-card-radius) - 2px) calc(var(--tat-card-radius) - 2px) 0 0;
  margin: -1.1rem -1.4rem 0.85rem;
  width: calc(100% + 2.8rem);
  display: block;
}

/* Individual event card */
.tat-event-card {
  padding: 1.1rem 1.4rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  margin-top: 0.75rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition);
}

.tat-event-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
}

.tat-event-card--live {
  border-color: var(--tat-accent);
  box-shadow: var(--tat-glow-accent);
  background-color: rgba(255, 215, 0, 0.05);
}

.tat-event-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--tat-text);
}

.tat-event-time,
.tat-event-location {
  font-size: 0.87rem;
  color: var(--tat-text-muted);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.tat-event-desc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--tat-text-muted);
  line-height: 1.55;
}

/* Live badge */
.tat-live-badge {
  display: inline-block;
  background-color: var(--tat-accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-left: 0.4em;
  box-shadow: var(--tat-glow-accent);
}

/* ============================================
   SCHEDULE GROUP
   ============================================ */

.tat-schedule-group {
  width: 100%;
}

.tat-schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Large rounded pill cards matching the 2025 DJ schedule look */
.tat-schedule-slot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  border-radius: var(--tat-card-radius);
  background-color: var(--tat-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow var(--tat-transition),
    border-color var(--tat-transition),
    background-color var(--tat-transition);
}

.tat-schedule-slot:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
}

.tat-slot-logo-wrap {
  flex-shrink: 0;
}

.tat-slot-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--tat-border-width) solid var(--tat-primary);
  box-shadow: var(--tat-glow);
}

.tat-slot-initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--tat-surface2);
  border: var(--tat-border-width) solid var(--tat-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--tat-primary);
  font-weight: bold;
  box-shadow: var(--tat-glow);
}

.tat-slot-info {
  flex: 1;
  min-width: 0;
}

.tat-slot-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tat-slot-time {
  font-size: 0.88rem;
  color: var(--tat-accent);
  margin-top: 0.2rem;
}

.tat-slot-location {
  font-size: 0.82rem;
  color: var(--tat-text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#tat-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  min-width: 220px;
  max-width: 360px;
  padding: 0.75rem 1.1rem;
  border-radius: var(--tat-border-radius);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  background-color: var(--tat-surface2);
  color: var(--tat-text);
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);

  /* Hidden by default */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#tat-toast.tat-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#tat-toast.tat-toast-info {
  border-color: var(--tat-primary);
}

#tat-toast.tat-toast-success {
  border-color: #22c55e;
  color: #86efac;
}

#tat-toast.tat-toast-error {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 700px) {
  /* Show hamburger, hide links by default */
  .tat-hamburger {
    display: flex;
  }

  .tat-nav-links {
    display: none;
    position: absolute;
    top: var(--tat-nav-height);
    left: 0;
    right: 0;
    background-color: var(--tat-surface);
    border-bottom: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 150;
  }

  .tat-nav-links.nav-open {
    display: flex;
  }

  .tat-nav-link {
    border-radius: 8px;
    justify-content: flex-start;
    padding: 0.55rem 0.85rem;
    width: 100%;
  }

  /* Dropdown on mobile: always expanded inside the nav */
  .tat-dropdown {
    width: 100%;
  }

  .tat-dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: none;
    border-radius: 0;
  }

  /* On mobile, always show dropdown children (dropdown-open class not needed) */
  .tat-dropdown .tat-dropdown-menu {
    display: flex;
  }

  .tat-dropdown-toggle {
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .tat-dropdown-arrow {
    margin-left: auto;
  }

  /* Single-column participant grid */
  .tat-participant-grid-inner {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  /* Tighter padding on text + table cards */
  .tat-text-block,
  .tat-table-block {
    padding: 1.1rem 1rem;
  }

  /* Tighter schedule slots */
  .tat-schedule-slot {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  .tat-slot-name {
    font-size: 0.95rem;
  }

  /* Full-width toast */
  #tat-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-width: unset;
    max-width: unset;
  }

  #tat-main {
    padding: 1.5rem 1rem 3rem;
    gap: 1.75rem;
  }

  .tat-block-heading {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .tat-schedule-slot {
    flex-wrap: wrap;
  }

  .tat-event-card {
    padding: 0.85rem 1rem;
  }
}

/* ============================================
   HERO IMAGE OVERLAY
   ============================================ */

.tat-hero-image {
  position: relative;
}

.tat-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: none;
}

.tat-hero-overlay-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.15;
}

.tat-hero-overlay-sub {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============================================
   IMAGE + TEXT BLOCK
   ============================================ */

.tat-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.tat-image-text--right .tat-image-text__img {
  order: 2;
}

.tat-image-text--right .tat-image-text__body {
  order: 1;
}

.tat-image-text--w20 { grid-template-columns: 1fr 4fr; }
.tat-image-text--w30 { grid-template-columns: 3fr 7fr; }
.tat-image-text--w40 { grid-template-columns: 2fr 3fr; }
.tat-image-text--w50 { grid-template-columns: 1fr 1fr; }
.tat-image-text--w60 { grid-template-columns: 3fr 2fr; }

.tat-image-text__img img {
  width: 100%;
  border-radius: 0.5rem;
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color);
  display: block;
}

.tat-image-text__body {
  font-size: 1rem;
  line-height: 1.7;
}

.tat-image-text__body h1,
.tat-image-text__body h2,
.tat-image-text__body h3 {
  color: var(--tat-primary);
  margin-top: 0;
}

@media (max-width: 680px) {
  .tat-image-text {
    grid-template-columns: 1fr;
  }
  .tat-image-text--right .tat-image-text__img,
  .tat-image-text--right .tat-image-text__body {
    order: unset;
  }
}

/* ============================================
   CALLOUT BLOCK
   ============================================ */

.tat-callout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255,140,0,0.08);
  border-left: 4px solid var(--tat-primary, #ff8c00);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tat-callout--gold {
  background: rgba(255,215,0,0.1);
  border-left-color: #ffd700;
}

.tat-callout--spooky {
  background: rgba(128,0,128,0.12);
  border-left-color: #9b30ff;
}

.tat-callout__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.tat-callout__body {
  flex: 1;
  min-width: 0;
}

.tat-callout__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tat-primary, #ff8c00);
}

.tat-callout--gold .tat-callout__title {
  color: #c8a800;
}

.tat-callout--spooky .tat-callout__title {
  color: #9b30ff;
}

.tat-callout__content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.tat-callout__content p:last-child { margin-bottom: 0; }

/* ============================================
   PERFORMER FEATURE BLOCK
   ============================================ */

.tat-performer-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--tat-surface, #1a1a1a);
  border: var(--tat-border-width) var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px rgba(255,140,0,0.12);
}

.tat-pf-logo-wrap {
  flex-shrink: 0;
}

.tat-pf-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tat-primary, #ff8c00);
}

.tat-pf-initial {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tat-primary, #ff8c00);
  color: #000;
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px solid var(--tat-primary, #ff8c00);
}

.tat-pf-info {
  flex: 1;
  min-width: 0;
}

.tat-pf-name {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tat-primary, #ff8c00);
}

.tat-pf-time,
.tat-pf-venue {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.tat-pf-time i,
.tat-pf-venue i {
  width: 1.1em;
  color: var(--tat-primary, #ff8c00);
}

.tat-pf-desc {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.tat-pf-desc p:last-child { margin-bottom: 0; }

.tat-pf-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  background: #6441a5;
  color: #fff;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.tat-pf-watch-btn:hover {
  background: #7b52c5;
  color: #fff;
}

@media (max-width: 520px) {
  .tat-performer-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tat-pf-watch-btn {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ============================================
   LIVE NOW BLOCK
   ============================================ */

.tat-live-now { margin-bottom: 2rem; }

.tat-ln-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tat-ln-card {
  display: flex;
  flex-direction: column;
  background: var(--tat-surface, #1a1a1a);
  border: var(--tat-border-width, 3px) var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: 0.6rem;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tat-ln-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.25);
}

/* Inner links need no z-index adjustment — onclick handles card-level nav */

.tat-ln-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tat-ln-thumb {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.tat-ln-live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #e91916;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.tat-ln-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tat-ln-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tat-ln-avatar {
  width: 36px;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 2px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
}

.tat-ln-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tat-primary, #ff8c00);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
}

.tat-ln-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tat-ln-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tat-primary, #ff8c00);
}

.tat-ln-title {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tat-ln-viewers {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.tat-ln-viewers i { margin-right: 0.25rem; }

/* Rolladeck logo link */
.tat-ln-rd-link {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.tat-ln-rd-link:hover { opacity: 1; }

.tat-ln-rd-logo {
  height: 22px !important;
  width: auto;
  display: block;
}

/* Social icons row */
.tat-ln-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tat-ln-social {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  transition: color 0.15s;
  line-height: 1;
}

.tat-ln-social:hover { color: var(--tat-primary, #ff8c00); }

/* Scroll layout */
.tat-ln-grid--scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tat-border-color, #ff8c00) transparent;
}
.tat-ln-grid--scroll .tat-ln-card {
  flex: 0 0 260px;
}

/* Compact card size */
.tat-ln-grid--compact {
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tat-ln-grid--compact .tat-ln-avatar { width: 28px; height: 28px !important; }
.tat-ln-grid--compact .tat-ln-info { padding: 0.5rem; gap: 0.2rem; }
.tat-ln-grid--compact .tat-ln-name { font-size: 0.82rem; }
.tat-ln-grid--compact .tat-ln-title { font-size: 0.72rem; }
.tat-ln-grid--compact .tat-ln-viewers { font-size: 0.7rem; }
.tat-ln-grid--compact.tat-ln-grid--scroll .tat-ln-card { flex-basis: 200px; }

/* Spacious card size */
.tat-ln-grid--spacious {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.tat-ln-grid--spacious .tat-ln-avatar { width: 52px; height: 52px !important; }
.tat-ln-grid--spacious .tat-ln-info { padding: 1.1rem; gap: 0.5rem; }
.tat-ln-grid--spacious .tat-ln-name { font-size: 1.1rem; }
.tat-ln-grid--spacious .tat-ln-title { font-size: 0.9rem; }
.tat-ln-grid--spacious .tat-ln-viewers { font-size: 0.85rem; }
.tat-ln-grid--spacious.tat-ln-grid--scroll .tat-ln-card { flex-basis: 320px; }

/* No-thumbnail card: larger avatar, top badge slot */
.tat-ln-card--no-thumb .tat-ln-avatar { width: 56px; height: 56px !important; font-size: 1.5rem; }
.tat-ln-grid--compact .tat-ln-card--no-thumb .tat-ln-avatar { width: 40px; height: 40px !important; font-size: 1.1rem; }
.tat-ln-grid--spacious .tat-ln-card--no-thumb .tat-ln-avatar { width: 72px; height: 72px !important; font-size: 2rem; }
.tat-ln-top-badge { margin-bottom: 0.25rem; }

/* Pulse badge */
@keyframes tat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.tat-ln-live-badge--pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.tat-ln-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: tat-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* View More button */
.tat-ln-view-more {
  display: block;
  margin: 1rem auto 0;
  background: transparent;
  border: 1px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  color: var(--tat-primary, #ff8c00);
  padding: 0.4rem 1.2rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.tat-ln-view-more:hover {
  background: var(--tat-primary, #ff8c00);
  color: #000;
}

/* Hidden state for View More pagination */
.tat-ln-hidden { display: none !important; }

/* Border Color 2 override — redefines the cascade for all children */
.tat-border-2 {
  --tat-border-color:  var(--tat-border-color-2);
  --tat-border-width:  var(--tat-border-width-2);
  --tat-border-radius: var(--tat-border-radius-2);
  --tat-border-style:  var(--tat-border-style-2);
}

.tat-border-3 {
  --tat-border-color:  var(--tat-border-color-3);
  --tat-border-width:  var(--tat-border-width-3);
  --tat-border-radius: var(--tat-border-radius-3);
  --tat-border-style:  var(--tat-border-style-3);
}

.tat-no-border {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Block decoration wrapper */
.tat-block-wrap {
  position: relative;
}

.tat-deco {
  pointer-events: none;
  display: block;
  max-width: none;
  height: auto;
  width: auto;
}

/* ============================================
   EMBED PLAYER BLOCK
   ============================================ */

.tat-embed-player-block {}

.tat-embed-shell {
  border: var(--tat-border-width, 3px) var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0e0e10;
}

/* Placeholder state */
.tat-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 160px;
  color: var(--tat-text-muted, #999);
  font-size: 0.95rem;
}

/* Active state wrapper */
.tat-embed-active {
  flex-direction: column;
}

.tat-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: var(--tat-surface, #141414);
  border-bottom: 2px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  gap: 1rem;
}

.tat-embed-channel-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tat-primary, #ff8c00);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tat-embed-close {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0.75rem;
  border: 2px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: 999px;
  color: var(--tat-primary, #ff8c00);
  font-size: 0.85rem;
  font-family: inherit;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.tat-embed-close:hover {
  background: var(--tat-primary, #ff8c00);
  color: #000;
}

.tat-embed-body {
  display: flex;
  height: 520px;
}

.tat-embed-stream-wrap {
  flex: 1 1 70%;
  min-width: 0;
}

.tat-embed-stream-wrap iframe {
  width: 100%;
  height: 100% !important;
  display: block;
}

.tat-embed-chat-wrap {
  flex: 0 0 300px;
  border-left: 2px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  background: #18181b;
}

.tat-embed-chat-wrap iframe {
  width: 100%;
  height: 100% !important;
  display: block;
}

@media (max-width: 700px) {
  .tat-embed-body {
    flex-direction: column;
    height: auto;
  }
  .tat-embed-stream-wrap {
    height: 220px;
  }
  .tat-embed-chat-wrap {
    flex: none;
    height: 300px;
    border-left: none;
    border-top: 2px var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  }
}

/* ============================================
   SECTION BLOCK
   ============================================ */

.tat-section {
  border: var(--tat-border-width, 3px) var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: var(--tat-border-radius, 12px);
  background: var(--tat-surface, #141414);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.tat-section.tat-border-2 {
  border-color: var(--tat-border-color-2, #9333ea);
  border-width: var(--tat-border-width-2, 3px);
  border-radius: var(--tat-border-radius-2, 12px);
  border-style: var(--tat-border-style-2, solid);
}

.tat-section.tat-border-3 {
  border-color: var(--tat-border-color-3, #22c55e);
  border-width: var(--tat-border-width-3, 1px);
  border-radius: var(--tat-border-radius-3, 8px);
  border-style: var(--tat-border-style-3, solid);
}

.tat-section--1-col {
  flex-direction: column;
}

.tat-section--2-col {
  flex-direction: row;
  align-items: flex-start;
}

.tat-section-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .tat-section--2-col {
    flex-direction: column;
  }
}

/* ============================================
   NAV MENU BLOCK
   ============================================ */

.tat-nav-menu-block {
  padding: 1.25rem 1.5rem;
}

.tat-nm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
}

.tat-nm-item {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: var(--tat-border-width, 2px) var(--tat-border-style, solid) var(--tat-border-color, #ff7a00);
  border-radius: var(--tat-border-radius, 6px);
  color: var(--tat-primary, #ff7a00);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.tat-nm-item:hover {
  background: var(--tat-primary, #ff7a00);
  color: #000;
}

.tat-nm-child {
  font-size: 0.9em;
  opacity: 0.85;
}

.tat-nm-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tat-nm-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tat-text-muted, #888);
  padding: 0 0.2rem;
}

.tat-nm-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Grid layout */
.tat-nm--grid .tat-nm-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.tat-nm--grid .tat-nm-item {
  text-align: center;
}

.tat-nm-empty {
  color: var(--tat-text-muted, #888);
  font-style: italic;
}

@media (max-width: 600px) {
  .tat-nm--pills .tat-nm-links {
    flex-direction: column;
    align-items: stretch;
  }
  .tat-nm--pills .tat-nm-item {
    text-align: center;
  }
}

/* ============================================
   PARTICIPANT CARD — CLICKABLE EXTRAS
   ============================================ */

.tat-participant-card { cursor: pointer; }
.tat-participant-card:hover {
  box-shadow: var(--tat-glow), 0 4px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--tat-accent);
  background-color: var(--tat-surface2);
  transform: translateY(-2px);
}
.tat-participant-plot { font-size: 0.78rem; color: var(--tat-accent, #ffd700); margin-top: 0.25rem; }
.tat-participant-bio-snippet { font-size: 0.75rem; color: var(--tat-text-muted, #aaa); margin-top: 0.2rem; line-height: 1.3; }

/* ============================================
   PARTICIPANT MODAL
   ============================================ */

.tat-pmodal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.tat-pmodal-backdrop.tat-pmodal-open { display: flex; }

.tat-pmodal-box {
  background: var(--tat-bg, #0a0a0a);
  border: var(--tat-border-width, 2px) var(--tat-border-style, solid) var(--tat-border-color, #ff7a00);
  border-radius: var(--tat-border-radius, 8px);
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 1.75rem;
  position: relative;
}

.tat-pmodal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; color: var(--tat-primary, #ff7a00);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.tat-pmodal-close:hover { color: #fff; }

.tat-pmodal-header {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem;
}
.tat-pmodal-header .tat-participant-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tat-pmodal-header .tat-participant-initial { width: 80px; height: 80px; font-size: 2rem; }
.tat-pmodal-title-group h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.tat-pmodal-type-badge {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--tat-accent, #ffd700);
  border: 1px solid var(--tat-accent, #ffd700); border-radius: 3px; padding: 0.15rem 0.5rem;
}

.tat-pmodal-plots, .tat-pmodal-bio { margin-bottom: 1.1rem; }
.tat-pmodal-plots h4, .tat-pmodal-bio h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tat-text-muted, #888); margin: 0 0 0.5rem;
}
.tat-pmodal-plot { font-size: 0.9rem; margin-bottom: 0.3rem; }
.tat-pmodal-bio p { margin: 0; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }
.tat-pmodal-actions { margin-top: 1.25rem; }

/* ============================================
   COUNTDOWN BLOCK
   ============================================ */

.tat-countdown {
  border: var(--tat-border-width, 3px) var(--tat-border-style, solid) var(--tat-border-color, #ff8c00);
  border-radius: var(--tat-border-radius, 12px);
  background: var(--tat-surface, #141414);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}

.tat-countdown.tat-border-2 {
  border-color: var(--tat-border-color-2, #9333ea);
  border-width: var(--tat-border-width-2, 3px);
  border-radius: var(--tat-border-radius-2, 12px);
  border-style: var(--tat-border-style-2, solid);
}

.tat-countdown.tat-border-3 {
  border-color: var(--tat-border-color-3, #22c55e);
  border-width: var(--tat-border-width-3, 1px);
  border-radius: var(--tat-border-radius-3, 8px);
  border-style: var(--tat-border-style-3, solid);
}

.tat-countdown.tat-no-border { border: none; background: transparent; }

.tat-cd-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tat-cd-color, var(--tat-primary, #ff8c00));
  margin-bottom: 0.4rem;
  text-shadow: var(--tat-glow, none);
}

.tat-cd-sublabel {
  font-size: 1.15rem;
  color: var(--tat-cd-color, var(--tat-primary, #ff8c00));
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.tat-cd-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.tat-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.tat-cd-num {
  font-size: var(--tat-cd-num-size, clamp(2.8rem, 8vw, 5rem));
  font-weight: 900;
  line-height: 1;
  color: var(--tat-cd-color, var(--tat-primary, #ff8c00));
  text-shadow: var(--tat-glow, none);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tat-cd-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tat-cd-color, var(--tat-primary, #ff8c00));
  margin-top: 0.4rem;
}

.tat-cd-sep {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  color: var(--tat-cd-color, var(--tat-primary, #ff8c00));
  line-height: 1;
  padding: 0 0.25rem;
  align-self: flex-start;
  margin-top: 0.05em;
}

@media (max-width: 480px) {
  .tat-cd-unit { min-width: 3rem; }
  .tat-cd-sep { padding: 0 0.1rem; }
}
