:root {
  --ink: #1f2924;
  --text: #394841;
  --muted: #68766e;
  --line: #dce5dd;
  --page: #edf3ef;
  --paper: #ffffff;
  --forest: #244735;
  --forest-dark: #173427;
  --sky: #1a6382;
  --rust: #9b4f2e;
  --sand: #efe5cf;
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(217, 231, 220, 0.8), transparent 28rem),
    linear-gradient(180deg, #f7f9f6, var(--page));
}

a {
  color: #145879;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0d3c53;
}

a:focus-visible {
  outline: 3px solid rgba(26, 99, 130, 0.32);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 221, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 71, 53, 0.18);
}

.brand-mark::before {
  width: 16px;
  height: 20px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.nav-links a {
  color: #395146;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.nav-links .nav-cta {
  padding: 9px 12px;
  color: #fff;
  background: var(--forest);
  border-radius: 6px;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.article-shell {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: #52675c;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title,
.article-title {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.page-title {
  font-size: clamp(2.25rem, 6vw, 4.4rem);
}

.article-title {
  font-size: clamp(2.15rem, 5.6vw, 4rem);
}

.dek {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4d5c54;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.byline a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0 10px;
  border: 1px solid #cfdad1;
  border-radius: 12px;
  background: var(--forest-dark);
  box-shadow: 0 26px 60px rgba(31, 41, 36, 0.14);
}

.image-caption {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.stat-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.stat-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.draw-outlook {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin: 36px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(42, 52, 46, 0.07);
}

.section-heading {
  margin-bottom: 4px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-heading p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.draw-residency {
  overflow: hidden;
  border: 1px solid #d9e3db;
  border-radius: 9px;
  background: #f7faf8;
}

.draw-residency summary {
  display: flex;
  min-height: 54px;
  padding: 13px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.draw-residency summary::-webkit-details-marker {
  display: none;
}

.draw-residency summary::after {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid #6b7f74;
  border-bottom: 2px solid #6b7f74;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.draw-residency[open] summary::after {
  transform: rotate(225deg);
}

.draw-residency summary span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.draw-residency summary strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 0.96rem;
  text-align: right;
}

.draw-residency[open] summary {
  border-bottom: 1px solid #dfe7e1;
  background: #fff;
}

.draw-residency-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.draw-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.draw-card-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.draw-card-head strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  text-align: right;
}

.static-chart-scroll {
  overflow-x: auto;
  border-radius: 7px;
  background: #f7faf8;
  scrollbar-color: #a9b9af transparent;
  scrollbar-width: thin;
}

.static-chart-scroll:focus-visible {
  outline: 3px solid rgba(26, 99, 130, 0.28);
  outline-offset: 2px;
}

.static-odds-chart {
  display: block;
  width: 100%;
  min-width: 540px;
  height: auto;
}

.static-chart-grid {
  stroke: #dce5dd;
  stroke-width: 1.5;
}

.static-chart-tick {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.static-chart-line {
  fill: none;
  stroke: #27725a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.static-chart-dot {
  fill: #27725a;
  stroke: #fff;
  stroke-width: 3;
}

.static-chart-point-label {
  fill: #163b55;
  font-size: 12px;
  font-weight: 850;
  paint-order: stroke;
  stroke: #f7faf8;
  stroke-linejoin: round;
  stroke-width: 5px;
}

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

.draw-metric-grid > div,
.draw-pool-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e0e8e2;
  border-radius: 7px;
  background: #fff;
}

.draw-metric-grid span,
.draw-pool-grid span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draw-metric-grid strong,
.draw-pool-grid strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.28;
}

.draw-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.draw-pool-grid small,
.static-tier-list small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.static-tier-list {
  display: grid;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e8e2;
  border-radius: 7px;
  background: #fff;
}

.static-tier-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #edf1ee;
}

.static-tier-list > div:first-child {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.static-tier-list > div:last-child {
  border-bottom: 0;
}

.static-tier-list > div > span {
  display: grid;
}

.static-tier-list > div > strong {
  color: #163b55;
}

.draw-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  border-radius: 7px;
  background: #fff;
  font-size: 0.86rem;
}

.draw-unavailable {
  color: #54462f;
  background: #fbf6e9;
  border-color: #e7d8b6;
  box-shadow: none;
}

.draw-unavailable .section-heading p:last-child {
  color: #665b47;
}

.text-link {
  width: fit-content;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 850;
}

.article-body {
  color: #34443c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.article-body h2 {
  margin: 2.5em 0 0.7em;
  font-size: 1.55rem;
}

.article-body h3 {
  margin: 2em 0 0.6em;
  font-size: 1.2rem;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.25em;
}

.article-body li {
  margin: 0.46em 0;
  padding-left: 0.25em;
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 0.1em 0 0.1em 1.25em;
  color: #4d5c54;
  border-left: 4px solid #89a48f;
}

.action-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0;
  padding: 20px;
  color: #eef6f0;
  background: var(--forest-dark);
  border-radius: 10px;
}

.action-band strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.02rem;
}

.action-band span {
  color: #c7d8ca;
  font-size: 0.86rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8dbcd;
  border-radius: 6px;
  color: var(--forest-dark);
  background: #f6fbf7;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.button.secondary {
  color: #edf7ef;
  background: transparent;
  border-color: #5f7b67;
}

.notice {
  margin: 28px 0;
  padding: 16px 18px;
  color: #54462f;
  background: #fbf6e9;
  border: 1px solid #e7d8b6;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-grid,
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.state-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.state-card {
  display: block;
  padding: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 14px 32px rgba(42, 52, 46, 0.06);
  text-decoration: none;
}

.content-card:hover,
.state-card:hover {
  border-color: #abc0af;
  transform: translateY(-1px);
}

.content-card small,
.state-card small {
  color: var(--muted);
  font-weight: 700;
}

.content-card h2,
.content-card h3,
.state-card h2 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.content-card p {
  margin: 0;
  color: #58675f;
  font-size: 0.88rem;
  line-height: 1.55;
}

.library-list {
  display: grid;
  gap: 9px;
  margin: 28px 0 0;
}

.library-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 1.5fr) minmax(140px, 1fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}

.library-row strong {
  color: var(--ink);
}

.library-row span,
.library-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.prose-page {
  max-width: 780px;
}

.prose-page h2 {
  margin: 2.2em 0 0.55em;
  color: var(--ink);
}

.prose-page p,
.prose-page li {
  line-height: 1.75;
}

.site-footer {
  padding: 34px 18px;
  color: #c9d7cc;
  background: #172a21;
}

.footer-inner {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  margin: 6px 0 0;
  color: #9fb3a4;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: #dce9df;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-header {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

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

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

  .library-row {
    grid-template-columns: 90px 1fr;
  }

  .library-row span,
  .library-row small {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .article-shell,
  .site-nav {
    width: min(100% - 24px, 1180px);
  }

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

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

  .draw-outlook {
    margin: 28px 0;
    padding: 18px;
  }

  .draw-residency summary,
  .draw-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .draw-residency summary {
    position: relative;
    padding-right: 38px;
  }

  .draw-residency summary::after {
    position: absolute;
    top: 20px;
    right: 18px;
  }

  .draw-residency summary strong {
    margin-left: 0;
    text-align: left;
  }

  .draw-card-head strong {
    text-align: left;
  }

  .draw-metric-grid,
  .draw-pool-grid {
    grid-template-columns: 1fr;
  }

  .static-odds-chart {
    min-width: 510px;
  }

  .page-title,
  .article-title {
    font-size: 2.2rem;
  }
}
