/*
Theme Name: Ban Mines USA Coordinate Board
Theme URI: https://banminesusa.org/
Author: Tier1 Theme System
Description: Standalone coordinate map-board WordPress theme for broad useful information, resource directories, updated addresses, access paths, media references, and source safety publishing.
Version: 1.1.0
Text Domain: banminesusa-org
*/

* {
  box-sizing: border-box;
}

:root {
  --bm-night: #0f241f;
  --bm-ink: #10231f;
  --bm-ivory: #f4f0e4;
  --bm-muted: #bccabe;
  --bm-soft: #d7dfd2;
  --bm-line: rgba(244, 240, 228, .48);
  --bm-teal: #176f8f;
  --bm-blue: #65b4c9;
  --bm-gold: #f0b65f;
}

html {
  scroll-behavior: smooth;
}

body.bm-theme-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bm-night);
  color: var(--bm-ivory);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

.bm-theme-body a {
  color: inherit;
  text-decoration: none;
}

.bm-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 18%, rgba(23, 111, 143, .24), transparent 22%),
    radial-gradient(circle at 80% 68%, rgba(240, 182, 95, .2), transparent 28%),
    linear-gradient(135deg, rgba(244, 240, 228, .08) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--bm-night);
  overflow-x: hidden;
}

.bm-wrap {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.bm-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--bm-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 8px 0 18px;
}

.bm-topline a {
  color: var(--bm-gold);
}

.bm-map-board {
  position: relative;
  min-height: 760px;
  border-top: 2px solid var(--bm-ivory);
  border-bottom: 2px solid var(--bm-ivory);
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 58%, transparent 0 42px, rgba(244, 240, 228, .09) 43px 44px),
    linear-gradient(90deg, rgba(244, 240, 228, .07) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(244, 240, 228, .06) 1px, transparent 1px) 0 0 / 76px 76px,
    rgba(244, 240, 228, .045);
}

.bm-map-board::before {
  content: "";
  position: absolute;
  inset: 60px 9% 90px 7%;
  border: 1px solid rgba(244, 240, 228, .3);
  border-radius: 50% 42% 48% 45%;
  transform: rotate(-8deg);
}

.bm-map-board::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 54%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--bm-teal) 12%, var(--bm-gold) 50%, var(--bm-teal) 88%, transparent);
  transform: rotate(-11deg);
  box-shadow: 0 0 0 1px rgba(244, 240, 228, .16);
}

.bm-identity {
  position: absolute;
  top: 32px;
  left: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 430px;
}

.bm-identity-inline {
  position: relative;
  top: auto;
  left: auto;
}

.bm-identity img {
  display: block;
  width: 82px;
  height: 82px;
}

.bm-identity strong {
  display: block;
  margin: 0 0 6px;
  color: var(--bm-ivory);
  font-size: 28px;
  font-weight: 900;
  line-height: .95;
}

.bm-identity em {
  display: block;
  color: var(--bm-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-hero {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 74px;
  max-width: 720px;
}

.bm-eyebrow {
  margin: 0 0 12px;
  color: var(--bm-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-hero h1,
.bm-archive-heading h1,
.bm-case-copy h1,
.bm-archive-copy h2,
.bm-case-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.bm-hero h1 {
  max-width: 760px;
  font-size: 92px;
  line-height: .84;
}

.bm-hero p:not(.bm-eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--bm-soft);
  font-size: 19px;
  line-height: 1.72;
}

.bm-pin-nav a {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 6px;
  width: 150px;
  color: var(--bm-ivory);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-pin-nav a::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid var(--bm-ivory);
  background: var(--bm-teal);
  transform: rotate(45deg);
  box-shadow: 0 0 0 6px rgba(23, 111, 143, .2);
}

.bm-pin-nav a:hover::before {
  background: var(--bm-gold);
}

.bm-pin-nav span {
  color: var(--bm-gold);
  font-size: 11px;
}

.bm-pin-nav .p1 {
  top: 190px;
  left: 17%;
}

.bm-pin-nav .p2 {
  top: 118px;
  right: 27%;
}

.bm-pin-nav .p3 {
  top: 310px;
  right: 12%;
}

.bm-pin-nav .p4 {
  bottom: 210px;
  right: 30%;
}

.bm-pin-nav .p5 {
  bottom: 132px;
  right: 10%;
}

.bm-pin-nav .p6 {
  bottom: 265px;
  left: 37%;
}

.bm-legend-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  color: var(--bm-ink);
  background: var(--bm-ivory);
}

.bm-legend-strip div {
  padding: 16px 18px;
  border-right: 1px solid rgba(16, 35, 31, .32);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-legend-strip div:last-child {
  border-right: 0;
}

.bm-legend-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--bm-teal);
  font-size: 11px;
}

.bm-route-archive,
.bm-category-routes {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  padding: 62px 0;
  border-bottom: 1px solid var(--bm-line);
}

.bm-route-archive::before,
.bm-category-routes::before {
  content: "";
  position: absolute;
  top: 92px;
  bottom: 80px;
  left: calc(300px + 46px + 18px);
  width: 3px;
  background: linear-gradient(var(--bm-gold), var(--bm-teal));
}

.bm-archive-copy,
.bm-case-copy {
  position: sticky;
  top: 24px;
  align-self: start;
}

.bm-archive-copy h2,
.bm-case-copy h1,
.bm-case-copy h2 {
  font-size: 46px;
  line-height: .92;
}

.bm-archive-copy p:not(.bm-eyebrow),
.bm-case-copy p:not(.bm-eyebrow) {
  margin: 16px 0 0;
  color: #c7d5ca;
}

.bm-route-list {
  display: grid;
  gap: 34px;
}

.bm-route-note {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 28px;
  padding-left: 54px;
}

.bm-route-note::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--bm-ivory);
  background: var(--bm-night);
  transform: rotate(45deg);
}

