/* ========================================================
   GIGS NEAR ME — BRAND SYSTEM 2.0 (TACTILE PRINT / ZINE)
   ======================================================== */

:root {
  /* 01 Foundation */
  --cream:    #F7F1E6;  /* page background */
  --surface:  #FFFDF8;  /* cards, nav, inputs */
  --ink:      #141414;  /* text, borders, hard shadows */
  --ink-2:    #4A4640;  /* meta text: dates, venues */
  --line:     #D9D1C3;  /* neutral category tags, dividers */

  /* 02 Primary */
  --cobalt:   #1F4FE0;  /* hero blocks, price tags, links. White text */

  /* 03 Secondary: actions */
  --vermilion:#FF5A1F;  /* buttons, active filter. Ink text */

  /* 04 Pop */
  --lime:     #C6F24E;  /* Free tag, small labels. Ink text */

  /* 05 Accents: outside core UI */
  --lilac:    #C9B8FF;  /* New label, stats card */
  --sky:      #7FD3FF;  /* Last tickets label, stats card */

  /* Tactile Structural Rules */
  --border-hard: 1.5px solid var(--ink);
  --border-thick: 2px solid var(--ink);
  --shadow-tactile: 3px 3px 0 var(--ink);
  --shadow-tactile-lg: 4px 4px 0 var(--ink);
  --shadow-hover: 4px 4px 0 var(--ink);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --content-width: 1120px;

  /* Textures: set with background-image, colour stays in background-color */
  --tex-sand:
    url("textures/sand-dark.svg"),
    url("textures/sand-light.svg");

  --tex-weave:
    url("textures/weave-dark.svg"),
    url("textures/weave-light.svg"),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.13) 0 1px, rgba(0,0,0,0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, rgba(255,255,255,0) 1px 3px);
}

/* ========================================================
   REUSABLE CODED GRAPHIC DEVICES (BRIEF SECTION 3)
   ======================================================== */

/* 3.1 Section Labels */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 3px;
  line-height: 1;
  border: var(--border-hard);
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 8px;
}

