/*
Theme Name: Tracks Motorsports
Theme URI: https://www.tracksmotorsports.com/
Author: Tracks Motorsports
Description: Custom theme for the Tracks Motorsports website. Home, About Us, Registration, and Events use the production design.
Version: 1.6.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.3
Text Domain: tracks-motorsports
*/

/* Production headings use Rubik Light at weight 700, so browsers embolden it synthetically. */
@font-face {
  font-family: "Tracks Rubik Light";
  src: url("assets/fonts/rubik-light.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eeeeee;
  --ink: #000000;
  --muted: #939393;
  --body: #333333;
  --blue: #348fe9;
  --footer: #f9fafb;
  --header: 92px;
  --content: 1180px;
  /* Armenian letters fall back to Noto Sans Armenian; Lexend Deca has no Cyrillic, so Manrope draws it. */
  --heading: "Rubik", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --heading-light: "Tracks Rubik Light", "Rubik", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --text: "Lexend Deca", "Noto Sans Armenian", "Manrope", "Helvetica Neue", Arial, sans-serif;
  --nav: "Roboto", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --feature: "Mulish", "Muli", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --nav-offset: 70px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

body.home { background: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(238, 238, 238, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .site-nav a { color: #111; }

.header-inner {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-height: 122px;
  padding: 0 40px 14px;
}

.site-logo img {
  width: 146px;
  height: auto;
}

.site-logo { margin-right: auto; }

.header-tools {
  position: absolute;
  top: 18px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 54px;
  height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  background: #fff;
  color: #666;
  font-family: var(--nav);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lang-toggle a,
.nav-languages a {
  color: inherit;
  text-decoration: none;
}

.lang-toggle a:hover,
.lang-toggle a:focus-visible { color: #000; text-decoration: underline; }

.lang-toggle .lang-current { color: #111; font-weight: 700; }

.lang-toggle .lang-sep { color: #bbb; }

.nav-languages { display: none; }

.site-nav { order: 2; }

.site-nav .menu {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #fff;
  font-family: var(--nav);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus { text-decoration: underline; }

.site-nav .current-menu-item > a,
body.home .site-header .site-nav .current-menu-item > a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-box::before { top: -7px; }
.nav-toggle-box::after { top: 7px; }

/* Homepage header: transparent over the hero, a white bar once scrolled. */
body.home .header-inner {
  align-items: flex-start;
  gap: 0;
  min-height: 122px;
  padding: 57px 40px 0;
}

body.home .header-tools { position: static; }

/* .header-tools is static on the homepage, so this is placed against the header. */
body.home .lang-toggle {
  position: absolute;
  top: 18px;
  right: 28px;
}

body.home .site-nav { margin-top: 7px; }

body.home .site-nav .menu { gap: 0; }

body.home .site-header .site-nav a {
  display: block;
  padding: 0 15px;
  color: #fff;
  line-height: 38px;
  letter-spacing: 0.45px;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.home .site-header .site-nav a:hover,
body.home .site-header .site-nav a:focus-visible { color: #0f0f0f; }

body.home .site-header.is-scrolled {
  background: #fff;
  box-shadow: none;
}

body.home .site-header.is-scrolled .header-inner {
  min-height: 70px;
  padding: 13px 168px 0 49px;
}

body.home .site-header.is-scrolled .site-logo img { width: 127px; }
body.home .site-header.is-scrolled .site-nav { margin-top: 3px; }
body.home .site-header.is-scrolled .lang-toggle { top: 19px; }
body.home .site-header.is-scrolled .site-nav a { color: #777; }

body.home .site-header.is-scrolled .site-nav a:hover,
body.home .site-header.is-scrolled .site-nav a:focus-visible,
body.home .site-header.is-scrolled .site-nav a.is-active,
body.home .site-header.is-scrolled .site-nav .current-menu-item > a { color: #000; }

body.home main > section[id] { scroll-margin-top: var(--nav-offset); }

.hero {
  position: relative;
  min-height: 1110px;
  background-color: #1c1c1c;
  background-size: cover;
  background-position: 50% 0;
  background-attachment: fixed;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 250px 0 80px;
}

.hero.has-featured { min-height: 0; }

.hero.has-featured .hero-inner { padding: 170px 20px 120px; }

/* Featured event: the poster links to Events, the panel to Registration. */
.featured-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.25);
}

.featured-event-poster {
  display: block;
  overflow: hidden;
  background: #111;
}

.featured-event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.featured-event-poster:hover img,
.featured-event-poster:focus-visible img { transform: scale(1.03); }

.featured-event-poster:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.featured-event-poster-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  padding: 30px;
  color: #fff;
  font-family: var(--heading);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.featured-event-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 50px;
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
}

.featured-event-tagline {
  margin: 0 0 22px;
  color: #fff;
  font-family: var(--heading-light);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.featured-event-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.featured-event-facts {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}

.featured-event-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 0;
}

.featured-event-facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: var(--blue);
}

.featured-event-text {
  margin: 0 0 22px;
  color: #d4d4d4;
  font-size: 16px;
  line-height: 1.55;
}

.featured-event-price {
  align-self: flex-start;
  margin: 0;
  padding: 8px 14px;
  border-left: 4px solid var(--blue);
  background: rgba(52, 143, 233, 0.16);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.featured-event-regular {
  margin: 8px 0 0;
  color: #b5b5b5;
  font-size: 14px;
}

.featured-event-status {
  margin: 14px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.featured-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 28px 0 0;
}

.ticket-button-large {
  padding: 16px 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(52, 143, 233, 0.4);
  transition: filter 0.15s, box-shadow 0.15s;
}

.ticket-button-large:hover,
.ticket-button-large:focus-visible { box-shadow: 0 6px 18px rgba(52, 143, 233, 0.55); }

.ticket-button:focus-visible,
.home-content .elementor-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.featured-event-link {
  color: #fff;
  font-family: var(--nav);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-event-link:hover,
.featured-event-link:focus-visible { color: var(--blue); }

.hero-tagline {
  max-width: 835px;
  margin: 2px auto 0;
  color: #fff;
  font-family: var(--heading-light);
  font-size: 96px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.ticket-cta {
  margin: 28px 0 0;
  text-align: center;
}

.ticket-button,
.home-content .elementor-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-family: var(--nav);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.ticket-button:hover,
.home-content .elementor-button:hover { filter: brightness(0.95); color: #fff; }

/* Only the homepage has a hero behind the header, so other pages start in its scrolled look. */
body:not(.home) .site-header,
body:not(.home) .site-header.is-scrolled {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  background: rgba(238, 238, 238, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body:not(.home) .site-nav a { color: #111; }

.store-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.woocommerce form .form-row label { font-weight: 400; }
.tracks-test-choice { margin: 6px 0; }

.section { padding: 72px 50px; }

.section h1,
.section h2,
.tm-section h2 {
  margin: 0 0 28px;
  font-family: var(--heading-light);
  font-size: 45px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.section-narrow,
.section-wide,
.contact-wrap { margin: 0 auto; }

.about-section { padding: 130px 50px 90px; }
.about-section h1,
.about-section h2,
.tm-intro h2 { margin-bottom: 33px; }
.section-narrow { max-width: 687px; }

.about-copy p {
  margin: 0 0 1.25em;
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
  text-align: center;
}

.about-copy p:last-child { margin-bottom: 0; }

.services-section { padding: 95px 50px 0; }
.services-section h2 { margin-bottom: 55px; }
.section-wide { max-width: 1330px; }

.services-section .section-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.services-section .section-wide > h2 { grid-column: 1 / -1; }

.media-block {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 5px;
}

.media-block > a {
  display: block;
  overflow: hidden;
}

.media-block img {
  width: 100%;
  height: 253px;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.media-block:hover img,
.media-block:focus-within img { transform: scale(1.06); }

.media-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 15px 16px;
  border: 1px solid #d8d8d8;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
}

.media-copy h3 {
  margin: 0 0 10px;
  color: #000;
  font-family: var(--heading-light);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.media-copy ul {
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
}

.media-copy li::before {
  content: "o - ";
  content: "o - " / "";
}

.media-block + .media-block li::before {
  content: "o – ";
  content: "o – " / "";
}

.media-copy p { margin: 0; }
.media-copy .products-intro { margin-bottom: 1.25em; }

.features-section { padding: 95px 50px 90px; }

.feature-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.feature {
  flex: 1 1 0;
  margin: 0;
  text-align: center;
}

.feature img,
.tm-features .feature img {
  width: 100%;
  height: 107px;
  margin: 0 0 15px;
  object-fit: contain;
}

.feature h3 {
  margin: 0;
  font-family: var(--heading-light);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-family: var(--feature);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

/* Home page sections edited in Elementor. Spacing goes through Elementor's own variables,
   so a value changed in Elementor's panel still takes effect. */
.home-content .tm-section {
  --row-gap: 0px;
  --column-gap: 20px;
}

.home-content .tm-intro {
  --padding-top: 130px;
  --padding-right: 50px;
  --padding-bottom: 90px;
  --padding-left: 50px;
  --content-width: min(100%, 687px);
}

.home-content .tm-features {
  --padding-top: 95px;
  --padding-right: 50px;
  --padding-bottom: 90px;
  --padding-left: 50px;
  --content-width: min(100%, 1160px);
}

.home-content .tm-features .feature {
  --flex-grow: 1;
  --flex-shrink: 1;
  --flex-basis: 0px;
  min-width: auto;
}

.tm-features .feature .elementor-image-box-img {
  display: block;
  width: 100%;
  margin: 0;
}

.home-content .elementor-button {
  line-height: inherit;
  transition: none;
}

.social-section {
  background: var(--footer);
  padding: 90px 24px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.social-row h2 {
  margin: 0 2px 0 0;
  text-align: right;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.social-link svg { width: 28px; height: 28px; fill: currentColor; }

.contact-section { padding: 87px 50px 94px; }
.contact-section h2 { margin-bottom: 45px; }
.contact-wrap { max-width: 860px; }

.contact-intro {
  margin: 0 0 47px;
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
  text-align: center;
}

.contact-wrap .form-notice,
.contact-form {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.contact-form label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.contact-form textarea {
  min-height: 30px;
  resize: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.contact-form p { margin: 0 0 23px; }

.contact-form .form-submit { margin: 0; }

.form-submit button {
  display: block;
  width: 663px;
  height: 58px;
  margin: 0 0 0 calc(50% - 331.5px);
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-family: var(--nav);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.form-submit button:hover { filter: brightness(0.95); }

.form-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #e7f6ec;
  color: #146c36;
  text-align: center;
}

.form-notice-error {
  background: #fdecec;
  color: #9b1c1c;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 56px 0;
  background: var(--footer);
  color: var(--muted);
}

/* Same width and side padding as the homepage's featured event box. */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  flex: none;
  line-height: 0;
}

.footer-logo img { display: block; width: 141px; height: auto; }

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: normal;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-contact li + li { margin-top: 19px; }

.footer-icon {
  flex: none;
  width: 30px;
  height: 30px;
  margin: -4px 0;
  fill: none;
  stroke: #222;
  stroke-width: 1;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.article-page {
  padding: 36px 24px 72px;
  background: #fff;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-kicker { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.article-kicker a { text-decoration: none; }

.article h1 {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.article-date { margin: 0 0 20px; color: var(--muted); }

.article-image { margin: 0 0 24px; }
.article-image img { width: 100%; height: auto; }

.article-content p { margin: 0 0 16px; color: #222; font-size: 18px; }

/* Homepage introduction, About Us, and Events reuse the homepage sections on a white page. */
.intro-section .ticket-cta,
.tm-intro .ticket-cta { margin-top: 33px; }

.content-page { background: #fff; }
.content-page > .section:first-child { padding-top: 80px; }

.founder-section { padding: 40px 50px 30px; }

.founder-wrap {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.founder-wrap.no-portrait {
  grid-template-columns: minmax(0, 1fr);
  max-width: 687px;
}

.founder-portrait {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px);
  margin: 0;
}

.founder-portrait img { width: 100%; height: auto; }

.founder-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: normal;
  text-align: center;
}

.founder-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
}

.founder-copy > :first-child { margin-top: 0; }
.founder-copy p { margin: 0 0 1em; }
.founder-copy strong { color: #000; font-weight: 400; }

.founder-copy a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: #c4c4c4;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.founder-copy a:hover,
.founder-copy a:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.founder-copy a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Links set to open in a new tab (from the editor's "Open in new tab" toggle) get the icon. */
.founder-copy a[target="_blank"]::after {
  content: "";
  content: "" / "(opens in a new tab)";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.3em;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 1h4v4M11 1 5.5 6.5M9.5 7.5V11h-8.5V2.5H4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 1h4v4M11 1 5.5 6.5M9.5 7.5V11h-8.5V2.5H4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

:lang(hy) .founder-copy a[target="_blank"]::after { content: ""; content: "" / "(բացվում է նոր ներդիրում)"; }
:lang(ru) .founder-copy a[target="_blank"]::after { content: ""; content: "" / "(откроется в новой вкладке)"; }

.founder-copy a:hover::after,
.founder-copy a:focus-visible::after { opacity: 1; }

.founder-copy h3 {
  margin: 36px 0 12px;
  color: #000;
  font-family: var(--heading-light);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.founder-copy ul {
  margin: 0 0 1.25em;
  padding: 0 0 0 1.1em;
}

.founder-copy li { margin: 0 0 8px; }

.founder-copy .tracks-timeline {
  margin-left: 6px;
  padding: 0;
  border-left: 2px solid #d8d8d8;
  list-style: none;
}

.founder-copy .tracks-timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 16px 22px;
}

.founder-copy .tracks-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.founder-copy .tracks-timeline strong { display: block; }

.events-section { padding-bottom: 90px; }
.events-section h1 { margin-bottom: 45px; }

.tracks-events {
  display: grid;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.tracks-event {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  border: 1px solid #d8d8d8;
  background: #fff;
}

.tracks-event.no-poster { grid-template-columns: minmax(0, 1fr); }

.tracks-event-poster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  background: #000;
}

.tracks-event-poster img { width: 100%; height: auto; }

.tracks-event-pending {
  padding: 10px 14px;
  border-top: 3px solid #d99a00;
  background: #fff8e5;
  color: #3d2e00;
  font-size: 14px;
  line-height: 1.4;
}

.tracks-event-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: normal;
}

.section .tracks-event-title {
  margin: 0 0 22px;
  color: #000;
  font-size: 30px;
  text-align: left;
}

.tracks-event-facts { margin: 0 0 22px; }

.tracks-event-facts > div {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #ececec;
}

.tracks-event-facts > div:first-child { padding-top: 0; border-top: 0; }
.tracks-event-facts dt { flex: 0 0 120px; }
.tracks-event-facts dd { margin: 0; color: #000; }
.tracks-event-early {
  display: block;
  margin-top: 2px;
  color: #00733d;
  font-size: 15px;
  font-weight: 600;
}

.tracks-event-description p { margin: 0 0 1em; }

.tracks-event-notice,
.events-content .woocommerce-error {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 4px solid #d99a00;
  background: #fff8e5;
  color: #3d2e00;
  font-size: 15px;
  line-height: 1.45;
  list-style: none;
}

.tracks-event-actions { margin: 6px 0 0; }
.tracks-event-status { color: #000; }

.tracks-events-empty {
  color: var(--muted);
  text-align: center;
}

/* Tablet: production switches to the drawer menu below 1025px. */
@media (max-width: 1024px) {
  :root { --nav-offset: 79px; }

  body.home .header-inner,
  body.home .site-header.is-scrolled .header-inner {
    min-height: 79px;
    padding: 25px 40px 0;
  }

  body.home .site-logo img,
  body.home .site-header.is-scrolled .site-logo img { width: 78px; }

  body.home .lang-toggle,
  body.home .site-header.is-scrolled .lang-toggle {
    top: 23px;
    right: 82px;
  }

  body.home .nav-toggle {
    position: absolute;
    top: 13px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
  }

  body.home .nav-toggle-box,
  body.home .nav-toggle-box::before,
  body.home .nav-toggle-box::after {
    width: 30px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  body.home .nav-toggle-box::before { top: -8px; }
  body.home .nav-toggle-box::after { top: 8px; }

  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box {
    background: transparent;
    box-shadow: none;
  }

  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::before,
  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
    top: 0;
    width: 24px;
    left: 3px;
    background: #000;
    box-shadow: none;
  }

  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::before { transform: rotate(45deg); }
  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::after { transform: rotate(-45deg); }

  body.home .site-nav,
  body.home .site-header.is-scrolled .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(316px, 85vw);
    margin: 0;
    padding: 116px 20px 24px;
    overflow-y: auto;
    background: #565656;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  body.home .site-nav.is-open,
  body.home .site-header.is-scrolled .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }

  body.home .site-nav .menu { flex-direction: column; }

  body.home .site-header .site-nav a,
  body.home .site-header.is-scrolled .site-nav a {
    padding: 8px 0;
    color: #b8b8b8;
    font-family: var(--text);
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.5px;
  }

  body.home .site-header .site-nav a:hover,
  body.home .site-header .site-nav a:focus-visible,
  body.home .site-header .site-nav a.is-active,
  body.home .site-header .site-nav .current-menu-item > a,
  body.home .site-header.is-scrolled .site-nav a:hover,
  body.home .site-header.is-scrolled .site-nav a:focus-visible,
  body.home .site-header.is-scrolled .site-nav a.is-active,
  body.home .site-header.is-scrolled .site-nav .current-menu-item > a { color: #fff; }

  body.home .nav-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #b8b8b8;
    font-family: var(--text);
    font-size: 16px;
    line-height: 30px;
  }

  body.home .site-header .site-nav .nav-languages a { display: inline; padding: 0; }
  body.home .nav-languages .lang-current { color: #fff; font-weight: 600; }

  body.home .site-header.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.23);
  }

  .hero {
    min-height: 1154px;
    background-position: 0 0;
    background-attachment: scroll;
  }

  .hero-inner { padding: 250px 40px 80px; }
  .hero-tagline { max-width: 688px; }
  .featured-event-panel { padding: 36px 32px; }
  .featured-event-tagline { font-size: 44px; }

  .section-narrow { max-width: 412px; }
  .home-content .tm-intro { --content-width: min(100%, 412px); }
  .services-section { padding-right: 55px; padding-left: 55px; }

  .feature-list { max-width: 668px; }
  .home-content .tm-features { --content-width: min(100%, 668px); }
  .feature h3,
  .feature p { padding: 0 10px; }

  .contact-section { padding-right: 57px; padding-left: 57px; }

  .founder-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 687px;
  }

  .founder-portrait { position: static; }

  .tracks-event { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .tracks-event-body { padding: 24px; }
}

@media (max-width: 800px) {
  body:not(.home) .header-inner { align-items: center; padding: 12px 16px; min-height: 72px; }
  body:not(.home) .header-tools { top: 18px; right: 12px; }
  body:not(.home) .nav-toggle-box,
  body:not(.home) .nav-toggle-box::before,
  body:not(.home) .nav-toggle-box::after { background: #111; }

  body:not(.home) .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body:not(.home) .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.96);
    padding: 8px 0 16px;
  }

  body:not(.home) .site-nav.is-open { display: block; }

  body:not(.home) .site-nav .menu {
    flex-direction: column;
    gap: 0;
  }

  body:not(.home) .site-nav a,
  body:not(.home) .site-header.is-scrolled .site-nav a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 16px;
  }

  body:not(.home) .nav-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 14px 20px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #bbb;
    font-size: 16px;
  }

  body:not(.home) .site-header .site-nav .nav-languages a { display: inline; padding: 0; color: inherit; }
  body:not(.home) .nav-languages .lang-current { color: #fff; font-weight: 700; }

  .article-page { padding: 36px 16px 48px; }
  .article h1 { font-size: 30px; }
}

/* Mobile: production uses a white header and stacks every row below 768px. */
@media (max-width: 767px) {
  :root { --nav-offset: 75px; }

  body.home .site-header,
  body.home .site-header.is-scrolled {
    position: sticky;
    background: #fff;
    box-shadow: none;
  }

  body.home .header-inner,
  body.home .site-header.is-scrolled .header-inner {
    min-height: 75px;
    padding: 15px 10px 0;
  }

  body.home .site-logo img,
  body.home .site-header.is-scrolled .site-logo img { width: 120px; }

  .header-tools .lang-toggle { display: none; }

  body.home .nav-toggle {
    top: 18px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  body.home .nav-toggle-box,
  body.home .nav-toggle-box::before,
  body.home .nav-toggle-box::after {
    width: 22px;
    background: #b8b8b8;
    box-shadow: none;
  }

  body.home .nav-toggle-box::before { top: -6px; }
  body.home .nav-toggle-box::after { top: 6px; }

  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::before,
  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-box::after { left: -1px; }

  .hero {
    min-height: 1175px;
    background-position: 50% 50%;
  }

  .hero-inner { padding: 180px 15px 48px; }
  .hero.has-featured .hero-inner { padding: 40px 15px 56px; }
  .hero-tagline { max-width: 280px; font-size: 36px; }

  .featured-event { grid-template-columns: minmax(0, 1fr); }
  .featured-event-panel { padding: 28px 20px 32px; }
  .featured-event-tagline { margin-bottom: 16px; font-size: 36px; }
  .featured-event-title { font-size: 22px; }
  .featured-event-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .ticket-button-large { display: block; padding: 16px 20px; }

  .section h1,
  .section h2,
  .tm-section h2 { font-size: 30px; }

  .about-section { padding: 87px 15px 65px; }
  .about-section h1,
  .about-section h2,
  .tm-intro h2 { margin-bottom: 12px; }

  .home-content .tm-intro {
    --padding-top: 87px;
    --padding-right: 15px;
    --padding-bottom: 65px;
    --padding-left: 15px;
    --content-width: 100%;
  }
  .content-page > .section:first-child { padding-top: 48px; }

  .founder-section { padding: 20px 15px 30px; }
  .founder-copy { font-size: 15px; }
  .founder-copy h3 { font-size: 22px; }

  .events-section { padding: 48px 15px 60px; }
  .events-section h1 { margin-bottom: 24px; }
  .tracks-event { grid-template-columns: minmax(0, 1fr); }
  .tracks-event-body { padding: 20px; font-size: 15px; }
  .section .tracks-event-title { font-size: 24px; }
  .tracks-event-facts dt { flex-basis: 96px; }
  .section-narrow { max-width: none; }
  .about-copy p { font-size: 15px; }

  .services-section { padding: 0 18px; }
  .services-section h2 { margin-bottom: 15px; }
  .services-section .section-wide { grid-template-columns: 1fr; }
  .media-block { padding: 3px; }
  .media-block img { height: 187px; }
  .media-copy { padding: 15px; font-size: 15px; }
  .media-copy h3 { font-size: 22px; }

  .features-section { padding: 73px 35px 60px; }
  .feature-list { display: block; max-width: 320px; }

  .home-content .tm-features {
    --padding-top: 73px;
    --padding-right: 35px;
    --padding-bottom: 60px;
    --padding-left: 35px;
    --content-width: min(100%, 320px);
  }
  .feature h3,
  .feature p { padding: 0; }
  .feature + .feature { margin-top: 35px; }
  .feature h3 { font-size: 22px; }
  .feature p { font-size: 15px; }

  .social-section { padding: 24px 15px 19px; }
  .social-row { flex-wrap: wrap; gap: 12px 4px; }
  .social-row h2 { flex-basis: 100%; margin: 0; text-align: center; }

  .contact-section { padding: 39px 35px 110px; }
  .contact-section h2 { margin-bottom: 17px; }
  .contact-intro { margin: 0 -20px 32px; font-size: 15px; }
  .contact-form label { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit button { width: 100%; height: 39px; margin: 0; }

  .site-footer { padding: 48px 0; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 15px;
    text-align: center;
  }

  .footer-logo img { width: 99px; }

  .footer-contact { font-size: 15px; }

  .footer-contact li { display: block; }
  .footer-contact li + li { margin-top: 16px; }

  .footer-icon {
    display: block;
    width: 45px;
    height: 45px;
    margin: 0 auto 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .featured-event-poster img,
  .media-block img,
  body.home .site-nav,
  body.home .site-header .site-nav a { transition: none; }

  .featured-event-poster:hover img,
  .featured-event-poster:focus-visible img,
  .media-block:hover img,
  .media-block:focus-within img { transform: none; }

  body.home .site-nav.is-open { transition: none; }
}
