/* TEDxChipledhunga — site styles
   Palette follows the TEDx brand: red, black, white. Newsprint grey and the
   charcoal field are sampled from the "Evolving Perspectives" banner. */

:root {
  --red: #eb0028;
  --red-press: #b80020;
  --black: #000;
  --charcoal: #262626;
  --white: #fff;
  --newsprint: #d9d6cf;
  --graphite: #5a5a5a;
  --mist: #b5b5b5;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-deva: "Mukta", "Noto Sans Devanagari", sans-serif;

  /* major-third scale on a 17px base */
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.6rem, 1.3rem + 1.2vw, 1.953rem);
  --step-4: clamp(1.9rem, 1.4rem + 2vw, 2.441rem);
  --step-5: clamp(2.2rem, 1.5rem + 3vw, 3.052rem);
  --step-6: clamp(2.6rem, 1.6rem + 4.4vw, 3.815rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 76rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --torn: clamp(14px, 2vw, 28px);
}

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

html {
  font-size: 106.25%; /* 17px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  line-height: 1.05;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }

p { margin: 0 0 1em; max-width: 68ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { top: 0.5rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
/* consecutive plain sections share one gap; sections next to a torn band keep theirs */
.section:not(.section--dark):not(.section--paper) + .section:not(.section--dark):not(.section--paper) { padding-top: 0; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--graphite); max-width: 60ch; }
.muted { color: var(--graphite); }
.deva { font-family: var(--font-deva); font-variation-settings: normal; letter-spacing: 0; }

/* ---------- torn paper edges ---------- */
.section--dark, .section--paper, .site-footer { position: relative; }

.torn-top::before,
.torn-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--torn);
  background: inherit;
  -webkit-mask: url("../img/torn-edge.svg") center / 100% 100% no-repeat;
  mask: url("../img/torn-edge.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.torn-top::before { top: calc(var(--torn) * -1 + 1px); }
.torn-bottom::after { bottom: calc(var(--torn) * -1 + 1px); transform: scaleY(-1); z-index: 1; }

.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark a:hover { color: var(--white); }
.section--dark .muted, .section--dark .lede { color: var(--mist); }
.section--paper { background: var(--newsprint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
}
.btn:hover { background: var(--red-press); border-color: var(--red-press); color: var(--white); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.section--dark .btn--outline { color: var(--white); border-color: var(--white); }
.section--dark .btn--outline:hover { background: var(--white); color: var(--black); }
.btn[aria-disabled="true"] { background: var(--newsprint); border-color: var(--newsprint); color: var(--graphite); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--newsprint);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img { width: auto; height: 2.3rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.2rem 1.1rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.site-nav a {
  display: block;
  padding-block: 0.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 68rem) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--black); background: var(--white);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .site-header .btn--buy { order: 2; min-height: 2.5rem; padding: 0.45rem 0.9rem; }
  .nav-toggle { order: 3; margin-left: 0; }
  .site-logo { margin-right: auto; }
  .site-nav { order: 4; flex-basis: 100%; margin: 0; display: none; padding-bottom: 1rem; }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: var(--step-1); padding-block: 0.55rem; border-bottom: 1px solid var(--newsprint); }
  .site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--newsprint); }
}
@media (max-width: 30rem) {
  .site-header__inner { gap: 0.6rem; }
  .site-logo img { height: 1.6rem; }
  .site-header .btn--buy { font-size: 0.88rem; padding: 0.4rem 0.7rem; }
  .nav-toggle { padding: 0.4rem 0.7rem; }
}

/* ---------- messages ---------- */
.messages { list-style: none; margin: 0; padding: 0; }
.messages li { padding: 0.9rem var(--gutter); background: var(--black); color: var(--white); font-weight: 600; }
.messages li.error { background: var(--red); }

/* ---------- home: banner + countdown band ---------- */
.banner { background: var(--white); }
.banner picture, .banner img { width: 100%; }

.event-band { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.event-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: end;
}
.event-band__when {
  margin: 0 0 0.25rem;
  font-size: var(--step-4);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  line-height: 1.05;
}
.event-band__where { margin: 0 0 1.75rem; font-size: var(--step-1); color: var(--mist); }

