:root {
  --navy: #0b3155;
  --navy-dark: #072541;
  --blue: #1f68a5;
  --gold: #e3ad2e;
  --red: #d71920;

  --ink: #17283a;
  --muted: #667789;
  --line: #dce4eb;
  --surface: #f5f8fa;
  --white: #ffffff;

  --content-width: 1180px;
  --shadow: 0 10px 30px rgba(10, 43, 73, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}


/* =========================
   HEADER
   ========================= */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-brand__eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
}

.site-brand__title {
  margin-top: 2px;
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;

  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;

  background: var(--gold);
  transition: right 0.18s ease;
}

.site-nav a:hover::after {
  right: 0;
}


/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      120deg,
      var(--navy-dark) 0%,
      var(--navy) 62%,
      #124b7d 100%
    );
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;

  width: 620px;
  height: 620px;

  border: 90px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;

  max-width: var(--content-width);
  margin: 0 auto;
  padding: 82px 24px 88px;
}

.hero__eyebrow {
  margin: 0 0 15px;

  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 820px;
  margin: 0;

  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero__text {
  max-width: 760px;
  margin: 22px 0 0;

  color: #e8f0f6;
  font-size: 18px;
  line-height: 1.65;
}


/* =========================
   HOME CONTENT
   ========================= */

.home-section {
  background: var(--surface);
}

.home-section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 70px 24px 82px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading__eyebrow {
  margin: 0 0 8px;

  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  margin: 0;

  color: var(--navy);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}


/* =========================
   FEATURE CARDS
   ========================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;

  min-height: 280px;
  padding: 28px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);

  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;

  width: 54px;
  height: 4px;

  background: var(--gold);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c7d5e1;
  box-shadow: 0 16px 34px rgba(10, 43, 73, 0.12);
}

.feature-card__label {
  display: block;
  margin-bottom: 16px;

  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0;

  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 14px 0 24px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feature-card__link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: var(--navy-dark);
  color: #dbe7f0;
}

.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  font-size: 13px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    padding: 16px 18px;
  }

  .site-brand__eyebrow {
    font-size: 9px;
  }

  .site-brand__title {
    font-size: 22px;
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 13px;
    white-space: nowrap;
  }

  .hero__inner {
    padding: 58px 18px 62px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero__text {
    font-size: 16px;
  }

  .home-section__inner {
    padding: 50px 18px 60px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .feature-card {
    padding: 25px;
  }

  .feature-card::before {
    left: 25px;
  }

  .site-footer__inner {
    padding: 22px 18px;
    flex-direction: column;
  }
}


/* =========================
   INTERIOR PAGE HERO
   ========================= */

.page-hero {
  background:
    linear-gradient(
      120deg,
      var(--navy-dark) 0%,
      var(--navy) 70%,
      #124b7d 100%
    );
  color: var(--white);
}

.page-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 58px 24px 62px;
}

