:root{--ink:var(--grapath-ink);--forest:var(--grapath-forest);--cream:var(--grapath-cream)}
body{color:var(--grapath-ink);font-family:var(--grapath-font-body);background:var(--grapath-cream)}
.brand{display:flex;align-items:center;min-width:0}
.brand .brand-final-logo{width:260px;height:auto;max-width:100%;object-fit:contain;display:block}
.primary{background:var(--grapath-forest);border-color:var(--grapath-forest)}
.profile-overview h3{margin-top:18px;color:var(--grapath-forest)}
@media(max-width:600px){.brand .brand-final-logo{width:190px}.brand{max-width:54vw}}
#atlas-flow .brand{max-width:none}
#atlas-flow .brand .brand-symbol{width:54px;height:54px;object-fit:contain}
#atlas-flow .brand-wordmark{font-size:25px;letter-spacing:.12em}
#atlas-flow .brand-wordmark .brand-slogan{font-size:10px;letter-spacing:.025em;text-transform:none;white-space:nowrap}
#atlas-flow header .language-choice{margin-left:auto;font-size:13px;display:flex;gap:8px;align-items:center}
#atlas-flow header select{min-height:40px}
#atlas-flow .map-title{font-size:22px;margin-bottom:4px}
#atlas-flow .map-help{font-size:13px;margin:0 0 10px}
@media(min-width:800px){
 #atlas-flow[data-map-style="6"] .brand-landscape{height:64px;aspect-ratio:auto}
 #atlas-flow .control-bar{display:flex;align-items:center;gap:20px;padding:10px 20px}
 #atlas-flow .control-bar .explore-paths{padding:0;flex:0 0 auto;gap:6px}
 #atlas-flow .control-bar .explore-paths button{flex:none;min-height:40px;padding:9px 16px;font-size:13px}
 #atlas-flow[data-map-style="6"] .control-bar .toolbar{padding:0;flex:1;flex-wrap:nowrap;gap:16px;min-width:0}
 #atlas-flow[data-map-style="6"] .control-bar .toolbar .country-choice{flex:0 0 auto;max-width:none;gap:8px;font-size:13px}
 #atlas-flow .control-bar input{width:100%;box-sizing:border-box;min-height:40px}
 #atlas-flow[data-map-style="6"] .crumbs{padding:0 20px 8px;font-size:13px}
 #atlas-flow[data-map-style="6"] .map-area{padding:12px 16px;align-self:start}
 #atlas-flow[data-map-style="6"] .map-title{font-size:22px}
 #atlas-flow[data-map-style="6"] .sheet{max-height:var(--map-surface-height,calc(100svh - 260px));align-self:start;overflow-y:auto}
}
@media(max-width:650px){
 #atlas-flow .brand .brand-symbol{width:44px;height:44px}
 #atlas-flow header .language-choice{margin-left:0}
 #atlas-flow .brand-wordmark{font-size:23px}
}
#atlas-flow .brand-panel>.brand{padding:14px 20px}
#atlas-flow .brand-landscape svg{display:block;width:100%;height:100%}
#atlas-flow .atlas-masthead .brand-landscape{height:110px;aspect-ratio:auto;border-radius:0 0 10px 10px}
#atlas-flow .navigation-panel header{justify-content:flex-end}
#atlas-flow .navigation-panel header .language-choice{margin-left:0}
@media(min-width:800px){
 #atlas-flow .atlas-masthead{display:grid;grid-template-columns:minmax(300px,42%) minmax(0,1fr);gap:22px;padding:0 20px 10px;align-items:center}
 #atlas-flow .brand-panel>.brand{padding:12px 0}
 #atlas-flow .navigation-panel{min-width:0;display:grid;gap:20px}
 #atlas-flow[data-map-style="6"] .navigation-panel header{padding:0;border:0;gap:10px}
 #atlas-flow .navigation-panel .control-bar{padding:0;display:grid;gap:12px}
 #atlas-flow .navigation-panel .explore-paths{justify-content:flex-end}
 #atlas-flow[data-map-style="6"] .navigation-panel .toolbar{justify-content:flex-end;gap:12px}
 #atlas-flow .atlas-masthead .brand-landscape{height:110px}
 #atlas-flow .results{margin-left:calc(42% + 22px)}
}
@media(max-width:799px){
 #atlas-flow .atlas-masthead .brand-landscape{height:95px;margin:0 16px;width:calc(100% - 32px)}
 #atlas-flow .navigation-panel header{padding:12px 16px;gap:10px}
 #atlas-flow .navigation-panel .control-bar .toolbar .search-choice{flex:1 1 100%}
 #atlas-flow .navigation-panel .control-bar .toolbar .search-choice input{width:100%;box-sizing:border-box}
}
#atlas-flow .map-area .explore-paths{padding:0 0 12px;gap:0;border-bottom:1px solid #d8dfd1;margin-bottom:12px}
#atlas-flow .brand-landscape .landscape-hd{position:static;display:block;width:100%;height:100%;object-fit:cover;object-position:center 58%;transform:none;opacity:1}
#atlas-flow .map-area .explore-paths button{max-width:none;flex:1;background:transparent;border:0;border-radius:0;border-bottom:3px solid transparent;color:var(--grapath-forest);font-size:14px;padding:9px 12px}
#atlas-flow .map-area .explore-paths button.primary{background:transparent;color:var(--grapath-forest);border-bottom-color:var(--grapath-forest);font-weight:600}
@media(min-width:800px){
 #atlas-flow .map-area .explore-paths button{flex:0 1 210px}
}

