:root{
  --bg:#ffffff;
  --ink:#1f2328;
  --ink-2:#5b6471;
  --ink-3:#8b95a3;
  --line:#e3e7ec;
  --line-2:#eef1f4;
  --accent:#1a73e8;
  --north:#0b8a86;
  --south:#e2761b;
  --hi:#ff2d78;          /* selected break: pin + card number */
  --shadow:0 1px 2px rgba(20,25,35,.10),0 4px 14px rgba(20,25,35,.08);
  --topbar-h:56px;
  --side-w:372px;
  --radius:10px;
}
*{box-sizing:border-box}
html,body{height:100%;overflow:hidden}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;overflow:hidden;
}
a{color:var(--accent)}

/* ---------- top bar ---------- */
.topbar{
  height:var(--topbar-h);display:flex;align-items:center;gap:6px;
  padding:0 10px;border-bottom:1px solid var(--line);
  background:#fff;position:relative;z-index:1200;box-shadow:0 1px 3px rgba(20,25,35,.06);
}
.topbar h1{
  font-size:16px;font-weight:600;margin:0 4px;letter-spacing:-.2px;white-space:nowrap;
  min-width:0;overflow:hidden;text-overflow:ellipsis;
}
.topbar h1 span{color:var(--ink-2);font-weight:400}
.counts{margin-left:auto;color:var(--ink-2);font-size:12.5px;white-space:nowrap;
  min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
.counts strong{color:var(--ink);font-weight:600}
.icon-btn{
  width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;
  border:0;background:transparent;border-radius:50%;color:var(--ink-2);cursor:pointer;
}
.icon-btn:hover{background:var(--line-2);color:var(--ink)}
#settingsBtn{display:none}          /* phone only - desktop has the panel header */
#fullBtn{display:none}              /* phone only - a desktop browser has F11 */
#settingsBtn[aria-expanded="true"]{background:var(--line-2);color:var(--accent)}

/* ---------- layout ---------- */
.layout{display:flex;height:calc(100% - var(--topbar-h))}
.sidebar{
  width:var(--side-w);flex:0 0 var(--side-w);border-right:1px solid var(--line);
  display:flex;flex-direction:column;background:#fff;min-height:0;
}
.layout.collapsed .sidebar{display:none}
.map-wrap{flex:1;position:relative;min-width:0}
#map{position:absolute;inset:0;background:#e8eef2}

/* ---------- search ---------- */
.search-wrap{position:relative;padding:10px 12px 8px}
.search-ico{position:absolute;left:24px;top:20px;color:var(--ink-3);pointer-events:none}
#search{
  width:100%;padding:9px 30px 9px 36px;border:1px solid var(--line);border-radius:22px;
  font-size:14px;font-family:inherit;background:#f6f8fa;color:var(--ink);
}
#search:focus{outline:none;border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px rgba(26,115,232,.12)}
.clear-btn{
  position:absolute;right:20px;top:16px;width:22px;height:22px;border:0;border-radius:50%;
  background:var(--line);color:var(--ink-2);font-size:15px;line-height:1;cursor:pointer;
}