.page-hero__eyebrow {
  margin: 0 0 12px;

  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.page-hero h1 {
  margin: 0;

  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;

  color: #e7eff6;
  font-size: 17px;
  line-height: 1.65;
}


/* =========================
   INTERIOR PAGE CONTENT
   ========================= */

.page-content {
  min-height: 420px;
  background: var(--surface);
}

.page-content__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.coming-soon {
  max-width: 760px;
  padding: 32px;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.coming-soon__label {
  display: inline-block;
  margin-bottom: 12px;

  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.coming-soon h2 {
  margin: 0;

  color: var(--navy);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.coming-soon p {
  margin: 14px 0 0;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}


/* =========================
   ACTIVE NAVIGATION
   ========================= */

.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"]::after {
  right: 0;
  background: var(--gold);
}


/* =========================
   INTERIOR RESPONSIVE
   ========================= */

@media (max-width: 600px) {
  .page-hero__inner {
    padding: 44px 18px 48px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p:last-child {
    font-size: 16px;
  }

  .page-content__inner {
    padding: 40px 18px 52px;
  }

  .coming-soon {
    padding: 24px;
  }

  .coming-soon h2 {
    font-size: 26px;
  }
}


/* =========================================================
   CHAMPIONSHIP HISTORY BROWSER
   ========================================================= */

.championship-browser {
  width: 100%;
}


/* =========================
   FILTER PANEL
   ========================= */

.championship-filters {
  margin-bottom: 18px;
  padding: 24px;

  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.championship-filter-grid {
  display: grid;

  grid-template-columns:
    minmax(240px, 2fr)
    minmax(150px, 1fr)
    minmax(150px, 1fr)
    minmax(150px, 1fr);

  gap: 16px;
  align-items: end;
}

.championship-field {
  min-width: 0;
}

.championship-field label {
  display: block;
  margin: 0 0 7px;

  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.championship-field input,
.championship-field select {
  width: 100%;
  height: 45px;

  padding: 0 13px;

  background: var(--white);
  border: 1px solid #cbd7e2;
  border-radius: 7px;

  color: var(--ink);
  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.championship-field input:focus,
.championship-field select:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(31, 104, 165, 0.12);
}

.championship-search-field {
  grid-column: span 1;
}

.championship-search-field input {
  padding-left: 40px;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23546b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: 13px center;
}


/* =========================
   RESET
   ========================= */

.championship-reset-wrap {
  display: flex;
  align-items: end;
}

.championship-reset {
  width: 100%;
  height: 45px;

  padding: 0 18px;

  border: 0;
  border-radius: 7px;

  background: var(--navy);
  color: var(--white);

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.championship-reset:hover {
  background: var(--navy-dark);
}

.championship-reset:active {
  transform: translateY(1px);
}


/* =========================
   RESULT SUMMARY
   ========================= */

.championship-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-top: 18px;
  padding: 15px 18px;

  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;

  color: var(--muted);
  font-size: 13px;
}

.championship-result-bar strong {
  color: var(--navy);
}

.championship-viewing {
  text-align: right;
}


/* =========================
   TABLE
   ========================= */

.championship-table-wrap {
  width: 100%;
  overflow-x: auto;

  background: var(--white);

  border: 1px solid var(--line);
  border-top: 0;
}

.championship-table {
  width: 100%;
  min-width: 980px;

  border-collapse: collapse;
}

.championship-table thead th {
  padding: 14px 15px;

  background: var(--navy);
  color: var(--white);

  border-right:
    1px solid rgba(255, 255, 255, 0.08);

  text-align: left;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;

  letter-spacing: 0.025em;
  white-space: nowrap;
}

.championship-table thead th:last-child {
  border-right: 0;
}

.championship-table tbody td {
  padding: 13px 15px;

  border-bottom: 1px solid var(--line);

  color: #314356;

  font-size: 13px;
  line-height: 1.4;

  vertical-align: middle;
}

.championship-table tbody tr:last-child td {
  border-bottom: 0;
}

.championship-table tbody tr:nth-child(even) {
  background: #fafcfd;
}

.championship-table tbody tr:hover {
  background: #f2f7fb;
}


/* =========================
   TABLE EMPHASIS
   ========================= */

.championship-season {
  color: var(--navy) !important;
  font-weight: 800;
  white-space: nowrap;
}

.championship-winner {
  color: var(--navy-dark) !important;
  font-weight: 800;
}


/* =========================
   BADGES
   ========================= */

.championship-badge,
.championship-tier,
.championship-status {
  display: inline-flex;
  align-items: center;

  min-height: 26px;

  padding: 4px 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;
}

.championship-badge--state {
  background: #e8f1f8;
  border: 1px solid #c7dbe9;

  color: #15527f;
}

.championship-badge--national {
  background: #fff3cf;
  border: 1px solid #ead18a;

  color: #725007;
}

.championship-tier {
  background: #eef2f5;
  border: 1px solid #d3dde5;

  color: var(--navy);
}

.championship-status {
  background: #f0f2f4;
  border: 1px solid #d9dee3;

  color: #536270;
}

.championship-muted {
  color: #9aa6b1;
}


/* =========================
   EMPTY RESULTS
   ========================= */

.championship-empty {
  padding: 50px 24px;

  background: var(--white);
  border: 1px solid var(--line);

  text-align: center;
}

.championship-empty h3 {
  margin: 0;

  color: var(--navy);
  font-size: 21px;
}

.championship-empty p {
  margin: 8px 0 0;

  color: var(--muted);
}


/* =========================
   PAGINATION
   ========================= */

.championship-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 17px 18px;

  background: var(--white);

  border: 1px solid var(--line);
  border-top: 0;
}

.championship-page-info {
  color: var(--muted);
  font-size: 13px;
}

.championship-page-buttons {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--muted);
  font-size: 12px;
}

.championship-page-buttons button {
  height: 36px;

  padding: 0 15px;

  background: var(--white);
  border: 1px solid #c7d3de;
  border-radius: 6px;

  color: var(--navy);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.championship-page-buttons button:hover:not(:disabled) {
  background: #f3f7fa;
  border-color: var(--blue);
}

.championship-page-buttons button:disabled {
  opacity: 0.4;
  cursor: default;
}


/* =========================
   LARGE / MEDIUM SCREENS
   ========================= */

@media (max-width: 1100px) {

  .championship-filter-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .championship-search-field {
    grid-column: span 2;
  }

}


/* =========================
   TABLET
   ========================= */

@media (max-width: 760px) {

  .championship-filters {
    padding: 18px;
  }

  .championship-filter-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 14px;
  }

  .championship-search-field {
    grid-column: 1 / -1;
  }

  .championship-result-bar {
    flex-direction: column;
    align-items: flex-start;

    padding: 14px 16px;
  }

  .championship-viewing {
    text-align: left;
  }

  .championship-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 520px) {

  .championship-filter-grid {
    grid-template-columns: 1fr;
  }

  .championship-search-field {
    grid-column: auto;
  }

  .championship-reset-wrap {
    width: 100%;
  }

  .championship-pagination {
    padding: 15px;
  }

  .championship-page-buttons {
    width: 100%;
    justify-content: space-between;
  }

}


/* =========================================================
   EMBEDDED / IFRAME MODE
   ========================================================= */

/*
 * Embedded mode is applied automatically when the site is
 * loaded inside an iframe, or manually with ?embed=1.
 *
 * The goal is to make the History application feel native
 * inside nysaha.com rather than like a website inside a website.
 */

html.embedded,
html.embedded body {
  margin: 0;
  padding: 0;
  background: transparent;
}


/* Remove the standalone History site chrome. */

html.embedded .site-header,
html.embedded .site-footer,
html.embedded .page-hero {
  display: none;
}


/* Remove standalone-page spacing/background. */

html.embedded .page-content {
  min-height: 0;
  background: transparent;
}

html.embedded .page-content__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}


/* Championships should begin immediately with the filters. */

html.embedded .championship-browser {
  width: 100%;
  margin: 0;
  padding: 0;
}

html.embedded .championship-filters {
  margin: 0 0 16px;
}


/*
 * Keep the results visually contained without introducing
 * extra outer spacing that belongs to the parent NYSAHA page.
 */

html.embedded .championship-result-bar {
  margin-top: 0;
}


/* Slightly tighten embedded mode on smaller screens. */

@media (max-width: 760px) {

  html.embedded .championship-filters {
    padding: 16px;
  }

}

