.oldwood-map-page {
  background: var(--home-paper);
}

.oldwood-map-page .map-header {
  background: rgba(16, 37, 28, 0.2);
}

.map-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #143528;
  color: var(--home-paper);
}

.map-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 25, 18, 0.52), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(119, 143, 101, 0.28), transparent 46%);
  content: "";
  pointer-events: none;
}

.map-hero-contours {
  position: absolute;
  inset: -24%;
  opacity: 0.25;
  background-image: repeating-radial-gradient(ellipse at 76% 62%, transparent 0 26px, rgba(242, 234, 217, 0.44) 27px 28px, transparent 29px 57px);
  transform: rotate(-14deg) scale(1.2);
}

.map-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.52fr);
  align-items: end;
  gap: 100px;
  min-height: 560px;
  padding-top: 140px;
  padding-bottom: 72px;
}

.map-hero h1 {
  max-width: 780px;
  margin-bottom: 25px;
  color: var(--home-paper);
  font-size: clamp(3.9rem, 7.7vw, 7.8rem);
  line-height: 0.91;
}

.map-hero h1 em {
  color: var(--home-copper-soft);
  font-style: italic;
}

.map-hero p:not(.home-kicker) {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(243, 240, 232, 0.73);
  font-size: 1rem;
  line-height: 1.62;
}

.map-hero-status {
  display: grid;
  border-top: 1px solid rgba(243, 240, 232, 0.35);
}

.map-hero-status div {
  display: grid;
  grid-template-columns: minmax(112px, 0.75fr) 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.2);
}

.map-hero-status span {
  color: rgba(243, 240, 232, 0.5);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-hero-status strong {
  color: var(--home-paper);
  font-size: 0.77rem;
}

.map-workspace {
  padding: 100px 0 116px;
  background: #163b2d;
}

.map-workspace-heading,
.map-reporting-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.7fr);
  align-items: end;
  gap: 90px;
  margin-bottom: 42px;
}

.map-workspace-heading h2,
.map-reporting-heading h2,
.map-disclosure h2,
.map-cta h2 {
  margin-bottom: 0;
  line-height: 0.96;
}

.map-workspace-heading h2 {
  color: var(--home-paper);
  font-size: clamp(3rem, 5.4vw, 5.5rem);
}

.map-workspace-heading > p {
  margin: 0 0 6px;
  color: rgba(243, 240, 232, 0.63);
  font-size: 0.87rem;
  line-height: 1.6;
}

.map-terrain {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(340px, 0.58fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.25);
  background: var(--home-ink);
  box-shadow: 0 36px 90px rgba(5, 20, 14, 0.28);
}

.map-terrain-stage {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #132c24;
}

.map-terrain-stage:active {
  cursor: grabbing;
}

.map-terrain-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 24, 18, 0.52), transparent 17%, transparent 68%, rgba(8, 24, 18, 0.72));
  content: "";
  pointer-events: none;
}

.map-terrain-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.map-stage-topbar,
.map-stage-location,
.map-stage-chip,
.map-terrain-reset,
.map-terrain-legend,
.map-terrain-hover,
.map-terrain-help {
  position: absolute;
  z-index: 2;
}

