:root {
  --ig-midnight: #08131f;
  --ig-blue: #102536;
  --ig-gold: #d6a844;
  --ig-sand: #f5f0e6;
  --ig-white: #ffffff;
  --ig-slate: #a8b3bd;
  --ig-green: #2d7d64;
  --ig-warning: #b84a4a;
  --ig-border: rgba(8, 19, 31, 0.14);
  --ig-shadow: 0 24px 70px rgba(8, 19, 31, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ig-gold);
  outline-offset: 4px;
}

.wp-block-button__link,
.ig-operator-table__cta {
  min-height: 46px;
}

body.admin-bar .ig-sticky-header {
  top: 32px;
}

.ig-sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.ig-brand-row {
  min-height: 72px;
}

.ig-brand-row .wp-block-site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
}

.ig-brand-row .wp-block-site-title a {
  color: var(--ig-white);
  text-decoration: none;
}

.ig-brand-row .wp-block-site-title a::before {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.65rem;
  border: 2px solid var(--ig-gold);
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.ig-brand-row .wp-block-navigation a {
  color: var(--ig-white) !important;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.ig-brand-row .wp-block-navigation a:hover {
  color: var(--ig-gold) !important;
}

.ig-brand-row .wp-block-navigation .current-menu-item > a,
.ig-brand-row .wp-block-navigation .current-menu-ancestor > a {
  color: var(--ig-gold) !important;
}

.ig-brand-row .wp-block-navigation__responsive-container-open,
.ig-brand-row .wp-block-navigation__responsive-container-close {
  color: var(--ig-white);
}

.ig-brand-row .wp-block-navigation__responsive-container-open svg,
.ig-brand-row .wp-block-navigation__responsive-container-close svg {
  fill: currentColor;
}

body .wp-block-navigation__responsive-container.is-menu-open {
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  padding: 1.5rem;
  background: var(--ig-midnight) !important;
  color: var(--ig-white) !important;
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-close,
body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-dialog {
  width: 100%;
  height: 100%;
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-close {
  top: 0;
  right: 0;
  color: var(--ig-white);
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 4.5rem;
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
  align-items: flex-start;
  width: 100%;
  gap: 0;
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 1rem 0;
  color: var(--ig-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 8vw, 2.2rem);
  line-height: 1.15;
}

.ig-age-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-age-bar p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}

.ig-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  isolation: isolate;
}

.ig-hero::before,
.ig-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(214, 168, 68, 0.26);
  border-radius: 50%;
  content: "";
}

.ig-hero::before {
  top: -280px;
  right: -220px;
  width: 780px;
  height: 780px;
  box-shadow:
    0 0 0 90px rgba(214, 168, 68, 0.025),
    0 0 0 180px rgba(214, 168, 68, 0.018);
}

.ig-hero::after {
  right: 12%;
  bottom: -210px;
  width: 420px;
  height: 420px;
}

.ig-eyebrow {
  color: var(--ig-gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ig-hero h1 {
  max-width: 980px;
  margin-top: 0.7rem;
  color: var(--ig-white);
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: -0.055em;
}

.ig-hero .ig-intro {
  max-width: 660px;
  color: #d6dde3;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.ig-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ig-white);
}

.ig-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--ig-gold);
  color: var(--ig-gold);
}

.ig-proof-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ig-proof-grid h3 {
  margin-bottom: 0.3rem;
  color: var(--ig-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.ig-proof-grid p {
  margin: 0;
  color: var(--ig-slate);
  font-size: 0.88rem;
}

.ig-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.ig-hero > .alignwide,
.ig-section > .alignwide,
.ig-article-shell > * {
  box-sizing: border-box;
}

.ig-section-heading {
  max-width: 720px;
}

.ig-section-heading h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.ig-card {
  height: 100%;
  border: 1px solid var(--ig-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 40px rgba(8, 19, 31, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ig-card:hover {
  box-shadow: var(--ig-shadow);
  transform: translateY(-4px);
}

.ig-card h3 {
  margin-top: 0.4rem;
}

.ig-card .ig-number {
  color: var(--ig-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.ig-sport-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ig-blue);
}

.ig-sport-card::after {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(214, 168, 68, 0.35);
  border-radius: 50%;
  content: "";
}

.ig-sport-card h3,
.ig-sport-card p,
.ig-sport-card a {
  position: relative;
  z-index: 1;
}

.ig-sport-card h3 {
  color: var(--ig-white);
  font-size: 2rem;
}

.ig-sport-card p {
  color: #c7d0d7;
}

.ig-sport-card a {
  color: var(--ig-gold);
  font-weight: 700;
}

.ig-methodology {
  border-radius: 28px;
  box-shadow: var(--ig-shadow);
}

.ig-disclosure {
  border-left: 4px solid var(--ig-gold);
}

.ig-responsible {
  border: 1px solid rgba(45, 125, 100, 0.24);
  border-radius: 18px;
  background: #e9f3ef;
}

.ig-responsible strong {
  color: #1d5b48;
}

.ig-operator-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ig-border);
  border-radius: 18px;
  background: var(--ig-white);
  box-shadow: 0 18px 50px rgba(8, 19, 31, 0.08);
}

.ig-operator-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ig-operator-table th,
.ig-operator-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ig-border);
  text-align: left;
  vertical-align: middle;
}

.ig-operator-table th {
  background: #edf0f1;
  color: #4a5660;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.ig-operator-table__name {
  font-weight: 750;
}

.ig-operator-table__status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #edf0f1;
  color: #4a5660;
  font-size: 0.76rem;
  font-weight: 700;
}

.ig-operator-table__cta,
.ig-button-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.ig-operator-table__cta {
  background: var(--ig-gold);
  color: var(--ig-midnight);
}

.ig-button-disabled {
  background: #edf0f1;
  color: #6a747d;
  cursor: not-allowed;
}

.ig-article-shell {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.ig-breadcrumbs {
  margin-bottom: 1.25rem;
  color: #5f6972;
  font-size: 0.82rem;
}

.ig-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ig-breadcrumbs li:not(:last-child)::after {
  margin-left: 0.35rem;
  color: #8a949d;
  content: "/";
}

.ig-breadcrumbs a {
  color: inherit;
}

.ig-article-shell .wp-block-post-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}

.ig-article-meta {
  color: #5f6972;
  font-size: 0.88rem;
}

.ig-editorial-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 2.25rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--ig-border);
  border-bottom: 1px solid var(--ig-border);
  color: #4f5a63;
  font-size: 0.84rem;
}

