:root {
  --yi-bg: #050816;
  --yi-bg-soft: #0b1221;
  --yi-border-soft: rgba(148, 163, 184, 0.32);
  --yi-border-strong: rgba(148, 163, 184, 0.6);
  --yi-text-main: #e5e7eb;
  --yi-text-soft: #9ca3af;
  --yi-accent: #f97316;  /* warm “outback” orange */
  --yi-accent-soft: rgba(249, 115, 22, 0.12);
  --yi-width: 960px;
  --yi-radius: 14px;
  --yi-radius-lg: 18px;
  --yi-line: rgba(31, 41, 55, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--yi-bg);
  color: var(--yi-text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Layout shell ---------- */

.yi-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.yi-main {
  flex: 1;
  padding: 1.5rem 1rem 3rem;
}

.yi-container {
  max-width: var(--yi-width);
  margin: 0 auto;
}

/* ---------- Header & nav ---------- */

.yi-header {
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
}

.yi-header-inner {
  max-width: var(--yi-width);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Brand + logo */

.yi-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yi-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.yi-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.yi-brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.yi-brand-tagline {
  font-size: 0.8rem;
  color: var(--yi-text-soft);
}

.yi-spacer {
  flex: 1;
}

/* Preserve nav structure, restyle it */

#mainav {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

#mainav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

#mainav > ul > li {
  position: relative;
}

/* Keep dropdown open while moving cursor from parent link to submenu */
#mainav > ul > li::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: 100%;
  height: 0.9rem;
}

#mainav > ul > li > a {
  color: var(--yi-text-soft);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

#mainav > ul > li.active > a {
  color: var(--yi-text-main);
  border-bottom-color: var(--yi-accent);
}

#mainav > ul > li > a:hover {
  color: var(--yi-text-main);
}

#mainav > ul > li > a:focus {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

#mainav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0.6rem;
  list-style: none;
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: none;
  z-index: 50;
  pointer-events: auto;
}

#mainav li:hover > ul,
#mainav li:focus-within > ul {
  display: block;
}

#mainav li ul li a {
  display: block;
  padding: 0.3rem 0.2rem;
  color: var(--yi-text-soft);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

#mainav li ul li a:hover {
  color: var(--yi-text-main);
}

.yi-nav-toggle {
  display: none;
}

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

.yi-hero {
  padding-top: 2.1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--yi-line);
}

.yi-hero-inner {
  max-width: var(--yi-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.yi-hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yi-text-soft);
}

.yi-hero-title {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.1;
  max-width: 28rem;
  font-weight: 600;
}

.yi-hero-title span {
  color: var(--yi-accent);
}

.yi-hero-lede {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36rem;
  color: var(--yi-text-soft);
}

.yi-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
  align-items: center;
}

.yi-link-primary,
.yi-link-secondary {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
}

.yi-link-primary {
  background-color: var(--yi-accent);
  color: #0b1120;
}

.yi-link-primary:hover {
  text-decoration: none;
  background-color: #ea580c;
}

.yi-link-secondary {
  background-color: transparent;
  color: var(--yi-text-soft);
  border-color: var(--yi-border-soft);
}

.yi-link-secondary:hover {
  text-decoration: none;
  border-color: var(--yi-border-strong);
  color: var(--yi-text-main);
}

.yi-link-data {
  padding-right: 1rem;
}

.yi-link-data-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yi-link-data-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.yi-hero-meta {
  font-size: 0.78rem;
  color: var(--yi-text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.yi-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.yi-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--yi-accent);
}

/* ---------- Stats (home-overview.json) ---------- */

.yi-stats {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--yi-line);
}

.yi-stats-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.yi-stats-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yi-stats-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yi-text-soft);
}

.yi-stats-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.yi-stats-sub {
  font-size: 0.86rem;
  color: var(--yi-text-soft);
  max-width: 32rem;
}

.yi-stats-note{
  display: inline-flex;
  align-items: center;
  gap: 8px; /* replaces margin-right */
  line-height: 1;
}

/* extra-safe override in case layout.css is interfering */
.yi-stats-note .status-dot{
  display: inline-block !important;
  flex: 0 0 auto;
  vertical-align: middle;
}


.yi-stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yi-stat-item {
  border-radius: var(--yi-radius);
  padding: 0.75rem 0.85rem;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  transition: border-color 0.12s ease, background-color 0.12s ease,
              transform 0.12s ease;
}

.yi-stat-item:hover {
  border-color: var(--yi-border-strong);
  background: #020617;
  transform: translateY(-1px);
}

.yi-stat-link {
  display: block;
  text-decoration: none;
}

