/* ==========================================================================
   Tasha Events Manager - front end
   Builds on the theme's tokens (var(--accent) etc.) with fallbacks, so the
   pages still look right if the theme changes.
   1. Shared       2. Event page hero      3. Body + sections
   4. Ticket box   5. Mobile bar           6. Cards / upcoming block
   7. Thank-you    8. Responsive
   ========================================================================== */

/* ---------- 1. Shared ---------- */
.tem-event, .tem-upcoming, .tem-thanks {
  --t-accent: var(--accent, #b04826);
  --t-gold: var(--gold-mid, #d4a830);
  --t-gold-bright: var(--gold-bright, #f6d97a);
  --t-gold-deep: var(--gold-deep, #a8862a);
  --t-green: var(--green-deep, #1e4432);
  --t-bg: var(--bg, #fbf8f3);
  --t-bg-alt: var(--bg-alt, #f3eee2);
  --t-ink: var(--ink, #14110d);
  --t-soft: var(--ink-soft, #5a534a);
  --t-rule: var(--rule, #d8cfbe);
  --t-cream: #f3ebd9;
  --t-serif: var(--font-editorial, Fraunces, Georgia, serif);
  --t-sans: var(--font-ui, Inter, system-ui, sans-serif);
}
.tem-section__eyebrow { margin-bottom: 14px; }
.tem-section__h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 400;
}
.tem-section__h2 em { color: var(--t-accent); }
.tem-orn { display: inline-block; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,48,.75)); }
.tem-orn--r { background: linear-gradient(90deg, rgba(212,168,48,.75), transparent); }
.tem-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tem-notice {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--t-gold);
  border-radius: 6px;
  background: var(--t-bg-alt);
  font-size: 14px;
  color: var(--t-ink);
}

/* ---------- 2. Hero ---------- */
.tem-hero { padding: 72px 0 72px; }
.tem-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 56px;
  align-items: center;
}
.tem-breadcrumb { margin-bottom: 26px; }
.tem-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--t-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-gold-bright);
  margin-bottom: 20px;
}
.tem-hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 400;
  max-width: 14ch;
}
.tem-hero__subtitle {
  margin: 16px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.25;
  color: var(--t-gold-bright);
}
.tem-hero__lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(243,235,217,.82);
}
.tem-meta {
  list-style: none;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(246,217,122,.22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
}
.tem-meta b {
  display: block;
  font-family: var(--t-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-gold-bright);
  margin-bottom: 6px;
}
.tem-meta span { font-size: 15px; font-weight: 600; color: var(--t-cream); line-height: 1.35; }
.tem-hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.tem-hero__badge {
  font-family: var(--t-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246,217,122,.6);
  color: var(--t-gold-bright);
}
.tem-hero__badge--muted { border-color: rgba(243,235,217,.3); color: rgba(243,235,217,.65); }

.tem-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: #0f2a1c;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
/* The gold frame sits outside the picture, never over it. */
.tem-poster::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(246,217,122,.45);
  border-radius: 10px;
  pointer-events: none;
}
.tem-poster img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.tem-poster--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.tem-poster__date { font-family: var(--t-serif); font-size: 28px; color: var(--t-gold-bright); font-style: italic; }
.tem-hero__poster { max-width: 400px; width: 100%; justify-self: end; padding: 12px; }

/* ---------- 3. Body ---------- */
.tem-body { padding: var(--section-pad, 96px) 0; background: var(--t-bg); }
.tem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}
.tem-main { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.tem-prose { font-size: 17px; line-height: 1.7; color: var(--t-soft); }
.tem-prose > * + * { margin-top: 1em; }
.tem-prose h2, .tem-prose h3 { font-family: var(--t-serif); font-weight: 500; color: var(--t-ink); letter-spacing: -.02em; line-height: 1.15; }
.tem-prose h2 { font-size: 28px; }
.tem-prose h3 { font-size: 22px; }
.tem-prose strong { color: var(--t-ink); }
.tem-prose ul { padding-left: 20px; list-style: disc; }

.tem-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tem-topics li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--t-rule);
  border-radius: 6px;
  background: var(--t-bg-alt);
  font-size: 16px;
  line-height: 1.55;
  color: var(--t-soft);
}
.tem-topics strong { color: var(--t-ink); font-weight: 600; }
.tem-topics__check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f6d97a 0%, #d4a830 50%, #b58320 100%);
  color: #0a1d13;
  margin-top: 1px;
}