.bm-route-note time {
  color: var(--bm-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-route-note h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: .98;
  letter-spacing: 0;
}

.bm-route-note h3 a:hover {
  color: var(--bm-gold);
}

.bm-route-note p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #c7d5ca;
  font-size: 16px;
}

.bm-case-file,
.bm-single-file {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 46px;
  padding: 62px 0 30px;
}

.bm-case-meta {
  border-top: 2px solid var(--bm-ivory);
  padding-top: 18px;
}

.bm-case-meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 240, 228, .36);
  color: #c7d5ca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-case-meta b {
  color: var(--bm-gold);
}

.bm-case-meta a:hover {
  color: var(--bm-gold);
}

.bm-archive-map {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  min-height: 430px;
  padding: 34px;
  border-top: 2px solid var(--bm-ivory);
  border-bottom: 2px solid var(--bm-ivory);
  background:
    radial-gradient(circle at 78% 24%, rgba(240, 182, 95, .18), transparent 22%),
    repeating-radial-gradient(circle at 64% 52%, transparent 0 38px, rgba(244, 240, 228, .08) 39px 40px),
    linear-gradient(90deg, rgba(244, 240, 228, .06) 1px, transparent 1px) 0 0 / 64px 64px,
    rgba(244, 240, 228, .04);
}

.bm-archive-map::after {
  content: "";
  position: absolute;
  left: 38%;
  right: 7%;
  top: 55%;
  height: 3px;
  background: linear-gradient(90deg, var(--bm-teal), var(--bm-gold), transparent);
  transform: rotate(-8deg);
}

.bm-archive-heading {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 740px;
}

.bm-archive-heading h1 {
  font-size: 80px;
  line-height: .86;
}

.bm-archive-heading p:not(.bm-eyebrow) {
  margin: 22px 0 0;
  color: var(--bm-soft);
  font-size: 18px;
  line-height: 1.72;
}

.bm-category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--bm-line);
}

.bm-category-rail a {
  display: grid;
  min-width: 176px;
  padding: 18px 20px;
  border-right: 1px solid var(--bm-line);
  color: var(--bm-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bm-category-rail a:last-child {
  border-right: 0;
}

.bm-category-rail span {
  color: var(--bm-gold);
  font-size: 11px;
}

.bm-category-rail a:hover,
.bm-category-rail .is-active {
  background: rgba(244, 240, 228, .08);
  color: var(--bm-ivory);
}

.bm-category-rail-compact {
  margin-bottom: 30px;
  border-top: 1px solid var(--bm-line);
}

.bm-single-reading {
  min-width: 0;
}

.bm-case-body {
  border-top: 2px solid var(--bm-ivory);
  padding-top: 18px;
  columns: 2 280px;
  column-gap: 44px;
}

.bm-case-body p,
.bm-case-body li {
  color: var(--bm-soft);
  font-size: 17px;
  line-height: 1.82;
}

.bm-case-body p {
  margin: 0 0 16px;
}

.bm-case-body h2,
.bm-case-body h3,
.bm-case-body h4 {
  color: var(--bm-ivory);
  break-after: avoid;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.bm-case-body h2 {
  margin: 6px 0 14px;
  font-size: 32px;
}

.bm-case-body a {
  color: var(--bm-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.bm-related-routes {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--bm-line);
}

.bm-mini-routes {
  display: grid;
  gap: 0;
}

.bm-mini-routes article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(244, 240, 228, .24);
}

.bm-mini-routes time {
  color: var(--bm-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bm-empty {
  margin: 0;
  max-width: 620px;
  color: var(--bm-soft);
  font-size: 18px;
}

.bm-navigation {
  margin-top: 28px;
  color: var(--bm-gold);
  font-weight: 900;
}

.bm-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--bm-line);
  padding-top: 16px;
}

.bm-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 0;
  color: var(--bm-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .bm-map-board {
    min-height: 900px;
  }

  .bm-identity,
  .bm-hero {
    position: relative;
    inset: auto;
    padding: 26px;
  }

  .bm-pin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
  }

  .bm-pin-nav a {
    position: relative;
    inset: auto !important;
    width: auto;
  }

  .bm-route-archive,
  .bm-category-routes,
  .bm-case-file,
  .bm-single-file,
  .bm-archive-map {
    grid-template-columns: 1fr;
  }

  .bm-route-archive::before,
  .bm-category-routes::before {
    left: 13px;
  }

  .bm-archive-copy,
  .bm-case-copy {
    position: static;
  }

  .bm-legend-strip {
    grid-template-columns: 1fr;
  }

  .bm-archive-map::after {
    left: 10%;
  }
}

@media (max-width: 700px) {
  .bm-wrap {
    width: min(100% - 24px, 1240px);
  }

  .bm-topline,
  .bm-foot {
    display: grid;
  }

  .bm-hero h1,
  .bm-archive-heading h1 {
    font-size: 48px;
  }

  .bm-route-note h3,
  .bm-archive-copy h2,
  .bm-case-copy h1,
  .bm-case-copy h2 {
    font-size: 34px;
  }

  .bm-pin-nav {
    grid-template-columns: 1fr;
  }

  .bm-route-note {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 42px;
  }

  .bm-case-meta div,
  .bm-mini-routes article {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bm-category-rail a {
    min-width: 50%;
  }
}