.yi-stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yi-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: #ffffff;            /* white circle */
  border: 1px solid var(--yi-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yi-stat-icon img {
  max-width: 20px;
  max-height: 20px;
  display: block;
}

.yi-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.yi-stat-label {
  font-size: 0.82rem;
  color: var(--yi-text-soft);
  margin: 0;
  font-weight: 600;                     /* bold labels */
}

.yi-stat-value {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.yi-stats-loading {
  font-size: 0.86rem;
  color: var(--yi-text-soft);
  grid-column: 1 / -1;
}

/* ---------- Explore section ---------- */
:root {
  --yi-bg: #050816;
  --yi-bg-soft: #0b1221;
  --yi-border-soft: rgba(148, 163, 184, 0.32);
  --yi-border-strong: rgba(148, 163, 184, 0.6);
  --yi-text-main: #e5e7eb;
  --yi-text-soft: #9ca3af;
  --yi-accent: #f97316;  /* warm “outback” orange */
  --yi-accent-soft: rgba(249, 115, 22, 0.12);
  --yi-width: 960px;
  --yi-radius: 14px;
  --yi-radius-lg: 18px;
  --yi-line: rgba(31, 41, 55, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--yi-bg);
  color: var(--yi-text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Layout shell ---------- */

.yi-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.yi-main {
  flex: 1;
  padding: 1.5rem 1rem 3rem;
}

.yi-container {
  max-width: var(--yi-width);
  margin: 0 auto;
}

/* ---------- Header & nav ---------- */

.yi-header {
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
}

.yi-header-inner {
  max-width: var(--yi-width);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Brand + logo */

.yi-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yi-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.yi-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.yi-brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.yi-brand-tagline {
  font-size: 0.8rem;
  color: var(--yi-text-soft);
}

.yi-spacer {
  flex: 1;
}

/* Preserve nav structure, restyle it */

#mainav {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

#mainav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

#mainav > ul > li {
  position: relative;
}

/* Keep dropdown open while moving cursor from parent link to submenu */
#mainav > ul > li::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: 100%;
  height: 0.9rem;
}

#mainav > ul > li > a {
  color: var(--yi-text-soft);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

#mainav > ul > li.active > a {
  color: var(--yi-text-main);
  border-bottom-color: var(--yi-accent);
}

#mainav > ul > li > a:hover {
  color: var(--yi-text-main);
}

#mainav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0.6rem;
  list-style: none;
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: none;
  z-index: 20;
}

#mainav li:hover > ul,
#mainav li:focus-within > ul {
  display: block;
}

#mainav li ul li a {
  display: block;
  padding: 0.3rem 0.2rem;
  color: var(--yi-text-soft);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

#mainav li ul li a:hover {
  color: var(--yi-text-main);
}

.yi-nav-toggle {
  display: none;
}

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

.yi-hero {
  padding-top: 2.1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--yi-line);
}

.yi-hero-inner {
  max-width: var(--yi-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.yi-hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yi-text-soft);
}

.yi-hero-title {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.1;
  max-width: 28rem;
  font-weight: 600;
}

.yi-hero-title span {
  color: var(--yi-accent);
}

.yi-hero-lede {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36rem;
  color: var(--yi-text-soft);
}

.yi-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
  align-items: center;
}

.yi-link-primary,
.yi-link-secondary {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
}

.yi-link-primary {
  background-color: var(--yi-accent);
  color: #0b1120;
}

.yi-link-primary:hover {
  text-decoration: none;
  background-color: #ea580c;
}

.yi-link-secondary {
  background-color: transparent;
  color: var(--yi-text-soft);
  border-color: var(--yi-border-soft);
}

.yi-link-secondary:hover {
  text-decoration: none;
  border-color: var(--yi-border-strong);
  color: var(--yi-text-main);
}

.yi-link-data {
  padding-right: 1rem;
}

.yi-link-data-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yi-link-data-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.yi-hero-meta {
  font-size: 0.78rem;
  color: var(--yi-text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.yi-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.yi-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--yi-accent);
}

/* ---------- Stats (home-overview.json) ---------- */

.yi-stats {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--yi-line);
}

.yi-stats-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.yi-stats-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yi-stats-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yi-text-soft);
}

.yi-stats-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.yi-stats-sub {
  font-size: 0.86rem;
  color: var(--yi-text-soft);
  max-width: 32rem;
}

.yi-stats-note {
  font-size: 0.78rem;
  color: var(--yi-text-soft);
  border-radius: 999px;
  border: 1px solid var(--yi-border-soft);
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}

.yi-stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yi-stat-item {
  border-radius: var(--yi-radius);
  padding: 0.75rem 0.85rem;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  transition: border-color 0.12s ease, background-color 0.12s ease,
              transform 0.12s ease;
}

.yi-stat-item:hover {
  border-color: var(--yi-border-strong);
  background: #020617;
  transform: translateY(-1px);
}

.yi-stat-link {
  display: block;
  text-decoration: none;
}

.yi-stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yi-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: #ffffff;            /* white circle */
  border: 1px solid var(--yi-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yi-stat-icon img {
  max-width: 20px;
  max-height: 20px;
  display: block;
}

.yi-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.yi-stat-label {
  font-size: 0.82rem;
  color: var(--yi-text-soft);
  margin: 0;
  font-weight: 600;                     /* bold labels */
}

.yi-stat-value {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.yi-stats-loading {
  font-size: 0.86rem;
  color: var(--yi-text-soft);
  grid-column: 1 / -1;
}

/* ---------- Explore section ---------- */

.yi-explore {
  padding-top: 1.8rem;
}

.yi-explore-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.yi-explore-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yi-text-soft);
}

