/* Maker Kits public pages */
.mk-hero {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 1.6rem;
  margin: 1rem 0 1.5rem;
  background: linear-gradient(135deg, rgba(0,0,0,.035), rgba(0,0,0,.01));
}
.mk-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; opacity: .75; margin-bottom: .25rem; }
.mk-hero h1 { margin-top: 0; border-bottom: 0 !important; padding-bottom: 0 !important; }
.mk-hero__intro { font-size: 1.05rem; max-width: 62rem; }
.mk-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.mk-warning-card,
.mk-card,
.mk-kit-card,
.mk-stat-card {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.mk-warning-card { padding: .9rem 1rem; margin: 1rem 0; background: rgba(0,0,0,.025); }
.mk-grid { display: grid; gap: 1rem; margin: 1rem 0; }
.mk-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mk-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mk-card { padding: 1rem; }
.mk-card h2, .mk-kit-card h2, .mk-doc-card h2 { margin-top: 0; border-bottom: 0 !important; padding-bottom: 0 !important; }
.mk-card--link { text-decoration: none; color: inherit; display: block; }
.mk-card--link:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mk-kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.mk-kit-card { overflow: hidden; display: flex; flex-direction: column; }
.mk-kit-card__image { width: 100%; height: 190px; object-fit: cover; background: rgba(0,0,0,.04); }
.mk-kit-card__body { padding: 1rem; }
.mk-meta-list { margin: .75rem 0; display: grid; gap: .4rem; }
.mk-meta-list div { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; }
.mk-meta-list dt { font-weight: 700; }
.mk-meta-list dd { margin: 0; }
.mk-muted { opacity: .75; font-size: .92rem; }
.mk-doc-list { display: grid; gap: 1rem; margin: 1rem 0; }
.mk-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.mk-stat-card { padding: 1rem; text-align: center; }
.mk-stat-card__value { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; }
.mk-stat-card__label { display: block; margin-top: .35rem; font-size: .9rem; opacity: .8; }
.mk-popup-title { font-weight: 800; margin-bottom: .25rem; }
.mk-popup-line { margin: .15rem 0; }

/* Make the public impact/map pages feel like a real public dashboard, not a narrow article. */
.maker-kits-wide .page,
.maker-kits-wide .page__inner-wrap,
.maker-kits-wide .archive,
.maker-kits-map-page .page,
.maker-kits-map-page .page__inner-wrap,
.maker-kits-map-page .archive {
  max-width: none !important;
}
.maker-kits-wide .page__content,
.maker-kits-map-page .page__content {
  max-width: min(1740px, calc(100vw - 1rem));
  margin-left: auto;
  margin-right: auto;
}

.mk-map-page-title {
  max-width: 980px;
  margin: 0 auto 1rem;
  text-align: center;
}
.mk-map-page-title h1 {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: .35rem;
}
.mk-map-page-title p { margin-bottom: 0; }
.mk-map-dashboard {
  width: min(1740px, calc(100vw - 1rem));
  margin: 1rem auto 1.5rem;
}
.mk-map-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.mk-mini-stat {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  padding: .85rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.035);
}
.mk-mini-stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.mk-mini-stat__label {
  display: block;
  margin-top: .25rem;
  font-size: .78rem;
  opacity: .75;
}
.mk-map-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  gap: .6rem;
  align-items: center;
  margin: .75rem 0;
}
.mk-map-search {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  padding: .65rem .9rem;
  font-size: .95rem;
}
.mk-map-button {
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  border-radius: 999px;
  padding: .58rem .85rem;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.mk-map-button:hover { background: rgba(0,0,0,.04); }
.mk-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: stretch;
}
.mk-map-shell {
  position: relative;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.035);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.mk-map {
  width: 100%;
  min-height: 740px;
  height: min(80vh, 900px);
  background: rgba(0,0,0,.03);
}
.mk-map-side-panel {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  overflow: hidden;
  min-height: 740px;
  height: min(80vh, 900px);
  display: flex;
  flex-direction: column;
}
.mk-map-panel-head {
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  background: rgba(0,0,0,.025);
}
.mk-map-panel-head h2 {
  margin: 0;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  font-size: 1.05rem;
}
.mk-map-panel-head p { margin: .35rem 0 0; }
.mk-map-list {
  overflow-y: auto;
  padding: .5rem;
}
.mk-map-list-item {
  width: 100%;
  text-align: left;
  display: block;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: .6rem .65rem;
  margin-bottom: .25rem;
}
.mk-map-list-item:hover { background: rgba(0,0,0,.05); }
.mk-map-list-item strong { display: block; line-height: 1.25; }
.mk-map-list-item span { display: block; font-size: .78rem; opacity: .72; margin-top: .15rem; }
.mk-map-list-empty { padding: 1rem; opacity: .75; }
.mk-map-legend {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  align-items: center;
  margin: .75rem 0;
  font-size: .85rem;
}
.mk-legend-dot {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  vertical-align: -0.1rem;
  margin-right: .25rem;
  background: #2f6f9f;
}
.mk-legend-dot--cluster { background: #555; }
.mk-legend-dot--repeat { background: #b35a00; }
.mk-map-marker {
  border-radius: 50%;
  background: #2f6f9f;
  color: #fff;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
.mk-map-marker--repeat { background: #b35a00; }
.mk-popup-groups {
  margin: .35rem 0 0;
  padding-left: 1.1rem;
  max-height: 180px;
  overflow-y: auto;
}
.mk-popup-groups li { margin: .18rem 0; }
.mk-popup-groups strong { display: inline; }
.mk-popup-group-district {
  display: block;
  font-size: .76rem;
  opacity: .72;
  margin-top: .05rem;
}
.mk-popup-badge {
  display: inline-block;
  border-radius: 999px;
  padding: .08rem .38rem;
  background: rgba(0,0,0,.08);
  font-size: .76rem;
  margin-left: .25rem;
}
.mk-map-note {
  margin: .8rem 0 0;
  padding: .75rem .9rem;
  border-left: 4px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.025);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background-color: rgba(47,111,159,.22); }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(47,111,159,.82);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .mk-map-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mk-map-layout { grid-template-columns: 1fr; }
  .mk-map-side-panel { min-height: 360px; height: 430px; }
}
@media (max-width: 900px) {
  .mk-grid--2, .mk-grid--3, .mk-kit-grid, .mk-stat-grid { grid-template-columns: 1fr; }
  .mk-map-toolbar { grid-template-columns: 1fr; }
  .mk-map { min-height: 520px; height: 68vh; }
  .mk-map-summary { grid-template-columns: 1fr; }
}

/* Final dashboard alignment: centre the map area in the browser viewport, not inside the theme article column. */
.maker-kits-map-page .page__content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.maker-kits-map-page .mk-map-dashboard {
  box-sizing: border-box;
  width: calc(100vw - 2rem);
  max-width: 1680px;
  margin: 1rem 0 1.5rem 50%;
  transform: translateX(-50%);
}
.maker-kits-map-page .mk-map-summary {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.maker-kits-map-page .mk-map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
}
@media (max-width: 1200px) {
  .maker-kits-map-page .mk-map-summary { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .maker-kits-map-page .mk-map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .maker-kits-map-page .mk-map-dashboard { width: calc(100vw - 1rem); }
  .maker-kits-map-page .mk-map-summary { grid-template-columns: 1fr; }
}


/* Ordering and pricing */
.mk-section-intro { max-width: 760px; }
.mk-order-status-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
}
.mk-order-status-card h2 {
  margin-top: 0;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.mk-order-status-card__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.mk-status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 800;
  font-size: .85rem;
  border: 1px solid rgba(0,0,0,.16);
}
.mk-status-pill--closed { background: rgba(0,0,0,.06); }
.mk-card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.mk-price-card { margin: 1rem 0 1.25rem; }
.mk-table-wrap { overflow-x: auto; }
.mk-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 0;
}
.mk-price-table th,
.mk-price-table td {
  border: 1px solid rgba(0,0,0,.12);
  padding: .65rem .75rem;
  text-align: left;
  vertical-align: top;
}
.mk-price-table th { background: rgba(0,0,0,.035); }
.mk-next-links { margin-top: 1.25rem; }
@media (max-width: 900px) {
  .mk-order-status-card { grid-template-columns: 1fr; }
  .mk-order-status-card__actions { justify-content: flex-start; }
  .maker-kits-wide .page__content,
  .maker-kits-map-page .page__content { width: min(100%, calc(100vw - 1.25rem)); }
}

/* Refined public impact map sizing for normal 100% browser zoom. */
.maker-kits-map-page .mk-map-dashboard {
  width: min(1560px, calc(100vw - 2rem));
  max-width: none;
  margin: 1rem 0 1.5rem 50%;
  transform: translateX(-50%);
}
.maker-kits-map-page .mk-map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 330px);
  gap: .75rem;
}
.maker-kits-map-page .mk-map,
.maker-kits-map-page .mk-map-side-panel {
  min-height: 660px;
  height: min(74vh, 800px);
}
@media (max-width: 1200px) {
  .maker-kits-map-page .mk-map-layout { grid-template-columns: 1fr; }
  .maker-kits-map-page .mk-map-side-panel { min-height: 340px; height: 420px; }
}

