/**
 * Catcha Connect theme for the pretix ticket shop.
 *
 * Neutral colours are tokens from the Catcha Digital site theme
 * (catcha-2026/assets/css/01-tokens.css). The accent and the page background
 * are NOT fixed: they come from the theme colours set in the back office —
 * the organiser's (Organizer -> Settings -> Organizer page), overridden per
 * show (show -> Settings -> General -> Shop design) — which pretix publishes
 * as --pretix-brand-primary / --pretix-body-bg. Catcha red and off-white are
 * only the defaults. Geometry is square and rules are hairlines, as on the
 * site. This file carries what the settings cannot: type, controls, and the
 * warm tint ramp.
 */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/Montserrat-Medium.f96e8aab37e8.woff2") format("woff2"), url("fonts/Montserrat-Medium.f4ab9cec00b4.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/Montserrat-SemiBold.9e606da1cbeb.woff2") format("woff2"), url("fonts/Montserrat-SemiBold.ab4aca9bfc9d.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/Montserrat-Bold.1c0792ac34ef.woff2") format("woff2"), url("fonts/Montserrat-Bold.f52f514907f6.woff") format("woff"); }
@font-face { font-family: "Vollkorn"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/Vollkorn-Regular.d72e26b62d8a.woff2") format("woff2"), url("fonts/Vollkorn-Regular.0b5401600e70.woff") format("woff"); }
@font-face { font-family: "Vollkorn"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/Vollkorn-SemiBold.a72af60e6978.woff2") format("woff2"), url("fonts/Vollkorn-SemiBold.55594f710341.woff") format("woff"); }

:root {
  /* Catcha site tokens */
  --cc-ground: var(--pretix-body-bg, #F8F6F5);
  --cc-surface: #FFFFFF;
  --cc-tint: #F1ECE9;
  --cc-tint-deep: #E7E0DB;
  --cc-deep: #1C1917;
  --cc-ink: #2B161B;
  --cc-ink-2: #453E3E;
  --cc-ink-3: #6B615E;
  --cc-ink-4: #9A8F8B;
  /* the theme colour (organiser's, or the show's own) and shades of it */
  --cc-accent: var(--pretix-brand-primary, #B02828);
  --cc-accent-deep: var(--pretix-brand-primary-darken-10, #8C1E1E);
  --cc-accent-soft: color-mix(in srgb, var(--cc-accent) 45%, #FFFFFF);
  --cc-accent-wash: color-mix(in srgb, var(--cc-accent) 6%, transparent);
  --cc-line: rgba(43, 22, 27, 0.14);
  --cc-line-soft: rgba(43, 22, 27, 0.08);
  --cc-line-firm: rgba(43, 22, 27, 0.26);
  --cc-serif: Vollkorn, "Iowan Old Style", Georgia, serif;
  --cc-sans: "Open Sans", "OpenSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cc-label: Montserrat, "Open Sans", sans-serif;
  --cc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* pretix derives its pale surfaces by lightening the primary colour, which
     turns the logo red into pink. Re-point those steps at the site's own warm
     ramp so pale surfaces read as the Catcha off-white, not blush. */
  --pretix-brand-primary-lighten-40: var(--cc-tint-deep);
  --pretix-brand-primary-lighten-48: var(--cc-tint);
  --pretix-brand-primary-lighten-50: var(--cc-tint);
  --pretix-brand-primary-lighten-53: var(--cc-ground);
  --pretix-brand-primary-lighten-55: var(--cc-ground);
  --pretix-brand-primary-tint-90: var(--cc-tint);
  /* (darker shades stay pretix's own, computed from the theme colour) */
}

/* ------------------------------------------------------------------ base */

body {
  background: var(--cc-ground);
  color: var(--cc-ink-2);
  font-family: var(--cc-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--cc-serif);
  font-weight: 600;
  color: var(--cc-ink);
  letter-spacing: -0.005em;
}
h4, h5, h6, .h4, .h5, .h6 {
  font-family: var(--cc-label);
  font-weight: 600;
  color: var(--cc-ink);
}

a { color: var(--cc-accent); }
a:hover, a:focus { color: var(--cc-accent-deep); }

::selection { background: var(--cc-accent); color: #fff; }

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--cc-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px 22px;
  line-height: 1.2;
  transition: background-color 230ms var(--cc-ease), border-color 230ms var(--cc-ease), color 230ms var(--cc-ease);
  box-shadow: none;
}
.btn-lg { padding: 15px 26px; font-size: 12px; }
.btn-sm, .btn-xs { padding: 8px 14px; font-size: 10.5px; }

.btn-primary,
.btn-primary:focus {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus {
  background: var(--cc-accent-deep);
  border-color: var(--cc-accent-deep);
  color: #fff;
}

.btn-default,
.btn-default:focus {
  background: var(--cc-surface);
  border-color: var(--cc-line-firm);
  color: var(--cc-ink);
}
.btn-default:hover,
.btn-default:active,
.btn-default.active {
  background: var(--cc-ink);
  border-color: var(--cc-ink);
  color: #fff;
}

.btn:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- forms */

.control-label,
.form-group > label,
legend {
  font-family: var(--cc-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-ink-3);
}

.form-control {
  border-radius: 0;
  border: 1px solid var(--cc-line-firm);
  background-color: var(--cc-surface);
  color: var(--cc-ink);
  box-shadow: none;
  min-height: 42px;
  transition: border-color 230ms var(--cc-ease), box-shadow 230ms var(--cc-ease);
}
.form-control:hover { border-color: var(--cc-ink-4); }
.form-control:focus {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 3px var(--cc-accent-wash);
  outline: none;
}
.form-control::placeholder { color: var(--cc-ink-4); }

/* No native-looking selects: flat field, custom chevron. */
select.form-control,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B615E' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
select.form-control:focus,
select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B161B' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
}
select[multiple] { background-image: none; padding-right: 12px; }

/* Checkboxes and radios: square box, logo red when on. */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid var(--cc-line-firm);
  background: var(--cc-surface) center / 12px 12px no-repeat;
  border-radius: 0;
  cursor: pointer;
  vertical-align: top;
  flex-shrink: 0;
  transition: background-color 160ms var(--cc-ease), border-color 160ms var(--cc-ease);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover,
input[type="radio"]:hover { border-color: var(--cc-accent); }
input[type="checkbox"]:checked {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
  border-color: var(--cc-accent);
  background-image: radial-gradient(circle, var(--cc-accent) 0 4px, transparent 4.5px);
  background-size: 100% 100%;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}
.checkbox label, .radio label { padding-left: 28px; }
.checkbox input[type="checkbox"], .radio input[type="radio"] { margin-left: -28px; }

/* Quantity stepper: one bordered control, not three loose pieces. */
.input-item-count-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--cc-line-firm);
  background: var(--cc-surface);
  padding: 0;
  margin: 0;
  min-width: 0;
  float: right;
}
.input-item-count-group:focus-within { border-color: var(--cc-accent); box-shadow: 0 0 0 3px var(--cc-accent-wash); }
.input-item-count-group .btn {
  border: 0;
  background: transparent;
  color: var(--cc-ink-3);
  font-family: var(--cc-sans);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  width: 40px;
  padding: 0;
}
.input-item-count-group .btn:hover { background: var(--cc-tint); color: var(--cc-accent); }
.input-item-count-group .form-control.input-item-count {
  width: 52px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--cc-line);
  border-right: 1px solid var(--cc-line);
  box-shadow: none;
  text-align: center;
  font-family: var(--cc-label);
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield;
}
.input-item-count-group .form-control.input-item-count:focus { box-shadow: none; }
.input-item-count::-webkit-inner-spin-button,
.input-item-count::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-group-addon {
  border-radius: 0;
  background: var(--cc-tint);
  border-color: var(--cc-line-firm);
  color: var(--cc-ink-3);
}

/* ------------------------------------------------------ masthead + footer */

/* Both mirror the Catcha site chrome (03-chrome.css, 07-footer.css): a --tint
   masthead with the logo and ruled nav links, and a warm near-black
   footer. Widths follow pretix's own container so everything aligns. */
.cc-masthead__bar,
.cc-footer__inner {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px)  { .cc-masthead__bar, .cc-footer__inner { width: 750px;  padding: 0 25px; } }
@media (min-width: 992px)  { .cc-masthead__bar, .cc-footer__inner { width: 970px; } }
@media (min-width: 1200px) { .cc-masthead__bar, .cc-footer__inner { width: 1170px; } }

/* White, not tint: uploaded logos are often JPEGs on white, and pretix's
   thumbnails flatten transparency onto white too. */
.cc-masthead { background: var(--cc-surface); border-bottom: 1px solid var(--cc-line); }
.cc-masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.cc-brand { display: inline-flex; flex: 0 1 auto; min-width: 0; color: inherit; }
.cc-brand:hover, .cc-brand:focus { text-decoration: none; }
/* The show's logo, a divider, the organiser's logo (signals.py, logos.py).
   Without an uploaded logo the name stands in, set like a wordmark. */
.cc-logos { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cc-logos img { display: block; width: auto; object-fit: contain; object-position: left center; }
img.cc-logos__event { height: 44px; max-width: 220px; }
img.cc-logos__org { height: 32px; max-width: 150px; }
img.cc-logos__catcha { height: 40px; }
.cc-logos__sep { flex: none; width: 1px; height: 32px; background: var(--cc-line-firm); }
.cc-logos__event--text, .cc-logos__org--text {
  font-family: var(--cc-label); font-weight: 700; line-height: 1.15; color: var(--cc-ink);
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.cc-logos__event--text { font-size: 18px; max-width: 14em; }
.cc-logos__org--text { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc-ink-2); max-width: 12em; }
.cc-nav { display: flex; align-items: center; gap: 2px; }
.cc-nav__link {
  position: relative;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 230ms var(--cc-ease);
}
.cc-nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--cc-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 230ms var(--cc-ease);
}
.cc-nav__link:hover, .cc-nav__link:focus-visible { color: var(--cc-ink); text-decoration: none; }
.cc-nav__link:hover::after, .cc-nav__link:focus-visible::after { transform: scaleX(1); }
@media (max-width: 599px) {
  .cc-masthead__bar { min-height: 64px; }
  .cc-logos { gap: 10px; }
  img.cc-logos__event { height: 34px; max-width: 140px; }
  img.cc-logos__org { height: 24px; max-width: 90px; }
  img.cc-logos__catcha { height: 32px; }
  .cc-logos__sep { height: 24px; }
  .cc-logos__event--text { font-size: 15px; }
  .cc-logos__org--text { font-size: 10.5px; }
  .cc-nav__link { padding: 9px 8px; font-size: 13px; }
  .cc-nav__link::after { left: 8px; right: 8px; }
  .cc-nav__link--secondary { display: none; }
}

/* The masthead carries the brand and the way back to all shows, so pretix's
   own in-page logo row and "show all events" link are redundant. */
body:has(.cc-masthead) .page-header-links-outside,
body:has(.cc-masthead) .main-box .pager-header-with-logo { display: none; }
.main-box { margin-top: 36px; }
/* pretix's logo row and in-page footer used to pad the white panel; with
   both gone the panel needs its own breathing room. */
body:has(.cc-masthead) .main-box { padding-top: 30px; }
body:has(.cc-footer) .main-box { padding-bottom: 36px; }
@media (max-width: 767px) { .main-box { margin-top: 0; } }

.cc-footer {
  margin-top: 72px;
  background: var(--cc-deep);
  color: #F5F0EB;
  padding-top: 52px;
  font-size: 14px;
}
.cc-footer__top {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #332E2A;
}
@media (min-width: 768px) { .cc-footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); } }
.cc-footer__brand img { display: block; height: 48px; width: auto; }
.cc-footer__brand p { margin: 18px 0 0; max-width: 34em; line-height: 1.75; color: #A8A29E; }
.cc-footer__title {
  margin-bottom: 14px;
  font-family: var(--cc-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A8A29E;
}
.cc-footer ul { list-style: none; margin: 0; padding: 0; }
.cc-footer li + li { margin-top: 8px; }
.cc-footer ul a { color: #F5F0EB; text-decoration: none; transition: padding-left 230ms var(--cc-ease); }
.cc-footer ul a:hover { color: #F5F0EB; padding-left: 4px; text-decoration: none; }
/* Bottom row: © Catcha Connect | Powered by Catcha Connect | based on pretix
   (the last two are pretix's licence notice, signals.py). Stacks on phones. */
.cc-footer__bottom {
  display: grid;
  gap: 6px 24px;
  padding: 20px 0 28px;
  font-size: 12.5px;
  color: #A8A29E;
}
@media (min-width: 768px) {
  .cc-footer__bottom { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: baseline; }
  .cc-footer__bottom .cc-credit-base { text-align: right; }
}
.cc-footer__bottom a { color: #A8A29E; text-decoration: none; }
.cc-footer__bottom a:hover { color: #F5F0EB; text-decoration: underline; text-underline-offset: 0.18em; }
/* "based on pretix" (build_locale.py): quieter but still readable — the
   licence forbids hiding it. 0.78 keeps 4.7:1 on the footer (AA ≥ 4.5). */
.cc-credit-base { opacity: 0.78; }

/* pretix's in-page footer is replaced by the one above, which carries the
   same attribution (see signals.py). */
body:has(.cc-footer) .main-box > footer { display: none; }

/* Short pages (shows list, "find my registration"): the footer sits at the
   foot of the window, not halfway up. The page is a column at least the
   window's height; the footer's auto top margin takes up the slack and the
   panel's bottom margin keeps the usual gap above it. */
body:has(> .cc-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* (a column would shrink the phone-width panel to its content) */
@media (max-width: 767px) { body:has(> .cc-footer) > .container { width: 100%; } }
body:has(> .cc-footer) .main-box { margin-bottom: 72px; }
body > .cc-footer { margin-top: auto; }

/* ------------------------------------------------------------ shows list */

/* One list, no calendar views: a handful of shows a year. */
main .blank-after:has(.btn-group a[href*="style="]) { display: none; }
.event-list .btn-primary { font-size: 0; }
.event-list .btn-primary::after { content: "Register"; font-size: 11.5px; }
.event-list .btn-primary .fa { display: none; }

/* A cart is a registration here: badge icons, not shopping trolleys. */
.fa-shopping-cart::before { content: "\f2c1"; }

/* ------------------------------------------------------------- catalogue */

.product-row .h4, .product-row h4 { font-size: 17px; }
.product-row .price .text-uppercase {
  font-family: var(--cc-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cc-accent);
}

.event-list h3 a,
.event-list h3 a:hover { text-decoration: none; }
.event-list h3 a { color: var(--cc-ink); font-size: 21px; }
.event-list h3 a:hover { color: var(--cc-accent); }

.btn.active,
.btn:active,
.btn-group .btn.active { box-shadow: none; background-image: none; }

/* Order confirmation: status chips stay semantic green, but the big
   thank-you mark is the site's near-black rather than a green disc. */
.thank-you .fa-check-circle { color: var(--cc-deep); }
.thank-you h2, .thank-you .h1 { color: var(--cc-ink); }

/* ---------------------------------------------------------------- panels */

.panel {
  border-radius: 0;
  border-color: var(--cc-line);
  box-shadow: none;
  background: var(--cc-surface);
}
.panel > .panel-heading {
  border-radius: 0;
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-line);
  color: var(--cc-ink);
}
.panel-title, .panel-heading h3, .panel-heading h4 {
  font-family: var(--cc-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-ink);
}
.panel-primary { border-color: var(--cc-line-firm); }
.panel-primary > .panel-heading {
  background: var(--cc-surface);
  color: var(--cc-ink);
  border-bottom: 2px solid var(--cc-accent);
}

.alert { border-radius: 0; box-shadow: none; }
.alert-info {
  background: var(--cc-tint);
  border-color: var(--cc-tint-deep);
  color: var(--cc-ink-2);
}

.well { border-radius: 0; box-shadow: none; background: var(--cc-tint); border-color: var(--cc-tint-deep); }
.label { border-radius: 0; font-family: var(--cc-label); font-weight: 600; letter-spacing: 0.08em; }
hr { border-top-color: var(--cc-line); }

/* ---------------------------------------------------------------- footer */

footer { color: var(--cc-ink-4); font-size: 13px; }
footer a { color: var(--cc-ink-3); }
footer a:hover { color: var(--cc-accent); }

/* ------------------------------------------------------------ loading */

/* pretix's turning gear ("processing your registration" dialog, async pages)
   becomes the ring spinner used everywhere else (waiting page, widget). */
.modal-card-icon .fa-cog.rotating,
.big-rotating-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  font-size: 0 !important;
  border: 5px solid var(--cc-tint-deep);
  border-top-color: var(--cc-accent);
  border-radius: 50%;
  animation: cc-ring .9s linear infinite !important;
}
.modal-card-icon .fa-cog.rotating::before,
.big-rotating-icon::before { content: none !important; }
@keyframes cc-ring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .modal-card-icon .fa-cog.rotating, .big-rotating-icon { animation-duration: 2.4s !important; }
}