/* 3.2 Event Stickers */
.sticker-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 3px;
  line-height: 1.2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: var(--tex-sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

h1 span {
  color: var(--ink);
}

h2 {
  font-size: clamp(24px, 3.5vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.container {
  width: min(calc(100% - 32px), var(--content-width));
  margin-inline: auto;
}

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
.site-header {
  background: var(--surface);
  border-bottom: var(--border-hard);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  color: var(--cobalt);
}

.nav-submit-link {
  padding: 8px 14px;
  border: var(--border-hard);
  border-radius: 4px;
  background: var(--cobalt);
  box-shadow: 2px 2px 0px var(--ink);
  transition: all 0.1s ease;
}

.nav-links .nav-submit-link {
  color: #FFFFFF;
}

.nav-links .nav-submit-link:hover {
  color: #FFFFFF;
}

.nav-submit-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

/* ========================================================
   HERO SECTION & LIVE DISPATCH TILE
   ======================================================== */
.hero {
  padding: 35px 0;
  border-bottom: var(--border-hard);
  background: var(--cream);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 16px 0;
}

.hero-content h1 span {
  color: var(--ink);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px 0;
  max-width: 500px;
}

/* Restored Hero CTA Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hero-actions .btn-primary {
  background: var(--vermilion) !important;
  color: #FFFFFF !important;
  border: var(--border-hard);
  box-shadow: var(--shadow-tactile);
}

.hero-actions .btn-primary:hover {
  background: var(--vermilion) !important;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-tactile-lg);
}

.hero-actions .btn-secondary {
  background: var(--cobalt) !important;
  color: #FFFFFF !important;
  border: var(--border-hard) !important;
  box-shadow: var(--shadow-tactile) !important;
}

.hero-actions .btn-secondary:hover {
  background: var(--cobalt) !important;
  box-shadow: var(--shadow-tactile-lg) !important;
}

@media (max-width: 860px) {
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
}

/* ========================================================
   DISCOVERY SECTION & TACTILE FILTERS
   ======================================================== */
.discovery-section {
  border-top: var(--border-hard);
  padding: 0 0 72px;
  scroll-margin-top: 80px;
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cobalt);
  margin-bottom: 4px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Featured section: ink band */
.featured-section {
  background-color: var(--ink);
  background-image: var(--tex-sand);
  padding-bottom: 40px;
}

.featured-section .section-kicker {
  color: var(--lime);
}

.featured-section h2 {
  color: #FFFFFF;
}

/* Search Row */
.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.event-search {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-hard);
  border-radius: 4px;
  box-shadow: var(--shadow-tactile);
  outline: none;
}

.event-search:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.reset-button {
  background: none;
  border: none;
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ========================================================
   EVENT CARDS & GRID
   ======================================================== */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 680px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tactile GNM Card */
.gnm-card {
  background: var(--surface);
  border: var(--border-hard);
  border-radius: 6px;
  box-shadow: var(--shadow-tactile);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

/* 16:9 Visual Container */
.card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border-bottom: var(--border-hard);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-visual-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--line);
  user-select: none;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}

/* Sticker Tags */
.sticker-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.sticker-price {
  background: var(--cobalt);
  border: 0;
  color: #FFFFFF;
}

.sticker-price.is-free {
  background: var(--lime);
  color: var(--ink);
}

/* Card Body */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date-row {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cobalt);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.card-venue {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.card-description {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 16px;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-action-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cobalt);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-action-link:hover {
  text-decoration: underline;
}

/* ========================================================
   NEWSLETTER & SUBMISSION SECTIONS
   ======================================================== */
.newsletter-section {
  background-color: var(--ink);
  background-image: var(--tex-sand);
  color: #FFFFFF;
  padding: 32px;
  margin-bottom: 56px;
  border: var(--border-thick);
  box-shadow: var(--shadow-tactile-lg);
}

.newsletter-copy {
  max-width: 580px;
  margin-bottom: 20px;
}

.newsletter-copy p {
  color: #FFFFFF;
  margin: 0;
}

.newsletter-copy h2 {
  color: var(--lime);
}

.newsletter-copy .section-kicker {
  color: var(--lime);
}

.newsletter-section .btn-primary {
  background-color: var(--lilac) !important;
  color: var(--ink) !important;
}

.newsletter-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
}

.gnm-input {
  flex: 1 1 240px;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border: var(--border-hard);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.gnm-input:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}

.form-feedback {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
}

/* Empty feedback takes no space, so the block's bottom padding matches its top */
.form-feedback:empty {
  margin: 0;
  min-height: 0;
}

/* Submission Card */
.submission-section {
  background-color: var(--vermilion);
  color: var(--surface);
  padding: 32px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.submission-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--lime);
  color: var(--ink);
  border: var(--border-hard);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0px var(--ink);
}

.submission-content {
  max-width: 560px;
}

.submission-content h2,
.submission-content .section-kicker {
  color: var(--surface);
}

.submission-content p {
  color: var(--surface);
  margin: 0;
}

.submission-section .btn-utility {
  margin-right: 24px;
  background-color: var(--cobalt);
  background-image: var(--tex-weave);
  color: #FFFFFF;
}

.submission-section .btn-utility:hover {
  box-shadow: var(--shadow-tactile);
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
  border-top: var(--border-hard);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cobalt);
}
/* Restored discovery controls — elevated brand styling */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0 21.6px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-group > label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: var(--border-hard);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.filter-select option:disabled {
  color: var(--ink-2);
}

.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

#date-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker-wrapper {
  position: relative;
}

.date-modal[hidden] {
  display: none !important;
}

/* Allow the search input to shrink on small screens. */
.event-search {
  min-width: 0;
  width: 100%;
}

@media (min-width: 600px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .filter-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
/* Restored date panel — tactile brand styling */
.date-modal {
  position: fixed;
  inset: 24px 16px auto;
  width: min(640px, calc(100% - 32px));
  margin-inline: auto;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  z-index: 100;
  background: var(--surface);
  border: var(--border-hard);
  border-radius: 6px;
  box-shadow: var(--shadow-tactile-lg);
}

.date-modal-header,
.date-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.date-modal-footer {
  justify-content: flex-start;
}

.date-modal-footer > div[aria-live="polite"] {
  margin-right: auto;
}

#date-apply-btn {
  margin-right: -4px;
}

.date-modal-header {
  border-bottom: 1px solid var(--line);
}

.date-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.date-modal-footer {
  border-top: 1px solid var(--line);
}

.date-modal-body {
  display: grid;
  grid-template-columns: 1fr;
}

.date-presets-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--cream);
}

.preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
}

.preset-btn.active {
  border: var(--border-hard);
  background: var(--vermilion);
  color: var(--surface);
}

.date-calendar-panel {
  min-width: 0;
  padding: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
}

.checkbox-label input {
  accent-color: var(--cobalt);
}

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}

.modal-close-btn,
.cal-nav-btn {
  min-width: 44px;
  min-height: 44px;
  border: var(--border-hard);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.calendar-month-title {
  font-family: var(--font-display);
  font-weight: 700;
}

.calendar-weekdays,
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.calendar-weekdays,
.calendar-help,
#footer-selection-sub {
  color: var(--ink-2);
  font-size: 12px;
}