/* Current quantity-based price list */
.mk-price-notes {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.025);
  padding: .8rem .95rem;
  margin: .85rem 0;
}
.mk-price-notes ul {
  margin: .35rem 0 0 1.2rem;
}
.mk-price-table--tiers th,
.mk-price-table--tiers td {
  text-align: center;
  white-space: nowrap;
}
.mk-price-table--tiers th:first-child,
.mk-price-table--tiers td:first-child,
.mk-price-table--tiers th:nth-child(2),
.mk-price-table--tiers td:nth-child(2) {
  width: 7rem;
}
.mk-price-table--tiers td strong {
  font-size: 1rem;
}
@media (max-width: 700px) {
  .mk-price-table--tiers th,
  .mk-price-table--tiers td {
    padding: .55rem .5rem;
    font-size: .86rem;
  }
}


/* Kit card alignment and readability fixes */
.mk-kit-grid {
  align-items: stretch;
}
.mk-kit-card {
  height: 100%;
}
.mk-kit-card__body {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  height: 100%;
}
.mk-kit-card__body h2,
.mk-kit-card__body h3,
.mk-kit-card__body p {
  margin-bottom: 0;
}
.mk-kit-card__body h3 {
  margin-top: .25rem;
  font-size: 1rem;
}
.mk-meta-list {
  margin: .85rem 0 .4rem;
  display: grid;
  gap: .5rem;
}
.mk-meta-list div {
  display: grid;
  grid-template-columns: minmax(6.4rem, 8rem) minmax(0, 1fr);
  column-gap: .75rem;
  align-items: start;
  padding: .45rem .55rem;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  background: rgba(0,0,0,.018);
}
.mk-meta-list dt {
  margin: 0;
  font-weight: 800;
  font-size: .83rem;
  line-height: 1.35;
}
.mk-meta-list dd {
  margin: 0;
  text-align: left;
  font-size: .9rem;
  line-height: 1.35;
}
.mk-kit-card ul {
  margin: .15rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.45;
}
.mk-kit-card li + li {
  margin-top: .18rem;
}
.mk-card-actions {
  margin-top: auto;
  padding-top: .85rem;
}
@media (max-width: 520px) {
  .mk-meta-list div {
    grid-template-columns: 1fr;
    row-gap: .15rem;
  }
}


