/* Gold Standard state center. Presentation only: source content, data and
   progressive-enhancement controls remain in their original HTML/modules. */
@media screen {
body.gold-state {
  --tile-credit: #dce4e6;
  --tile-nocredit: #cbded1;
  --tier-1: #ece7db;
  --tier-2: #e7d8b8;
  --tier-3: #d9b987;
  --tier-4: #d1a18b;
}
html:not([data-theme="day"]) body.gold-state {
  --tile-credit: #243d43;
  --tile-nocredit: #214c3b;
  --tier-1: #26362c;
  --tier-2: #4a422a;
  --tier-3: #624b2b;
  --tier-4: #653f35;
}

/* A jurisdiction's facts form one measured strip above the full guide. */
body.gold-state .fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block: 32px 38px;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--brass);
  background: var(--paper-raised);
}
body.gold-state .fact {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 20px 22px;
  background: transparent;
}
body.gold-state .fact:nth-child(even) { border-left: 1px solid var(--hairline); }
body.gold-state .fact:nth-child(n+3) { border-top: 1px solid var(--hairline); }
body.gold-state .fact-label {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.3;
  font-variant-caps: small-caps;
  letter-spacing: .055em;
  text-transform: none;
  color: var(--ink-soft);
}
body.gold-state .fact-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brass);
  margin-block: 7px 6px;
}
body.gold-state .fact-note {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
}
body.gold-state .article-body > .fact-note {
  font-size: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--brass);
}

/* The hub keeps prose at a reading measure and data at the full page width. */
body.gold-state #main > .container { padding-block: 0 64px; }
body.gold-state .home-section { margin-top: 58px; }
body.gold-state .home-section > p,
body.gold-state .home-section > ul,
body.gold-state .home-section > ol { max-width: 82ch; }
body.gold-state .stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-block: 1px solid var(--hairline);
}
body.gold-state .stat {
  min-width: 0;
  padding: 24px 20px 26px;
  border-right: 1px solid var(--hairline);
}
body.gold-state .stat:first-child { padding-left: 0; }
body.gold-state .stat:last-child { border-right: 0; padding-right: 0; }
body.gold-state .stat-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 49px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--brass);
}
body.gold-state .stat-label {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-top: 8px;
}
body.gold-state .section-nav {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.35;
  /* Ten jump links fit one line at full width; narrower windows wrap. */
  gap: 10px 20px;
  padding-block: 18px;
  margin-top: 0;
  border-top: 0;
}
body.gold-state .section-nav a { padding-block: 3px; }

/* Data remains semantically colored: blue tip-credit states and green
   no-credit states, with the original four-tier lens retained. */
body.gold-state .tilemap {
  gap: 6px;
  max-width: 800px;
  margin-block: 12px 24px;
}
body.gold-state .tile {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(11px, 1.5vw, 19px);
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 0;
  color: var(--ink);
}
body.gold-state .tile:hover,
body.gold-state .tile:focus-visible {
  border-color: var(--brass);
  color: var(--ink);
}
body.gold-state .view-toggle { border-radius: 0; }
body.gold-state .view-toggle button {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
  padding: 12px 20px;
  text-transform: none;
  letter-spacing: 0;
}
body.gold-state .view-toggle button[aria-pressed="true"] {
  background: #1c4a3a;
  color: #fbf8f0;
}
body.gold-state .tilemap-legend {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  gap: 9px 24px;
}
body.gold-state .legend-swatch { border-radius: 0; }
body.gold-state .quick-peek {
  padding: 24px 28px;
  border-radius: 0;
  border-top: 2px solid var(--brass);
}
body.gold-state .quick-peek dl {
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
  gap: 7px 24px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
}
body.gold-state .quick-peek dt {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

/* Preserve every table column. On small screens the containing scroll region
   owns horizontal movement; the document never hides or collapses columns. */
body.gold-state .table-scroll {
  max-width: 100%;
  border-radius: 0;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--brass);
  scrollbar-color: var(--brass) var(--paper-raised);
  scrollbar-width: auto;
  overscroll-behavior-x: contain;
}
body.gold-state table.data {
  min-width: 650px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
}
body.gold-state table.data th,
body.gold-state table.data td { padding: 13px 16px; }
body.gold-state table.data thead th {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-caps: small-caps;
  letter-spacing: .045em;
  text-transform: none;
  color: var(--ink-soft);
  background: var(--paper-sunken);
}
body.gold-state table.data caption {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  padding: 15px 16px;
}
body.gold-state #states-table { min-width: 1100px; }
body.gold-state #states-table td:first-child { min-width: 144px; }
body.gold-state #states-table td:last-child { min-width: 150px; }
body.gold-state #states-table .num { white-space: nowrap; }
body.gold-state #horizon-table { min-width: 900px; }
body.gold-state .badge {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  padding: 3px 7px;
  border-radius: 0;
}

