@import url('./fonts/redesign/fonts.css');

/* The supplied visual system, applied to the working public application. */
body.mapstl-redesign:not(.mapstl-prototype) {
  --ink: #193246;
  --muted: #607585;
  --green: #078c39;
  --green-dark: #087b34;
  --lime: #e9f8e7;
  --border: #dce5ed;
  --bg: #f0f4f8;
  --white: #fff;
  --blue: #3485a4;
  --paper: #f0f4f8;
  --line: #dce5ed;
  --body-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

/* Visibility belongs to the application state, including standalone map pages. */
body.mapstl-redesign:not(.mapstl-prototype) [hidden] { display: none !important; }

body.mapstl-redesign:not(.mapstl-prototype) :where(#generator-page, #favorites-page, #info-page, #account-page, .site-footer, dialog) :is(h1, h2, h3, h4) {
  font-family: var(--heading-font);
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#generator-page, #favorites-page, #info-page, #account-page, dialog) .button {
  border-radius: 6px;
  font-weight: 650;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#generator-page, #favorites-page, #info-page, #account-page, dialog) .button.primary {
  background: linear-gradient(135deg, #159e39, #078b3e);
  border-color: #078b3e;
  color: #fff;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#generator-page, #favorites-page, #info-page, #account-page, dialog) .button.primary:hover:not(:disabled) {
  background: #087b34;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#favorites-page, #info-page, #account-page, dialog) .button.secondary {
  background: #fff;
  border-color: #cfdde5;
  color: #266344;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#favorites-page, #info-page, #account-page, dialog) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #24854d;
  outline-offset: 3px;
}

/* Keep the established disclosure and language controls at every breakpoint. */
body.mapstl-redesign:not(.mapstl-prototype) .site-header {
  position: relative;
  height: 70px;
  min-height: 70px;
  padding: 8px max(24px, calc((100% - 1456px) / 2));
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid #dce5ed;
  box-shadow: 0 1px 8px #142d3b06;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .brand img { width: 224px; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-menu { gap: 12px; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav { gap: 2px; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav > a,
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-menu > summary,
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-actions > .button {
  min-height: 40px;
  height: 40px;
  padding-inline: 10px;
  font-size: 15px;
  font-weight: 550;
  border-radius: 6px;
  background: transparent;
  color: #4e6374;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav > a:hover,
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-menu > summary:hover {
  background: #f0f5f7;
  color: #087b34;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav > a.active,
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-menu:is(.is-current, [open]) > summary {
  color: #087b35;
  background: #edf9ec;
  font-weight: 700;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header #account-button {
  font-size: 15px;
  border-color: #d2dee6;
  background: #fff;
  color: #365366;
  padding-inline: 12px;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header #account-button:hover { background: #edf7ee; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch {
  height: 40px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid #e0e8ee;
  border-radius: 6px;
  background: #f0f4f7;
  box-shadow: none;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch a {
  height: 32px;
  min-width: 51px;
  padding: 0 6px;
  gap: 5px;
  font-size: 13px;
  border-radius: 3px;
  color: #617888;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch a.active {
  background: #fff;
  color: #078339;
  box-shadow: 0 1px 4px #19324615;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch .language-flag { width: 22px; height: 15px; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-links {
  border-color: #dce5ed;
  border-radius: 9px;
  box-shadow: 0 12px 32px #19324620;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav .header-print-links a { color: #29495a; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-links span { color: #627886; }
body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav .header-print-links a:is(:hover, .active) {
  background: #edf7ee;
  color: #087b35;
}

/* Account, saved places and information pages retain their existing layouts. */
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) > .page-heading { padding-block: 32px 26px; }
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page, #info-page) .eyebrow {
  color: #367955;
  font-size: 12px;
  letter-spacing: .1em;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page, #info-page) .page-title {
  color: #193b4b;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) .page-heading > p:not(.eyebrow),
body.mapstl-redesign:not(.mapstl-prototype) #info-page .page-lead { color: #566d7c; font-size: 17px; line-height: 1.65; }
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.surface, .private-favorites, .saved-map-card, .place-card, .profile-card),
body.mapstl-redesign:not(.mapstl-prototype) #info-page :is(.info-card, .model-purchase) {
  border-color: #dce6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #173c5706;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.place-copy, .saved-map-copy) { padding: 21px; }
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.saved-map-copy p, .record p, .record small, .empty-state, .favorites-hint) {
  color: #607585;
  font-size: 14px;
  line-height: 1.65;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.saved-map-copy h2, .saved-map-copy h3, .place-copy h2) {
  color: #234355;
  line-height: 1.3;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.saved-map-poster, .place-visual) { background: #f2f6f8; }
body.mapstl-redesign:not(.mapstl-prototype) #account-page .profile-editor { background: #fafcfd; border-color: #dce6eb; }
body.mapstl-redesign:not(.mapstl-prototype) #account-page .profile-badge { background: #edf7ee; color: #3a7351; }
/* Campaign sections own their light/dark palette in gift-campaigns.css. */
body.mapstl-redesign:not(.mapstl-prototype) #info-page :is(p, li):not(:where(.gift-campaign *)) { color: #566d7c; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page :is(h1, h2, h3):not(:where(.gift-campaign *)) { color: #193b4b; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .info-intro h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.2; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .info-card { padding: 24px; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .info-card h2 { font-size: 21px; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .info-card :is(p, li) { font-size: 16px; line-height: 1.7; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .notice { background: #edf7ee; border: 1px solid #d4e6d7; color: #42644e; }
body.mapstl-redesign:not(.mapstl-prototype) #info-page .model-photos img { background: #f2f6f8; }

/* Shared modal forms: no change to submission, validation or visibility. */
body.mapstl-redesign:not(.mapstl-prototype) :is(#modal, #support-modal, #print-request-modal) {
  border: 1px solid #d3e0e8;
  border-radius: 14px;
  color: #193246;
  background: #fff;
  box-shadow: 0 22px 90px #17354438;
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#modal, #support-modal, #print-request-modal)::backdrop {
  background: #102e406b;
  backdrop-filter: blur(3px);
}
body.mapstl-redesign:not(.mapstl-prototype) :is(#modal, #support-modal) .modal-heading h2 { font-size: 25px; line-height: 1.3; }
body.mapstl-redesign:not(.mapstl-prototype) :is(#modal-close, #support-close, #print-request-modal [data-print-close]) {
  min-width: 40px;
  min-height: 40px;
  color: #476574;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #f5f8fa;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) .form-stack {
  gap: 18px;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) .form-stack label {
  font-size: 15px;
  color: #365466;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) .form-stack :is(input:not([type=checkbox]):not([type=color]), textarea, select),
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) :is(input:not([type=radio]):not([type=checkbox]), textarea) {
  border: 1px solid #cedde6;
  border-radius: 6px;
  min-height: 44px;
  color: #193246;
  background: #fff;
  font-size: 16px;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) :is(.form-message, .empty-state) {
  color: #607585;
  font-size: 14px;
}
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) .text-button { color: #087b34; }
body.mapstl-redesign:not(.mapstl-prototype) :where(#account-page, #modal, #support-modal) .auth-legal {
  background: #f5f9fb;
  border-color: #dce5ed;
}
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) { border-color: #dce5ed; background: #fff; border-radius: 12px; }
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) :is(.tr-privacy, .tr-map-summary, .tr-route-option) {
  background: #f6f9fb;
  border-color: #dce5ed;
}
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) :is(.tr-intro, .tr-note, .tr-payment-note) { color: #607585; }
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) .tr-submit {
  background: #b8582e;
  color: #fff;
  border-radius: 6px;
}
body.mapstl-redesign:not(.mapstl-prototype) .tr-form:not(:where(.gift-campaign *)) .tr-submit:hover:not(:disabled) { background: #9e4521; }
body.mapstl-redesign:not(.mapstl-prototype) .tr-colours:not(:where(.gift-campaign *)) input:checked + span { border-color: #39844f; background: #f1f9ed; }
body.mapstl-redesign:not(.mapstl-prototype) .toast { background: #173b37; font-size: 14px; border-radius: 8px; }

/* Footer links and mobile disclosure groups are the original functional nodes. */
body.mapstl-redesign:not(.mapstl-prototype) .site-footer {
  margin-top: 36px;
  border-radius: 0;
  border-top: 4px solid #89d974;
  background: #102f36;
  color: #d2e3e4;
}
body.mapstl-redesign:not(.mapstl-prototype) .site-footer::before { background: linear-gradient(115deg, #102f36, #123940); }
body.mapstl-redesign:not(.mapstl-prototype) .site-footer::after { opacity: .06; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-inner { max-width: 1520px; padding-inline: 32px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-main { padding-block: 30px; gap: 36px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-brand { width: 208px; max-width: 100%; padding: 6px 9px; border-radius: 5px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-about > p { font-size: 15px; line-height: 1.6; color: #d2e3e4; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-world { color: #c7dfd4; font-size: 13px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-nav h2 { color: #fff; font-size: 16px; font-weight: 700; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-nav a { color: #d2e3e4; font-size: 14px; line-height: 1.55; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-nav a:hover,
body.mapstl-redesign:not(.mapstl-prototype) .footer-bottom a:hover,
body.mapstl-redesign:not(.mapstl-prototype) .footer-projects a:hover { color: #b4f598; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-invitation h2 { color: #fff; font-size: clamp(27px, 2.6vw, 38px); font-weight: 650; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-invitation p:not(.footer-eyebrow) { color: #d2e3e4; font-size: 15px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-create { color: #103b22; background: #9af46a; border-color: #9af46a; border-radius: 6px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-create:hover { background: #b4ff88; border-color: #b4ff88; }
body.mapstl-redesign:not(.mapstl-prototype) :is(.footer-eyebrow, .footer-projects > span) { color: #b8e4b1; }
body.mapstl-redesign:not(.mapstl-prototype) :is(.footer-bottom, .footer-signoff) { color: #bdd0d3; font-size: 13px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-projects a { color: #d2e3e4; font-size: 14px; }
body.mapstl-redesign:not(.mapstl-prototype) .footer-projects a > span { color: #b8d5c5; }

/* Standalone saved/shared maps use the same public shell, outside admin. */
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header {
  min-height: 70px;
  padding: 10px max(24px, calc((100% - 1392px) / 2));
  gap: 18px;
  border-color: #dce5ed;
  box-shadow: 0 1px 8px #142d3b06;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header .brand img { width: 224px; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header .button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-language {
  padding: 9px 11px;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #f0f4f7;
  color: #365466;
  font-size: 14px;
  font-weight: 600;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page :is(.project-main, .project-footer) :is(h1, h2, h3) {
  font-family: var(--heading-font);
  color: #193b4b;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-heading h1 {
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-heading .eyebrow { color: #367955; font-size: 12px; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-heading .form-message { font-size: 16px; color: #607585; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .surface {
  border-color: #dce6eb;
  border-radius: 12px;
  box-shadow: 0 3px 12px #173c5706;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .button { border-radius: 6px; font-weight: 650; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .button.primary {
  color: #fff;
  background: linear-gradient(135deg, #159e39, #078b3e);
  border-color: #078b3e;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .button.primary:hover:not(:disabled) { background: #087b34; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .button.secondary {
  background: #fff;
  border-color: #cfdde5;
  color: #266344;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-player { background: #f2f6f8; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-viewer.viewer {
  background: radial-gradient(ellipse at center, #fff 20%, #eaf0f5 100%);
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-tools {
  background: #f0f5f8;
  border-color: #dce5ed;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-tools-label { color: #365466; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-tools .button { box-shadow: 0 2px 3px #19324608; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-tools .button[aria-pressed=true] {
  color: #fff;
  background: #087b34;
  border-color: #087b34;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page #project-view-state {
  border-color: #dce5ed;
  box-shadow: 0 5px 24px #19324620;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page #project-load-progress { accent-color: #078c39; }
body.mapstl-redesign:not(.mapstl-prototype).project-page :is(#project-view-state p, .project-view-footer .project-view-help, .project-image-action p, .project-view-footer .project-credit, .project-details .form-message) {
  color: #607585;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-help strong { color: #365466; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-footer,
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-view-footer .project-credit { border-color: #dce5ed; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-details :is(h2, h3),
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-print-downloads h2 { font-size: 21px; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .model-dimensions :is(span, small) { color: #607585; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-sharing { border-color: #d3e4d6; background: #f1f9ef; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-sharing #project-share-state { color: #267343; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-sharing input {
  font-family: var(--body-font);
  border-color: #b5cdbd;
  border-radius: 6px;
  color: #193246;
}
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-empty-mark { color: #267343; background: #edf7ee; border-color: #9bc8a7; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-empty p { color: #607585; }
body.mapstl-redesign:not(.mapstl-prototype).project-page .project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #dce5ed;
  color: #365466;
}

@media (max-width: 1280px) {
  body.mapstl-redesign:not(.mapstl-prototype) .site-header {
    height: auto;
    min-height: 92px;
    padding: 8px 24px;
    gap: 5px 16px;
  }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .brand img { width: 224px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(.site-header.navigation-ready, html.header-navigation-ready .site-header) .header-menu-toggle {
    min-height: 32px;
    padding: 5px 11px;
    border-color: #d6e2e8;
    border-radius: 6px;
    background: #f3f7fa;
    color: #365466;
  }
  body.mapstl-redesign:not(.mapstl-prototype) :is(.site-header.navigation-ready, html.header-navigation-ready .site-header) .header-menu {
    max-height: calc(100dvh - 100px);
    padding: 16px 24px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 24px #19324620;
  }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav { gap: 8px; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav > a,
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-menu > summary,
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-actions > .button { min-height: 44px; height: 44px; background: #f3f7fa; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .main-nav > a.active { background: #edf9ec; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .header-print-links { border-left-color: #90bca0; box-shadow: none; }
}

@media (max-width: 760px) {
  body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) > .page-heading { padding-block: 26px 22px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) .page-heading > p:not(.eyebrow) { font-size: 16px; }
  body.mapstl-redesign:not(.mapstl-prototype) #info-page .info-card { padding: 20px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(#modal, #support-modal) .modal-heading h2 { font-size: 22px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-inner { padding-inline: 20px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-main { padding-block: 22px 0; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-brand { width: 190px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-nav h2 { font-size: 14px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-nav a { font-size: 14px; min-height: 44px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(.footer-links, .footer-projects-details) > summary { color: #d2e3e4; font-size: 15px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-bottom { font-size: 12px; padding-block: 8px; }
  body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header { padding: 12px 16px; gap: 10px 12px; }
  body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header .brand img { width: 190px; }
  body.mapstl-redesign:not(.mapstl-prototype).project-page .project-header .button { order: 3; width: 100%; }
  body.mapstl-redesign:not(.mapstl-prototype).project-page .project-heading .form-message { font-size: 15px; }
  body.mapstl-redesign:not(.mapstl-prototype).project-page .project-footer { padding-inline: 16px; }
}

@media (max-width: 480px) {
  body.mapstl-redesign:not(.mapstl-prototype) .site-header { padding: 8px 12px; gap: 5px 10px; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .brand img { width: 100%; max-width: 215px; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch a { min-width: 46px; gap: 4px; padding-inline: 5px; }
  body.mapstl-redesign:not(.mapstl-prototype) .site-header .lang-switch .language-flag { width: 20px; height: 14px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(.site-header.navigation-ready, html.header-navigation-ready .site-header) .header-menu { padding-inline: 16px; }
  body.mapstl-redesign:not(.mapstl-prototype) :is(#favorites-page, #account-page) :is(.place-copy, .saved-map-copy) { padding: 17px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-inner { padding-inline: 16px; }
  body.mapstl-redesign:not(.mapstl-prototype) .footer-link-groups { gap: 18px 12px; }
}


/* Public content still uses the real account and article templates. */
/* Account, saved places and information pages retain their existing layouts. */
body.mapstl-redesign :is(#favorites-page, #account-page) > .page-heading { padding-block: 32px 26px; }
body.mapstl-redesign :is(#favorites-page, #account-page, #info-page) .eyebrow {
  color: #367955;
  font-size: 12px;
  letter-spacing: .1em;
}
body.mapstl-redesign :is(#favorites-page, #account-page, #info-page) .page-title {
  color: #193b4b;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
}
body.mapstl-redesign :is(#favorites-page, #account-page) .page-heading > p:not(.eyebrow),
body.mapstl-redesign #info-page .page-lead { color: #566d7c; font-size: 17px; line-height: 1.65; }
body.mapstl-redesign :is(#favorites-page, #account-page) :is(.surface, .private-favorites, .saved-map-card, .place-card, .profile-card),
body.mapstl-redesign #info-page :is(.info-card, .model-purchase) {
  border-color: #dce6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #173c5706;
}
body.mapstl-redesign :is(#favorites-page, #account-page) :is(.place-copy, .saved-map-copy) { padding: 21px; }
body.mapstl-redesign :is(#favorites-page, #account-page) :is(.saved-map-copy p, .record p, .record small, .empty-state, .favorites-hint) {
  color: #607585;
  font-size: 14px;
  line-height: 1.65;
}
body.mapstl-redesign :is(#favorites-page, #account-page) :is(.saved-map-copy h2, .saved-map-copy h3, .place-copy h2) {
  color: #234355;
  line-height: 1.3;
}
body.mapstl-redesign :is(#favorites-page, #account-page) :is(.saved-map-poster, .place-visual) { background: #f2f6f8; }
body.mapstl-redesign #account-page .profile-editor { background: #fafcfd; border-color: #dce6eb; }
body.mapstl-redesign #account-page .profile-badge { background: #edf7ee; color: #3a7351; }
/* Campaign sections own their light/dark palette in gift-campaigns.css. */
body.mapstl-redesign #info-page :is(p, li):not(:where(.gift-campaign *)) { color: #566d7c; }
body.mapstl-redesign #info-page :is(h1, h2, h3):not(:where(.gift-campaign *)) { color: #193b4b; }
body.mapstl-redesign #info-page .info-intro h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.2; }
body.mapstl-redesign #info-page .info-card { padding: 24px; }
body.mapstl-redesign #info-page .info-card h2 { font-size: 21px; }
body.mapstl-redesign #info-page .info-card :is(p, li) { font-size: 16px; line-height: 1.7; }
body.mapstl-redesign #info-page .notice { background: #edf7ee; border: 1px solid #d4e6d7; color: #42644e; }
body.mapstl-redesign #info-page .model-photos img { background: #f2f6f8; }

/* Shared modal forms: no change to submission, validation or visibility. */
body.mapstl-redesign :is(#modal, #support-modal, #print-request-modal) {
  border: 1px solid #d3e0e8;
  border-radius: 14px;
  color: #193246;
  background: #fff;
  box-shadow: 0 22px 90px #17354438;
}
body.mapstl-redesign :is(#modal, #support-modal, #print-request-modal)::backdrop {
  background: #102e406b;
  backdrop-filter: blur(3px);
}
body.mapstl-redesign :is(#modal, #support-modal) .modal-heading h2 { font-size: 25px; line-height: 1.3; }
body.mapstl-redesign :is(#modal-close, #support-close, #print-request-modal [data-print-close]) {
  min-width: 40px;
  min-height: 40px;
  color: #476574;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #f5f8fa;
}
body.mapstl-redesign :where(#account-page, #modal, #support-modal) .form-stack {
  gap: 18px;
}
body.mapstl-redesign :where(#account-page, #modal, #support-modal) .form-stack label {
  font-size: 15px;
  color: #365466;
}
body.mapstl-redesign :where(#account-page, #modal, #support-modal) .form-stack :is(input:not([type=checkbox]):not([type=color]), textarea, select),
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) :is(input:not([type=radio]):not([type=checkbox]), textarea) {
  border: 1px solid #cedde6;
  border-radius: 6px;
  min-height: 44px;
  color: #193246;
  background: #fff;
  font-size: 16px;
}
body.mapstl-redesign :where(#account-page, #modal, #support-modal) :is(.form-message, .empty-state) {
  color: #607585;
  font-size: 14px;
}
body.mapstl-redesign :where(#account-page, #modal, #support-modal) .text-button { color: #087b34; }
body.mapstl-redesign :where(#account-page, #modal, #support-modal) .auth-legal {
  background: #f5f9fb;
  border-color: #dce5ed;
}
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) { border-color: #dce5ed; background: #fff; border-radius: 12px; }
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) :is(.tr-privacy, .tr-map-summary, .tr-route-option) {
  background: #f6f9fb;
  border-color: #dce5ed;
}
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) :is(.tr-intro, .tr-note, .tr-payment-note) { color: #607585; }
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) .tr-submit {
  background: #b8582e;
  color: #fff;
  border-radius: 6px;
}
body.mapstl-redesign .tr-form:not(:where(.gift-campaign *)) .tr-submit:hover:not(:disabled) { background: #9e4521; }
body.mapstl-redesign .tr-colours:not(:where(.gift-campaign *)) input:checked + span { border-color: #39844f; background: #f1f9ed; }
body.mapstl-redesign .toast { background: #173b37; font-size: 14px; border-radius: 8px; }



/* Only adapters for the real PHP shell; visual values come from the prototype. */
body.mapstl-prototype { --green: var(--forest); --green-dark: var(--forest-dark); --border: var(--line); --bg: var(--paper); }
body.mapstl-redesign [hidden], body.mapstl-prototype [hidden] { display: none !important; }
body.mapstl-prototype :where(#favorites-page, #account-page, #info-page, dialog) :is(h1,h2,h3) { font-family: var(--heading-font); }
body.mapstl-prototype .prototype-shell.site-header { position: static; inset: auto; transform: none; display: block; padding: 0; min-height: 0; flex-wrap: nowrap; }
body.mapstl-prototype .prototype-shell.site-header .brand { margin: 0; padding: 0; max-width: none; }
body.mapstl-prototype .prototype-shell.site-header .brand img { width: 100%; max-width: none; }
body.mapstl-prototype .prototype-shell.site-header .header-inner { position: relative; }
body.mapstl-prototype .prototype-shell.site-header .desktop-nav { position: static; inset: auto; height: auto; width: auto; padding: 0; border: 0; background: transparent; }
body.mapstl-prototype .prototype-shell.site-header .desktop-nav > a { height: auto; }
body.mapstl-prototype .prototype-shell.site-header .language-switch { position: static; inset: auto; height: auto; margin: 0; width: auto; align-items: center; gap: 2px; border: 0; }
body.mapstl-prototype .prototype-shell.site-header .language-switch a { display: block; height: auto; border: 0; }
body.mapstl-prototype .prototype-shell.site-header .header-actions { flex: 0 0 auto; flex-wrap: nowrap; padding: 0; border: 0; }
body.mapstl-prototype .prototype-shell.site-header #account-button { display: inline-flex; width: auto; max-width: 190px; min-height: 39px; height: auto; padding: 7px 9px; gap: 7px; border: 1px solid #d2dee6; border-radius: 6px; background: transparent; color: inherit; font-size: 15px; font-weight: 550; line-height: 1.5; box-shadow: none; }
body.mapstl-prototype .prototype-shell.site-header #account-button .account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mapstl-prototype .prototype-shell.site-header #account-button:hover { color: #087c36; background: #edf7ee; }
body.mapstl-prototype .prototype-shell.site-header .header-create { min-height: 35px; height: auto; padding: 8px 13px; font-size: 15px; font-weight: 650; border-radius: 6px; background: linear-gradient(135deg,#169f35,#078b3e); color: #fff; }
body.mapstl-prototype .prototype-shell.site-header .header-print-menu { position: relative; border: 0; margin: 0; background: none; }
body.mapstl-prototype .prototype-shell.site-header .header-print-menu > summary { height: auto; min-height: 0; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: #4e6374; font-size: 15px; font-weight: 500; line-height: 1.5; }
body.mapstl-prototype .prototype-shell.site-header .header-print-menu:is([open],.is-current) > summary { background: #edf9ec; color: #087b35; }
body.mapstl-prototype .prototype-shell.site-header .header-print-links { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; margin: 0; border: 1px solid #dce5ed; border-radius: 9px; padding: 8px; background: #fff; box-shadow: 0 12px 32px #19324620; }
body.mapstl-prototype .prototype-shell.site-header .header-print-links a { height: auto; padding: 11px 12px; border: 0; line-height: 1.4; white-space: normal; }
body.mapstl-prototype .prototype-shell.site-header #header-menu { display: none; margin: 0; height: auto; width: 100%; max-height: calc(100dvh - 70px); overflow-y: auto; border-top: 0; }
body.mapstl-prototype .prototype-shell.site-header.is-open #header-menu { display: block; }
body.mapstl-prototype .prototype-shell.site-header #header-menu a { display: block; height: auto; border: 0; font-size: 16px; }
body.mapstl-prototype .prototype-shell.site-header .menu-toggle { min-width: 0; height: auto; min-height: 32px; background: transparent; border: 0; }
body.mapstl-prototype .prototype-shell.hero.intro { display: block; padding: 0; margin: 0; max-width: none; }
body.mapstl-prototype .prototype-shell.hero .hero-location a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.mapstl-prototype .prototype-shell.hero .hero-topics { grid-template-columns: repeat(auto-fit,minmax(0,1fr)); }
body.mapstl-prototype .prototype-shell.site-footer { border-radius: 0; margin-top: 24px; overflow: clip; padding: 0; }
body.mapstl-prototype .prototype-shell.site-footer::before,
body.mapstl-prototype .prototype-shell.site-footer::after { content: none; }
body.mapstl-prototype .prototype-shell.site-footer .footer-about { max-width: none; }
body.mapstl-prototype .prototype-shell.site-footer .footer-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 10px; border-top: 1px solid #ffffff20; color: #bdd0d3; font-size: 13px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-related a { color: #d2e3e4; }
body.mapstl-prototype .prototype-shell.site-footer .footer-related a:hover { color: #b1f398; text-decoration: underline; }
@media (min-width: 1101px) {
  body.mapstl-prototype .prototype-shell.site-header #header-menu { display: none; }
}
@media (max-width: 1100px) {
  html:not(.header-navigation-ready) body.mapstl-prototype .prototype-shell.site-header #header-menu { display: block; position: static; }
  html:not(.header-navigation-ready) body.mapstl-prototype .prototype-shell.site-header { height: auto; }
  body.mapstl-prototype .prototype-shell.site-header .desktop-nav { display: none; }
}
@media (max-width: 700px) {
  body.mapstl-prototype .prototype-shell.site-header #account-button { width: 32px; min-height: 35px; padding: 6px; border-color: transparent; }
  body.mapstl-prototype .prototype-shell.site-header #account-button .account-label { display: none; }
  body.mapstl-prototype .prototype-shell.site-header #header-menu { max-height: calc(100dvh - 62px); }
}
@media (max-width: 360px) {
  body.mapstl-prototype .prototype-shell.site-header #account-button { width: 29px; }
}

/* The supplied homepage is full bleed; each existing subpage keeps its own column. */
body.mapstl-prototype > main#main { max-width: none; width: 100%; padding: 0; margin: 0; }
body.mapstl-prototype :is(#favorites-page, #account-page) { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
body.mapstl-prototype #info-page { width: calc(100% - 64px); margin-inline: auto; }
body.mapstl-prototype #admin-page { width: min(1680px, calc(100% - 64px)); margin-inline: auto; }
body.mapstl-prototype :is(#subpage-print-promo, #external-print-callout) { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
body.mapstl-prototype #app-load-error { margin: 16px 32px; }
body.mapstl-prototype :where(#favorites-page, #account-page, #info-page, dialog) .button:not(:where(.gift-campaign *)) { border-radius: 6px; font-weight: 650; }
body.mapstl-prototype :where(#favorites-page, #account-page, #info-page, dialog) .button.primary:not(:where(.gift-campaign *)) { color: #fff; border-color: #078b3e; background: linear-gradient(135deg,#169f35,#078b3e); }
body.mapstl-prototype :where(#favorites-page, #account-page, #info-page, dialog) .button.primary:not(:where(.gift-campaign *)):hover:not(:disabled) { background: #087d34; }
body.mapstl-prototype :where(#favorites-page, #account-page, #info-page, dialog) .button.secondary:not(:where(.gift-campaign *)) { color: #266344; border-color: #cfdde5; background: #fff; }
@media (max-width: 1200px) {
  body.mapstl-prototype :is(#favorites-page, #account-page, #info-page, #admin-page, #subpage-print-promo, #external-print-callout) { width: calc(100% - 40px); }
}
@media (max-width: 700px) {
  body.mapstl-prototype :is(#favorites-page, #account-page, #info-page, #admin-page, #subpage-print-promo, #external-print-callout) { width: calc(100% - 28px); }
  body.mapstl-prototype #app-load-error { margin: 14px; }
}

/* The header and its expanded mobile menu stay in the normal page flow. */
body.mapstl-prototype .prototype-shell.site-header.is-open { height: auto; }
body.mapstl-prototype .prototype-shell.site-header #header-menu { position: static; inset: auto; max-height: none; overflow: visible; }