.tem-speaker__grid { display: grid; grid-template-columns: minmax(220px, .9fr) 1.3fr; gap: 36px; align-items: start; }
.tem-speaker__grid--text { grid-template-columns: 1fr; }
.tem-speaker__photos { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tem-speaker__photos--many { grid-template-columns: 1fr 1fr; }
.tem-speaker__photos--many .tem-ig--main { grid-column: 1 / -1; }
.tem-ig {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--t-bg-alt);
  cursor: zoom-in;
}
.tem-ig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tem-ig:hover img { transform: scale(1.03); }
.tem-speaker__title { margin: -8px 0 16px; font-family: var(--t-serif); font-style: italic; font-size: 19px; color: var(--t-accent); }
.tem-speaker__bio { margin: 0 0 18px; font-size: 16.5px; line-height: 1.65; color: var(--t-soft); }
.tem-facts { list-style: none; margin: 0 0 22px; padding: 0; }
.tem-facts li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--t-soft); }
.tem-facts li + li { margin-top: 10px; }
.tem-facts li::before { content: "◆"; position: absolute; left: 0; top: 2px; font-size: 9px; color: var(--t-gold); }

.tem-details__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tem-card {
  padding: 26px;
  border: 1px solid var(--t-rule);
  border-radius: 6px;
  background: var(--t-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tem-card--venue { position: relative; overflow: hidden; }
.tem-card__photo { aspect-ratio: 16 / 9; border-radius: 4px; background-size: cover; background-position: center; margin: -4px 0 8px; }
.tem-card__label { font-family: var(--t-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--t-gold-deep); }
.tem-card__big { font-size: 28px; line-height: 1.05; letter-spacing: -.02em; font-weight: 500; color: var(--t-ink); }
.tem-card__big small { font-family: var(--t-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold-deep); font-weight: 700; margin-left: 6px; }
.tem-card__text { font-size: 14.5px; line-height: 1.55; color: var(--t-soft); }
.tem-card__text--small { font-size: 12.5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--t-rule); }
.tem-card__text a { color: var(--t-accent); }
.tem-card .btn-arrow { margin-top: auto; align-self: flex-start; }
.tem-includes { list-style: none; margin: 4px 0 0; padding: 0; }
.tem-includes li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--t-ink); }
.tem-includes li + li { margin-top: 6px; }
.tem-includes li::before { content: "✦"; position: absolute; left: 0; top: 2px; font-size: 10px; color: var(--t-gold); }

