/*
Theme Name:   Transmission 11004
Theme URI:    https://transmission11004.org
Author:       Frozen Fish Dev
Description:  Dark carbon, chrome and electric-blue theme for FRC Team 11004. Built around the team's Events, Team and Sponsors content types.
Version:      1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  transmission11004
*/

/* ---------------------------------------------------------------------------
   Tokens
   The palette is pulled straight off the logo: carbon background, brushed
   chrome for type, electric blue for anything energised.
   --------------------------------------------------------------------------- */

:root {
  --carbon:        #0b0e13;
  --carbon-2:      #11151c;
  --surface:       #161b24;
  --surface-2:     #1d2430;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --chrome:        #e9edf3;
  --chrome-dim:    #98a3b3;
  --chrome-faint:  #6b7585;

  --blue:          #1e9bff;
  --blue-bright:   #5cc8ff;
  --blue-deep:     #0a5fcb;
  --blue-glow:     rgba(30, 155, 255, 0.45);

  --amber:         #ffb43d;
  --green:         #35d07f;

  --radius:        10px;
  --radius-lg:     16px;

  --wrap:          78rem;
  --wrap-narrow:   46rem;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", Impact, var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--chrome-dim);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* A faint blue wash from the top-right, echoing the logo's circuit glow. */
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(30, 155, 255, 0.13), transparent 60%),
    radial-gradient(45rem 35rem at 5% 5%, rgba(10, 95, 203, 0.09), transparent 55%);
  background-attachment: fixed;
}

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

a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--chrome);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.tx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.tx-skip:focus { left: 0.5rem; top: 0.5rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------------- */

.tx-wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.tx-wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.tx-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.tx-section + .tx-section { padding-top: 0; }

.tx-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tx-section__head h2 { margin: 0; }

.tx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-bright);
  margin: 0 0 0.9rem;
}

.tx-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.tx-lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--chrome-dim);
  max-width: 58ch;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.tx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tx-btn--primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 45%, var(--blue-deep));
  color: #04101e;
  box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.4), 0 6px 22px var(--blue-glow);
}
.tx-btn--primary:hover {
  color: #04101e;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.6), 0 10px 30px var(--blue-glow);
}

.tx-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--chrome);
}
.tx-btn--ghost:hover {
  color: #fff;
  border-color: var(--blue);
  background: rgba(30, 155, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

.tx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.tx-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.6rem;
}

.tx-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}

.tx-brand .tx-logo { width: auto; height: 3rem; }

.tx-logo--text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-family: var(--font-display);
  text-transform: uppercase;
}
/* Sized in em so the whole wordmark scales from one font-size on the parent. */
.tx-logo--text em {
  font-style: italic;
  font-weight: 800;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff, var(--chrome-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tx-logo--text b {
  font-size: 0.95em;
  letter-spacing: 0.3em;
  color: var(--blue-bright);
}

.tx-brand .tx-logo--text { font-size: 1rem; }

.tx-brand__text { display: none; }
@media (min-width: 40rem) { .tx-brand__text { display: block; } }

.tx-brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--chrome);
}
.tx-brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.tx-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-nav__list a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--chrome-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.tx-nav__list a:hover,
.tx-nav__list .current-menu-item > a,
.tx-nav__list .current_page_item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.tx-header__cta { display: none; }
@media (min-width: 60rem) { .tx-header__cta { display: inline-flex; } }

/* Mobile nav: a checkbox-free <details> disclosure, no JS required to open. */
.tx-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.75rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.tx-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--chrome);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 52.99rem) {
  .tx-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--carbon-2);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .tx-nav[data-open="true"] { display: block; }
  .tx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .tx-nav__list li { border-bottom: 1px solid var(--line); }
  .tx-nav__list li:last-child { border-bottom: 0; }
  .tx-nav__list a { padding: 0.85rem 0.5rem; border-radius: 0; font-size: 1rem; }
}

@media (min-width: 53rem) {
  .tx-nav-toggle { display: none; }
  .tx-nav { display: block !important; }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.tx-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}

/* Circuit-trace grid, faded out toward the bottom. */
.tx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.tx-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .tx-hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

.tx-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cfd8e3 42%, #8d97a6 68%, #e6ecf4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(30, 155, 255, 0.25);
}

.tx-hero__title span { display: block; color: transparent; }

.tx-hero__number {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 50%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
}

.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.tx-hero__art {
  position: relative;
  display: grid;
  place-items: center;
}

.tx-hero__art img {
  width: min(100%, 30rem);
  filter: drop-shadow(0 0 60px rgba(30, 155, 255, 0.35));
}

.tx-hero__art .tx-logo--text {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  filter: drop-shadow(0 0 40px rgba(30, 155, 255, 0.3));
}

/* Stat strip under the hero copy. */
.tx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tx-stat { background: var(--carbon-2); padding: 1rem 1.1rem; }

