/* The market pages: /markets/ and one page per county or town. Rides on
   /for/for.css for the palette, the header, the cards and the close; this
   file only adds the short hero, the tables and the answers. No new colours. */

/* A data page: the hero is short, so the counts are on the first screen. */
.mk-hero, html.framed .hero.mk-hero { min-height: 0; }
.mk-hero .bg { --img: url(/img/coverage-map.jpg); }
.mk-hero h1 { font-size: clamp(34px, 8.4vw, 60px); max-width: 15em; }
@media (max-width: 899px) {
  .hero.mk-hero { min-height: 0; }
  .mk-hero .bg { height: 250px; background-position: 70% 40%; }
  .mk-hero::after { background: linear-gradient(180deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,.15) 30%, rgba(5,8,15,.7) 180px, var(--ground) 250px); }
  .mk-hero .wrap { padding-top: 150px; padding-bottom: 28px; }
}
@media (min-width: 900px) {
  .hero.mk-hero { min-height: 0; }
  .mk-hero .bg { background-position: 60% 45%; }
  .mk-hero .wrap { padding-top: 132px; padding-bottom: 56px; }
  .mk-hero .wrap > * { max-width: 680px; }
  .mk-hero h1 { font-size: clamp(42px, 4vw, 58px); }
}
.mk-hero .crumb { margin-bottom: 10px; }

/* The counts: three or four tiles, each with what it counts. */
.stat .k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 10px; }
.stats.n3 { grid-template-columns: repeat(3, 1fr); }
.stats.n2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .stats.n3, .stats.n2 { grid-template-columns: 1fr 1fr; }
  .stats.n3 .stat:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .stat .k { font-size: 10px; letter-spacing: .1em; }
  .stats.n2 .stat { border-bottom: 0 !important; }
}

/* Tables: one row per property type, or per area on the map. */
.mk-tablewrap { margin-top: 26px; overflow: hidden; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mk-table th, .mk-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.mk-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); background: var(--raised); border-bottom-color: var(--line-2); }
.mk-table tbody th { font-weight: 500; color: var(--text); }
.mk-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-table td { color: var(--text-2); }
.mk-table td.n:not(.dim) { color: var(--text); }
.mk-table tfoot th, .mk-table tfoot td { border-bottom: 0; font-weight: 600; color: var(--text); background: rgba(46,107,255,.09); }
.mk-table a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.mk-table a:hover { color: var(--glow); }
.mk-table .rk { color: var(--label); width: 3em; }
@media (max-width: 640px) {
  .mk-table { font-size: 14px; }
  .mk-table th, .mk-table td { padding: 12px 10px; }
  .mk-table thead th { font-size: 10px; letter-spacing: .08em; }
  .mk-table .hide-s { display: none; }
}
/* On a phone the map's rows stack: the area, then its three counts. */
@media (max-width: 640px) {
  .mk-map thead { display: none; }
  .mk-map tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
  .mk-map tfoot tr { border-bottom: 0; background: rgba(46,107,255,.09); }
  .mk-map th, .mk-map td, .mk-map tfoot th, .mk-map tfoot td { border: 0; padding: 2px 14px; background: none; }
  .mk-map th[scope="row"] { grid-column: 1 / -1; padding-bottom: 6px; font-size: 15px; }
  .mk-map td.n { text-align: left; }
  .mk-map td.n::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 2px; }
}
.mk-src { font-size: 13px; color: var(--label); line-height: 1.6; margin-top: 14px; max-width: 60em; }

/* The map: a jump row of states, then one block per state. */
.mk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mk-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font-size: 14px; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.mk-jump a:hover { border-color: var(--glow); color: var(--text); }
.mk-jump a span { color: var(--label); font-variant-numeric: tabular-nums; }
.mk-state { margin-top: 56px; }
.mk-state h2 { font-size: clamp(28px, 5vw, 40px); }
.mk-tot { color: var(--text-2); font-size: 15px; margin-top: 10px; }
.mk-tot b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Straight answers: the pricing page's, so the site reads as one piece. */
.faq { margin-top: 26px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; min-height: 44px; font-size: 16px; font-weight: 500; transition: color .15s ease; }
.faq summary:hover { color: var(--glow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 6px; }
.faq summary i { flex-shrink: 0; width: 22px; height: 22px; position: relative; margin-top: 1px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--glow); border-radius: 1px; transition: transform .2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq p { color: var(--text-2); font-size: 15px; line-height: 1.65; padding: 0 30px 18px 2px; }
.faq p a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }

.cover.mk-how { grid-template-columns: 220px 1fr; }
@media (max-width: 720px) { .cover.mk-how { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq summary i::before, .faq summary i::after, .mk-jump a { transition: none !important; } }
