.overnight-help{display:none}
@media(max-width:760px){
 :root{--sheet-peek:134.4px}
 .sidebar{transition:height .32s cubic-bezier(.22,1,.36,1)}
 .sidebar:not(.expanded) #point>.section-heading{display:none}
 .sidebar:not(.expanded) #coverage,.sidebar:not(.expanded) #mobile-data-detail{display:none}
 .sidebar #coverage{display:none}
 .sidebar:not(.expanded) #point{padding-top:3px}
 .sidebar #point #place{text-align:center}
 .sidebar #point .coordinate-line{display:none}
 .sidebar.has-point:not(.expanded) #place{padding-top:4px;font-size:14px;line-height:1.3;margin:0 0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .sidebar.has-point:not(.expanded) .result-card{padding:7px 10px;margin:0}
 .sidebar.has-point:not(.expanded) #color-label{font-size:12px}
 .sidebar.has-point:not(.expanded) #phrase{font-size:11px;margin:3px 0 0}
 .sidebar .sheet-toggle{height:32px;padding:4px;flex-shrink:0}
 .sidebar.expanded .profile{flex-wrap:wrap;gap:7px;padding:10px 18px}
 .overnight-help{display:block;background:none;color:#b4f65a;font-size:12px;min-height:38px;padding:4px 8px;border:1px solid #597081;border-radius:10px;margin-left:auto}
 .sidebar:not(.expanded) .profile,.sidebar:not(.expanded) .intro{display:none!important}
 .sidebar:not(.expanded):not(.has-point) #welcome{padding-top:0}
 .sidebar:not(.expanded):not(.has-point) #welcome>:not(h2):not(.muted){display:none}
 .sidebar:not(.expanded):not(.has-point) #welcome h2{font-size:18px;margin:0 0 5px}
 .sidebar:not(.expanded):not(.has-point) #welcome .muted{font-size:12px;margin:0;line-height:1.4}
 .sidebar .tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;text-align:center}
 .sidebar .tabs button{font-size:12px;min-height:42px;text-align:center;border-radius:11px}
 .sidebar.expanded #phrase{display:none}
 .sidebar.expanded #result-card{padding:10px 12px;margin:8px 0 12px}
 .sidebar.expanded #point>.section-heading .eyebrow{display:none}
 .sidebar.expanded #point{position:relative}
 .sidebar.expanded #point>.section-heading{position:absolute;top:0;right:0;margin:0}
 .sidebar.expanded #place{font-size:20px;line-height:1.25}
 .mobile-rule-dot{display:inline-block;margin-right:9px;font-size:14px;vertical-align:baseline}
 #soil-content>h3{text-align:center;font-size:18px;margin:12px 0 4px}
 #soil-content>.empty-text{text-align:center}
 .soil-detail{display:block!important;border:1px solid #3a5260;border-radius:12px;margin:8px 0;padding:12px!important}
 .soil-detail summary{font-size:14px;cursor:pointer;color:#eef6fa;font-weight:650}
 .soil-detail p{font-size:12px;line-height:1.5;color:#c2d1db;overflow-wrap:anywhere}
 #mobile-data-detail{margin-top:16px}
 #modal li{margin:10px 0;line-height:1.5}
 .sidebar.has-point:not(.expanded) .side-content{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

@media(max-width:760px){.sidebar.expanded #point:has(#tab-soil[aria-selected=true]) #result-card{display:none}.sidebar:not(.expanded):not(.has-point) .side-content{display:block!important;overflow:hidden;padding:3px 20px}.sidebar:not(.expanded):not(.has-point) .side-content>.info-note,.sidebar:not(.expanded):not(.has-point) .side-content>.coverage-note{display:none}}

@media(max-width:760px){.sidebar.expanded .profile{position:relative;padding-right:56px;flex-wrap:nowrap}.overnight-help{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:32px;min-height:36px;padding:0;font-size:20px}.sidebar .rule summary::before{display:none}.sidebar .rule summary{padding-left:0}}

/* Retain the original compass artwork even in the compact, empty mobile sheet. */
.welcome-compass-card{display:none}
@media(max-width:760px){
 .sidebar:not(.expanded):not(.has-point) #welcome>:not(.welcome-compass-card){display:none}
 .sidebar:not(.expanded):not(.has-point) #welcome>div.welcome-compass-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;min-height:78px}
 .welcome-compass{position:relative;width:72px;height:72px;background:radial-gradient(circle,#4e754b45 0,transparent 70%)}
 .welcome-compass img{position:absolute;width:68px;height:68px;left:2px;top:2px;transform:rotate(-8deg);filter:drop-shadow(0 5px 5px #0004)}
 .welcome-orbit{position:absolute;inset:4px;border:1px solid #7fa8837a;border-radius:50%}.welcome-orbit::after{content:'';position:absolute;inset:6px;border:1px dashed #7fa88355;border-radius:50%}
 .sidebar:not(.expanded):not(.has-point) #welcome .welcome-compass-text h2{font:750 17px Manrope,system-ui;line-height:1.25;margin:0 0 6px}
 .welcome-compass-text p{font-size:12px;line-height:1.45;color:#c7d6df;margin:0}
 .welcome-location{display:inline;padding:0;border:0;background:none;color:#b4f65a;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px}
}

/* Shared map branding; the information sheet is mobile-only. */
@media screen {
  body {
    --toolbar-edge: 12px;
    --toolbar-top: max(12px, env(safe-area-inset-top));
    --brand-height: 56px;
    --header-height: 56px;
    --header-top: calc(var(--toolbar-top) + var(--brand-height));
    --control-size: 46px;
    --header-bottom: calc(var(--header-top) + var(--header-height));
    --expanded-sheet-height: min(78dvh, calc(100dvh - var(--header-bottom) - var(--control-size) - 12px));
  }
  .map-header, .map-heading {
    left: var(--toolbar-edge);
    right: var(--toolbar-edge);
  }
  .map-header {
    top: var(--header-top);
    height: var(--header-height);
    border-top: 0;
    border-radius: 0 0 17px 17px;
  }
  .map-heading {
    z-index: 3;
    top: var(--toolbar-top);
    height: var(--brand-height);
    display: grid;
    grid-template-columns: auto minmax(0, max-content) auto;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 16px);
    padding: 0 9px;
    border: 1px solid var(--navy);
    border-radius: 17px 17px 0 0;
    background: linear-gradient(105deg, #112734, #203e4c 50%, #112734);
    box-shadow: inset 0 1px #ffffff24;
    text-align: center;
    text-shadow: none;
  }
  .heading-vehicle {
    width:clamp(28px, 9vw, 40px);
    height:auto;
    color:var(--lime);
    fill:none;
    stroke:currentColor;
    stroke-width:1.2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .map-heading-copy { display:grid; gap:3px; }
  .map-heading-copy strong {
    color:var(--lime);
    font:800 clamp(13px, 4vw, 16px)/1.15 Manrope, system-ui, sans-serif;
  }
  .map-heading-copy span {
    color:#fff;
    font:650 clamp(10px, 2.55vw, 12px)/1.2 Manrope, system-ui, sans-serif;
  }
  .explorer .map-actions {
    left: var(--toolbar-edge);
    right: var(--toolbar-edge);
    top: calc(var(--header-bottom) + 6px);
    transform: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: var(--control-size);
    gap: 7px;
    justify-items: center;
    align-items: center;
  }
  .map-actions > :is(#location, #legend-mobile, #layers, #contribute) {
    grid-area: auto;
    width: var(--control-size);
    min-width: var(--control-size);
    height: var(--control-size);
    min-height: var(--control-size);
    margin: 0;
    border-radius: 13px;
    box-shadow: 0 3px 12px #142b3826;
  }
  .explorer .map-actions #location {
    position: relative;
    background: #fff;
    color: var(--navy);
  }
  #location::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 .65px var(--navy);
    pointer-events: none;
  }
  .map-actions #contribute {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 23px 12px;
    place-content: center;
    place-items: center;
    gap: 1px;
    padding: 0;
    border: 1px solid #132d39;
    color: var(--lime);
    background: linear-gradient(150deg, #274a52, #142c39 70%);
    box-shadow: inset 0 1px #ffffff38, inset 0 -2px #0c202b65, 0 3px 12px #142b3833;
  }
  #contribute .contribute-plus {
    display: grid;
    place-items: center;
    width: 25px;
    height: 23px;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: none;
    box-shadow: none;
    font: 700 24px/23px Manrope, system-ui, sans-serif;
    transform: none;
  }
  #contribute .contribute-label {
    min-width: 0;
    padding: 0;
    color: inherit;
    background: none;
    font: 800 10px/12px Manrope, system-ui, sans-serif;
    text-align: center;
  }
  .map-actions #contribute:active { background: #1c3c47; }
}
.location-caption, .map-header > #language { display:none; }
@media (max-width: 760px) {
  body {
    --header-height: 43.74px;
    --control-size: calc(min(56px, (100vw - 52px) / 5) * .9);
  }
  .explorer .map-header {
    top: var(--toolbar-top);
    inset-inline: calc(5% + var(--toolbar-edge) * .9);
    justify-content: center;
    padding: 5px 46px;
    border: 2px solid var(--navy);
    border-bottom: 0;
    border-radius: 17px 17px 0 0;
  }
  .explorer .map-heading {
    top: calc(var(--toolbar-top) + var(--header-height));
    border-radius: 12px 12px 17px 17px;
  }
  .map-header .search-wrap { display: none; }
  .map-header .brand { gap: 9px; }
  .map-header .brand img { width: 30.78px; height: 30.78px; }
  .map-header .brand span { font-size: clamp(20.25px, 6.48vw, 25.92px); }
  .map-header > #saved { position:absolute;right:33px; }
  .map-header > #language { position:absolute;right:6px;display:grid; }
  .map-header #language .language-flag { width:18px;height:12px;stroke:none; }
  #modal .current-language { margin:0; }
  .explorer .map-actions #location {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px;
  }
  .map-actions #location > .icon { width: 20px; height: 20px; flex: none; }
  .map-actions #location::after { inset: auto; top: calc(50% - 6px); left: 50%; transform: translate(-50%, -50%); }
  .map-actions .location-caption { display: block; font: 800 9px/11px Manrope, system-ui, sans-serif; }
  .sidebar.expanded { height: var(--expanded-sheet-height); }
  .explorer #map-settings {
    top: calc(var(--header-bottom) + var(--control-size) + 12px);
    right: var(--toolbar-edge);
    bottom: auto;
    transform: none;
    max-width: calc(100% - 2 * var(--toolbar-edge));
  }
}

@media screen {
  .explorer .map-actions > :is(#location,#legend-mobile,#layers,#contribute) {
    border: 1px solid #142c39;
  }
}
@media (max-width: 350px) {
  .map-header .brand { position:relative;left:-10px; }
}
@media (max-width:760px) {
  .sidebar .sheet-toggle .sheet-arrow {
    width: 30px;
    height: 20px;
    padding: 1px 5px;
    color: var(--lime);
    background: #243e49;
    border: 1px solid #526c71;
    border-radius: 10px;
    stroke-width: 2.6;
  }
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .sidebar, .explorer .map-actions, .sidebar .sheet-toggle .sheet-arrow {
    transition-duration: 340ms;
    transition-timing-function: cubic-bezier(.22,.8,.24,1);
  }
  .explorer .map-actions { transition-property: top; }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce) {
  .sidebar .sheet-toggle .sheet-arrow { transition: none; }
}

@media (min-width: 761px) {
  body {
    --toolbar-top: 18px;
    --toolbar-edge: 16px;
    --sheet-height: 40px;
  }
  .explorer .map-heading, .explorer .map-header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(740px, calc(100% - 32px));
    border: 1px solid #142c39;
  }
  .explorer .map-header { border-top: 0; }
  .map-actions #legend-mobile { display: grid; }
  .map-actions .zoom-group, .map-actions #perspective, .map-bottom .legend { display: none; }
  .map-settings { right: 72px; }
  .sidebar { border-left: 1px solid #142c39; }
}

#map-settings, #modal {
  color:#f0f6f7; background:linear-gradient(145deg,#203e49,#142b38 75%);
  border:1px solid #375461; border-radius:18px; box-shadow:0 12px 36px #10273340;
}
#map-settings { padding:14px; width:255px; }
#map-settings > :not(.base-switch,.map-intensity,#close-layers) { display:none!important; }
#map-settings #close-layers, #modal #close-modal {
  display:grid;place-items:center;float:right;width:32px;height:32px;border-radius:10px;
  color:var(--lime);background:#294551;font-size:21px;
}
#map-settings .base-switch { margin:0 42px 14px 0;background:#102530;border:1px solid #48636e;border-radius:11px; }
#map-settings .base-switch button { color:#eff5f4;border-radius:7px;font-weight:700; }
#map-settings .base-switch button.active { background:var(--lime);color:var(--navy); }
#map-settings .map-intensity { display:grid;gap:7px;color:#f0f6f7;margin:0;font-weight:650; }
#map-settings #opacity { width:100%;margin:0;accent-color:var(--lime); }
#modal p {color:#d2e1e6;}
#modal a {color:var(--lime);}
#modal .saved-row {color:var(--navy);}

.map-dismiss-surface { display:none; position:absolute; inset:0; z-index:2; touch-action:manipulation; }
.explorer:has(#map-settings:not([hidden]), #search-results:not([hidden])) .map-dismiss-surface { display:block; }
@media(max-width:760px) {
  body:has(.sidebar.expanded) .map-dismiss-surface { display:block; }
}

.mobile-warning-icon,.mobile-welcome-question,.mobile-welcome-instructions{display:none}
@media(max-width:760px){
  .sidebar .profile-vehicle{display:none}
  .sidebar.expanded:not(.has-point):not(:has(.cm-portada-panel)){
    height:auto;max-height:var(--expanded-sheet-height);
  }
  .sidebar.expanded:not(.has-point):not(:has(.cm-portada-panel)) .side-top{display:none}
  .sidebar.expanded:not(.has-point) .intro{min-height:92px;padding:10px 16px}
  .sidebar.expanded:not(.has-point) .intro-text{text-align:center}
  .sidebar.expanded:not(.has-point) .intro .little-line{margin-inline:auto}
  .sidebar.expanded:not(.has-point) .intro h1{font-size:20px;line-height:1.15}
  .sidebar.expanded:not(.has-point) .profile{
    display:grid;grid-template-columns:44px minmax(0,1fr) 44px;justify-items:center;
    padding:8px 16px;gap:9px;
  }
  .sidebar.expanded:not(.has-point) .profile-icon{width:44px;height:44px}
  .sidebar.expanded:not(.has-point) .profile>div:nth-child(2){display:none}
  .sidebar.expanded:not(.has-point) .profile .overnight-help{
    position:static;transform:none;margin:0;display:grid;place-items:center;
    border:0;border-radius:11px;background:#2b443d;color:var(--lime);
  }
  .sidebar.expanded:not(.has-point) .mobile-welcome-question{
    display:block;margin:0;color:var(--ink);font-weight:750;font-size:clamp(12px,3.4vw,15px);
    line-height:1.3;text-align:center;
  }
  .sidebar.expanded:not(.has-point):not(:has(.cm-portada-panel)) .side-content{
    flex:0 1 auto;padding:4px 16px 8px;overflow:hidden;
  }
  .sidebar.expanded:not(.has-point):has(.side-content>.coverage-note[open]) .side-content{overflow:auto}
  .sidebar.expanded:not(.has-point) #welcome>:not(.mobile-welcome-instructions){display:none}
  .sidebar.expanded:not(.has-point) .mobile-welcome-instructions{display:block}
  .mobile-welcome-instructions h2{
    margin:0 0 10px;text-align:center;font:800 20px/1.2 Manrope,system-ui,sans-serif;
  }
  .mobile-welcome-instructions ol{
    display:grid;gap:9px;margin:0;padding:0;list-style:none;counter-reset:instruccion;
  }
  .mobile-welcome-instructions li{
    counter-increment:instruccion;display:flex;align-items:center;gap:10px;
    min-height:50px;padding:6px 8px;border:1px solid #47616b;border-radius:12px;
    background:#1d3a44;font-size:14px;font-weight:700;line-height:1.3;
  }
  .mobile-welcome-instructions li::before{
    content:counter(instruccion);display:grid;place-items:center;flex:0 0 31px;
    height:31px;border-radius:9px;background:var(--lime);color:#142b38;
    font:800 17px/1 Manrope,system-ui,sans-serif;
  }
  .mobile-welcome-instructions li>span{flex:1;min-width:0}
  #welcome-use-location{
    display:grid;place-items:center;flex:0 0 44px;height:44px;padding:0;
    border:1px solid #547468;border-radius:10px;background:#142b38;color:var(--lime);
  }
  #welcome-use-location .icon{width:22px;height:22px}
  .sidebar.expanded:not(.has-point) .side-content>.info-note{align-items:center;margin:10px 0 0;padding:10px 9px;gap:8px}
  .sidebar.expanded:not(.has-point) .side-content>.info-note .icon{display:none}
  .sidebar.expanded:not(.has-point) .mobile-warning-icon{display:block;width:18px;height:18px;flex:none;margin:0;color:#ffcf76}
  .sidebar.expanded:not(.has-point) .side-content>.info-note p{margin:0;font-size:11px;line-height:1.35}
  .sidebar.expanded:not(.has-point) .side-content>.coverage-note{margin:0}
  .sidebar.expanded:not(.has-point) .side-content>.coverage-note summary{padding:7px 0}
}
@media(max-width:760px) and (max-height:520px){
  .sidebar.expanded:not(.has-point):not(:has(.cm-portada-panel)) .side-content{overflow:auto}
}

#saved .saved-profile{display:none}
@media(max-width:760px){
  #saved .saved-bookmark{display:none}
  #saved .saved-profile{display:block}
  .mobile-welcome-instructions li>.welcome-book{
    display:grid;place-items:center;flex:0 0 44px;height:44px;
    border:1px solid #547468;border-radius:10px;background:#142b38;color:var(--lime);
  }
  .welcome-book .icon{width:22px;height:22px}
}
