/* event/event_reset.css */
* { box-sizing: border-box; }
html,body { margin: 0; }
body { font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
button,input,select,textarea { font: inherit; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #f5b700;
  outline-offset: 2px;
}

/* event/event_page.css */
.event-banner { display: block; height: auto; object-fit: cover; width: 100%; }
.event-logo { display: block; object-fit: contain; }
.muted { color: var(--custom-text-color-muted); }
.grow { flex: 1; }
.price { font-variant-numeric: tabular-nums; }
.pill {
  border: 1px solid currentColor;
  border-radius: 99px;
  display: inline-block;
  font-size: .75rem;
  margin-left: .35rem;
  padding: .1rem .5rem;
  white-space: nowrap;
}

/* event/event_ticket_row.css */
/* ticket-row — one buyable line in the purchase construct, and part of the
   public styling contract (docs/themes.md §The CSS contract): name, price,
   quantity on one flex line. A custom element has no default display, so
   this rule is what makes the row a row; the Classic and Pro skins add
   their own rules, and each brings its own attribute states (`sold-out`,
   `addon`, `donation`). */
ticket-row { align-items: center; display: flex; gap: 1rem; }

/* event/event_qty.css */
.qty { align-items: center; display: flex; gap: .35rem; }
.qty input { text-align: center; width: 3rem; }
.qty input.stepped { -moz-appearance: textfield; appearance: textfield; }
.qty input.stepped::-webkit-inner-spin-button,.qty input.stepped::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty button.step {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 2rem;
}
.qty button.step:disabled { cursor: default; opacity: .32; }

/* event/event_fields.css */
.checkout-fields label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin: .8rem 0 .35rem;
}
.checkout-fields input:not([type=checkbox]),.checkout-fields select,.checkout-fields textarea {
  width: 100%;
}
.checkout-fields textarea { min-height: 7rem; }
.checkout-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  padding: .7rem 1.2rem;
}
.checkout-button.busy {
  color: transparent!important;
  pointer-events: none;
  position: relative;
}
.checkout-button.busy:after {
  animation: spin .6s linear infinite;
  border: 2px solid var(--custom-button-text-color,#fff);
  border-radius: 50%;
  border-top-color: transparent;
  content: "";
  height: 1rem;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 1rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.schedule-group h3 { margin: 1.5rem 0 .25rem; }
.schedule-group select { max-width: 100%; padding: .45rem; }
.flow-switch { font-size: .875rem; }

/* event/event_summary.css */
/* The order summary drawer: the Total line is a real disclosure (caret, no
   default marker), the breakdown reads as a receipt — name left, tabular
   price right, hairline between the drawer and the list above it. */
.summary { border-top: 1px solid var(--divider-color,#e1e1e1); margin-top: .5rem; }
.summary summary { align-items: center; cursor: pointer; display: flex; gap: 1rem; padding: 1rem 0; }
.summary summary { font-weight: 600; list-style: none; }
.summary summary::-webkit-details-marker { display: none; }
.summary summary .price { font-weight: 600; }
.summary [data-breakdown] { padding: 0 0 .9rem 1.1rem; }
.summary [data-breakdown] .row {
  align-items: baseline;
  display: flex;
  font-size: .92rem;
  gap: 1rem;
  opacity: .75;
  padding: .12rem 0;
}
.summary [data-breakdown] .row .price { margin-left: auto; }
.summary [data-breakdown] .row.sub { font-size: .85rem; opacity: .6; padding: 0 0 .12rem 1rem; }

/* event/event_lang_switch.css */
.lang-switch { font-size: .85rem; position: absolute; right: 1rem; top: 1rem; z-index: 30; }
.lang-switch>summary {
  background: var(--custom-text-background-color,#fff);
  border: 1px solid var(--custom-border-color,#d9d9e0);
  border-radius: 99px;
  color: var(--custom-text-color,#252535);
  cursor: pointer;
  list-style: none;
  padding: .35rem .8rem;
}
.lang-switch>summary::-webkit-details-marker { display: none; }
.lang-caret { opacity: .6; }
.lang-switch>nav {
  background: var(--custom-text-background-color,#fff);
  border: 1px solid var(--custom-border-color,#d9d9e0);
  border-radius: .5rem;
  box-shadow: 0 6px 20px rgb(0 0 0/.25);
  color: var(--custom-text-color,#252535);
  display: flex;
  flex-direction: column;
  margin-top: .35rem;
  min-width: 10rem;
  padding: .3rem;
  position: absolute;
  right: 0;
}
.lang-switch>nav :is(a,[aria-current]) {
  border-radius: .3rem;
  color: inherit;
  padding: .35rem .55rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch>nav a:hover { background: color-mix(in srgb,currentColor 8%,transparent); }
.lang-switch>nav [aria-current] { font-weight: 700; }

/* event/event_addons.css */
/* Attached add-ons — the rows nested under one ticket type. The enhancement
   gate: with JS a row starts hidden and addon-rows.js reveals it while its
   ticket is selected; without JS every row renders and checkout validates. */
.js [data-addon-for] { display: none; }
/* A revealed row says what it becomes, never `revert`: the reveal lands on
   the <li> in the Pro skin and on <ticket-row> itself in Classic, and
   reverting a custom element gives you `inline`, which collapses the row. */
.js li[data-addon-for].addon-on { display: list-item; }
.js ticket-row[addon].addon-on { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-addon-for].addon-on { animation: addon-in .2s ease; }
}
@keyframes addon-in {
  from { opacity: 0; transform: translateY(-4px); }
}
ticket-row[addon] {
  & .grow label { font-size: 1rem; }
  & .price { font-size: 1rem; }
}
.addon-pill { font-size: .75rem; opacity: .8; padding: .1rem .45rem; vertical-align: .1em; }
.addon-desc { font-size: .875rem; }
.ticket-includes { color: var(--custom-text-color-muted); font-size: .875rem; }

/* event/event_promo.css */
.promo-box { margin: .9rem 0 .2rem; }
.promo-entry summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: .9rem;
  font-weight: 500;
  gap: .4rem;
  list-style: none;
  opacity: .75;
  padding: .45rem 0;
  width: fit-content;
}
.promo-entry summary::-webkit-details-marker { display: none; }
.promo-entry summary:hover,.promo-entry[open] summary { opacity: 1; }
.promo-caret { flex: none; transition: transform .15s ease; }
.promo-entry[open] .promo-caret,.summary[open] .promo-caret { transform: rotate(90deg); }
/* The ratio nudge: advisory only, so it reads as a quiet note — never a
   validation error. */
.recommend-hint {
  align-items: center;
  border-left: 3px solid var(--divider-color);
  color: var(--custom-text-color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .875rem;
  gap: .6rem;
  margin: .6rem 0;
  padding: .35rem 0 .35rem .7rem;
}
.recommend-hint button {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  margin-left: .4rem;
  padding: .1rem .55rem;
}
.promo-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .3rem; }
.promo-row input {
  background: transparent;
  border: 1px solid var(--custom-control-border,#6b6b6c);
  border-radius: 6px;
  color: inherit;
  flex: 1;
  font-family: ui-monospace,"SF Mono",Menlo,monospace;
  letter-spacing: .04em;
  max-width: 24ch;
  min-width: 12ch;
  padding: .55rem .6rem;
}
.promo-row input[aria-invalid=true] { border-color: #c22f3d; }
button.promo-apply,.recommend-hint button {
  background: transparent;
  border: 1px solid var(--custom-control-border,#d2d2d3);
  border-radius: 999px;
  box-shadow: var(--custom-control-shadow);
  color: var(--custom-text-color);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  padding: .42rem 1rem;
}
button.promo-apply:hover,.recommend-hint button:hover {
  background: color-mix(in srgb,currentColor 8%,transparent);
}
.promo-chip {
  align-items: baseline;
  border: 1px solid var(--custom-border-color,#c8c8ce);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem .8rem;
}
.promo-chip[hidden],.promo-entry[hidden] { display: none; }
.promo-chip .mono {
  font-family: ui-monospace,"SF Mono",Menlo,monospace;
  font-weight: 700;
  letter-spacing: .04em;
}
.promo-chip .promo-desc { opacity: .75; }
.promo-chip .promo-remove {
  color: inherit;
  font-size: .85rem;
  margin-left: auto;
  opacity: .75;
  text-underline-offset: 2px;
}
.promo-chip .promo-remove:hover { opacity: 1; }
.promo-note { font-size: .85rem; margin: .1rem 0 .4rem; }
.promo-note.bad { color: #c22f3d; }

/* event/event_exhibitor_orders.css */
/* Store mode (event.html {{if .Exhibitor}}): the exhibitor heading, the
   tab row mirroring exhibitor.html's, and the order-history receipt under
   the catalogue. Renders only on the exhibitor store page — never on the
   public event/audience page. */
.x-eyebrow { font-size: .9rem; margin: 0; }
.x-name { font-size: 1.2rem; margin: .15rem 0 .7rem; }
.x-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.5rem; }
.x-tabs a { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 99px; color: inherit; font-size: .85rem; padding: .3rem .85rem; text-decoration: none; }
.x-tabs a:hover { border-color: currentColor; }
.x-tabs a[aria-current] { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; font-weight: 650; }
.x-orders { margin-top: 2.2rem; }
.x-orders table { border-collapse: collapse; width: 100%; }
.x-orders th,
.x-orders td { border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding: .55rem 0; text-align: left; }
.x-orders th { font-size: .72rem; font-weight: 600; letter-spacing: .08em; opacity: .7; text-transform: uppercase; }
.x-orders .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.x-orders .price,
.x-orders th.price { text-align: right; }