.map-stage-topbar {
  top: 24px;
  left: 26px;
  right: 156px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(243, 240, 232, 0.72);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-stage-topbar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.map-stage-location {
  bottom: 67px;
  left: 28px;
  display: grid;
  gap: 4px;
  color: var(--home-paper);
}

.map-stage-location span,
.map-stage-location small {
  color: rgba(243, 240, 232, 0.5);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.map-stage-location strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.map-stage-chip { top: 63px; left: 26px; }

.map-terrain-reset {
  top: 19px;
  right: 26px;
  padding: 9px 11px;
  border: 1px solid rgba(243, 240, 232, 0.3);
  background: rgba(16, 37, 28, 0.48);
  color: var(--home-paper);
  cursor: pointer;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-terrain-reset:hover {
  background: var(--home-copper);
  color: var(--home-ink);
}

.map-terrain-legend {
  right: 27px;
  bottom: 61px;
  width: 168px;
  color: rgba(243, 240, 232, 0.58);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.54rem;
  text-transform: uppercase;
}

.map-terrain-legend > i {
  display: block;
  height: 6px;
  margin: 10px 0 6px;
  background: linear-gradient(90deg, #758d79, #d1a166, #a9c887);
}

.map-terrain-legend div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 0.47rem;
}

.map-terrain-hover {
  right: 27px;
  bottom: 25px;
  color: rgba(243, 240, 232, 0.5);
  font-size: 0.67rem;
}

.map-terrain-help {
  bottom: 23px;
  left: 27px;
  margin: 0;
  color: rgba(243, 240, 232, 0.48);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.map-inspector {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
  background: var(--home-white);
  color: var(--home-ink);
}

.map-inspector-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--home-border);
}

.map-inspector-title > div { display: grid; gap: 9px; }

.map-inspector-title strong {
  max-width: 210px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.map-inspector-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-border);
  color: rgba(16, 37, 28, 0.63);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.map-readiness {
  padding: 20px 0 19px;
  border-bottom: 1px solid var(--home-border);
}

.map-readiness > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.map-readiness strong {
  color: var(--home-ink-2);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.45rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.map-readiness-track {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  background: #d8dbd0;
}

.map-readiness-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a46737, #a8c484);
  transition: width 420ms ease;
}

.map-inspector-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin: 23px 0;
}

.map-inspector-stats div { display: grid; gap: 5px; }

.map-inspector-stats dt {
  color: rgba(16, 37, 28, 0.48);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-inspector-stats dd {
  margin: 0;
  color: var(--home-ink-2);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.25;
}

.map-inspector-record {
  padding: 14px 0;
  border-top: 1px solid var(--home-border);
}

.map-inspector-record p {
  margin: 7px 0 0;
  color: rgba(16, 37, 28, 0.68);
  font-size: 0.76rem;
  line-height: 1.4;
}

.map-inspector-actions {
  display: grid;
  gap: 15px;
  margin-top: auto;
  padding-top: 18px;
}

.map-inspector-actions .home-button { width: 100%; }

.map-inspector-actions .home-text-link {
  justify-self: start;
  color: var(--home-ink);
}

.map-inspector-note {
  margin: 15px 0 0;
  color: rgba(16, 37, 28, 0.47);
  font-size: 0.63rem;
  line-height: 1.45;
}

.map-reporting {
  padding: 120px 0;
  background: var(--home-paper);
}

.map-reporting-heading h2 { max-width: 780px; color: var(--home-ink); font-size: clamp(3rem, 5.4vw, 5.5rem); }

.map-reporting-heading > p {
  margin: 0 0 7px;
  color: rgba(16, 37, 28, 0.64);
  font-size: 0.91rem;
  line-height: 1.65;
}

.map-record-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.map-record-path article {
  position: relative;
  min-height: 282px;
  padding: 23px 22px;
  border-right: 1px solid var(--home-border);
}

.map-record-path article:last-child { border-right: 0; }

.map-record-path article > span {
  color: #a46737;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.62rem;
}

.map-record-path h3 {
  margin: 62px 0 13px;
  color: var(--home-ink);
  font-size: 1.8rem;
  line-height: 1;
}

.map-record-path p {
  max-width: 230px;
  margin-bottom: 0;
  color: rgba(16, 37, 28, 0.65);
  font-size: 0.82rem;
}

.map-record-path small {
  position: absolute;
  bottom: 22px;
  left: 22px;
  color: rgba(16, 37, 28, 0.47);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.53rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-disclosure {
  padding: 116px 0;
  background: var(--home-ink-2);
}

.map-disclosure-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.88fr);
  gap: 120px;
}

.map-disclosure h2 {
  max-width: 630px;
  color: var(--home-paper);
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.map-disclosure-list {
  display: grid;
  border-top: 1px solid rgba(243, 240, 232, 0.2);
}

.map-disclosure-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.16);
}

.map-disclosure-list p {
  margin: 0;
  color: rgba(243, 240, 232, 0.67);
  font-size: 0.85rem;
  line-height: 1.52;
}

