/* ==========================================================================
   TCS (Thoroughbred Championship Series) brand theme
   Loaded after app.css / foundation to override the original template styling.
   Brand colors sampled from the official TCS logo (CDP-29772).
   ========================================================================== */

:root {
  --tcs-navy: #13283b;
  --tcs-navy-light: #1d3a54;
  --tcs-cream: #f4efe5;
  --tcs-terracotta: #a96842;
  --tcs-terracotta-light: #c08864;

  /* Brand calls for Aviano Flare (Adobe Fonts — needs a kit ID we don't
     have yet). Cinzel is a free, visually close stand-in: an engraved,
     flared-serif display face with a similar heritage/luxury feel.
     Swap this variable to the Adobe Fonts family name once we have the
     embed kit and nothing else needs to change. */
  --tcs-font-display: 'Cinzel', 'Raleway', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tcs-font-display);
  letter-spacing: 0.02em;
}

aside section header {
  font-family: var(--tcs-font-display);
  letter-spacing: 0.03em;
}

/* ---- Top bar ---------------------------------------------------------- */

.top-bar,
.top-bar ul {
  background: var(--tcs-navy) !important;
  background-image: none !important;
}

.top-bar {
  padding: 0.4rem 1rem;
  margin-bottom: 0 !important;
  align-items: center !important;
}

.top-bar-left,
.top-bar-right {
  background: transparent !important;
  max-width: none !important;
  align-items: center !important;
}

.top-bar .logo {
  margin-bottom: 0;
  float: none;
  display: flex;
  align-items: center;
}

.top-bar .logo img {
  width: auto !important;
  height: 52px;
  padding: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.top-bar-right .menu {
  display: flex;
  align-items: center;
}

.top-bar-right .menu li a {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Hide the old text title/subtitle block — the new logo lockup already
   carries the series name */
.top-bar .title-section {
  display: none !important;
}

.top-bar-right .menu {
  background: transparent !important;
}

.top-bar-right .menu li {
  background: transparent !important;
}

.top-bar-right .menu li a {
  color: var(--tcs-cream) !important;
  font-family: var(--tcs-font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: color 0.15s ease;
}

.top-bar-right .menu li a:hover {
  color: var(--tcs-terracotta-light) !important;
}

.top-bar-right .menu li.active {
  background: transparent !important;
}

.top-bar-right .menu li.active a {
  color: var(--tcs-terracotta-light) !important;
  border-bottom: 2px solid var(--tcs-terracotta-light);
}

/* ---- Track imagery banner --------------------------------------------- */

.track-banner {
  display: flex;
  width: 100%;
  margin: 0 0 2.5rem;
}

.track-banner__item {
  position: relative;
  flex: 1 1 33.333%;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.track-banner__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.track-banner__label {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(19, 40, 59, 0.85), rgba(19, 40, 59, 0));
  color: var(--tcs-cream);
  font-family: var(--tcs-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .track-banner {
    flex-wrap: wrap;
  }

  .track-banner__item {
    flex: 1 1 100%;
    aspect-ratio: 16 / 9;
  }

  .top-bar-right {
    width: 100%;
  }

  .top-bar-right .menu {
    justify-content: space-between;
    width: 100%;
  }
}

/* ---- Placeholder notice (pending-content pages) ------------------------ */

.placeholder-notice {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--tcs-cream);
  border-left: 4px solid var(--tcs-terracotta);
  border-radius: 2px;
}

.placeholder-notice p {
  margin: 0;
}

/* Smaller nav labels on phones so they don't wrap/crowd */
@media (max-width: 640px) {
  .top-bar-right .menu li a {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ---- Nomination fee schedule (homepage sidebar) ------------------------ */

.fee-schedule__intro {
  margin: 0.75rem 0 0.4rem;
  font-weight: 700;
}

.fee-schedule {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.fee-schedule li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(19, 40, 59, 0.12);
  line-height: 1.35;
}

.fee-schedule li:last-child {
  border-bottom: 0;
}

.fee-schedule__amount {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--tcs-terracotta);
}

/* Rules documents (PDF viewer + download link) */
.tcs-doc-actions { margin: 16px 0 20px; }
.tcs-doc-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--tcs-terracotta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.tcs-doc-link:hover, .tcs-doc-link:focus-visible { background: var(--tcs-navy); color: #fff; }
.tcs-pdf-frame {
  margin: 0 0 32px;
  height: 85vh;
  min-height: 600px;
  border: 1px solid rgba(19, 40, 59, 0.15);
  background: #f8f8f8;
}
.tcs-pdf-frame iframe { width: 100%; height: 100%; border: 0; }
/* Footer: once the footer stacks (under 1024px), split the link list into two columns */
@media screen and (max-width: 63.9375em) {
  .footer-content .footer-nav-menu {
    column-count: 2;
    column-gap: 3rem;
    max-width: 30rem;
  }
  .footer-content .footer-nav-menu li {
    break-inside: avoid;
  }
}
