/* ===========================================================
   Markets / Cities desk — local front door for state sites.
   Brand-aligned with home (navy + gold thread). Place-first.
   =========================================================== */

.mkt-ed *,
.mkt-ed *::before,
.mkt-ed *::after {
  box-sizing: border-box;
}

.mkt-ed {
  --mkt-ink: #0f172a;
  --mkt-muted: #334155;
  --mkt-paper: #fbfaf7;
  --mkt-paper-soft: #f3efe6;
  --mkt-paper-deep: #ebe4d6;
  --mkt-accent: #b8922e;
  --mkt-accent-ink: #8a6a14;
  --mkt-navy: #1a2a8a;
  --mkt-border: color-mix(in srgb, var(--mkt-ink) 14%, #d4c4a0);
  --mkt-hero-gradient: linear-gradient(148deg, #060910 0%, #0c1424 36%, #121e3c 62%, #1a2a6e 88%, #1e3488 100%);
  --mkt-max: 1040px;

  color: var(--mkt-ink);
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  background: var(--mkt-paper);
}

.mkt-inner {
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding: 0 24px;
}

.mkt-hero {
  background-color: #060910;
  background-image:
    radial-gradient(ellipse 70% 80% at 12% 20%, color-mix(in srgb, var(--mkt-accent) 18%, transparent) 0%, transparent 55%),
    var(--mkt-hero-gradient);
  color: #f8fafc;
  padding: clamp(56px, 8vh, 92px) 0 clamp(44px, 6vh, 72px);
  position: relative;
}

.mkt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mkt-accent) 0%, transparent 70%);
}

.mkt-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mkt-accent) 85%, #fff);
}

.mkt-hero .mkt-eyebrow,
.mkt-hero .mkt-eyebrow a {
  color: color-mix(in srgb, var(--mkt-accent) 85%, #fff);
}

.mkt-hero .mkt-eyebrow a:hover {
  color: #fff;
}

.mkt-hero h1 {
  margin: 0;
  display: grid;
  gap: 14px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 28ch;
}

.mkt-hero:not(.mkt-hero--city) .mkt-hero-line {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: #fff;
}

.mkt-hero-brand {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 82%, var(--mkt-accent));
}

.mkt-hero-accent {
  color: var(--mkt-accent);
}

.mkt-hero-city {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
}

.mkt-hero-line {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 28ch;
  color: color-mix(in srgb, #fff 88%, var(--mkt-accent));
}

.mkt-lede {
  margin: 22px 0 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: color-mix(in srgb, #fff 78%, #94a3b8);
}

.mkt-homebase {
  margin: 22px 0 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, #fff 70%, #94a3b8);
}

.mkt-homebase a,
.mkt-homebase strong {
  color: #fff;
  font-weight: 650;
}

.mkt-homebase a:hover {
  color: var(--mkt-accent);
}

.mkt-sec {
  padding: clamp(32px, 4.5vh, 48px) 0;
}

.mkt-sec-soft {
  background: var(--mkt-paper-soft);
  border-top: 1px solid var(--mkt-border);
  border-bottom: 1px solid var(--mkt-border);
}

.mkt-sec .mkt-eyebrow {
  color: var(--mkt-accent-ink);
}

.mkt-sec h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.mkt-desc {
  margin: 0 0 20px;
  max-width: 52ch;
  color: var(--mkt-muted);
  line-height: 1.55;
}

.mkt-city-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mkt-city-card a {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--mkt-border);
  border-radius: 2px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mkt-city-card.is-primary a {
  border-color: color-mix(in srgb, var(--mkt-accent) 55%, var(--mkt-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mkt-accent) 10%, #fff) 0%, #fff 42%);
}

.mkt-city-card a:hover {
  border-color: color-mix(in srgb, var(--mkt-navy) 35%, var(--mkt-border));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--mkt-ink) 8%, transparent);
}

.mkt-city-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mkt-city-region {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mkt-accent-ink);
}

.mkt-city-blurb {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--mkt-muted);
}

.mkt-city-go {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--mkt-navy);
}

.mkt-focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mkt-focus-item,
.mkt-focus > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--mkt-border);
  border-left: 3px solid var(--mkt-accent);
}

.mkt-focus-main {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.mkt-focus-item:hover,
.mkt-focus > li:hover {
  background: color-mix(in srgb, var(--mkt-accent) 8%, #fff);
  border-color: color-mix(in srgb, var(--mkt-accent) 40%, var(--mkt-border));
}

.mkt-focus-apply {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  color: #1a1405;
  background: var(--mkt-accent);
  border-radius: 2px;
}

.mkt-focus-apply:hover {
  filter: brightness(1.05);
}

.mkt-focus-name {
  font-weight: 650;
  font-size: 1.05rem;
}

.mkt-focus-meta {
  font-size: 0.85rem;
  color: var(--mkt-muted);
}

.mkt-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: end;
}

.mkt-search {
  position: relative;
}

.mkt-search--wide {
  max-width: 100%;
  width: 100%;
}

.mkt-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--mkt-border);
}

.mkt-search-icon {
  color: var(--mkt-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mkt-search-icon svg {
  width: 20px;
  height: 20px;
}

.mkt-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.35;
  background: transparent;
  color: var(--mkt-ink);
  min-width: 0;
  min-height: 28px;
  padding: 2px 0;
}

.mkt-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--mkt-border);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--mkt-ink) 12%, transparent);
  max-height: 360px;
  overflow: auto;
}

.mkt-hubs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.mkt-hubs a {
  color: var(--mkt-navy);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--mkt-navy) 28%, transparent);
}

.mkt-hubs a:hover {
  color: var(--mkt-accent-ink);
  border-bottom-color: var(--mkt-accent);
}

.mkt-close {
  padding: clamp(36px, 5.5vh, 56px) 0;
  background: #0c1424;
  color: #f8fafc;
}

.mkt-close-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.mkt-close h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  letter-spacing: -0.02em;
}

.mkt-close p {
  margin: 0;
  max-width: 40ch;
  color: color-mix(in srgb, #fff 72%, #94a3b8);
  line-height: 1.5;
}

.mkt-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mkt-btn,
.mkt-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 2px;
}

.mkt-btn {
  background: var(--mkt-accent);
  color: #1a1405;
}

.mkt-btn:hover {
  filter: brightness(1.05);
}

.mkt-btn-ghost {
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  color: #fff;
}

.mkt-btn-ghost:hover {
  border-color: var(--mkt-accent);
  color: var(--mkt-accent);
}

@media (max-width: 800px) {
  .mkt-split {
    grid-template-columns: 1fr;
  }

  .mkt-hero h1 {
    max-width: none;
  }
}
