/* ==========================================================================
   Real Fake Lodge No. 1234 — tmaademo.org
   Theme: "Midnight & Gold" — midnight indigo, lodge gold, parchment, ashlar.
   ========================================================================== */

:root {
  /* Brand palette */
  --midnight: #0a1226;
  --night: #101c38;
  --lodge-blue: #1d3a6d;
  --gold: #c9a227;
  --gold-light: #ebd494;
  --gold-deep: #8a6d14;
  --parchment: #f6f1e7;
  --ashlar: #ffffff;
  --stone: #5d6577;
  --stone-light: #d9d3c6;
  --ink: #1b2233;

  /* Semantics */
  --bg: var(--parchment);
  --text: var(--ink);
  --muted: var(--stone);
  --rule: rgba(10, 18, 38, 0.12);

  --serif: Georgia, "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --shadow-sm:
    0 1px 2px rgba(10, 18, 38, 0.06), 0 4px 12px rgba(10, 18, 38, 0.06);
  --shadow-lg: 0 10px 40px rgba(10, 18, 38, 0.16);
  --radius: 4px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1.1em;
}

a {
  color: var(--lodge-blue);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--gold-deep);
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section--tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.center {
  text-align: center;
}
.lede {
  font-size: 1.14rem;
  color: #3a4258;
  max-width: 62ch;
}
.center .lede {
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}
.on-dark .eyebrow,
.hero .eyebrow {
  color: var(--gold-light);
}