.tx-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--chrome);
  line-height: 1.1;
}

.tx-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-faint);
  margin-top: 0.3rem;
}

/* ---------------------------------------------------------------------------
   Page header (interior pages)
   --------------------------------------------------------------------------- */

.tx-page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 155, 255, 0.06), transparent);
}

.tx-page-head h1 { margin: 0; }
.tx-page-head .tx-lede { margin-top: 0.9rem; }

/* ---------------------------------------------------------------------------
   Cards — shared shell for events, members, sponsors and posts
   --------------------------------------------------------------------------- */

.tx-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.tx-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }

.tx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--carbon-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 155, 255, 0.5);
  box-shadow: var(--shadow), 0 0 0 1px rgba(30, 155, 255, 0.12);
}

.tx-card__media {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.tx-card__media--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 155, 255, 0.1), transparent 70%),
    var(--surface-2);
}

.tx-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.tx-card__title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.tx-card__title a { color: var(--chrome); text-decoration: none; }
.tx-card__title a:hover { color: var(--blue-bright); }

/* The whole card is clickable, but the title stays the real link for
   screen readers and for middle-click / open-in-new-tab. */
.tx-card__title a::after { content: ""; position: absolute; inset: 0; }

.tx-card__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-faint);
}

.tx-card__excerpt { font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------------- */

.tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  white-space: nowrap;
}

.tx-badge--competition { color: #9fd7ff; border-color: rgba(30, 155, 255, 0.45); background: rgba(30, 155, 255, 0.12); }
.tx-badge--outreach    { color: #ffd79a; border-color: rgba(255, 180, 61, 0.42); background: rgba(255, 180, 61, 0.11); }
.tx-badge--meeting     { color: #c3cbd8; }
.tx-badge--fundraiser  { color: #a6f0c9; border-color: rgba(53, 208, 127, 0.4); background: rgba(53, 208, 127, 0.1); }
.tx-badge--result      { color: #04101e; background: linear-gradient(135deg, var(--blue-bright), var(--blue)); border-color: transparent; }

.tx-badge--platinum  { color: #e8f0ff; border-color: rgba(220, 235, 255, 0.5); background: rgba(220, 235, 255, 0.12); }
.tx-badge--gold      { color: #ffd98a; border-color: rgba(255, 199, 92, 0.45); background: rgba(255, 199, 92, 0.12); }
.tx-badge--silver    { color: #d7dee8; }
.tx-badge--bronze    { color: #e0b48d; }
.tx-badge--supporter { color: var(--chrome-faint); }

.tx-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---------------------------------------------------------------------------
   Events
   --------------------------------------------------------------------------- */

.tx-event {
  position: relative;
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(180deg, var(--surface), var(--carbon-2));
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tx-event:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
  border-left-color: var(--blue-bright);
  box-shadow: var(--shadow);
}

@media (min-width: 48rem) {
  .tx-event {
    grid-template-columns: 11rem 1fr auto;
    align-items: center;
  }
}

.tx-event--past { border-left-color: var(--chrome-faint); opacity: 0.78; }
.tx-event--past:hover { opacity: 1; }

.tx-event--outreach   { border-left-color: var(--amber); }
.tx-event--fundraiser { border-left-color: var(--green); }

.tx-event__when {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.tx-event--past .tx-event__when { color: var(--chrome-faint); }

.tx-event__title { margin: 0; font-size: 1.15rem; }
.tx-event__title a { color: var(--chrome); text-decoration: none; }
.tx-event__title a::after { content: ""; position: absolute; inset: 0; }
.tx-event__title a:hover { color: var(--blue-bright); }

.tx-event__where { font-size: 0.88rem; color: var(--chrome-faint); margin: 0.15rem 0 0; }

.tx-event__aside { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tx-events-list { display: grid; gap: 0.8rem; }

.tx-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.tx-countdown b { font-size: 1.05rem; color: var(--chrome); }

/* ---------------------------------------------------------------------------
   Team roster
   --------------------------------------------------------------------------- */

.tx-roster { display: grid; gap: 3rem; }

/* Headshots read fine smaller than the general card grid, and a tighter
   track keeps a four-person subteam from looking like a gallery wall. */
.tx-roster .tx-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 1.5rem 1.25rem;
}

.tx-roster__group h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chrome-dim);
}

.tx-roster__group h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.tx-member { position: relative; text-align: center; }

.tx-member__photo {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tx-member:hover .tx-member__photo {
  transform: translateY(-3px);
  border-color: rgba(30, 155, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(30, 155, 255, 0.15);
}

.tx-member__photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 50% 35%, rgba(30, 155, 255, 0.12), transparent 70%), var(--surface-2);
}

.tx-member__name {
  margin: 0.9rem 0 0.15rem;
  font-size: 1rem;
  color: var(--chrome);
}

.tx-member__name a { color: inherit; text-decoration: none; }
.tx-member__name a::after { content: ""; position: absolute; inset: 0; }

.tx-member__role { font-size: 0.85rem; color: var(--chrome-faint); margin: 0; }

.tx-member__pronouns {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--chrome-faint);
  opacity: 0.8;
}

.tx-member__year {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
}

/* ---------------------------------------------------------------------------
   Sponsors
   --------------------------------------------------------------------------- */

.tx-sponsors { display: grid; gap: 2.5rem; }

.tx-sponsor-tier h3 {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chrome-faint);
  font-family: var(--font-mono);
}

.tx-sponsor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
}

.tx-sponsor-grid--platinum { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.tx-sponsor-grid--gold     { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.tx-sponsor {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tx-sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.tx-sponsor img { max-height: 100%; width: auto; object-fit: contain; }

.tx-sponsor--text {
  background: var(--surface);
  color: var(--chrome);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Single post / page content
   --------------------------------------------------------------------------- */

.tx-content { font-size: 1.05rem; line-height: 1.75; }

.tx-content > * + * { margin-top: 1.1em; }

.tx-content h2, .tx-content h3, .tx-content h4 { margin-top: 2em; }

.tx-content img, .tx-content figure { border-radius: var(--radius); }

.tx-content figcaption {
  font-size: 0.85rem;
  color: var(--chrome-faint);
  text-align: center;
  margin-top: 0.6rem;
}

.tx-content blockquote {
  margin: 1.8em 0;
  padding: 0.3em 0 0.3em 1.4em;
  border-left: 3px solid var(--blue);
  color: var(--chrome);
  font-size: 1.1rem;
}

.tx-content a { color: var(--blue-bright); }

.tx-content ul, .tx-content ol { padding-left: 1.3em; }
.tx-content li + li { margin-top: 0.4em; }

.tx-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.tx-content pre {
  background: var(--carbon-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  overflow-x: auto;
}

.tx-content table { width: 100%; border-collapse: collapse; }
.tx-content th, .tx-content td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; }

.tx-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-faint);
  margin-top: 1rem;
}

.tx-featured {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
}

/* Event fact table on the single-event page. */
.tx-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

@media (min-width: 40rem) {
  .tx-facts { grid-template-columns: repeat(2, 1fr); }
}

.tx-fact { background: var(--carbon-2); padding: 1rem 1.2rem; }

.tx-fact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-faint);
  margin-bottom: 0.3rem;
}

.tx-fact__value { color: var(--chrome); font-size: 0.98rem; }
.tx-fact__value a { color: var(--blue-bright); }

/* ---------------------------------------------------------------------------
   Join / CTA band
   --------------------------------------------------------------------------- */

.tx-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(40rem 20rem at 85% 0%, rgba(30, 155, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--carbon-2));
}

.tx-band h2 { margin-top: 0; }

.tx-band__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .tx-band__grid { grid-template-columns: 1.2fr 0.8fr; }
}

.tx-band__facts { display: grid; gap: 0.9rem; }

.tx-band__fact {
  display: grid;
  gap: 0.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--blue);
}

.tx-band__fact dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-faint);
}