/* ---------- 4. Ticket box ---------- */
.tem-aside { position: sticky; top: 96px; }
.tem-ticket {
  background: var(--t-green);
  color: var(--t-cream);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(7,18,12,.3);
  position: relative;
  overflow: hidden;
}
.tem-ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(33,108,74,.5) 0%, transparent 65%);
  pointer-events: none;
}
.tem-ticket > * { position: relative; }
.tem-ticket__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tem-ticket__eyebrow { font-family: var(--t-sans); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--t-gold-bright); }
.tem-ticket__tier { font-family: var(--t-sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(246,217,122,.14); color: var(--t-gold-bright); border: 1px solid rgba(246,217,122,.4); }
.tem-ticket__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tem-ticket__amount { font-size: 48px; line-height: 1; letter-spacing: -.02em; font-weight: 500; color: var(--t-gold-bright); }
.tem-ticket__was { font-size: 18px; color: rgba(243,235,217,.5); }
.tem-ticket__per { width: 100%; font-size: 12.5px; color: rgba(243,235,217,.6); }
.tem-ticket__note { margin: 12px 0 0; font-size: 13px; color: rgba(243,235,217,.78); }
.tem-ticket__note strong { color: var(--t-gold-bright); }
.tem-ticket__includes { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(246,217,122,.18); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tem-ticket__includes li { font-size: 12.5px; color: rgba(243,235,217,.78); }
.tem-ticket__includes li::before { content: "✦ "; color: var(--t-gold); font-size: 9px; }
.tem-ticket__form { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(246,217,122,.18); display: flex; flex-direction: column; gap: 12px; }

.tem-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tem-qty__label { font-family: var(--t-sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,235,217,.65); }
.tem-qty__ctrl { display: flex; align-items: center; border: 1px solid rgba(246,217,122,.35); border-radius: 999px; overflow: hidden; }
.tem-qty__ctrl button { width: 40px; height: 40px; background: transparent; color: var(--t-cream); font-size: 20px; line-height: 1; border: 0; cursor: pointer; }
.tem-qty__ctrl button:hover { background: rgba(246,217,122,.12); }
.tem-qty__ctrl input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--t-gold-bright);
  font-family: var(--t-serif);
  font-size: 20px;
  -moz-appearance: textfield;
}
.tem-qty__ctrl input::-webkit-outer-spin-button, .tem-qty__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tem-ticket__hint { margin: -4px 0 0; font-size: 12px; color: var(--t-gold-bright); }

.tem-field { display: flex; flex-direction: column; gap: 5px; }
.tem-field > span { font-family: var(--t-sans); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,235,217,.6); }
.tem-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(246,217,122,.28);
  background: rgba(7,18,12,.5);
  color: var(--t-cream);
  font-family: var(--t-sans);
  font-size: 15px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.tem-field input:focus { border-color: var(--t-gold); box-shadow: 0 0 0 3px rgba(212,168,48,.16); }
.tem-field select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(246,217,122,.28);
  background: rgba(7,18,12,.5) 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 1l5 5 5-5' fill='none' stroke='%23f6d97a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--t-cream);
  font-family: var(--t-sans);
  font-size: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.tem-field select:focus { border-color: var(--t-gold); box-shadow: 0 0 0 3px rgba(212,168,48,.16); }
