/* Market pages (market.php, markets.php) */
.mk-hero { position: relative; isolation: isolate; color: #fff; background: var(--indigo-deep); overflow: hidden; }
.mk-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mk-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 8, 64, .86) 0%, rgba(22, 8, 64, .62) 46%, rgba(22, 8, 64, .08) 100%); }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.mk-crumb { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.mk-crumb a { color: #fff; }
.mk-offer { display: inline-block; margin: 0 0 18px; padding: 9px 16px; border-radius: 999px; background: var(--cyan); color: var(--indigo-deep); font-weight: 800; font-size: 15px; }
.mk-copy { text-shadow: 0 1px 12px rgba(22, 8, 64, .55); }
.mk-offer { text-shadow: none; }
.mk-copy h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.mk-lead { font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .92); margin-bottom: 22px; max-width: 34em; }
.mk-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-weight: 600; }
.mk-points li { padding-left: 26px; position: relative; }
.mk-points li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.mk-hero .form-card { color: var(--ink); }
.mk-credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.mk-credit a { color: inherit; }
.mk-stats { background: #fff; border-bottom: 1px solid var(--line); }
.mk-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.mk-stat-grid b { display: block; font-size: 30px; font-weight: 800; color: var(--indigo); line-height: 1.15; }
.mk-stat-grid span { color: var(--muted); font-size: 15px; }
.mk-counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.mk-county { padding: 16px 18px; }
.mk-county summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.mk-county summary span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.mk-cities { margin: 12px 0 8px; font-size: 14px; color: var(--muted); }
.mk-zips { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); word-spacing: 3px; }
.mk-trades { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mk-trades li { padding: 10px 16px; border-radius: 999px; background: var(--tint); color: var(--indigo); font-weight: 600; font-size: 15px; }
.mk-note { color: var(--muted); margin: 18px 0 0; }
.mk-band { background: var(--indigo-deep); color: #fff; padding: 48px 0; }
.mk-band-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.mk-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.mk-band p { margin: 0; color: rgba(255, 255, 255, .86); }
.mk-narrow { max-width: 820px; }
.mk-faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.mk-faq summary { font-weight: 700; cursor: pointer; }
.mk-faq p { margin: 10px 0 0; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mk-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mk-card[hidden] { display: none; }
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22, 8, 64, .14); }
.mk-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mk-card span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; font-weight: 700; }
.mk-card small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.mk-all { padding-top: 40px; }
.mk-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.mk-letters[hidden] { display: none; }
.mk-letters a { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--indigo); font-weight: 800; text-decoration: none; }
.mk-letters a:hover { background: var(--indigo); color: #fff; }
.mk-letter { margin-bottom: 36px; scroll-margin-top: 90px; }
.mk-letter[hidden] { display: none; }
.mk-letter h2 { font-size: 28px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); color: var(--indigo); }
.mk-filter { display: block; max-width: 460px; margin-top: 26px; font-weight: 700; }
.mk-filter span { display: block; margin-bottom: 6px; }
.mk-filter input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 500; }
@media (max-width: 960px) {
	.mk-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 52px; }
	.mk-hero::before { background: linear-gradient(180deg, rgba(22, 8, 64, .72) 0%, rgba(22, 8, 64, .6) 100%); }
	.mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.mk-grid { grid-template-columns: minmax(0, 1fr); }
	.mk-credit { position: static; padding: 0 16px 10px; }
}
/* Admin > Markets */
.mka-muted { color: var(--muted); font-size: 14px; font-weight: 500; }
.mka-find { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.mka-find label { flex: 1 1 300px; font-weight: 700; }
.mka-find input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 500; }
.mka-filter { width: 100%; max-width: 380px; margin: 8px 0 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
#mka-list tr[hidden] { display: none; }
.mka-crumb { margin: 0 0 8px; font-weight: 600; }
.mka-edit { display: grid; gap: 14px; max-width: 520px; }
.mka-county { padding: 14px 18px; margin-bottom: 10px; }
.mka-county summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; cursor: pointer; }
.mka-county .data-table { margin-top: 12px; }
.mka-zips { font-size: 14px; word-spacing: 3px; }
.mka-part { margin: 12px 0 0; font-size: 14px; color: var(--muted); word-spacing: 2px; }
.mka-remove { margin-top: 14px; }
.county-grid small { display: block; }