.tx-band__fact dd { margin: 0; color: var(--chrome); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.tx-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--carbon-2);
  padding-block: 3rem 2rem;
}

.tx-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 48rem) {
  .tx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.tx-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chrome-faint);
  margin-bottom: 0.9rem;
}

.tx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tx-footer a { color: var(--chrome-dim); text-decoration: none; }
.tx-footer a:hover { color: var(--blue-bright); }

.tx-footer__brand .tx-logo { height: 4.5rem; width: auto; margin-bottom: 1rem; }

.tx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--chrome-faint);
}

.tx-social { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tx-social a {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tx-social a:hover { border-color: var(--blue); background: rgba(30, 155, 255, 0.1); }

/* ---------------------------------------------------------------------------
   Empty states — what students see before they have added anything
   --------------------------------------------------------------------------- */

.tx-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--chrome-faint);
}

.tx-empty strong { display: block; color: var(--chrome-dim); margin-bottom: 0.35rem; }

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */

.tx-pagination { margin-top: 2.5rem; }

.tx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }

.tx-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chrome-dim);
  text-decoration: none;
}

.tx-pagination .page-numbers:hover { border-color: var(--blue); color: #fff; }
.tx-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #04101e; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Search form
   --------------------------------------------------------------------------- */

.search-form { display: flex; gap: 0.5rem; max-width: 28rem; }

.search-form .search-field {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--chrome);
  font: inherit;
  font-size: 0.95rem;
}

.search-form .search-field::placeholder { color: var(--chrome-faint); }
.search-form .search-submit { flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Block editor alignment support
   --------------------------------------------------------------------------- */

.alignwide  { width: min(100%, var(--wrap)); margin-inline: auto; }
.alignfull  { width: 100%; }
.aligncenter { margin-inline: auto; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