.countdown { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 0 clamp(0.9rem, 3vw, 2.5rem); justify-content: start; }
.countdown div { display: flex; flex-direction: column-reverse; }
.countdown dt { font-size: var(--step--1); color: var(--mist); font-weight: 600; }
.countdown dd {
  margin: 0;
  font-size: clamp(2.8rem, 1rem + 10vw, 7.5rem);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.countdown div:first-child dd { color: var(--red); }
.countdown__done { margin: 0; font-size: var(--step-4); font-weight: 800; }

@media (max-width: 52rem) {
  .event-band__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- page headers ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--graphite); }
.section--dark .section-head p { color: var(--mist); }
.section-head__action { justify-self: end; }
@media (max-width: 48rem) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__action { justify-self: start; }
}

/* ---------- theme block ---------- */
.theme {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem 4rem;
  align-items: center;
}
.theme__name {
  font-size: clamp(2.1rem, 0.4rem + 7.2vw, 5.4rem);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.theme__name span { display: block; color: var(--red); }
.theme__mark { width: min(100%, 17rem); justify-self: center; }
@media (max-width: 30rem) {
  .theme__name, .event-band__when { font-variation-settings: "wdth" 100; }
}
@media (max-width: 48rem) {
  .theme { grid-template-columns: 1fr; }
  .theme__mark { width: 9rem; justify-self: start; grid-row: 1; }
}

/* ---------- people ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 2.5rem 1.5rem;
  margin: 0; padding: 0; list-style: none;
}
.person { position: relative; }
.person__photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 0.9rem;
  background: var(--newsprint);
  overflow: hidden;
}
.person__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.person__initials {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: var(--step-6);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  color: var(--white);
  background: var(--charcoal);
}
.person h3 { font-size: var(--step-1); margin: 0 0 0.2rem; }
.person h3 a { text-decoration: none; }
.person h3 a::after { content: ""; position: absolute; inset: 0; }
.person h3 a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); }
.person p { margin: 0; font-size: 0.93rem; color: var(--graphite); line-height: 1.45; }
.section--dark .person p { color: var(--mist); }
.section--dark .person h3 a:hover { color: var(--white); }

.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.profile .person__photo { margin: 0; }
.profile h1 { font-size: var(--step-5); margin-bottom: 0.3rem; }
.profile__role { font-size: var(--step-1); color: var(--graphite); margin-bottom: 2rem; }
.profile__bio { font-size: 1.06rem; }
.profile__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.profile__talks { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 3px solid var(--black); }
.profile__talks ul { margin: 0; padding: 0; list-style: none; }
.profile__talks li { padding-block: 0.8rem; border-bottom: 1px solid var(--newsprint); }
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }
@media (max-width: 48rem) {
  .profile { grid-template-columns: 1fr; }
  .profile .person__photo { max-width: 22rem; }
}

/* ---------- schedule ---------- */
.agenda { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--black); }
.agenda__item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--newsprint);
  align-items: start;
}
.agenda__time {
  font-size: var(--step-2);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.agenda__time small { display: block; font-size: 0.93rem; font-weight: 500; color: var(--graphite); font-variation-settings: "wdth" 100; }
.agenda__title { margin: 0 0 0.25rem; font-size: var(--step-1); }
.agenda__people { margin: 0; color: var(--graphite); }
.agenda__people a { font-weight: 600; color: var(--black); }
.agenda__desc { margin: 0.5rem 0 0; font-size: 0.93rem; color: var(--graphite); }
.agenda__type {
  padding: 0.2rem 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.agenda__type--talk { color: var(--red); }
.agenda__item--slot { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(217, 214, 207, 0.35) 10px 20px); }
.agenda__item--slot .agenda__title { font-weight: 600; font-variation-settings: "wdth" 100; }
.agenda__item--slot .agenda__type { color: var(--graphite); }
@media (max-width: 40rem) {
  .agenda__item { grid-template-columns: 1fr auto; }
  .agenda__time { grid-column: 1; }
  .agenda__type { grid-column: 2; grid-row: 1; justify-self: end; }
  .agenda__body { grid-column: 1 / -1; }
}

/* ---------- tickets (perforated stubs) ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  margin: 0; padding: 0; list-style: none;
}
.ticket {
  --notch: 14px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2rem 2rem 1.75rem;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 7.25rem, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 7.25rem, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 7.25rem, transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% 7.25rem, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket--featured { background: var(--black); color: var(--white); border-color: var(--black); }
.ticket__top { min-height: 5.25rem; padding-bottom: 1.25rem; border-bottom: 2px dashed currentColor; }
.ticket__name { margin: 0; font-size: var(--step-3); }
.ticket__price {
  margin: 0;
  font-size: var(--step-5);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 1;
}
.ticket__price small { font-size: var(--step-0); font-weight: 600; font-variation-settings: "wdth" 100; margin-right: 0.3rem; }
.ticket--featured .ticket__price { color: var(--red); }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ticket__body { padding-block: 1.25rem 1.5rem; }
.ticket__body p { color: var(--graphite); }
.ticket--featured .ticket__body p { color: var(--mist); }
.ticket__benefits { margin: 0; padding: 0; list-style: none; }
.ticket__benefits li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; }
.ticket__benefits li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 0.7rem; height: 3px; background: var(--red);
}
.ticket .btn { width: 100%; }
.ticket__status { margin: 0.6rem 0 0; font-size: 0.93rem; color: var(--graphite); text-align: center; }
.ticket--featured .ticket__status { color: var(--mist); }

.lookup {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem 4rem;
}
@media (max-width: 48rem) { .lookup { grid-template-columns: 1fr; } }

.ticket__name a { color: inherit; text-decoration: none; }
.ticket__name a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.ticket__status a { color: inherit; }

/* ticket tier page + checkout */
.crumbs { margin-bottom: 1rem; font-size: 0.93rem; font-weight: 600; color: var(--graphite); }
.crumbs a { color: inherit; }
.crumbs [aria-current] { color: var(--black); }
.tier-layout, .checkout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.tier-main { display: grid; gap: 3rem; }
.tier-main__title { font-size: var(--step-3); padding-bottom: 0.75rem; margin-bottom: 1.25rem; border-bottom: 3px solid var(--black); }
.tier-benefits li { font-size: var(--step-1); }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--newsprint); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.buybox {
  position: sticky; top: 6rem;
  display: grid; gap: 1rem;
  padding: 1.75rem;
  border: 2px solid var(--black);
  background: var(--white);
}
.buybox__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 2px dashed var(--black); }
.buybox__name { margin: 0; font-size: var(--step-2); font-weight: 800; }
.buybox .btn { width: 100%; }
.buybox__seats { margin: 0; font-weight: 700; color: var(--red-press); }
.buybox__hint { margin: 0; font-size: 0.93rem; color: var(--graphite); }
.tedx-notes { padding-top: 1rem; border-top: 1px solid var(--newsprint); font-size: 0.93rem; color: var(--graphite); }
.tedx-notes .x-definition { margin-bottom: 0.4rem; max-width: none; font-size: var(--step-1); font-weight: 700; line-height: 1.3; color: var(--black); }
.tedx-notes p:last-child { margin-bottom: 0; }

.steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: step; font-weight: 600; color: var(--graphite); }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 0.5rem; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border: 2px solid currentColor; border-radius: 50%;
  font-size: 0.85rem;
}
.steps [aria-current="step"] { color: var(--black); }
.steps [aria-current="step"]::before { background: var(--red); border-color: var(--red); color: var(--white); }
.steps__done::before { content: "\2713" !important; }

.checkout__form { max-width: none; gap: 2.5rem; }
.checkout__step { display: grid; gap: 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout__step > legend { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding-bottom: 0.75rem; margin-bottom: 0.25rem; border-bottom: 3px solid var(--black); font-size: var(--step-3); font-weight: 800; }
.checkout__num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--black); color: var(--white); font-size: var(--step-1); }
.checkout__step > .muted { margin: 0; }
.checkout__summary .buybox__name { padding-bottom: 1rem; border-bottom: 2px dashed var(--black); }
.summary { display: grid; margin: 0; }
.summary > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; }
.summary dt { color: var(--graphite); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary__total { margin-top: 0.4rem; border-top: 2px solid var(--black); padding-top: 0.9rem !important; font-size: var(--step-1); }
.summary__total dt { color: var(--black); font-weight: 800; }

.pay-box { display: grid; gap: 1rem; padding: 1.5rem; background: var(--black); color: var(--white); }
.pay-box .muted { color: var(--mist); }
.pay-box__amount { margin: 0; font-size: var(--step-4); font-weight: 900; font-variation-settings: "wdth" 75; line-height: 1.1; }
.pay-box__amount span { display: block; font-size: var(--step--1); font-weight: 600; font-variation-settings: "wdth" 100; color: var(--mist); }
.pay-box__how { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.pay-box__how p { margin: 0 0 0.5rem; }
.pay-box__how > p:last-of-type { margin-bottom: 0; }
.pay-box__qr { width: 11rem; height: auto; padding: 0.5rem; background: var(--white); }

@media (max-width: 60rem) {
  .tier-layout, .checkout { grid-template-columns: minmax(0, 1fr); }
  .buybox { position: static; }
  .checkout__summary { order: -1; }
}
@media (max-width: 30rem) {
  .facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* digital ticket */
.eticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  max-width: 56rem;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}
.eticket__main { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-right: 2px dashed var(--black); }
.eticket__brand { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.eticket__brand img { height: 1.9rem; width: auto; }
.eticket__title { font-size: var(--step-4); margin-bottom: 1.5rem; }
.eticket dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; margin: 0; }
.eticket dt { font-size: var(--step--1); font-weight: 600; color: var(--graphite); }
.eticket dd { margin: 0; font-weight: 700; }
.eticket__stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 1.5rem; }
.eticket__stub svg { width: 100%; max-width: 13rem; height: auto; }
.eticket__code { font-size: var(--step-2); font-weight: 900; font-variation-settings: "wdth" 70; letter-spacing: 0.04em; }
.status-pill { display: inline-block; padding: 0.2rem 0.7rem; font-size: var(--step--1); font-weight: 700; background: var(--black); color: var(--white); }
.status-pill--confirmed, .status-pill--attended { background: var(--red); }
.status-pill--pending, .status-pill--waitlisted { background: var(--newsprint); color: var(--black); }
@media (max-width: 44rem) {
  .eticket { grid-template-columns: minmax(0, 1fr); }
  .eticket__brand { flex-wrap: wrap; }
  .eticket__title { font-size: var(--step-3); }
  .eticket__main { border-right: 0; border-bottom: 2px dashed var(--black); }
  .eticket dl { grid-template-columns: 1fr; }
}

/* ---------- partners ---------- */
.tier + .tier { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.tier h2 { font-size: var(--step-3); padding-bottom: 0.75rem; border-bottom: 3px solid var(--black); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--newsprint);
  border-left: 1px solid var(--newsprint);
}
.logo-grid li { background: var(--white); border-right: 1px solid var(--newsprint); border-bottom: 1px solid var(--newsprint); }
.logo-grid a, .logo-grid .logo-tile {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  padding: 1.25rem;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
}
/* TEDx rule: partner logos must be smaller than the event logo (2.3rem tall in the header). */
.logo-grid img { max-height: 1.8rem; max-width: 8rem; width: auto; object-fit: contain; }
.tier--lead .logo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.tier--lead .logo-grid img { max-height: 2.1rem; max-width: 10rem; }
@media (max-width: 30rem) {
  .logo-grid img, .tier--lead .logo-grid img { max-height: 1.4rem; max-width: 6.5rem; }
}
.partner-list { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 2.5rem; }
.partner-list h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.partner-list p { font-size: 0.93rem; color: var(--graphite); margin: 0; }

/* ---------- venue ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.venue-map { aspect-ratio: 4 / 3; width: 100%; border: 2px solid var(--black); background: var(--newsprint); }
.venue-map iframe { width: 100%; height: 100%; border: 0; }
.signpost {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.15rem 0.7rem 0.05rem;
  border: 2px solid var(--black);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.3;
}
.info-list { margin: 0; }
.info-list > div { padding-block: 1.25rem; border-top: 1px solid var(--newsprint); }
.info-list dt { font-weight: 800; font-variation-settings: "wdth" 112; font-size: var(--step-1); margin-bottom: 0.35rem; }
.info-list dd { margin: 0; color: var(--graphite); white-space: pre-line; max-width: 62ch; }
@media (max-width: 52rem) { .venue-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 2rem 1.5rem;
  margin: 0; padding: 0; list-style: none;
}
.album { position: relative; }
.album__cover { aspect-ratio: 3 / 2; background: var(--charcoal); overflow: hidden; margin-bottom: 0.9rem; }
.album__cover img { width: 100%; height: 100%; object-fit: cover; }
.album h2 { font-size: var(--step-2); margin: 0 0 0.2rem; }
.album h2 a { text-decoration: none; }
.album h2 a::after { content: ""; position: absolute; inset: 0; }
.album p { margin: 0; color: var(--graphite); }

.media-grid {
  columns: 3 16rem;
  column-gap: 1rem;
  margin: 0; padding: 0; list-style: none;
}
.media-grid li { break-inside: avoid; margin-bottom: 1rem; }
.media-grid button {
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--newsprint); cursor: zoom-in;
}
.media-grid button img { width: 100%; }
.media-grid figcaption { padding-top: 0.4rem; font-size: 0.87rem; color: var(--graphite); }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.video-embed iframe, .video-embed button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed button { padding: 0; cursor: pointer; background: var(--black); }
.video-embed button img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video-embed button span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 0.6rem 1.1rem; background: var(--red); color: var(--white); font: inherit; font-weight: 700;
}

.lightbox {
  width: min(92vw, 80rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; }
.lightbox p { color: var(--white); text-align: center; margin: 0.75rem auto 0; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem;
  padding: 0.5rem 0.9rem; border: 2px solid var(--white);
  background: var(--black); color: var(--white); font: inherit; font-weight: 700; cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: var(--step-3); }
.faq { border-top: 3px solid var(--black); }
.faq details { border-bottom: 1px solid var(--newsprint); }
.faq summary {
  position: relative;
  padding: 1.15rem 3rem 1.15rem 0;
  font-size: var(--step-1);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 1rem; height: 1rem; margin-top: -0.5rem;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--graphite); white-space: pre-line; max-width: 68ch; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 36rem) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field__error, .form__error { margin: 0.35rem 0 0; color: var(--red-press); font-weight: 600; font-size: 0.93rem; }
.form__error { padding: 0.8rem 1rem; border-left: 4px solid var(--red); background: #fdeceb; margin: 0; }
.field__help { margin: 0.35rem 0 0; font-size: 0.93rem; color: var(--graphite); }
.field--check { display: flex; align-items: flex-start; gap: 0.7rem; }
.field--check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; padding: 0; accent-color: var(--red); }
.field--check label { margin: 0; font-weight: 400; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.radio-group legend { width: 100%; margin-bottom: 0.35rem; padding: 0; font-weight: 700; }
.radio-group .radio { display: flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.65rem 0.9rem; border: 2px solid var(--black); font-weight: 600; cursor: pointer; }
.radio-group .radio:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.radio-group input { width: auto; margin: 0; padding: 0; accent-color: var(--red); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem 5rem; }
.contact-card { padding-top: 1.25rem; border-top: 3px solid var(--black); }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; margin-top: 1.1rem; }
.contact-card dd { margin: 0.15rem 0 0; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem 4rem; }
.about-grid + .about-grid { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 3px solid var(--black); }
.about-grid h2 { font-size: var(--step-4); }
.x-definition {
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1.2;
  max-width: 24ch;
}
.x-definition b { color: var(--red); font-weight: 900; }
@media (max-width: 48rem) { .about-grid { grid-template-columns: 1fr; } }

.team-group + .team-group { margin-top: 3rem; }
.team-group h3 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }

/* ---------- empty states ---------- */
.empty { padding: 2rem; border: 2px dashed var(--newsprint); color: var(--graphite); }
.empty p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem; }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--red); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)) minmax(0, 4fr);
  gap: 2.5rem 3rem;
}
.footer-logo img { height: 2.3rem; width: auto; margin-bottom: 1.25rem; }
.footer-x { font-size: var(--step-1); font-weight: 700; line-height: 1.35; margin-bottom: 1rem; }
.footer-x b { color: var(--red); }
.site-footer h2 { font-size: var(--step-0); font-variation-settings: "wdth" 100; font-weight: 700; color: var(--mist); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding-block: 0.2rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer p { color: var(--mist); }
.newsletter { display: flex; gap: 0; margin-top: 0.5rem; }
.newsletter input {
  min-width: 0; flex: 1;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--white); border-right: 0; border-radius: 0;
  background: var(--black); color: var(--white); font: inherit;
}
.newsletter input::placeholder { color: var(--mist); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.87rem; color: var(--mist);
}
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- print (digital ticket) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .messages { display: none !important; }
  .section, .page-head { padding: 0 !important; }
  .eticket { break-inside: avoid; }
}

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