.tem-field select option { color: #14110d; background: #fff; }

/* consent + terms box inside the dark card (styles mirror the theme's) */
.tem-ticket .event-terms { margin: 4px 0 0; padding: 14px 16px; border: 1px solid rgba(246,217,122,.22); border-radius: 6px; background: rgba(7,18,12,.35); }
.tem-ticket .event-terms__title { font-family: var(--t-sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold-bright); margin-bottom: 8px; }
.tem-ticket .event-terms__list { list-style: none; margin: 0 0 10px; padding: 0; }
.tem-ticket .event-terms__list li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(243,235,217,.72); }
.tem-ticket .event-terms__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--t-gold); }
.tem-ticket .event-terms__check { padding-top: 10px; border-top: 1px solid rgba(246,217,122,.18); }
.tem-ticket .form-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-family: var(--t-sans); font-size: 12.5px; line-height: 1.5; color: rgba(243,235,217,.72); cursor: pointer; }
.tem-ticket .form-consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--t-gold); }
.tem-ticket .form-consent a { color: var(--t-gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.tem-ticket .event-terms.is-shake { animation: temShake .4s; }
@keyframes temShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.tem-ticket__submit { margin-top: 6px; }
.tem-ticket__submit[disabled] { opacity: .6; cursor: wait; }
.tem-ticket__test { border-style: dashed; }
.tem-ticket__secure { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(243,235,217,.55); text-align: center; }
.tem-ticket__msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--t-gold-bright); min-height: 0; display: none; }
.tem-ticket__msg.is-visible { display: block; }
.tem-ticket__msg.is-error { color: #ffb48f; }
.tem-ticket__closed strong { display: block; font-family: var(--t-serif); font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.tem-ticket__closed p { margin: 0 0 16px; font-size: 14px; color: rgba(243,235,217,.75); }
.tem-ticket__closed a:not(.btn) { color: var(--t-gold-bright); }

/* ---------- 5. Mobile ticket bar ---------- */
.tem-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--t-green);
  color: var(--t-cream);
  box-shadow: 0 -12px 32px rgba(7,18,12,.35);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.tem-bar.is-visible { transform: translateY(0); }
.tem-bar__price { display: flex; flex-direction: column; min-width: 0; }
.tem-bar__label { font-family: var(--t-sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold-bright); }
.tem-bar__price strong { font-family: var(--t-serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.tem-bar__btn { flex: none; padding: 12px 18px; font-size: 12px; }
body.menu-open .tem-bar { transform: translateY(110%); }
body.tem-single-event .mobile-contact-bar { display: none !important; }
@media (max-width: 900px) {
  .tem-bar { display: flex; }
  body.tem-single-event.has-tem-bar { padding-bottom: 72px; }
}

/* ---------- 6. Poster section ---------- */
.tem-poster-section { padding: var(--section-pad, 96px) 0; }
.tem-poster-section__inner { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 56px; align-items: center; }
.tem-poster--big { max-width: 380px; margin: 12px; }
.tem-poster-section__h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -.028em; font-weight: 400; }
.tem-poster-section__p { margin: 0 0 28px; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: rgba(243,235,217,.78); }
.tem-poster-section__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 7. Cards / upcoming block ---------- */
.tem-upcoming { padding: var(--section-pad, 96px) 0; background: var(--t-bg); }
.tem-upcoming--alt { background: var(--t-bg-alt); }
.tem-upcoming__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.tem-upcoming__h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1; letter-spacing: -.028em; font-weight: 400; }
.tem-upcoming__h2 em { color: var(--t-accent); }
.tem-upcoming__lead { max-width: 400px; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--t-soft); }
.tem-ecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 24px; }
.tem-ecards--one { grid-template-columns: minmax(300px, 720px); }
.tem-ecards--one .tem-ecard { grid-template-columns: 280px 1fr; }
.tem-ecard {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--t-rule);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tem-ecards--one .tem-ecard { grid-template-rows: none; }
.tem-ecard:hover { transform: translateY(-3px); border-color: var(--t-gold); box-shadow: 0 20px 50px rgba(20,17,13,.12); }
.tem-ecard__poster { position: relative; aspect-ratio: 4 / 5; background: var(--t-green); overflow: hidden; }
.tem-ecards--one .tem-ecard__poster { aspect-ratio: auto; min-height: 320px; }
.tem-ecard__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tem-ecard:hover .tem-ecard__poster img { transform: scale(1.04); }
.tem-ecard__poster-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--t-gold-bright); font-size: 64px; line-height: 1; }
.tem-ecard__poster-empty small { font-family: var(--t-sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin-top: 8px; }
.tem-ecard__date {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7,18,12,.82);
  color: var(--t-gold-bright);
  border: 1px solid rgba(246,217,122,.4);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  line-height: 1;
}
.tem-ecard__date span { display: block; font-family: var(--t-serif); font-size: 24px; }
.tem-ecard__date small { display: block; font-family: var(--t-sans); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; }
.tem-ecard__flag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--t-sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #f6d97a 0%, #d4a830 50%, #b58320 100%); color: #0a1d13;
}
.tem-ecard__flag--muted { background: rgba(7,18,12,.8); color: rgba(243,235,217,.8); }
.tem-ecard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.tem-ecard__kind { font-family: var(--t-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--t-gold-deep); }
.tem-ecard__title { margin: 0; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; font-weight: 500; }
.tem-ecard__subtitle { margin: -2px 0 0; font-style: italic; font-size: 16px; color: var(--t-soft); }
.tem-ecard__meta { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; color: var(--t-soft); line-height: 1.5; }
.tem-ecard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--t-rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tem-ecard__price { font-family: var(--t-serif); font-size: 22px; font-weight: 500; color: var(--t-ink); }
.tem-ecard__price s { font-size: 14px; color: var(--t-soft); margin-left: 6px; }
.tem-ecard__btn { padding: 10px 16px; font-size: 12px; }