/* Refinement: kit card row alignment and fuller price table */
.mk-meta-list {
  grid-auto-rows: auto;
}
.mk-meta-list div {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
}
.mk-meta-list dt,
.mk-meta-list dd {
  overflow-wrap: anywhere;
}
.mk-kit-card__body {
  justify-content: flex-start;
}
.mk-kit-card__body > ul {
  margin-top: -.25rem;
}

.mk-price-card {
  padding: 1.15rem;
  overflow: hidden;
}
.mk-price-card > h2 {
  margin-top: 0;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.mk-price-card .mk-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 12px;
  background: #fff;
}
.mk-price-card table.mk-price-table,
.mk-price-card table.mk-price-table--tiers {
  display: table !important;
  width: 100% !important;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.mk-price-card .mk-price-table th,
.mk-price-card .mk-price-table td {
  border: 0 !important;
  border-right: 1px solid rgba(0,0,0,.12) !important;
  border-bottom: 1px solid rgba(0,0,0,.12) !important;
  padding: .75rem .65rem;
  text-align: center;
  vertical-align: middle;
}
.mk-price-card .mk-price-table th:last-child,
.mk-price-card .mk-price-table td:last-child {
  border-right: 0 !important;
}
.mk-price-card .mk-price-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
.mk-price-card .mk-price-table th {
  background: rgba(0,0,0,.045);
  font-weight: 800;
}
.mk-price-card .mk-price-table td:nth-child(1),
.mk-price-card .mk-price-table td:nth-child(2),
.mk-price-card .mk-price-table th:nth-child(1),
.mk-price-card .mk-price-table th:nth-child(2) {
  width: 9rem;
}
.mk-price-card .mk-price-table td strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}
.mk-price-card .mk-price-table td .mk-muted {
  display: block;
  margin-top: .2rem;
  font-size: .82rem;
  opacity: .72;
}
.mk-price-notes {
  max-width: none;
}
@media (max-width: 700px) {
  .mk-price-card .mk-price-table th,
  .mk-price-card .mk-price-table td {
    padding: .6rem .5rem;
  }
  .mk-meta-list div {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


/* Homepage navigation cards moved directly under hero */
.mk-hero { margin-bottom: 1rem; }
.mk-next-links--top { margin: 0 0 1.25rem; }
.mk-next-links--top .mk-card { min-height: 8.2rem; }

/* Price table: lot price is the main value because groups pay by lot. */
.mk-price-card {
  padding: 1.25rem;
}
.mk-price-card .mk-table-wrap {
  width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 12px;
  background: #fff;
}
.mk-price-card table.mk-price-table,
.mk-price-card table.mk-price-table--tiers {
  width: 100% !important;
  min-width: 780px;
  table-layout: fixed;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.mk-price-card .mk-price-table th,
.mk-price-card .mk-price-table td {
  border: 0 !important;
  border-right: 1px solid rgba(0,0,0,.12) !important;
  border-bottom: 1px solid rgba(0,0,0,.12) !important;
  padding: .8rem .65rem;
  text-align: center;
  vertical-align: middle;
}
.mk-price-card .mk-price-table th:last-child,
.mk-price-card .mk-price-table td:last-child { border-right: 0 !important; }
.mk-price-card .mk-price-table tbody tr:last-child td { border-bottom: 0 !important; }
.mk-price-card .mk-price-table th {
  background: rgba(0,0,0,.045);
  font-weight: 800;
}
.mk-price-card .mk-price-table th:nth-child(1),
.mk-price-card .mk-price-table td:nth-child(1),
.mk-price-card .mk-price-table th:nth-child(2),
.mk-price-card .mk-price-table td:nth-child(2) { width: 7rem; }
.mk-price-lot {
  display: block;
  font-size: 1.16rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: .01em;
}
.mk-price-unit {
  display: block;
  margin-top: .22rem;
  font-size: .78rem;
  opacity: .68;
}
@media (max-width: 700px) {
  .mk-price-card .mk-price-table th,
  .mk-price-card .mk-price-table td {
    padding: .65rem .5rem;
  }
  .mk-price-lot { font-size: 1.02rem; }
}


/* Maker Kits page-wide layout and compact cross-links */
.maker-kits-home-page .page__content,
.maker-kits-subpage .page__content {
  max-width: min(1320px, calc(100vw - 2rem)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.maker-kits-home-page .page,
.maker-kits-home-page .page__inner-wrap,
.maker-kits-home-page .archive,
.maker-kits-subpage .page,
.maker-kits-subpage .page__inner-wrap,
.maker-kits-subpage .archive {
  max-width: none !important;
}
.mk-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin: .5rem 0 1.25rem;
  padding: .65rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.018);
}
.mk-subnav__label {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
  margin: 0 .15rem 0 .25rem;
}
.mk-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}
.mk-subnav a:hover {
  background: rgba(0,0,0,.045);
}
@media (max-width: 700px) {
  .maker-kits-home-page .page__content,
  .maker-kits-subpage .page__content {
    max-width: min(100%, calc(100vw - 1rem)) !important;
  }
  .mk-subnav {
    border-radius: 16px;
  }
  .mk-subnav__label {
    width: 100%;
    margin-bottom: .1rem;
  }
}