.map-disclosure-tag {
  align-self: start;
  width: fit-content;
  padding: 7px 9px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-disclosure-tag-live { background: rgba(147, 178, 105, 0.17); color: #c6dda9; }
.map-disclosure-tag-next { background: rgba(211, 154, 94, 0.17); color: var(--home-copper-soft); }
.map-disclosure-tag-later { background: rgba(243, 240, 232, 0.1); color: rgba(243, 240, 232, 0.7); }

.map-cta {
  padding: 130px 0;
  background: #d9ddd1;
}

.map-cta-inner { max-width: var(--home-shell); }

.map-cta h2 {
  max-width: 890px;
  color: var(--home-ink);
  font-size: clamp(4rem, 7.2vw, 7.2rem);
}

.map-cta p:not(.home-kicker) {
  max-width: 570px;
  margin: 26px 0 32px;
  color: rgba(16, 37, 28, 0.68);
  font-size: 0.97rem;
  line-height: 1.63;
}

.map-terrain-stage:focus-visible,
.map-terrain-reset:focus-visible {
  outline: 3px solid rgba(211, 154, 94, 0.75);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .map-hero-inner,
  .map-workspace-heading,
  .map-reporting-heading,
  .map-disclosure-grid { gap: 54px; }
  .map-terrain { grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr); }
  .map-inspector { padding: 24px; }
  .map-record-path { grid-template-columns: repeat(2, 1fr); }
  .map-record-path article:nth-child(2) { border-right: 0; }
  .map-record-path article:nth-child(-n+2) { border-bottom: 1px solid var(--home-border); }
}

@media (max-width: 800px) {
  .map-hero-inner,
  .map-workspace-heading,
  .map-reporting-heading,
  .map-disclosure-grid { grid-template-columns: 1fr; }
  .map-hero-inner { align-items: start; gap: 42px; min-height: 0; padding-top: 132px; padding-bottom: 68px; }
  .map-terrain { grid-template-columns: 1fr; }
  .map-terrain-stage { min-height: 610px; }
  .map-inspector { min-height: 600px; }
  .map-disclosure-grid { gap: 46px; }
}

@media (max-width: 620px) {
  .map-hero { min-height: 0; }
  .map-hero h1 { font-size: clamp(3.3rem, 15vw, 5.2rem); }
  .map-hero-inner { width: min(var(--home-shell), calc(100% - 28px)); padding-top: 108px; }
  .map-hero-status div { grid-template-columns: 1fr; gap: 3px; }
  .map-workspace,
  .map-reporting,
  .map-disclosure,
  .map-cta { padding: 82px 0; }
  .map-workspace-heading,
  .map-reporting-heading { margin-bottom: 34px; }
  .map-terrain { min-height: 0; }
  .map-terrain-stage { min-height: 515px; }
  .map-stage-topbar { top: 15px; left: 14px; right: 92px; align-items: flex-start; flex-direction: column; gap: 6px; font-size: 0.49rem; }
  .map-stage-topbar > span:last-child { display: none; }
  .map-stage-chip { top: 67px; left: 14px; }
  .map-terrain-reset { top: 14px; right: 14px; }
  .map-stage-location { bottom: 65px; left: 15px; }
  .map-stage-location strong { font-size: 1.3rem; }
  .map-terrain-legend { display: none; }
  .map-terrain-hover { right: 15px; bottom: 40px; left: 15px; font-size: 0.57rem; }
  .map-terrain-help { right: 15px; bottom: 18px; left: 15px; text-align: center; font-size: 0.48rem; }
  .map-inspector { min-height: 0; padding: 22px 18px; }
  .map-inspector-stats { gap: 15px 12px; }
  .map-record-path { grid-template-columns: 1fr; }
  .map-record-path article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--home-border); }
  .map-record-path article:nth-child(2) { border-right: 0; }
  .map-record-path article:last-child { border-bottom: 0; }
  .map-record-path h3 { margin-top: 44px; }
  .map-disclosure-list article { grid-template-columns: 1fr; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .oldwood-map-page *,
  .oldwood-map-page *::before,
  .oldwood-map-page *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