/* ---------- 8. Thank-you ---------- */
.tem-thanks { max-width: 920px; margin: 0 auto; }
.tem-thanks__hero { text-align: center; margin-bottom: 40px; }
.tem-thanks__h2 { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.tem-thanks__h2 em { color: var(--t-accent); }
.tem-thanks__lead { margin: 0 auto; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--t-soft); }
.tem-thanks__small { margin: 14px 0 0; font-size: 13px; color: var(--t-soft); }
.tem-thanks__hero .btn { margin-top: 24px; }
.tem-thanks__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.tem-thanks__event { display: flex; gap: 22px; padding: 24px; border: 1px solid var(--t-rule); border-radius: 8px; background: var(--t-bg-alt); }
.tem-thanks__poster { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; flex: none; }
.tem-thanks__title { font-size: 24px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.tem-thanks__subtitle { font-style: italic; color: var(--t-soft); margin: 4px 0 12px; }
.tem-thanks__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tem-thanks__meta b { display: inline-block; min-width: 56px; font-family: var(--t-sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--t-gold-deep); }
.tem-thanks__docs { padding: 24px; border-radius: 8px; background: var(--t-green); color: var(--t-cream); display: flex; flex-direction: column; gap: 10px; }
.tem-thanks__docs-label { font-family: var(--t-sans); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--t-gold-bright); margin-bottom: 4px; }
.tem-thanks__docs .btn-ghost { color: var(--t-cream); border-color: rgba(246,217,122,.45); }
.tem-thanks__cal { margin-top: 6px; font-size: 13px; color: rgba(243,235,217,.7); }
.tem-thanks__cal a { color: var(--t-gold-bright); }
.tem-thanks__next { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--t-rule); }
.tem-thanks__list { list-style: none; margin: 0 0 22px; padding: 0; }
.tem-thanks__list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--t-soft); }
.tem-thanks__list li + li { margin-top: 8px; }
.tem-thanks__list li::before { content: "✦"; position: absolute; left: 0; top: 3px; font-size: 10px; color: var(--t-gold); }
.tem-thanks__list a { color: var(--t-accent); }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1023px) {
  .tem-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .tem-hero__poster { justify-self: start; max-width: 320px; }
  .tem-grid { grid-template-columns: 1fr; gap: 40px; }
  .tem-aside { position: static; }
}
@media (max-width: 767px) {
  .tem-hero { padding: 48px 0 48px; }
  .tem-hero__title { font-size: clamp(36px, 11vw, 56px); }
  .tem-hero__ctas .btn { width: 100%; justify-content: center; }
  .tem-body, .tem-poster-section, .tem-upcoming { padding: var(--section-pad-m, 56px) 0; }
  .tem-main { gap: 44px; }
  .tem-details__grid { grid-template-columns: 1fr; }
  .tem-speaker__grid { grid-template-columns: 1fr; }
  .tem-speaker__photos--many { grid-template-columns: 1fr 1fr; }
  .tem-speaker__photos--many .tem-ig--main { grid-column: 1 / -1; }
  .tem-ticket { padding: 22px; }
  .tem-ticket__amount { font-size: 40px; }
  .tem-poster-section__inner { grid-template-columns: 1fr; gap: 28px; }
  .tem-poster--big { max-width: 300px; }
  .tem-poster-section__ctas .btn { width: 100%; justify-content: center; }
  .tem-ecards, .tem-ecards--one { grid-template-columns: 1fr; }
  .tem-ecards--one .tem-ecard { grid-template-columns: 1fr; }
  .tem-ecards--one .tem-ecard__poster { aspect-ratio: 4 / 5; }
  .tem-thanks__grid { grid-template-columns: 1fr; }
  .tem-thanks__event { flex-direction: column; }
}