.calendar-days-grid .cal-day {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.calendar-days-grid .cal-day:hover:not(:disabled) {
  background: var(--cream);
  color: var(--ink);
}

.calendar-days-grid .cal-day.selected {
  background: var(--cobalt);
  color: #FFFFFF;
}

.calendar-days-grid .cal-day.in-range {
  background: var(--line);
  color: var(--ink);
}

.calendar-days-grid .cal-day-empty {
  border: none;
  visibility: hidden;
}

#footer-selection-label {
  font-family: var(--font-display);
  font-weight: 700;
}

@media (min-width: 600px) {
  .date-modal-body {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .date-presets-panel {
    border-right: 1px solid var(--line);
  }
}
/* Compact monthly event programme */
.event-results {
  display: block;
}

.event-month + .event-month {
  margin-top: 32px;
}

.event-month-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.event-month-list {
  display: grid;
  gap: 12px;
}

.event-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: var(--border-hard);
  border-radius: 6px;
  box-shadow: none;
}

.event-row-date {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.event-row-date span {
  font-size: 11px;
}

.event-row-date strong {
  margin: 3px 0;
  font-size: 30px;
}

.event-row-thumbnail {
  display: none;
}

.event-row-info {
  grid-column: 2;
  min-width: 0;
}

.event-row-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.event-row-tags .sticker-tag {
  line-height: 1.2;
  box-shadow: none;
}

.event-row-tags .sticker-tag:not(.sticker-price) {
  background: var(--cream);
  border-color: var(--ink);
  color: var(--ink);
}


.event-row-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.event-row-meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.event-row-action-slot {
  grid-column: 2;
}

.event-row-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.event-row-action {
  color: var(--cobalt);
  text-decoration: none;
}

a.event-row-action:hover {
  text-decoration: underline;
}

.event-row-action.is-unavailable {
  color: var(--ink-2);
}

@media (min-width: 800px) {
  .event-row {
    grid-template-columns: 48px 120px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .event-row-date {
    grid-row: 1;
  }

  .event-row-thumbnail {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--cream);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink-2);
  }

  .event-row-info {
    grid-column: 3;
  }

  .event-row-action-slot {
    grid-column: 4;
    text-align: right;
  }
}/* Event list action buttons and alignment fixes */
.event-row-action-slot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.event-row-action {
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--vermilion);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-row-action:hover {
  background: var(--vermilion);
  color: var(--surface);
  text-decoration: none;
}

.event-row-action.is-unavailable {
  background: var(--vermilion);
  border-color: var(--ink);
  color: var(--surface);
  opacity: 0.65;
}

/* Keep the date block centred on both desktop and mobile. */
.event-row-date {
  justify-content: center;
  text-align: center;
  width: 44px;
}

/* Desktop: keep Tickets flush to the right edge of each row. */
@media (min-width: 800px) {
  .event-row-action-slot {
    justify-self: end;
    width: 100%;
  }
}