body.gold-state .toolbar {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  gap: 13px 22px;
  line-height: 1.4;
}
body.gold-state .filter-toolbar {
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
}
body.gold-state .toolbar label { gap: 8px; min-width: 0; }
body.gold-state .toolbar input[type="search"],
body.gold-state .toolbar select {
  min-width: 0;
  max-width: 100%;
  border-radius: 0;
  font-size: 18px;
  padding: 9px 11px;
  line-height: 1.2;
}
body.gold-state .toolbar input[type="search"] { width: 200px; }
body.gold-state .toolbar input[type="checkbox"] {
  accent-color: #1c4a3a;
  width: 17px;
  height: 17px;
}
body.gold-state .filter-toolbar button[type="reset"] {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}
body.gold-state .filter-count { margin-left: auto; font-size: 17px; }
body.gold-state .compare-controls { gap: 18px 28px; }
body.gold-state .compare-controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 220px;
}
body.gold-state .compare-controls select { width: 100%; }
body.gold-state .compare-panel table { min-width: 730px; }
body.gold-state .compare-panel th[scope="row"] {
  min-width: 170px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
}

body.gold-state .tier-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.gold-state .tier-card { border-radius: 0; padding: 27px; }
body.gold-state .tier-card p { font-size: 19px; line-height: 1.5; }
body.gold-state .tier-card:hover { transform: none; box-shadow: none; }
body.gold-state .chip-list { font-family: "EB Garamond", Georgia, serif; font-size: 17px; gap: 7px; }
body.gold-state .chip-list a { border-radius: 0; padding: 3px 9px; }
body.gold-state .chip-note { font-size: 16px; }
body.gold-state .methodology-disclosure { border-radius: 0; padding: 23px 27px; }
body.gold-state .methodology-disclosure > summary {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--brass);
}
body.gold-state .ordinance-mini > li { padding-block: 17px; }
body.gold-state .ordinance-mini-head {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
  align-items: baseline;
}
body.gold-state .ordinance-mini-detail {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 5px;
}

@media (min-width: 1300px) {
  body.gold-state .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.gold-state .fact { padding: 18px 16px; }
  body.gold-state .fact:nth-child(n+2) { border-left: 1px solid var(--hairline); border-top: 0; }
}
@media (max-width: 1000px) {
  body.gold-state .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.gold-state .stat { padding: 22px; }
  body.gold-state .stat:nth-child(3n) { border-right: 0; }
  body.gold-state .stat:nth-child(3n+1) { padding-left: 0; }
  body.gold-state .stat:nth-child(n+4) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 620px) {
  body.gold-state .home-section { margin-top: 42px; }
  body.gold-state .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  body.gold-state .stat { padding: 20px 18px; }
  body.gold-state .stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--hairline); }
  body.gold-state .stat:nth-child(even) { border-right: 0; padding-left: 18px; }
  body.gold-state .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  body.gold-state .stat-number { font-size: 42px; }
  body.gold-state .section-nav { flex-wrap: nowrap; overflow-x: auto; padding-block: 15px; }
  body.gold-state .fact { padding: 17px 15px; }
  body.gold-state .fact-label { font-size: 15px; }
  body.gold-state .fact-note { font-size: 16px; }
  body.gold-state .tilemap { gap: 3px; }
  body.gold-state .tile-dot::after { width: 4px; height: 4px; top: 1px; right: 1px; }
  body.gold-state .view-toggle { display: flex; }
  body.gold-state .view-toggle button { flex: 1; font-size: 16px; padding: 12px 10px; }
  body.gold-state .quick-peek { padding: 20px; }
  body.gold-state .quick-peek dl { grid-template-columns: 1fr; gap: 2px; }
  body.gold-state .quick-peek dd { margin-bottom: 9px; }
  body.gold-state .table-scroll { border-right: 3px solid var(--brass); }
  body.gold-state table.data { font-size: 17px; }
  body.gold-state table.data th, body.gold-state table.data td { padding: 11px 13px; }
  body.gold-state .filter-toolbar { padding: 18px; align-items: stretch; }
  body.gold-state .filter-toolbar label { flex-wrap: wrap; }
  body.gold-state .filter-toolbar label:first-child { flex: 1 1 100%; }
  body.gold-state .toolbar input[type="search"] { flex: 1; width: 100%; min-width: 100px; }
  body.gold-state .filter-count { margin-left: 0; align-self: center; }
  body.gold-state .compare-controls { gap: 12px; }
  body.gold-state .compare-controls label { flex-basis: 100%; }
  body.gold-state .tier-cards { grid-template-columns: 1fr; }
  body.gold-state .tier-card { padding: 22px; }
  body.gold-state .methodology-disclosure { padding: 20px; }
}
} /* screen: retain the preserved print stylesheet without overrides. */

/* Hero jump form: open one jurisdiction's guide without scrolling to the map. */
body.gold-state .state-jump { margin: 30px auto 0; max-width: 520px; text-align: center; }
html:not(.js) body.gold-state .state-jump { display: none; }
body.gold-state .state-jump label { display: block; margin-bottom: 10px; font: 16px/1.3 "EB Garamond", Georgia, serif; font-variant-caps: small-caps; letter-spacing: .07em; color: #c9b992; }
body.gold-state .state-jump-row { display: flex; gap: 10px; justify-content: center; }
body.gold-state .state-jump select { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #53634e; border-radius: 3px; background: #17241d; color: #ece3d0; font: 18px "EB Garamond", Georgia, serif; color-scheme: dark; }
body.gold-state .state-jump button { flex: none; min-height: 46px; padding: 0 18px; border: 0; border-radius: 3px; background: #e6c878; color: #101a16; font: 17px "EB Garamond", Georgia, serif; font-variant-caps: small-caps; letter-spacing: .04em; cursor: pointer; }
body.gold-state .state-jump :is(select, button):focus-visible { outline: 2px solid #e6c878; outline-offset: 3px; }