.ig-editorial-note p {
  margin: 0;
}

.ig-article-shell .wp-block-post-content > p,
.ig-article-shell .wp-block-post-content > ul,
.ig-article-shell .wp-block-post-content > ol {
  font-size: 1.04rem;
}

.ig-article-shell .wp-block-post-content > h2 {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

.ig-article-shell .wp-block-post-content > h3 {
  margin-top: 2rem;
}

.ig-article-shell .wp-block-post-content > .ig-intro {
  max-width: 62ch;
  color: #34424d;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.ig-source-note {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ig-gold);
  background: rgba(255, 255, 255, 0.68);
  color: #4f5a63;
  font-size: 0.9rem;
}

.ig-calculator {
  margin: 1.5rem 0 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--ig-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(8, 19, 31, 0.06);
}

.ig-calculator__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ig-calculator label {
  display: grid;
  gap: 0.4rem;
  color: #34424d;
  font-size: 0.86rem;
  font-weight: 700;
}

.ig-calculator input,
.ig-calculator textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #9aa5ad;
  border-radius: 8px;
  background: var(--ig-white);
  color: var(--ig-midnight);
  font: inherit;
  font-size: 1rem;
}

.ig-calculator__button {
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ig-gold);
  color: var(--ig-midnight);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
}

.ig-calculator__result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--ig-midnight);
  color: var(--ig-white);
  font-weight: 650;
}

.ig-calculator__result[data-state="error"] {
  background: #7b3232;
}

.ig-calculator__formula {
  margin-bottom: 0;
  color: #5f6972;
  font-size: 0.82rem !important;
}

.ig-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-footer a,
.ig-footer p {
  color: #c8d0d6;
}

.ig-footer h2,
.ig-footer h3 {
  color: var(--ig-white);
}

.ig-footer .wp-block-site-title a {
  color: var(--ig-white);
  text-decoration: none;
}

.ig-footer .is-style-plain {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.ig-footer .is-style-plain li + li {
  margin-top: 0.45rem;
}

@media (max-width: 782px) {
  body.admin-bar .ig-sticky-header {
    top: 46px;
  }

  .ig-brand-row {
    min-height: 64px;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ig-hero {
    min-height: auto;
  }

  .ig-hero > .alignwide,
  .ig-section > .alignwide,
  .ig-article-shell > * {
    width: 100%;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .ig-section > .wp-block-shortcode,
  .ig-section > .ig-operator-table-wrap {
    margin-right: 1.1rem;
    margin-left: 1.1rem;
  }

  .ig-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }

  .ig-proof-grid {
    gap: 1.5rem;
  }

  .ig-sport-card {
    min-height: 260px;
  }

  .ig-methodology,
  .ig-disclosure {
    padding: 1.5rem !important;
  }

  .ig-operator-table th,
  .ig-operator-table td {
    padding: 0.85rem;
  }

  .ig-calculator__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ig-age-bar {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .ig-brand-row .wp-block-site-title {
    font-size: 1.1rem;
  }

  .ig-brand-row .wp-block-site-title a::before {
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
  }

  .ig-hero .wp-block-buttons {
    align-items: stretch;
  }

  .ig-hero .wp-block-button,
  .ig-hero .wp-block-button__link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