.yi-explore-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.yi-explore-sub {
  font-size: 0.86rem;
  color: var(--yi-text-soft);
  max-width: 32rem;
}

/* cards / boxes */

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

.yi-explore-item {
  border-radius: var(--yi-radius-lg);
  padding: 1rem 1.1rem 1.05rem;
  background: radial-gradient(circle at top left,
              rgba(249, 115, 22, 0.12) 0,
              transparent 50%),
              #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease,
              transform 0.12s ease, background 0.12s ease;
}

.yi-explore-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
              rgba(148, 163, 184, 0.22) 0,
              transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.yi-explore-item:hover {
  border-color: var(--yi-border-strong);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
  background: radial-gradient(circle at top left,
              rgba(249, 115, 22, 0.18) 0,
              transparent 55%),
              #020617;
}

.yi-explore-item:hover::after {
  opacity: 1;
}

/* BIG + BOLD headings inside each box */
.yi-explore-heading {
  font-size: 1.05rem;      /* same size as section title */
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.7rem;      /* extra space under the title */
}

/* body text */
.yi-explore-text {
  font-size: 0.9rem;
  color: var(--yi-text-soft);
  margin: 0 0 0.6rem;      /* small gap before links */
}

/* links at bottom of each box */
.yi-explore-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--yi-text-main);
  font-weight: 500;
  display: inline-block;
  margin-top: 0.1rem;
}

.yi-explore-link:hover {
  text-decoration: underline;
}

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

.yi-footer {
  border-top: 1px solid var(--yi-line);
  background-color: #020617;
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.8rem;
  color: var(--yi-text-soft);
}

.yi-footer-inner {
  max-width: var(--yi-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .yi-main {
    padding-inline: 1rem;
  }

  .yi-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yi-explore-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .yi-header-inner {
    padding-inline: 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .yi-nav-toggle {
    display: inline-block;
    margin-left: auto;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: transparent;
    color: var(--yi-text-soft);
    border: 1px solid var(--yi-border-soft);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
  }

  #mainav {
    width: 100%;
    margin-top: 0.7rem;
  }

  #mainav > ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .yi-hero {
    padding-top: 1.6rem;
  }

  .yi-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.status-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e; /* green */
  margin-right:8px;
  vertical-align:middle;
  box-shadow:0 0 0 2px rgba(34,197,94,.18);
}

/* ---------- Snapshot extensions: HoM centered row + state/territory mini-tiles ---------- */

.yi-stat-item.yi-stat-spacer {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.yi-stat-item.yi-stat-spacer:hover {
  border-color: transparent;
  transform: none;
}

/* Divider title with lines on each side */
.yi-state-divider {
  margin-top: 1.6rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--yi-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  user-select: none;
}

.yi-state-divider::before,
.yi-state-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--yi-line);
}

.yi-state-divider span {
  white-space: nowrap;
}

/* 2 rows of 3 */
.yi-state-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yi-state-item {
  border-radius: var(--yi-radius);
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.75rem 0.85rem 0.85rem;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.yi-state-item:hover {
  border-color: var(--yi-border-strong);
  transform: translateY(-1px);
}

.yi-state-title {
  position: relative;
  text-align: center;
  font-weight: 650;
  /* Full state names need a little less “spread” than the codes */
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.82rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--yi-line);
  /* Keep text clear of the rectangular flag on the left */
  padding-left: 46px;
  padding-right: 14px;
}



.yi-state-title span { display: inline-block; line-height: 1.05; }
.yi-state-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  /* State flags are rectangular; keep aspect ratio (no "square stretching") */
  width: 30px;
  height: 18px;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
}

.yi-state-title > span {
  display: inline-block;
}


.yi-state-body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem;
}

.yi-state-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.yi-state-label {
  font-size: 0.78rem;
  color: var(--yi-text-soft);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.yi-state-value {
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
}

.yi-state-vrule {
  width: 1px;
  background: var(--yi-line);
  opacity: 0.9;
}

/* Responsive: keep this section compact but readable */
@media (max-width: 880px) {
  .yi-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .yi-state-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------- HoM tiles: prevent long fallback text / ugly wrapping ---------------- */
/* Flex children need min-width:0 to allow proper line-clamping/ellipsis behavior */
.yi-stat-row { min-width: 0; }
.yi-stat-text { min-width: 0; }

/* Keep labels tidy (especially the long HoM ones) */
.yi-stat-label {
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Slightly smaller label font for the two HoM tiles */
.yi-stat-hom .yi-stat-label { font-size: 0.74rem; -webkit-line-clamp: 3; }

/* If an icon fails to load, don't let anything spill out of the circle */
.yi-stat-icon { overflow: hidden; }