@media(min-width:800px){
 #atlas-flow .atlas-masthead .navigation-panel{justify-self:end;width:max-content;max-width:100%}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel header{justify-content:flex-start;flex-wrap:nowrap}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar{justify-content:flex-start;width:100%;box-sizing:border-box;padding:0}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar label.country-choice{flex:0 0 auto;min-width:0}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar label.search-choice{flex:0 1 180px;width:180px;min-width:0;max-width:180px}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar #atlas-search{width:100%;min-width:0;box-sizing:border-box}
}

/* The country row shares the left edge of Explore; search stays half the former 360px width. */
@media(min-width:800px){
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar{flex-wrap:nowrap;gap:12px}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar label.country-choice{width:auto;max-width:none}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel .control-bar .toolbar #atlas-search{min-height:40px;font-size:14px}
}
#atlas-flow .environment-place{font-size:12px;font-weight:600;color:var(--grapath-forest);margin:0 0 10px}
#atlas-flow .environment-learning{display:grid;gap:14px;margin:16px 0}
#atlas-flow .environment-card h4{font:600 13px/1.4 var(--grapath-font-body);color:var(--grapath-forest);margin:0 0 4px}
#atlas-flow .environment-card p{font-size:14px;line-height:1.55;margin:0}
#atlas-flow .environment-context>summary{font-weight:600}
@media(min-width:800px) and (max-width:1100px){
 #atlas-flow .atlas-masthead .navigation-panel{width:100%}
 #atlas-flow[data-map-style="6"] .atlas-masthead .navigation-panel header{flex-wrap:wrap}
}

