.la-atlas {
  --la-ink: #29243b;
  --la-sea: #1b2d45;
  --la-light: #fffaf0;
  --la-line: #d7c9cf;
  --la-wine: #81344e;
  --la-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(285px, 1fr);
  isolation: isolate;
  color: var(--la-ink);
  background: var(--la-light);
  border: 1px solid var(--la-line);
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.la-atlas, .la-atlas * { box-sizing: border-box; }
.la-atlas [hidden] { display: none !important; }
.la-atlas button, .la-atlas input { font: inherit; }
.la-map {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  color: #d1e1cc;
  background: radial-gradient(ellipse at 50% 50%, #28515c 0%, #1e354c 61%, #1c263f 100%);
}
.la-mapheading, .la-legend { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.la-mapheading { padding: 17px 21px 8px; font: 600 10px/1.4 var(--la-mono); letter-spacing: .18em; }
.la-mapheading span+span { color: #acc5b7; font-size: 9px; }
.la-chart { width: 100%; min-width: 0; height: auto; max-height: 496px; display: block; margin: auto; }
.la-chart .la-shelf { fill: none; stroke: #305861; stroke-width: 75; stroke-linejoin: round; }
.la-chart .la-shallows { fill: none; stroke: #396f73; stroke-width: 33; stroke-linejoin: round; }
.la-chart .la-land { fill: #87aa98; stroke: #c4d8b0; stroke-width: 2.4; stroke-linejoin: round; }
.la-chart .la-water { fill: #3b717a; stroke: #9bd0bd; stroke-width: 2; }
.la-chart .la-road { fill: none; stroke: #fff0b7; opacity: .8; stroke-width: 3; }
.la-chart .la-grid path { fill: none; stroke: #d7ead0; opacity: .19; stroke-width: .55; }
.la-chart .la-grid text { fill: #bbd4ca; font: 8px var(--la-mono); text-anchor: middle; }
.la-chart .la-seas { fill: #c0d8cc; font: italic 12px Georgia, serif; letter-spacing: .22em; opacity: .78; }
.la-chart .la-compass text { fill:#fdd4b1; font: 9px var(--la-mono); text-anchor: middle; }
.la-chart .la-compass path { fill:none; stroke:#fdd4b1; stroke-width:.9; }
.la-chart path.la-needle { fill:#fdd4b1; }
.la-chart rect.la-cell { fill:#f3c99c; fill-opacity:.18; stroke:#ffb099; stroke-width:1.3; stroke-dasharray:3 2; pointer-events:none; }
.la-chart .la-mark { cursor:pointer; outline:none; }
.la-chart .la-extra { pointer-events:none; }
.la-chart .la-hit { fill:transparent; }
.la-chart .la-ring { fill:#1b4141; stroke:#e5e6ca; stroke-width:1.4; }
.la-chart .la-dot { fill:#e9ecd0; }
.la-chart .la-name { fill:#ffffe6; stroke:#254346; stroke-width:3; stroke-linejoin:round; paint-order:stroke fill; font:600 12px/1.2 'DM Sans','Helvetica Neue',Arial,sans-serif; }
.la-chart .la-mark:is(:focus-visible,:hover) .la-ring { stroke:#ffc48b; stroke-width:3; }
.la-chart .la-current .la-ring { stroke:#ffb09e; stroke-width:2.6; fill:#7c3653; }
.la-chart .la-current .la-dot { fill:#ffddbd; }
.la-chart .la-current .la-name { fill:#ffddbd; }
.la-legend { padding:9px 20px 15px; font:10px/1.5 var(--la-mono); color:#c5d7c9; }
.la-legend span:first-child { display:flex; align-items:center; gap:6px; }
.la-legend i { display:inline-block; width:8px; height:8px; border:1px solid #dbe0c0; border-radius:50%; }
.la-panel { display:flex; flex-direction:column; min-width:0; gap:19px; align-self:stretch; padding:clamp(19px,3vw,35px); }
.la-search { position:relative; z-index:2; }
.la-search label, .la-small-label { display:block; color:#514859; font:600 11px/1.45 var(--la-mono); }
.la-search input { display:block; width:100%; margin-top:7px; padding:10px 12px 10px 37px; border:1px solid #a6b2a2; border-radius:2px; color:var(--la-ink); background:#fffef8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233d6057' stroke-width='1.6'%3E%3Ccircle cx='6.7' cy='6.8' r='4.8'/%3E%3Cpath d='m10.3 10.4 4.4 4.4'/%3E%3C/svg%3E") no-repeat 12px center; font:14px/1.5 'DM Sans','Helvetica Neue',Arial,sans-serif; }
.la-search input:focus-visible, .la-atlas a:focus-visible, .la-atlas button:focus-visible { outline:2px solid #89414f; outline-offset:2px; }
.la-results { position:absolute; z-index:4; top:100%; right:0; left:0; max-height:225px; overflow:auto; margin:3px 0 0; padding:5px; list-style:none; background:#fffef8; border:1px solid #a6b2a2; box-shadow:0 8px 17px #152d2525; }
.la-results li { margin:0; padding:0; }
.la-results button, .la-near-list button { width:100%; display:flex; align-items:baseline; gap:8px; background:none; border:0; border-radius:0; text-align:left; cursor:pointer; color:var(--la-ink); }
.la-results button { padding:7px 8px; font-size:14px; }
.la-results button:hover,.la-results button:focus-visible { background:#f4e7e8; }
.la-results b,.la-near-list b { font:600 10px/1.5 var(--la-mono); color:#395f55; }
.la-results li.la-empty { padding:9px; font-size:14px; }
.la-meta { display:flex; align-items:center; gap:9px; font:500 10px/1.6 var(--la-mono); letter-spacing:.035em; text-transform:uppercase; color:#555165; }
.la-meta span { padding:2px 5px; background:#d8eee8; border:1px solid #a5c5ba; color:#20443e; }
.la-place h3 { margin:10px 0 8px !important; padding:0; font:normal clamp(26px,3.1vw,41px)/1.06 'DM Serif Text',Georgia,serif; color:var(--la-ink); letter-spacing:-.045em; }
.la-place h3:focus { outline:none; }
.la-place p { margin:0; font-size:15px; line-height:1.6; color:#504954; }
.la-near { padding-top:12px; border-top:1px solid var(--la-line); }
.la-near-list { display:grid; grid-template-columns:1fr; margin-top:3px; }
.la-near-list button { padding:4px 0; text-decoration:underline; text-decoration-color:#a2b2a4; text-underline-offset:3px; font-size:13px; }
.la-near-list button:hover, .la-links a:hover { color:var(--la-wine); text-decoration-color:currentColor; }
.la-near-list b { text-decoration:none; min-width:18px; }
.la-links { margin-top:auto; padding-top:9px; border-top:1px solid var(--la-line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; }
.la-links a { display:inline-flex; align-items:center; gap:4px; text-underline-offset:3px; font-size:12px; line-height:1.6; padding:2px 0; }
.la-guide { color:var(--la-wine); font-weight:700; }
.la-poster { color:#704050; }
.la-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:760px) {
  .la-atlas { grid-template-columns:1fr; }
  .la-mapheading { padding:14px 15px 7px; }
  .la-chart { max-height:425px; }
  .la-legend { padding:8px 14px 12px; font-size:9px; }
  .la-panel { gap:16px; }
  .la-near-list { grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); column-gap:12px; }
}
@media(max-width:430px) {
  .la-chart .la-name { font-size:14px; }
  .la-chart .la-grid text { font-size:10px; }
  .la-chart .la-hit { r:19; }
  .la-panel { padding:16px; }
}

.la-mapheading { color:#cbefde; border-bottom:1px solid #9dc7d137; padding-block:12px; }
.la-mapheading span+span { color:#b2d6cb; }
.la-legend { color:#d3ecdf; border-top:1px solid #9dc7d12c; padding-block:10px; }
.la-place h3 { font:700 clamp(32px,3.4vw,49px)/1 var(--display,'Arial Narrow',sans-serif); letter-spacing:-.018em; }
.la-meta span { padding:2px 6px; border-color:#9bbbab; }
.la-search input { border-color:#9d899a; }
.la-near-list button { min-height:30px; }
.la-links a { min-height:30px; }
.la-chart .la-seas { opacity:.87; }
@media (max-width:760px) {
  .la-mapheading { padding-block:10px; }
  .la-near-list button,.la-links a { min-height:36px; }
}

/* Keep lookup first in the reading order. On wide screens it shares the side column with the directions. */
.la-atlas {grid-template-areas:"map search" "map panel";grid-template-rows:auto 1fr}
.la-map {grid-area:map}
.la-search {grid-area:search;align-self:start;padding:clamp(19px,3vw,35px) clamp(19px,3vw,35px) 0}
.la-panel {grid-area:panel;padding-top:18px}
.la-results {right:clamp(19px,3vw,35px);left:clamp(19px,3vw,35px);overscroll-behavior:contain}
.la-results a,.la-results button,.la-selection a,.la-search-all,.la-links a,.la-near-list button {min-height:44px;align-items:center}
.la-results a,.la-search-all {display:flex;padding:8px;color:var(--la-wine);font-weight:700;text-align:left}
.la-search-all {background:none;border:0;cursor:pointer}
.la-selection {position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 14px;background:#253c41;color:#fff3d6;border-top:1px solid #829e96;font-size:14px;line-height:1.25}
.la-selection a {display:inline-flex;flex:none;color:inherit;text-underline-offset:3px}
.la-selection a:focus-visible {outline-color:#ffd999}
.la-permalink {color:var(--la-wine)}
.la-search input {min-height:44px;font-size:16px}
.map-notes {padding:10px 0;border-bottom:1px solid #a1afa7}
.map-notes summary {cursor:pointer;font-weight:700;min-height:44px;padding:10px 0}
.map-notes li a {display:inline-flex;align-items:center;min-height:44px}
@media (max-width:760px) {
  .la-atlas {grid-template-areas:"search" "map" "panel";grid-template-rows:auto}
  .la-search,.la-panel {padding:14px}
  .la-results {position:static;max-height:min(32dvh,220px)}
  .la-selection {bottom:env(safe-area-inset-bottom,0px)}
}
.la-reading {border-top:1px solid var(--la-line);padding-top:12px}
.la-reading a,.la-reading summary {display:flex;align-items:center;min-height:44px;line-height:1.35;font-size:14px}
.la-reading a {color:var(--la-wine);font-weight:650;text-underline-offset:3px}
.la-reading summary {display:list-item;align-content:center;cursor:pointer}
.la-reading details>a {padding-left:12px}
.map-notes li a,.la-results .la-note-result {display:block;padding:9px 8px;font-weight:650}
.map-notes li a small,.la-note-result small {display:block;color:var(--la-ink,#263c38);font-size:13px;line-height:1.4;font-weight:400;text-decoration:none;margin-top:3px}

.la-views { display:none; }
@media (max-width:760px) {
  .la-atlas {
    grid-template-areas:"search" "views" "map" "panel";
    grid-template-rows:auto auto auto auto;
  }
  .la-views {
    grid-area:views;
    display:grid;
    gap:9px;
    padding:0 14px 12px;
  }
  .la-active-place {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:var(--la-ink);
  }
  .la-active-place strong {
    font:700 22px/1.15 var(--display,'Arial Narrow',sans-serif);
    overflow-wrap:anywhere;
  }
  .la-active-place span {
    flex:none;
    padding:3px 7px;
    color:#20443e;
    background:#d8eee8;
    border:1px solid #9bbbab;
    font:600 12px/1.4 var(--la-mono);
  }
  .la-view-buttons {
    display:flex;
    border:1px solid #425765;
    border-radius:4px;
    overflow:hidden;
  }
  .la-view-buttons button {
    flex:1;
    min-height:44px;
    padding:6px;
    border:0;
    color:#25384a;
    background:var(--la-light);
    font:700 15px/1.25 'DM Sans',Arial,sans-serif;
    cursor:pointer;
  }
  .la-view-buttons button+button { border-left:1px solid #425765; }
  .la-view-buttons button[aria-pressed="true"] { color:white; background:#263f4b; }
  .la-view-buttons button:focus-visible { outline:3px solid #e68866; outline-offset:-4px; }
  .la-atlas[data-map-view="map"] .la-panel,
  .la-atlas[data-map-view="details"] .la-map,
  .la-selection { display:none; }
  .la-chart .la-hit { r:var(--hit-radius,45px); }
  .la-chart .la-compass { transform:translate(65px,55px); }
  .la-chart .la-seas text:first-child { translate:8px 0; }
  .la-chart .la-name { font-size:var(--region-type,18px); }
  .la-chart .la-grid text { font-size:var(--grid-type,14px); }
  .la-chart .la-current .la-ring { r:var(--selected-ring,8px); }
  .la-chart .la-cell { vector-effect:non-scaling-stroke; }
  .la-panel { border-top:1px solid var(--la-line); }
}
@media (pointer:coarse) {
  .la-chart .la-hit { r:var(--hit-radius,45px); }
}
@media (min-width:761px) and (max-height:500px) and (pointer:coarse) {
  .la-selection { position:static; }
}
@media (max-width:760px) {
  /* The place and grid are already visible above the switch. Keep the heading
     available to assistive technology and existing heading links. */
  .la-panel .la-place h3 {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    margin:0!important;
    clip-path:inset(50%);
  }
  .la-panel .la-meta span { display:none; }
  .la-panel .la-meta { margin-bottom:6px; }
}