/* Mobile: keep the date centred and Tickets aligned to the right below event details. */
@media (max-width: 799px) {
  .event-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .event-row-date {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .event-row-action-slot {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin-top: 2px;
  }

  .event-row-info {
    grid-column: 2;
    grid-row: 1;
  }
}
/* Smaller Tickets buttons */
.event-row-action,
.event-row-action:hover,
.event-row-action.is-unavailable {
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  background: var(--vermilion);
  border: 1.5px solid var(--ink);
  color: var(--surface);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
/* Tickets buttons — tactile shadow matching the main CTA */
.event-row-action {
  background: var(--vermilion);
  color: var(--surface);
  box-shadow: var(--shadow-tactile);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

a.event-row-action:hover {
  background: var(--cobalt);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

a.event-row-action:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Placeholder buttons have a shadow but no click effect. */
.event-row-action.is-unavailable {
  box-shadow: var(--shadow-tactile);
  transform: none;
}
#featured-grid .event-card:has(a.card-action-link[href]:not([href="#"])),
#events-grid .event-row:has(a.event-row-action[href]:not([href="#"])) {
  cursor: pointer;
}
/* Restore the original text-led hero */
.hero .hero-container {
  display: block;
}

.hero .hero-content {
  width: 100%;
  max-width: 680px;
}

.hero .hero-content h1 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

@media (max-width: 640px) {
  .hero .hero-content h1 {
    font-size: 36px;
  }
}
/* ========================================================
   GLOBAL BUTTONS: APPLY, CLEAR & MODAL CONTROLS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary,
#filter-apply-btn,
#date-apply-btn {
  background: var(--vermilion) !important;
  color: var(--surface) !important;
  border: var(--border-hard) !important;
  box-shadow: var(--shadow-tactile) !important;
}

.btn-primary:hover,
#filter-apply-btn:hover,
#date-apply-btn:hover {
  background: var(--vermilion) !important;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-tactile-lg) !important;
}

.btn-secondary,
#filter-clear-btn,
#date-clear-btn {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: var(--border-hard) !important;
  box-shadow: var(--shadow-tactile) !important;
}

.btn-secondary:hover,
#filter-clear-btn:hover,
#date-clear-btn:hover {
  box-shadow: 3px 3px 0 var(--cobalt) !important;
  transform: translate(-1px, -1px);
}

/* ========================================================
   EMPTY STATE, RESET & UTILITY BUTTONS, DISABLED DATES
   ======================================================== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border: var(--border-hard);
  border-radius: 6px;
  box-shadow: var(--shadow-tactile);
  color: var(--ink-2);
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.empty-state > :last-child {
  margin-bottom: 0;
}

.btn-reset,
.btn-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  border: var(--border-hard);
  box-shadow: var(--shadow-tactile);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-reset:hover,
.btn-utility:hover {
  box-shadow: 3px 3px 0 var(--cobalt);
  transform: translate(-1px, -1px);
}

.calendar-days-grid .cal-day:disabled,
.calendar-days-grid .cal-day.is-disabled {
  color: var(--ink-2);
  opacity: 0.35;
  background: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ========================================================
   HERO LIVE STATS PANEL
   ======================================================== */
.hero .hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero .hero-content {
  flex: 1;
  width: auto;
}

.flip-panel {
  flex: 0 1 454px;
  align-self: center;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: transparent;
  border-radius: 20px;
  container-type: inline-size;
}

.flip-tile {
  aspect-ratio: 4 / 5;
  perspective: 1200px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.6, -0.35, .35, 1.35);
}

.flip-face {
  position: absolute;
  inset: 0;
  border: var(--border-hard);
  box-shadow: var(--shadow-tactile);
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: var(--bg);
  background-image: var(--tex-weave);
  color: var(--fg);
}

.flip-back { transform: rotateY(180deg); }

.flip-face.flip-ink {
  background-image: none;
  box-shadow: inset 0 0 0 2px #2A2A2A, var(--shadow-tactile);
}

.flip-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.flip-h { font-size: 12cqw; line-height: .9; }
.flip-v { font-size: 15cqw; line-height: .8; writing-mode: vertical-rl; }
.flip-up { transform: rotate(180deg); }

.tl-r { top: 7%; right: 7%; }
.bl { bottom: 7%; left: 7%; }

@media (max-width: 800px) {
  .hero .hero-container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .flip-panel {
    display: none;
  }
}

/* ========================================================
   FEATURED TRADING CARDS
   ======================================================== */
.featured-grid {
  gap: 28px;
  padding-top: 16px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--frame);
  color: var(--ink);
  border: var(--border-hard);
  border-radius: 6px;
  box-shadow: var(--shadow-tactile-lg);
  text-decoration: none;
}

.feature-card:nth-child(3n+1) { --frame: var(--cobalt);    --title: #FFFFFF; }
.feature-card:nth-child(3n+2) { --frame: var(--vermilion); --title: var(--surface); }
.feature-card:nth-child(3n+3) { --frame: var(--lime);      --title: var(--ink); }

.feature-card__tab {
  position: absolute;
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border-hard);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 230px;
  margin-top: 28px;
  background: var(--cream);
  color: var(--line);
  border: var(--border-hard);
  border-radius: 3px;
  object-fit: cover;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  user-select: none;
}

.feature-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--title);
}

.feature-card__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.feature-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
}

.feature-card__row dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-card__row dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 315px));
    justify-content: center;
  }
}

/* ========================================================
   TEXTURES
   ======================================================== */
/* Sticky header is opaque, so it carries the sand itself; hero is transparent over the body. */
.site-header { background-image: var(--tex-sand); }
.hero { background: transparent; }

/* Woven coloured surfaces: vermilion buttons, active filter, featured card frames */
.btn-primary,
.hero-actions .btn-secondary,
.nav-submit-link,
#filter-apply-btn,
#date-apply-btn,
.preset-btn.active,
.event-row-action,
.feature-card {
  background-image: var(--tex-weave) !important;
}

/* Open call block keeps the sand grain */
.submission-section {
  background-image: var(--tex-sand);
}
