/* MissaMap HOME — locked implementation for approved target 2026-09-09.
   This file intentionally overrides the editorial home styling. */
:root {
  --home-navy:#0b2d5b;
  --home-navy-2:#123e78;
  --home-blue:#2f6fed;
  --home-gold:#bd741a;
  --home-green:#2d8a57;
  --home-purple:#7057c9;
  --home-paper:#ffffff;
  --home-soft:#f7f9fc;
  --home-line:#e1e7ef;
  --home-muted:#64748b;
}
body.mm-home {background:#fff;color:#0d2647}
.mm-home main {overflow:clip}
.mm-home :is(h1,h2,h3,p,figure,dl,dd) {margin:0}
.mm-home a {color:inherit;text-decoration:none}
.mm-home img {display:block;max-width:100%}
.mm-home button,.mm-home input {font:inherit}
.mm-home .container {width:min(100% - 72px,1248px);margin-inline:auto}
.mm-home .sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Header: keep existing route/auth/menu logic, only restyle on home. */
body.mm-home .site-header {position:sticky;top:0;z-index:50;border-bottom:1px solid #e3e8ef;background:#fffF;backdrop-filter:none}
body.mm-home .header-inner {min-height:66px;gap:18px}
body.mm-home .brand img {width:145px}
body.mm-home .desktop-nav {gap:20px}
body.mm-home .desktop-nav a {min-height:66px;padding:0;border:0!important;background:transparent!important;color:#0d2647;font-size:12px;font-weight:700}
body.mm-home .desktop-nav a img {display:none}
body.mm-home .desktop-nav a:first-child {display:none}
body.mm-home .desktop-nav a:hover,body.mm-home .desktop-nav a.is-current {color:var(--home-blue)}
body.mm-home .header-actions {gap:8px;margin-left:8px}
body.mm-home .header-search {width:40px;height:40px}
body.mm-home .language-control select {color:#0d2647;font-size:11px}
body.mm-home .login-link {min-height:40px;border:1px solid #d4dde9;border-radius:8px;color:#0d2647!important;background:#fff;font-weight:700}

/* HERO — image is mandatory; visual source is the approved mockup. */
.mm-home .hero {position:relative;isolation:isolate;min-height:438px;padding:64px 0 46px;background:#e7edf4 url('hero/missamap-home-hero.jpg') center/cover no-repeat}
.mm-home .hero-shade {position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(251,247,240,.84) 0%,rgba(251,247,240,.61) 36%,rgba(251,247,240,.10) 70%,rgba(5,34,68,.05) 100%)}
.mm-home .hero-inner {display:flex;align-items:center;min-height:328px;text-align:left}
.mm-home .hero-copy {width:min(720px,64%);margin:0}
.mm-home .hero h1 {max-width:720px;white-space:pre-line;font-family:var(--ed-serif,Georgia,serif);font-size:clamp(46px,4.55vw,68px);font-weight:650;letter-spacing:-.055em;line-height:1.15;color:#082a56;text-wrap:balance}
.mm-home .hero-description {margin-top:16px;font-size:16px;line-height:1.7;color:#203a5d;font-weight:500}
.mm-home .search-form {width:min(680px,100%);margin-top:22px}
.mm-home .search-field {display:flex;align-items:center;gap:11px;min-height:58px;padding:5px 6px 5px 18px;border:1px solid #d5dde8;border-radius:999px;background:rgba(255,255,255,.97);box-shadow:0 10px 30px rgba(11,45,91,.12)}
.mm-home .search-field:focus-within {border-color:#8eb5eb;outline:3px solid rgba(47,111,237,.18)}
.mm-home .search-icon {width:20px;height:20px;opacity:.72}
.mm-home .search-field input {flex:1;min-width:0;height:44px;border:0;outline:0;background:transparent;color:#0d2647;font-size:14px}
.mm-home .search-field input::placeholder {color:#76869a}
.mm-home .search-submit {display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:var(--home-navy);cursor:pointer;box-shadow:0 5px 12px rgba(11,45,91,.2)}
.mm-home .search-submit img {width:20px;height:20px;filter:brightness(0) invert(1)}
.mm-home .search-submit:hover {background:#153f76}
.mm-home .hero-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.mm-home .quick-action {display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 13px;border:1px solid rgba(213,221,232,.95);border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 3px 10px rgba(8,42,86,.07);color:#102c50;font-size:11px;font-weight:700;cursor:pointer}
.mm-home .quick-action img {width:16px;height:16px;opacity:.85}
.mm-home .quick-action:hover {border-color:#9bb7dc;background:#fff}
.mm-home .location-status {min-height:0;margin-top:0;color:#0b4e8a;font-size:11px}
.mm-home .location-status:not(:empty) {margin-top:7px}

/* Desktop trust strip mirrors the four-slot target without fake numeric claims. */
.mm-home .stats-strip {padding:14px 0;background:#fff;border-bottom:1px solid #edf1f6}
.mm-home .stats-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mm-home .stat-card {display:flex;align-items:center;justify-content:center;gap:16px;min-height:86px;padding:14px 20px;border:1px solid #eef2f7;border-radius:13px;background:#fff;box-shadow:0 5px 20px rgba(25,55,88,.035)}
.mm-home .stat-icon {display:grid;place-items:center;color:#0d2647}
.mm-home .stat-card strong {display:block;font-size:23px;line-height:1.05;color:#0d2647;font-weight:800;letter-spacing:-.03em}
.mm-home .stat-card span:not(.stat-icon) {display:block;margin-top:5px;color:#708097;font-size:11px;line-height:1.35}
.mm-home .stat-card--trust strong {font-size:14px;line-height:1.3}

.mm-home .section {padding:44px 0}
/* Approved target has no marketing heading above the four cards. */
.mm-home .services-heading {margin-bottom:20px}
.mm-home .services-kicker {color:#2f6fed;font-size:9px;font-weight:800;letter-spacing:.17em}
.mm-home .services-title {color:#0d2647;font-size:26px;line-height:1.35;letter-spacing:-.03em;font-weight:850}
@media (min-width:801px) {.mm-home .map-preview-visual {order:-1}}
.mm-home .feature-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.mm-home .feature-card {position:relative;display:flex;flex-direction:column;min-height:208px;padding:28px 26px 23px;border-radius:14px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.mm-home .feature-card:hover {transform:translateY(-2px);box-shadow:0 12px 28px rgba(26,54,91,.10)}
.mm-home .feature-card--map {background:#eef4ff;color:#1f62d9}
.mm-home .feature-card--mass {background:#fff5e8;color:#bd741a}
.mm-home .feature-card--test {background:#ecf8f1;color:#258758}
.mm-home .feature-card--passport {background:#f3eeff;color:#7057c9}
.mm-home .feature-icon {display:block;height:46px}
.mm-home .feature-copy {display:flex;flex-direction:column;gap:8px;margin-top:11px}
.mm-home .feature-copy strong {color:#0d2647;font-size:18px;letter-spacing:-.025em;line-height:1.35;font-weight:800}
.mm-home .feature-copy>span {max-width:210px;color:#56677f;font-size:12px;line-height:1.65}
.mm-home .feature-arrow {position:absolute;left:26px;bottom:20px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fff;color:currentColor;box-shadow:0 3px 9px rgba(12,38,71,.07);font-size:18px}

/* Map block */
.mm-home .map-preview {padding-top:16px;padding-bottom:34px}
.mm-home .map-preview-grid {display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.65fr);gap:38px;align-items:center}
.mm-home .map-preview-copy {padding-left:2px}
.mm-home .map-eyebrow {margin-bottom:8px;color:#2f6fed;font-size:9px;font-weight:800;letter-spacing:.17em}
.mm-home .map-preview-copy h2 {white-space:pre-line;font-size:31px;line-height:1.38;letter-spacing:-.035em;color:#0d2647;font-weight:850}
.mm-home .mobile-map-title {display:none}
.mm-home .map-preview-copy>p:not(.map-eyebrow) {max-width:320px;margin-top:12px;color:#64748b;font-size:12px;line-height:1.75}
.mm-home .map-cta {display:inline-flex;align-items:center;gap:13px;min-height:43px;margin-top:19px;padding:9px 17px;border-radius:999px;background:var(--home-navy);color:#fff!important;font-size:12px;font-weight:800}
.mm-home .map-preview-visual {position:relative;min-width:0}
.mm-home #home-map {height:300px;border:1px solid #e1e7ef;border-radius:14px;background:#eef4fb;overflow:hidden;box-shadow:0 5px 18px rgba(23,53,87,.06)}
.mm-home #home-map[hidden] {display:none}
.mm-home .map-overlay-row {position:absolute;z-index:6;top:12px;left:12px;right:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:9px;pointer-events:none}
.mm-home .map-preview-chips {display:flex;gap:6px;flex-wrap:wrap;pointer-events:auto}
.mm-home .map-preview-chips a,.mm-home .map-locate-pill {display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border:1px solid #dde5ef;border-radius:999px;background:rgba(255,255,255,.97);color:#304763;font-size:10px;font-weight:750;box-shadow:0 3px 9px rgba(13,42,77,.06)}
.mm-home .map-preview-chips a.is-active {background:#0b2d5b;border-color:#0b2d5b;color:#fff}
.mm-home .map-locate-pill {gap:5px;pointer-events:auto;cursor:pointer}
.mm-home .map-place-card {position:absolute;z-index:7;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:min(430px,calc(100% - 30px));padding:10px 12px;border:1px solid #e6ebf1;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(18,48,84,.16)}
.mm-home .map-place-photo {display:grid;place-items:center;flex:0 0 62px;width:62px;height:58px;border-radius:9px;background:linear-gradient(145deg,#f3f6fb,#e6edf6);color:#2f6fed}
.mm-home .map-place-copy {display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.mm-home .map-place-copy strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0d2647;font-size:14px;font-weight:800}
.mm-home .map-place-copy span {color:#64748b;font-size:11px}
.mm-home .map-place-link {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#eef4ff;color:#2f6fed;font-size:18px;font-weight:800}

/* Diocese rail */
.mm-home .dioceses {padding-top:25px;padding-bottom:36px;border-top:1px solid #edf1f6;background:#fff}
.mm-home .directory-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:18px}
.mm-home .directory-heading h2 {color:#0d2647;font-size:26px;line-height:1.3;letter-spacing:-.03em;font-weight:850}
.mm-home .directory-heading p {margin-top:6px;color:#748296;font-size:11px}
.mm-home .directory-controls {display:flex;align-items:center;gap:14px}
.mm-home .directory-all {color:#2f6fed;font-size:11px;font-weight:750;white-space:nowrap}
.mm-home .rail-arrows {display:flex;gap:7px}
.mm-home .rail-arrow {display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #dde4ed;border-radius:50%;background:#fff;color:#36506d;font-size:20px;cursor:pointer}
.mm-home .diocese-rail {display:grid;grid-auto-flow:column;grid-auto-columns:190px;gap:10px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}
.mm-home .diocese-rail::-webkit-scrollbar {display:none}
.mm-home .diocese-card {display:flex;align-items:center;gap:10px;min-height:70px;padding:10px 12px;border:1px solid #e4eaf1;border-radius:10px;background:#fff;scroll-snap-align:start}
.mm-home .diocese-art {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px}
.mm-home .diocese-art img {width:38px;height:38px;object-fit:contain}
.mm-home .diocese-name-copy {display:flex;flex-direction:column;gap:3px;min-width:0}
.mm-home .diocese-name-copy strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0d2647;font-size:11px;font-weight:800}
.mm-home .diocese-name-copy small {color:#7a8799;font-size:9px}

/* Pilgrimage photo band from the approved visual direction. */
.mm-home .pilgrim-banner {background:#0b2d5b}
.mm-home .pilgrim-banner-panel {display:block;position:relative;min-height:230px;background:linear-gradient(90deg,rgba(5,24,48,.72),rgba(5,24,48,.26)),url('hero/missamap-pilgrimage-banner.jpg') center/cover no-repeat;color:#fff}
.mm-home .mud-record-banner .pilgrim-banner-panel {background-image:linear-gradient(90deg,rgba(5,24,48,.72),rgba(5,24,48,.26)),url('hero/missamap-mud-record-banner.jpg')}
.mm-home .pilgrim-banner-inner {display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:230px}
.mm-home .pilgrim-banner-copy {display:flex;flex-direction:column;gap:6px}
.mm-home .pilgrim-banner-beta {color:#e4c766;font-size:10px;font-weight:800;letter-spacing:.16em;line-height:1.2;text-transform:uppercase}
.mm-home .pilgrim-banner-copy strong {font-size:25px;letter-spacing:-.025em;line-height:1.35}
.mm-home .pilgrim-banner-copy span {color:#eef5ff;font-size:13px}
.mm-home .pilgrim-banner-link {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 17px;border-radius:999px;background:#fff;color:#0b2d5b;font-size:12px;font-weight:800;white-space:nowrap}

/* Home footer becomes lighter like target while retaining global links. */
body.mm-home .site-footer {background:#f8fafc;border-top:1px solid #e5eaf1;padding-top:34px}

@media (max-width:1100px) {
  body.mm-home .desktop-nav {gap:11px}
  body.mm-home .desktop-nav a {font-size:11px}
  .mm-home .hero-copy {width:min(720px,70%)}
  .mm-home .feature-grid {gap:13px}
}

@media (max-width:800px) {
  body.mm-home {padding-bottom:68px}
  .mm-home .container {width:calc(100% - 24px)}
  body.mm-home .header-inner {min-height:64px}
  body.mm-home .brand img {width:132px}
  body.mm-home .desktop-nav,body.mm-home .header-search,body.mm-home .login-link,body.mm-home .language-control {display:none!important}
  body.mm-home .menu-toggle {display:grid!important}

  .mm-home .hero {min-height:430px;padding:34px 0 23px;background-position:64% center}
  .mm-home .hero-shade {background:linear-gradient(90deg,rgba(249,246,238,.76) 0%,rgba(249,246,238,.42) 56%,rgba(8,41,80,.02) 100%)}
  .mm-home .hero-inner {align-items:flex-start;min-height:0}
  .mm-home .hero-copy {width:100%;padding-top:8px}
  .mm-home .hero h1 {max-width:285px;font-size:38px;line-height:1.19;letter-spacing:-.045em}
  .mm-home .hero-description {max-width:270px;margin-top:12px;font-size:13px;line-height:1.65}
  .mm-home .search-form {margin-top:20px}
  .mm-home .search-field {min-height:54px;padding-left:14px}
  .mm-home .search-field input {font-size:12px}
  .mm-home .search-submit {flex-basis:44px;width:44px;height:44px}
  .mm-home .hero-actions {gap:7px;margin-top:10px}
  .mm-home .quick-action {min-height:34px;padding:6px 10px;font-size:10px}
  .mm-home .quick-action img {width:14px;height:14px}
  .mm-home .stats-strip {display:block;padding:10px 0;background:#fff;border-bottom:1px solid #edf1f6}
  .mm-home .stats-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mm-home .stat-card {min-height:64px;padding:10px 12px;gap:10px;border-radius:10px}
  .mm-home .stat-icon svg {width:22px;height:22px}
  .mm-home .stat-card strong {font-size:17px}
  .mm-home .stat-card span:not(.stat-icon) {font-size:9px;margin-top:3px}
  .mm-home .stat-card--trust strong {font-size:11px}

  .mm-home .services {padding:14px 0 26px}
  .mm-home .feature-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mm-home .feature-card {min-height:108px;padding:15px 14px;border-radius:10px;justify-content:center}
  .mm-home .feature-icon {height:30px}
  .mm-home .feature-icon svg {width:30px;height:30px}
  .mm-home .feature-copy {margin-top:7px;gap:0}
  .mm-home .feature-copy strong {font-size:13px;line-height:1.25}
  .mm-home .feature-copy>span,.mm-home .feature-arrow {display:none}

  .mm-home .section {padding:30px 0}
  .mm-home .map-preview {padding-top:6px}
  .mm-home .map-preview-grid {grid-template-columns:1fr;gap:13px}
  .mm-home .map-eyebrow,.mm-home .desktop-map-title,.mm-home .map-preview-copy>p:not(.map-eyebrow),.mm-home .map-cta {display:none}
  .mm-home .mobile-map-title {display:block!important;font-size:21px!important;line-height:1.35!important;letter-spacing:-.025em!important;color:#0d2647!important;font-family:inherit!important}
  .mm-home #home-map {height:235px;border-radius:11px}
  .mm-home .map-overlay-row {top:8px;left:8px;right:8px}
  .mm-home .map-preview-chips {display:none}
  .mm-home .map-locate-pill {min-height:32px;padding:5px 9px;font-size:9px;margin-left:auto}
  .mm-home .map-place-card {position:relative;left:auto;bottom:auto;transform:none;width:100%;margin-top:8px;padding:9px 10px;border-radius:10px;box-shadow:none}
  .mm-home .map-place-photo {flex-basis:54px;width:54px;height:52px}
  .mm-home .map-place-copy strong {font-size:13px}
  .mm-home .map-place-copy span {font-size:10px}

  .mm-home .dioceses {padding:24px 0 28px}
  .mm-home .directory-heading {align-items:center;margin-bottom:12px}
  .mm-home .directory-heading h2 {font-size:20px}
  .mm-home .directory-heading p,.mm-home .rail-arrows {display:none}
  .mm-home .directory-all {font-size:10px}
  .mm-home .diocese-rail {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible;padding:0}
  .mm-home .diocese-card {min-height:58px;padding:8px 9px;border-radius:9px}
  .mm-home .diocese-card:nth-child(n+7) {display:none}
  .mm-home .diocese-art {flex-basis:34px;width:34px;height:34px}
  .mm-home .diocese-art img {width:31px;height:31px}
  .mm-home .diocese-name-copy strong {font-size:10px}
  .mm-home .diocese-name-copy small {font-size:8px}

  .mm-home .pilgrim-banner-panel {min-height:250px;background-position:center}
  .mm-home .pilgrim-banner-inner {align-items:flex-end;min-height:250px;padding-top:88px;padding-bottom:24px}
  .mm-home .pilgrim-banner-copy strong {max-width:230px;font-size:20px}
  .mm-home .pilgrim-banner-beta {font-size:9px}
  .mm-home .pilgrim-banner-copy span {font-size:11px}
  .mm-home .pilgrim-banner-link {display:none}

  body.mm-home .site-footer {padding-bottom:84px}
}

@media (max-width:360px) {
  .mm-home .hero h1 {font-size:34px;max-width:255px}
  .mm-home .quick-action {padding-inline:8px}
  .mm-home .feature-card {min-height:104px}
}

/* Desktop map presence: map ~60%, copy ~40%, copy vertically centered. */
@media (min-width:801px) {
  .mm-home .map-preview-grid {grid-template-columns:minmax(0,1fr) minmax(320px,400px)}
  .mm-home #home-map {height:380px}
  .mm-home .map-preview-copy {align-self:center;justify-self:stretch;width:100%;max-width:400px}
}