/* ---------- filters ---------- */
.filters{padding:0 12px 8px;border-bottom:1px solid var(--line)}
.filter-row{display:flex;flex-wrap:wrap;gap:6px}
.pill{
  border:1px solid var(--line);background:#fff;color:var(--ink-2);
  padding:5px 10px;border-radius:16px;font-size:12.5px;font-family:inherit;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;
}
.pill:hover{border-color:#cfd6de;color:var(--ink)}
.pill b{font-weight:600;color:var(--ink-3);font-size:11.5px}
.pill.on{background:#eaf2fe;border-color:#c3dafd;color:#12508f}
.pill.on b{color:#4d80c4}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px}
.dot-north{background:var(--north)}
.dot-south{background:var(--south)}

.tagbox{margin-top:8px}
.tagbox summary{
  cursor:pointer;font-size:12.5px;color:var(--ink-2);padding:4px 0;list-style:none;
  display:flex;align-items:center;gap:6px;user-select:none;
}
.tagbox summary::-webkit-details-marker{display:none}
.tagbox summary::before{content:"›";display:inline-block;transition:transform .15s;font-size:15px;color:var(--ink-3)}
.tagbox[open] summary::before{transform:rotate(90deg)}
.tagbox #tagCount{color:var(--accent);font-weight:600}
.tagbox .filter-row{padding:6px 0}
.link-btn{border:0;background:none;color:var(--accent);font-size:12px;cursor:pointer;padding:2px 0 8px;font-family:inherit}

/* ---------- list ---------- */
.list{flex:1;overflow-y:auto;overscroll-behavior:contain}
.grp{
  padding:12px 14px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3);position:sticky;top:0;background:#fff;z-index:2;
}
.grp::after{content:"";display:block;height:1px;background:var(--line-2);margin-top:6px}
/* the unnamed stretches between the guide's named areas: a rule, no label */
.grp-plain{padding:0 14px;height:10px}   /* stays sticky, so it pushes the
      previous named heading out of the way when you scroll into an unnamed run */
.grp-plain::after{margin-top:4px}
.item{
  display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;
  padding:9px 14px;border:0;background:none;cursor:pointer;font-family:inherit;border-bottom:1px solid var(--line-2);
}
.item:hover{background:#f6f8fa}
.item.sel{background:#eaf2fe}
.item .num{
  flex:0 0 24px;height:24px;border-radius:50%;display:grid;place-items:center;
  font-size:11.5px;font-weight:700;color:#fff;margin-top:1px;
}
.item .num.north{background:var(--north)}
.item .num.south{background:var(--south)}
.item .txt{min-width:0;flex:1}
.item .nm{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.3}
.item .sub{font-size:12px;color:var(--ink-2);margin-top:2px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.empty{padding:28px 18px;color:var(--ink-2);text-align:center;font-size:13px}
.side-foot{padding:10px 14px;border-top:1px solid var(--line);font-size:11.5px;color:var(--ink-3)}

/* ---------- markers ---------- */
.pin{
  width:26px;height:26px;border-radius:50% 50% 50% 2px;transform:rotate(-45deg);
  display:grid;place-items:center;border:2px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer;
}
.pin span{transform:rotate(45deg);font-size:11px;font-weight:700;color:#fff;line-height:1}
.pin-north{background:var(--north)}
.pin-south{background:var(--south)}
.pin.active{
  width:36px;height:36px;z-index:1000!important;
  background:var(--hi)!important;border-width:3px;
  box-shadow:0 2px 12px rgba(0,0,0,.55);
}
.pin.active span{font-size:14px}

/* ---------- the break card (fixed panel, top-left of the map) ---------- */
.detail{
  /* above Leaflet's control layer (z-index 1000) so the sheet covers the
     attribution rather than the attribution punching through it; the settings
     dropdown at 1100 still wins */
  position:absolute;top:12px;left:12px;width:320px;z-index:1010;
  max-height:calc(100% - 24px);
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
}
/* the body scrolls, not the sheet - so the close button stays pinned */
.pop{overflow-y:auto;overscroll-behavior:contain;flex:1}
.detail[hidden]{display:none!important}
.card-grip{display:none}
.card-close{
  position:absolute;top:6px;right:8px;border:0;background:none;font-size:20px;line-height:1;
  color:var(--ink-3);cursor:pointer;padding:2px 6px;border-radius:6px;z-index:2;
}
.card-close:hover{background:var(--line-2);color:var(--ink)}
.pop{padding:14px 16px 12px}   /* flex/scroll set above */
.pop-top{display:flex;gap:9px;align-items:baseline;padding-right:20px}
.pop-n{
  font-size:11px;font-weight:700;color:#fff;border-radius:11px;padding:2px 8px;flex:0 0 auto;
  background:var(--hi);
}
.pop h3{margin:0;font-size:16px;font-weight:600;letter-spacing:-.2px}
.pop .area{margin:5px 0 0;font-size:12px;color:var(--ink-2)}
.pop p.d{margin:9px 0 0;font-size:13px;color:#39414d}
.pop .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}
.pop .tag{font-size:11px;background:#f0f3f7;color:var(--ink-2);border-radius:4px;padding:2px 6px}
.pop .corrected{
  margin:10px 0 0;padding:8px 10px;border-radius:6px;
  background:#fdf6e8;color:#7a5312;font-size:11.5px;line-height:1.45;
}
.pop .corrected strong{color:#5c3d0b}
.pop .meta{
  margin-top:11px;padding-top:9px;border-top:1px solid var(--line-2);
  font-size:11.5px;color:var(--ink-3);display:flex;justify-content:space-between;gap:8px;align-items:center;
}
.pop .meta a{text-decoration:none}
.pop .meta a:hover{text-decoration:underline}
.pop-keys{
  display:flex;align-items:center;gap:5px;margin-top:8px;
  font-size:11px;color:var(--ink-3);
}
.pop-keys span{margin-left:2px}
.navkey{
  font:inherit;font-size:11px;min-width:26px;padding:3px 7px;cursor:pointer;
  border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;
  background:#f6f8fa;color:var(--ink-2);line-height:1;
}
.navkey:hover{background:var(--line-2);color:var(--ink)}
.navkey:active{transform:translateY(1px);border-bottom-width:1px}
.navkey:disabled{opacity:.34;cursor:default}
.navkey:disabled:hover{background:#f6f8fa;color:var(--ink-2)}
.navkey:disabled:active{transform:none;border-bottom-width:2px}
@media (pointer:coarse){
  .navkey{min-width:38px;padding:7px 10px;font-size:13px}   /* thumb-sized */
  .pop-keys{gap:7px}
}

/* the card owns its horizontal axis for the prev/next swipe; vertical still scrolls */
.detail, .pop{touch-action:pan-y}

/* ---------- chart panel ---------- */
.chart-panel{
  position:absolute;top:10px;right:10px;z-index:900;background:#fff;
  border-radius:8px;box-shadow:var(--shadow);overflow:hidden;max-width:250px;
}
.chart-toggle{
  display:flex;align-items:center;gap:9px;width:100%;border:0;background:#fff;
  padding:9px 12px;font:inherit;font-size:12.5px;color:var(--ink);cursor:pointer;
  text-align:left;
}
.chart-label{flex:1;font-weight:500}
.chev{color:var(--ink-3);transition:transform .16s;flex:0 0 auto}
.chart-panel.open .chev{transform:rotate(180deg)}

/* a labelled on/off row inside the settings panel */
.srow{
  display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;
  padding:8px 0;cursor:pointer;font:inherit;font-size:12.5px;color:var(--ink);text-align:left;
}
.srow-label{flex:1}
.srow[aria-pressed="true"] .switch{background:var(--accent)}
.srow[aria-pressed="true"] .switch .knob{transform:translateX(13px)}
.srow-extra{padding:2px 0 8px}
.srow-extra[hidden]{display:none!important}
.note-always{margin-top:2px;padding-top:0;border-top:0}

.switch{
  flex:0 0 30px;width:30px;height:17px;border-radius:9px;background:#d3d9e0;
  position:relative;transition:background .16s;
}
.switch .knob{
  position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(20,25,35,.35);transition:transform .16s;
}
.chart-panel.on .chart-toggle > svg:first-of-type{color:var(--accent)}
.chart-toggle:hover{background:#f6f8fa}
.chart-toggle svg{color:var(--ink-2);flex:0 0 auto}
.chart-body[hidden]{display:none!important}
.chart-body{padding:8px 12px 12px;border-top:1px solid var(--line-2)}
.chart-note{
  margin:10px 0 0;padding-top:9px;border-top:1px solid var(--line-2);
  font-size:11px;line-height:1.45;color:var(--ink-3);
}
.slider-lbl{display:block;font-size:11.5px;color:var(--ink-2);margin-top:8px}
.slider-lbl input{width:100%;margin-top:4px}

/* ---------- modal ---------- */
.modal[hidden]{display:none!important}
.modal{position:fixed;inset:0;z-index:2000;background:rgba(20,25,35,.45);display:grid;place-items:center;padding:20px}
.modal-card{
  background:#fff;border-radius:12px;max-width:560px;width:100%;max-height:84vh;overflow-y:auto;
  padding:26px 30px 30px;position:relative;box-shadow:0 10px 40px rgba(0,0,0,.3);
}
.modal-card h2{margin:0 0 12px;font-size:20px;letter-spacing:-.3px}
.modal-card h3{margin:20px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2)}
.modal-card h3.warn{color:#b4520d}
.modal-card p,.modal-card li{font-size:13.5px;color:#39414d;margin:8px 0}
.modal-card ol{padding-left:20px;margin:8px 0}
.modal-card .keys{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:8px 0;align-items:center}
.modal-card .keys dt{display:flex;gap:4px}
.modal-card .keys dd{margin:0;font-size:13px;color:#39414d}
kbd{
  display:inline-block;min-width:22px;text-align:center;font:inherit;font-size:11.5px;
  padding:2px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;
  background:#f6f8fa;color:var(--ink-2);
}
.modal-card .note-lead{font-size:12px;color:var(--ink-3);margin:6px 0 10px}
.modal-card .quote{
  border-left:3px solid var(--line);padding-left:12px;margin:10px 0;
  font-size:13px;color:var(--ink-2);
}
.modal-close{
  position:absolute;top:10px;right:12px;border:0;background:none;font-size:26px;line-height:1;
  color:var(--ink-3);cursor:pointer;padding:2px 6px;border-radius:6px;
}
.modal-close:hover{background:var(--line-2);color:var(--ink)}

/* grip is desktop-hidden; it is the bottom-sheet handle on mobile */
.sheet-grip{display:none}

/* ---------- mobile: sidebar becomes a draggable bottom sheet ---------- */
/* Phone layout. The second condition catches a phone held sideways: those are
   over 860px wide (932 on a 15 Pro Max) but only ~400px tall, so width alone
   handed them the desktop layout. Height is what is actually scarce. */
@media (max-width:860px),(orientation:landscape) and (max-height:500px){
  :root{
    /* The sheet does not peek on a phone - the map gets the whole screen and a
       break's card is the primary surface. The list, search and filters are
       still there, opened full-height from the menu button and dismissed with
       the grip. */
    --peek:0px;
    --safe-b:env(safe-area-inset-bottom,0px);
  }
  body{overscroll-behavior:none}

  .topbar{padding-left:4px;padding-right:4px}
  .topbar h1{font-size:15px;margin:0 2px}
  .topbar h1 span{display:none}
  .counts{font-size:12px}

  .layout{position:relative;display:block;overflow:hidden;overflow:clip}
  .map-wrap{position:absolute;inset:0}

  .sidebar{
    position:absolute;left:0;right:0;bottom:0;top:auto;
    width:100%;flex:0 0 auto;border-right:0;
    height:min(86%,720px);
    border-radius:14px 14px 0 0;
    box-shadow:0 -2px 10px rgba(20,25,35,.14);
    transform:translateY(calc(100% - var(--peek) - var(--safe-b)));
    transition:transform .28s cubic-bezier(.32,.72,0,1);
    z-index:800;touch-action:none;
  }
  .sidebar.dragging{transition:none}
  .layout.sheet-open .sidebar{transform:translateY(0)}
  .layout.collapsed .sidebar{display:flex;transform:translateY(100%)}

  .sheet-grip{
    display:block;width:100%;border:0;background:none;padding:12px 0 7px;cursor:grab;
    touch-action:none;
  }
  .grip-bar{display:block;width:38px;height:4px;border-radius:2px;background:#cfd6de;margin:0 auto}

  /* ---- list header, suppressed on phones ------------------------------
     The list is a place to find a break by name and jump to it. Search, the
     two region pills and the conditions filter are three rows of chrome ahead
     of the first result on a screen with room for about six - clutter, ahead
     of the thing you opened the list for.

     Nothing is deleted: the markup is still in index.html and the filtering
     code still runs, because desktop keeps all of it. This one rule is the
     whole switch - comment out the two lines below and the phone has its
     search and filters back exactly as before. */
  .search-wrap,
  .sidebar .filters{display:none}
  /* ---------------------------------------------------------------------- */

  .search-wrap{padding:2px 12px 8px}
  .search-ico{top:12px}
  .clear-btn{top:8px}
  #search{font-size:16px;padding:11px 32px 11px 36px}   /* 16px stops iOS zoom-on-focus */

  /* a little headroom so any sub-pixel slack in the peek shows white
     rather than the top edge of a pill */
  .filters{padding-top:6px;padding-bottom:10px}
  .pill{padding:8px 12px;font-size:13px}
  .tagbox summary{padding:8px 0;font-size:13px}

  .list{-webkit-overflow-scrolling:touch}
  .item{padding:12px 14px}
  .item .num{flex-basis:26px;height:26px}
  .item .nm{font-size:14px}
  .side-foot{padding-bottom:calc(10px + var(--safe-b))}

  /* keep leaflet controls clear of the sheet */
  .leaflet-bottom{bottom:calc(var(--peek) + var(--safe-b))}
  .layout.collapsed .leaflet-bottom{bottom:0}
  .leaflet-control-attribution{font-size:10px;max-width:68vw}

  /* Settings moves into the top bar, where there is dead space, and drops down
     from the gear. Nothing floats over the map any more. */
  #settingsBtn{display:grid}
  #fullBtn{display:grid}
  .chart-panel{
    position:fixed;top:calc(var(--topbar-h) + 6px);right:8px;left:auto;bottom:auto;
    width:250px;max-width:calc(100vw - 16px);z-index:1100;
    /* it lands on top of the card, so make the layering unmistakable */
    box-shadow:0 6px 26px rgba(20,25,35,.30);
  }
  .chart-panel .chart-toggle{display:none}     /* the topbar gear is the header */
  .chart-panel:not(.open){display:none}
  .chart-body{border-top:0;padding-top:10px}
  .chart-toggle{padding:11px 12px}

  /* A sheet rather than a floating card: flush to the bottom and the sides,
     rounded only along the top. Thumb reach for the prev/next swipe, and no
     slivers of map showing down the edges. It covers the attribution while it
     is open, which is fine - close it and the attribution is there again. */
  .detail{
    left:0;right:0;width:auto;
    top:auto;bottom:0;
    border-radius:14px 14px 0 0;
    /* Fixed height, not content-driven: a short write-up and a long one gave
       sheets of different heights, so the top edge jumped on every swipe and
       the map re-centred under it. Pin the top, scroll the text.
       Sized to the *median* card (235px of content at 390px wide), not the
       tallest - at 42vh the half of the breaks with a short write-up sat over
       20% empty. The taller half scrolls, which is what the scroller is for.
       Capped so a tall phone does not just add the whitespace back, floored so
       a short one still shows the heading and the first lines. */
    height:clamp(190px,36vh,300px);
    padding-bottom:var(--safe-b);
    box-shadow:0 -2px 16px rgba(20,25,35,.20);
  }
  /* Second detent. Tall enough for the longest write-up (376px of content) on
     a normal phone, still short of full-screen so the map never disappears. */
  .detail.tall{height:clamp(300px,72vh,620px)}

  /* Two sheets from the same edge is one too many. Opening the list from the
     menu button puts the break card away; closing it brings the card back,
     still on the break you were looking at. */
  .layout.sheet-open .detail{display:none}

  /* The handle. Hit area is 26px tall; the pill inside is the part you see.
     It sits above the scroller rather than inside it, so it stays put while
     the text scrolls under it - same reason the close button is a sibling. */
  .card-grip{
    display:block;flex:0 0 auto;
    width:100%;height:26px;padding:0;margin:0;
    border:0;background:none;cursor:grab;
    touch-action:none;                 /* the grip owns its own vertical drag */
    -webkit-tap-highlight-color:transparent;
  }
  .card-grip span{
    display:block;width:36px;height:4px;margin:9px auto 0;
    border-radius:2px;background:#cfd6df;transition:background .15s ease;
  }
  .card-grip:active span{background:#9aa6b4}
  .detail.tall .card-grip span{background:#b6c0cc}
  .pop{padding:5px 14px 11px}          /* the grip already supplies the top gap */
  .pop h3{font-size:15.5px}

  .modal{padding:0;place-items:end stretch}
  .modal-card{
    max-width:none;border-radius:14px 14px 0 0;max-height:88vh;
    padding:22px 20px calc(26px + var(--safe-b));
  }
}

@media (max-width:520px){
  .counts{display:none}
  .topbar h1{margin-right:auto}   /* counts gone: anchor the buttons right */
  .chart-panel{max-width:190px}
}

/* coarse pointers: bigger hit areas everywhere */
@media (pointer:coarse){
  .icon-btn{width:42px;height:42px;flex-basis:42px}
  .pin{width:30px;height:30px}
  .pin span{font-size:12px}
}

/* short landscape phones: don't let the sheet eat the map */
@media (max-height:520px) and (max-width:860px){
  .sidebar{height:92%}
  .filters{display:none}
}

/* ---------- phone held sideways ---------- */
/* ~400px of height, and the two things competing for it are a 56px bar and a
   card docked along the bottom. Between them the map was a letterbox strip.
   So: the bar stops taking a row of its own and becomes buttons floating over
   the map, and the card moves to the right edge, where the height is. */
@media (orientation:landscape) and (max-height:500px){
  .layout{height:100%}                 /* the map gets the whole viewport */

  .topbar{
    position:absolute;z-index:1200;top:0;left:0;width:auto;height:auto;
    padding:calc(7px + env(safe-area-inset-top,0px)) 7px 7px
            calc(7px + env(safe-area-inset-left,0px));
    background:none;border:0;box-shadow:none;gap:7px;
  }
  .topbar h1,.topbar .counts{display:none}
  .topbar .icon-btn{
    background:#fff;border-radius:999px;
    box-shadow:0 1px 4px rgba(20,25,35,.30);
  }

  /* The card takes the right half and the full height. Landscape has height to
     spare per line and none to spare overall, which is the opposite of the
     portrait case - so no detents and no handle here, just a tall panel. */
  .detail{
    top:0;bottom:0;left:auto;right:0;
    width:50%;height:auto;max-height:none;
    border-radius:14px 0 0 14px;
    padding-bottom:0;
    padding-right:env(safe-area-inset-right,0px);
    box-shadow:-2px 0 16px rgba(20,25,35,.20);
  }
  .detail.tall{height:auto}
  .card-grip{display:none}
  .pop{padding:14px 16px 12px}
  .card-close{top:8px;right:10px}

  /* the settings dropdown hangs off a floating button now */
  .chart-panel{top:calc(52px + env(safe-area-inset-top,0px));left:7px;right:auto}
}


.srow-act{color:var(--accent)}
.srow-act svg{flex:0 0 auto}
.srow-act[hidden]{display:none!important}
.install-how{padding:2px 12px 10px;font-size:12.5px;color:var(--ink-2)}
.install-how[hidden]{display:none!important}
.install-how p{margin:0 0 6px}
.install-how ol{margin:0;padding-left:18px}
.install-how li{margin:3px 0}
.install-how strong{color:var(--ink)}
.ios-share{display:inline-flex;vertical-align:-3px;color:var(--accent)}

/* full-screen toggle: one icon, two states - the arrows point out to go in,
   and in to come back */
#fullBtn[hidden]{display:none!important}
#fullBtn .fs-out{display:none}
#fullBtn.on .fs-in{display:none}
#fullBtn.on .fs-out{display:block}

/* ---------- in-app PDF viewer ---------- */
/* Above everything the map owns, including the settings dropdown at 1100. */
.pdfview{
  position:fixed;inset:0;z-index:2000;
  display:flex;flex-direction:column;background:var(--bg);
}
.pdfview[hidden]{display:none!important}
.pdfbar{
  flex:0 0 auto;display:flex;align-items:center;gap:10px;
  height:calc(var(--topbar-h) + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) 12px 0;
  border-bottom:1px solid var(--line);background:#fff;
  box-shadow:0 1px 3px rgba(20,25,35,.06);
}
.pdfback{
  border:1px solid var(--line);border-radius:8px;cursor:pointer;
  background:#fff;color:var(--ink);
  font:inherit;font-size:14px;font-weight:600;padding:7px 12px;
}
.pdfback:hover{background:var(--line-2)}
.pdfname{flex:1;min-width:0;font-size:13px;color:var(--ink-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdfout{font-size:13px;text-decoration:none;padding:7px 4px;white-space:nowrap}
.pdfout:hover{text-decoration:underline}
.pdfframe{flex:1;width:100%;border:0;background:#fff}
.pdffall{margin:0;padding:22px 18px;font-size:14px;color:var(--ink-2);text-align:center}
.pdffall[hidden]{display:none!important}