/* --- Demo banner ---------------------------------------------------------- */
.demo-bar {
  background: var(--gold);
  color: #2a2205;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}
.demo-bar strong {
  font-weight: 700;
}
.demo-bar a {
  color: #2a2205;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  background: var(--midnight);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand img {
  width: 46px;
  height: 46px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--stone-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--parchment);
  border-bottom-color: var(--gold);
}
.nav a[aria-current="page"] {
  color: var(--parchment);
  border-bottom-color: var(--gold);
}
.nav .btn {
  color: #23200a;
  border-bottom: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--parchment);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--gold {
  background: var(--gold);
  color: #23200a;
}
.btn--gold:hover {
  background: var(--gold-light);
  color: #23200a;
}
.btn--outline {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}
.btn--outline:hover {
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-light);
}
.btn--ink {
  background: var(--midnight);
  color: var(--parchment);
}
.btn--ink:hover {
  background: var(--lodge-blue);
  color: var(--parchment);
}
.btn--lg {
  font-size: 0.98rem;
  padding: 1rem 2.1rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.center .btn-row {
  justify-content: center;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(
      1200px 500px at 50% -12%,
      rgba(201, 162, 39, 0.2),
      transparent 62%
    ),
    linear-gradient(160deg, var(--night) 0%, var(--midnight) 62%, #070d1c 100%);
  color: var(--parchment);
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  color: var(--parchment);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p {
  color: #c9d0e0;
  font-size: 1.1rem;
  max-width: 54ch;
}
.hero--slim {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.hero--slim h1 {
  margin-bottom: 0.3em;
}
.hero-emblem {
  display: flex;
  justify-content: center;
}
.hero-emblem img {
  width: min(330px, 78%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.6rem;
  margin: 2rem 0 2.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}
.fact-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.fact-value {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
  color: var(--parchment);
}

/* --- Dark band ------------------------------------------------------------ */
.on-dark {
  background: linear-gradient(150deg, var(--night), var(--midnight));
  color: var(--parchment);
}
.on-dark h2,
.on-dark h3 {
  color: var(--parchment);
}
.on-dark p {
  color: #c4cbdc;
}

/* --- Cards & grids -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--ashlar);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.card li {
  margin-bottom: 0.35rem;
}
.card .price {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--lodge-blue);
  display: block;
  margin-bottom: 0.3rem;
}
.on-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(201, 162, 39, 0.28);
  border-top-color: var(--gold);
  box-shadow: none;
}
.on-dark .card .price {
  color: var(--gold-light);
}
.on-dark .card ul {
  color: #b6bfd2;
}

.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b3bccf;
}

/* --- Schedule ------------------------------------------------------------- */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.schedule li:last-child {
  border-bottom: 0;
}
.schedule time {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-deep);
  white-space: nowrap;
}
.schedule strong {
  display: block;
}
.schedule span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Ornament ------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 12vw, 7rem);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* --- Forms ---------------------------------------------------------------- */
.form-card {
  background: var(--ashlar);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
legend {
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 0;
  margin-bottom: 0.35rem;
  color: var(--midnight);
}
.fieldset-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.3rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #394054;
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.req {
  color: #a3311f;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fdfcf9;
  border: 1px solid #c8c2b4;
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lodge-blue);
  outline-offset: 2px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.choice input {
  margin-top: 0.35rem;
}
.choice label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}

.form-status {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.4rem;
  border: 1px solid;
}
.form-status[hidden] {
  display: none !important;
}
.form-status--ok {
  background: #eef6ee;
  border-color: #b6d3b6;
  color: #1e4620;
}
.form-status--info {
  background: #eef2fa;
  border-color: #b9c7e4;
  color: #1c2c4d;
}
.form-status--err {
  background: #fbeeec;
  border-color: #e0b6ae;
  color: #6b241a;
}
.form-status h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: inherit;
}
.form-status p:last-child {
  margin-bottom: 0;
}
.payload {
  background: var(--midnight);
  color: #d7e0f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0.9rem 0 0;
}

/* --- Callout -------------------------------------------------------------- */
.callout {
  background: #fff;
  border: 1px dashed var(--gold-deep);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.callout h3 {
  margin-bottom: 0.35rem;
}
.callout p:last-child {
  margin-bottom: 0;
}
code {
  background: rgba(10, 18, 38, 0.07);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

/* --- Prose ---------------------------------------------------------------- */
.prose {
  max-width: 68ch;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.5rem;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--midnight);
  color: #aeb7ca;
  padding: 3.2rem 0 2rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.site-footer a {
  color: #d5dbe8;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold-light);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.5rem;
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 56px;
}
.footer-brand .brand-name {
  font-size: 1.15rem;
  display: block;
}
.colophon {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8b95ab;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-emblem {
    order: -1;
  }
  .hero-emblem img {
    width: 190px;
  }
  .grid--3,
  .grid--2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--midnight);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    padding: 0.5rem 1.5rem 1.2rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav .btn {
    margin-top: 0.8rem;
    text-align: center;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .schedule li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   TMAA ticket form
   The --tmaa-* custom properties are set at runtime from the manifest's brand
   block. The fallbacks keep the form legible before the manifest lands and if
   the org has not set brand colors.
   ========================================================================== */

#tmaa-form {
  --tmaa-primary: var(--lodge-blue);
  --tmaa-accent: var(--gold);
  --tmaa-on-primary: #ffffff;
  --tmaa-on-accent: var(--ink);
  --tmaa-primary-text: var(--lodge-blue);
  --tmaa-accent-text: var(--gold-deep);
}

.tmaa-loading {
  color: var(--muted);
  font-style: italic;
  padding: 2rem 0;
}

.tmaa-block {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}
.tmaa-block:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.tmaa-legend {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--tmaa-primary-text);
  margin: 0 0 0.35rem;
}

/* ---------- seat cards --------------------------------------------------- */

.seat-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin-top: 0.9rem;
}

@media (min-width: 40rem) {
  .seat-grid {
    /* auto-fit, because the manifest can return two tiers or five. */
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

.seat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  background: var(--ashlar);
}
.seat-card.is-active {
  border-color: var(--tmaa-accent);
  box-shadow: 0 0 0 1px var(--tmaa-accent) inset;
}
.seat-card.is-unavailable {
  background: rgba(10, 18, 38, 0.03);
}

.seat-card--choice {
  cursor: pointer;
}
.seat-card--choice.is-unavailable {
  cursor: default;
}
.seat-choice-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.seat-choice-head .seat-name {
  margin: 0;
}

.seat-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tmaa-primary-text);
}

.seat-price {
  margin: 0.1rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.seat-amount {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.seat-unit {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.seat-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Availability carries a data-tmaa-state as well as a colour, so the signal is
   never colour alone. */
.seat-avail {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.seat-avail[data-tmaa-state="limited"] {
  color: var(--gold-deep);
}
.seat-avail[data-tmaa-state="low"],
.seat-avail[data-tmaa-state="sold-out"],
.seat-avail[data-tmaa-state="unavailable"] {
  color: #9a3412;
}
.seat-avail[data-tmaa-state="sold-out"],
.seat-avail[data-tmaa-state="unavailable"] {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.seat-soldout {
  margin: auto 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a3412;
}

.seat-subtotal:empty,
.seat-clamp:empty {
  display: none;
}

/* The "you are at the cap" sentence, shown only once a click hits the limit. */
.seat-clamp {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.seat-subtotal {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tmaa-primary-text);
}

/* ---------- quantity stepper --------------------------------------------- */

.seat-qty {
  /* Pushes the steppers to a flush row when notes wrap to different heights. */
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.seat-qty-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  /* Never let the flex parent squeeze this: the buttons do not shrink, so a
     squeezed stepper clips one of them away behind overflow: hidden. */
  flex: 0 0 auto;
  border: 1px solid var(--stone-light);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ashlar);
}
.qty-btn {
  flex: 0 0 auto;
  /* 44px: WCAG 2.5.5 enhanced target size, and the floor both Apple and
     Material use. This form gets bought on phones. */
  width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--tmaa-primary-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover {
  background: rgba(10, 18, 38, 0.05);
}
.qty-btn:active {
  background: rgba(10, 18, 38, 0.1);
}
/* Deliberately no :disabled rule. Both buttons stay live at every quantity —
   see the note in qtyStepper() — and out-of-range clicks clamp instead. */
/* Descendant selector on purpose. The global input[type="number"] rule further
   up this file sets width:100% and a padding/border, and it outranks a bare
   .qty-input class — which stretched this input until it pushed the + button
   outside the stepper's overflow:hidden box, making it vanish. */
.qty-stepper input.qty-input {
  width: 3.25rem;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  border-left: 1px solid var(--stone-light);
  border-right: 1px solid var(--stone-light);
  text-align: center;
  /* Must stay at or above 16px, or iOS zooms the viewport on focus. */
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--ashlar);
  font-variant-numeric: tabular-nums;
  /* The native spinner arrows are far below an accessible target size; the
     two buttons replace them. */
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- donation ----------------------------------------------------- */

.tmaa-donation-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.ticket-donation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 12rem;
  padding: 0 0.75rem;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  background: var(--ashlar);
}
.ticket-donation:focus-within {
  outline: 3px solid var(--tmaa-primary);
  outline-offset: 2px;
}
.ticket-donation-prefix {
  color: var(--muted);
  font-weight: 700;
}
/* Same specificity trap as .qty-input: without the descendant selector the
   global input rule paints a second border and background inside this box. */
.ticket-donation input.ticket-donation-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  color: var(--ink);
}
.ticket-donation-input:focus {
  outline: none;
}

.tmaa-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.6rem 0 0;
}

/* ---------- the order panel ---------------------------------------------- */

.ticket-checkout {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--tmaa-primary);
  color: var(--tmaa-on-primary);
}

.ticket-checkout-when {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}
.ticket-checkout-when:empty {
  display: none;
}

.ticket-summary-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}
.ticket-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}
.ticket-summary-line.is-included {
  padding-left: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}
.ticket-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.ticket-summary-total-amount {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.ticket-fineprint,
.ticket-leaving {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}
.ticket-fineprint:empty,
.ticket-leaving:empty {
  display: none;
}

.ticket-form-actions {
  margin-top: 1.25rem;
}
.ticket-form-actions .btn {
  width: 100%;
  text-align: center;
}

[data-tmaa-submit] {
  display: inline-block;
  text-align: center;
}
[data-tmaa-submit][aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Inline TMAA embed (embed.html)
   The frame reports its own height over postMessage; js/embed-page.js applies
   it. min-height keeps the box from collapsing before the first report.
   ========================================================================== */

.embed-frame {
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  background: var(--ashlar);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  /* Deliberately low. The frame reports its height as max(its content, the box
     we gave it), so a tall floor here makes it report the floor and leaves dead
     white space below the checkout. This is only the pre-JavaScript height;
     js/embed-page.js replaces it from the first tmaa:resize. */
  min-height: 30rem;
  border: 0;
}