/* Keep country and search beside the exploration paths on larger screens. */
@media(min-width:651px){
 #atlas-flow .map-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #d8dfd1;margin-bottom:12px;padding-bottom:10px}
 #atlas-flow .map-toolbar .explore-paths{margin:0;padding:0;border:0;flex:1 1 340px}
 #atlas-flow #map-toolbar-controls{margin-left:auto;flex:0 1 auto;min-width:0}
 #atlas-flow[data-map-style="6"] .map-toolbar .control-bar{padding:0;display:block}
 #atlas-flow[data-map-style="6"] .map-toolbar .toolbar{padding:0;display:flex;gap:10px;flex-wrap:nowrap}
 #atlas-flow[data-map-style="6"] .map-toolbar .toolbar label.country-choice{flex:0 0 auto;width:auto;max-width:none;font-size:13px}
 #atlas-flow[data-map-style="6"] .map-toolbar .toolbar label.search-choice{flex:0 1 230px;width:230px;max-width:230px;min-width:160px}
 #atlas-flow .map-toolbar #atlas-search{min-height:40px;font-size:14px;box-sizing:border-box}
 #atlas-flow #map-toolbar-results .results{margin:0;padding:0 0 12px}
 #atlas-flow .atlas-masthead{align-items:start}
 #atlas-flow .atlas-masthead .navigation-panel{padding-top:12px}
}
#atlas-flow .language-choice{display:flex;align-items:center;gap:4px}
#atlas-flow .language-choice button{font-size:23px;line-height:1;padding:6px 8px;min-height:38px;background:transparent;border-color:transparent}
#atlas-flow .language-choice button.active{background:#e5ebe1!important;color:var(--grapath-forest)!important;border-color:#b8c7ae!important}
@media(max-width:650px){#atlas-flow .navigation-panel header .language-choice{width:100%;justify-content:flex-start}#atlas-flow .map-toolbar{display:contents}}
#atlas-flow .language-choice button img{display:block;width:28px;height:18px;border-radius:2px;object-fit:cover}

/* Local flag next to the selected country; native names remain accessible. */
#atlas-flow #atlas-country[data-has-flag="true"]{padding-left:42px;background-size:24px 16px;background-position:10px center;background-repeat:no-repeat}
/* Desktop vineyard ends exactly at the map/details divider. */
@media(min-width:1000px){
 #atlas-flow .atlas-masthead{display:block;position:relative;padding:0 0 10px 20px;box-sizing:border-box}
 #atlas-flow .atlas-masthead .brand-panel{width:calc(100% - clamp(300px,24vw,380px));min-width:0}
 #atlas-flow .atlas-masthead .brand-landscape{width:100%;height:110px;margin:0}
 #atlas-flow .atlas-masthead .navigation-panel{position:absolute;right:20px;top:12px;width:max-content;max-width:calc(100% - 340px);padding-top:0}
 #atlas-flow .atlas-masthead .brand-landscape .landscape-hd{object-fit:cover;object-position:center 58%}
}

/* States are navigation areas, visually lighter than wine regions. */
#atlas-map .wine-region[data-area-type="state"]{fill-opacity:.025;stroke-opacity:.28}

#atlas-data-status{position:fixed;right:18px;bottom:18px;z-index:1000;max-width:min(420px,80vw);padding:12px 16px;border:1px solid #a19e7c;border-radius:10px;background:#fffdf7;color:#10372f;box-shadow:0 3px 12px #0002;font:14px Inter,sans-serif}#atlas-data-status[hidden]{display:none}#atlas-data-status button{margin-left:8px}

#atlas-map .reference-pin::before{content:'●';color:#64806c;font-size:10px;margin-right:5px}#atlas-map .reference-pin.selected::before{color:#641936}

/* Typed area directory: one shared card layout, navigation outside wine-area lists. */
.region-directory{display:block}.area-directory-group{margin:16px 0}.area-type-list,.appellation-directory{display:flex;flex-direction:column;align-items:stretch;gap:6px}.area-choice{display:flex;flex-direction:column;gap:2px;width:100%;min-width:0;max-width:100%;flex:0 0 auto}.area-choice button{width:100%;text-align:left}.area-type{display:block;padding:0 4px;color:var(--muted,#58635b);font-size:11px;line-height:1.4}.area-navigation{margin:18px 0;padding:12px;border:1px solid #d3dcd2;border-radius:8px}.area-navigation summary{cursor:pointer}.area-map-note{border-left:3px solid #798d74;padding-left:10px}

.place-identity{margin:16px 0;border:1px solid #d3dcd2;border-radius:8px;background:#f4f5ee;padding:12px}.place-identity dl{margin:0;display:grid;gap:10px}.place-identity dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}.place-identity dt{font-weight:650;font-size:12px}.place-identity dd{margin:0;font-size:13px;line-height:1.5}@media(max-width:650px){.place-identity dl>div{grid-template-columns:1fr;gap:3px}}

/* Compact directories: readable rows, fixed search tools and scoped alphabetical jumps. */
#atlas-flow .area-directory-group{margin:12px 0}#atlas-flow .area-directory-group>h3{margin:10px 0 6px}#atlas-flow .area-choice{flex:0 0 auto;gap:0;width:100%}#atlas-flow .area-choice>button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:7px 10px;font-size:14px;line-height:1.35;text-align:left;border-radius:5px;box-sizing:border-box}#atlas-flow .area-name{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}#atlas-flow .area-choice .area-type{flex:0 1 42%;font-size:11px;line-height:1.25;margin:0;padding:0;text-align:right}#atlas-flow .directory-scroll{position:relative;display:flex;flex-direction:column;flex-wrap:nowrap;gap:3px;max-height:min(54vh,600px);min-height:0;overflow:auto;overscroll-behavior:auto;margin:6px 0 10px;padding:3px 4px 3px 0;scroll-padding:4px}#atlas-flow .appellation-directory{max-height:min(54vh,600px)}#atlas-flow .directory-tools,#atlas-flow .country-directory-tools{position:sticky;top:0;z-index:2;background:#fffdf8;padding:6px 0}#atlas-flow .directory-tools label,#atlas-flow .country-directory-tools label{margin:0}#atlas-flow .directory-count{font-size:12px;line-height:1.4;margin:6px 0;color:#52614f}#atlas-flow .directory-alphabet{display:flex;flex-wrap:wrap;gap:2px;margin:4px 0 2px}#atlas-flow .directory-alphabet>button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:26px;padding:2px 4px;font-size:11px;line-height:1;border-radius:3px}#atlas-flow .directory-alphabet>button:disabled{opacity:.28;cursor:default}#atlas-flow .directory-empty{font-size:14px;padding:8px}.compact-directory h3{margin-bottom:6px}
@media(max-width:650px){#atlas-flow .area-choice>button{min-height:44px;font-size:14px}#atlas-flow .directory-alphabet>button{min-width:32px;min-height:32px}#atlas-flow .directory-tools input,#atlas-flow .country-directory-tools input{font-size:16px}}

/* Country selection is independent of coverage. SVG geographic stroke avoids focus artifacts. */
#atlas-flow .country.available{fill:light-dark(#c4cbb9,#485346)}
#atlas-flow .country.available.selected,#atlas-flow .country.available.region-view.selected{fill:light-dark(#b6c4a5,#627757);stroke:light-dark(#426448,#b7cba8);stroke-width:1.5px;vector-effect:non-scaling-stroke}
#atlas-flow .country.available.region-view:not(.selected){fill:light-dark(#d2cbc5,#484141)}

.atlas-wine-search form { margin-block: 1rem; }
.atlas-wine-search label { display: block; margin-bottom: .4rem; font-weight: 600; }
.atlas-wine-search-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
#atlas-flow .atlas-wine-search-controls textarea {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  padding: .65rem;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
  background: #faf8ef;
  border: 1px solid #cdd6c4;
  border-radius: 9px;
  resize: none;
}
.atlas-wine-results { display: grid; gap: .5rem; list-style: none; padding: 0; }
.atlas-wine-results button { width: 100%; text-align: start; }
.atlas-wine-search dt { display: flex; align-items: center; gap: .45rem; font-weight: 600; margin-top: .9rem; }
.atlas-wine-search dt img { flex: none; }
.atlas-wine-search dd { margin-inline-start: 0; }

.atlas-wine-search .atlas-wine-bottle { display: block; width: auto; height: 10rem; max-width: 100%; object-fit: contain; margin-block: .5rem 1rem; }

#atlas-flow .atlas-wine-query-field{flex:0 0 100%;min-width:0;position:relative}
#atlas-flow .atlas-wine-query-field textarea{width:100%;padding-inline-end:3rem}
#atlas-flow[data-map-style="6"] .atlas-wine-query-field .atlas-wine-clear{position:absolute;inset-block-start:50%;inset-inline-end:.15rem;transform:translateY(-50%);width:44px;min-height:44px;padding:0;border:0;background:transparent;font-size:22px;line-height:1}
#atlas-flow .atlas-wine-clear[hidden]{display:none}
