/* A site guide's own page (plan/WP94.md, DESIGN D245; accounts/site_detail.html, site-page.js; approved mockup "Full
   page site guide"). The header is the guide's map, full width, with see-through glass controls like the chart's and
   the title on a gradient over its foot; one bar under it with the camp facts strip; then the body in serif headings
   and lead with a sans text, and a side column that drops below the body where the two do not fit side by side (a flex
   wrap, so no breakpoint decides it). Light only, as the rest of the site, with its tokens (app.css). */
.account-main.sg-main{max-width:none;padding:0;line-height:1.5}
/* The body's measure: at most 1120 px with a gutter, and the header's contents kept to the same edges. */
.sg-page{--gutter:max(16px,3vw);--inline:calc(max(0px,(100% - 1120px) / 2) + var(--gutter));color:var(--body);font-family:var(--sans);overflow-wrap:anywhere}

/* ---------------------------------------------------------------- the header map */
.sg-head{position:relative;display:flex;flex-direction:column;min-height:clamp(300px,36vw,460px);overflow:hidden;background:linear-gradient(160deg,#2f5e57,#193d35);color:#fffdf7}
/* No position, or a map that could not be made: a shorter band, the title on the gradient alone. */
.sg-plain,.sg-failed{min-height:clamp(170px,20vw,230px)}
/* Over MapLibre's own container rule (position: relative), whatever order the sheets load in. */
.sg-head .sg-map{position:absolute;inset:0}
.sg-map .maplibregl-canvas{outline:none}
.sg-failed .sg-map{display:none}
.sg-mark{display:block;width:24px;height:24px;pointer-events:none}
/* The glass row at the top (the view switch at the left when there is more than one view; the view's note at the right)
   and the title's block at the foot are in the header's flow over the map, so a tall title makes the header taller
   instead of running over the top. Neither takes pointer events but its controls, so a pinch reaches the map. */
.sg-top{position:relative;display:flex;align-items:flex-start;gap:10px;padding:16px var(--inline) 0;pointer-events:none}
.sg-top>*{pointer-events:auto}
.sg-cover{position:relative;margin-top:auto;display:flex;flex-wrap:wrap-reverse;align-items:flex-end;column-gap:24px;row-gap:14px;padding:72px var(--inline) 24px;background:linear-gradient(rgba(8,32,40,0),rgba(8,32,40,.72));pointer-events:none}
.sg-plain .sg-cover{padding-top:40px}
/* The title takes the width it needs and wraps only when it needs the whole line; zoom and Open on the chart sit at
   the right of its line when they fit, and move above it when they do not (wrap-reverse), never squeezing it. The uses
   show above the title, as the mockup, though the title comes first for a screen reader. */
.sg-titles{flex:0 0 auto;max-width:100%;min-width:0;display:flex;flex-direction:column-reverse;gap:10px}
.account-main .sg-titles h1{margin:0;font:500 clamp(32px,2.6vw + 22px,56px)/1.06 var(--serif);letter-spacing:-.01em;color:#fffdf7;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 1px 8px rgba(8,32,40,.45)}
.sg-roles{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.sg-role{padding:3px 10px;border-radius:10px;background:var(--rustwash);color:var(--rust);font:700 12px/1.5 var(--sans);letter-spacing:.05em}
.sg-tools{margin-left:auto;margin-bottom:6px;display:flex;gap:8px;align-items:stretch;pointer-events:auto}
/* Glass: see-through with a blur behind, near opaque where the browser cannot blur or there is no map behind. */
.sg-glass{border-radius:10px;background:rgba(255,253,247,.55);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);border:1px solid rgba(255,255,255,.5);box-shadow:0 1px 6px rgba(13,40,48,.16);color:#12302a}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.sg-glass{background:rgba(255,253,247,.92)}}
.sg-head:not(.sg-has-map) .sg-glass{background:rgba(255,253,247,.92)}
/* Not clipped (no overflow: hidden), so a focused button's ring shows whole; the end buttons take the group's corners. */
.sg-zoom{display:flex}
.sg-zoom[hidden],.sg-key[hidden],.sg-views[hidden]{display:none}
.sg-zoom button{display:grid;place-items:center;width:42px;min-height:40px;padding:0;border:0;background:transparent;color:#12302a;cursor:pointer}
.sg-zoom button+button{border-left:1px solid rgba(25,61,53,.18)}
.sg-zoom button:first-child{border-radius:9px 0 0 9px}
.sg-zoom button:last-child{border-radius:0 9px 9px 0}
.sg-zoom button[aria-disabled=true]{opacity:.35;cursor:default}
.sg-zoom button:not([aria-disabled=true]):hover,.sg-open:hover{background-color:rgba(255,253,247,.9)}
.sg-open{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 13px;font-weight:600;font-size:13.5px;line-height:1.2;color:#12302a;text-decoration:none;white-space:nowrap}
.sg-open:hover{color:#12302a}
.sg-top .sg-key{display:flex;flex-direction:column;gap:2px;max-width:min(330px,62%);margin:0 0 0 auto;padding:8px 12px;font-size:12px;line-height:1.45}
.sg-view-words{font-weight:600}
/* The credit: a thin line along the map's foot at the right, in the room the title block leaves below it (the cover's foot
   padding), so nothing it holds can run under the title or the zoom and Open on the chart; it wraps to two lines where
   it must. Under the phone rule only its "i" shows (app.css .map-credit). */
.sg-has-map .sg-cover{padding-bottom:40px}
.sg-credit-box{position:absolute;right:0;bottom:0;max-width:100%;margin:0;padding:2px 8px;border-radius:6px 0 0 0;background:rgba(255,253,247,.72)}
.sg-head:not(.sg-has-map) .sg-credit-box,.sg-failed .sg-credit-box{display:none}
/* The view switch keeps its width; the note beside it gives way (and, on a phone, goes under it when it would be too narrow). */
.sg-views{display:flex;flex:none;padding:3px}
.sg-views button{min-height:34px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#12302a;font:600 12.5px var(--sans);white-space:nowrap;cursor:pointer}
.sg-views button[aria-pressed=true]{background:rgba(25,61,53,.85);color:#fffdf7}
/* The focus ring over the map: pale with a dark edge, seen over water, land and the gradient alike. */
.sg-head a:focus-visible,.sg-head button:focus-visible{outline:3px solid #fffdf7;outline-offset:2px;box-shadow:0 0 0 5px #193d35}
/* The + and - show on every device, a touch screen too, beside the pinch: a tap or a keyboard zooms as well (review
   round 1). */

/* ---------------------------------------------------------------- the bar: how sure (WP95) and the camp facts strip */
.sg-bar{max-width:1120px;margin:0 auto;padding:0 var(--gutter)}
.sg-bar-in{display:flex;flex-wrap:wrap;align-items:center;row-gap:10px;padding:14px 10px;background:var(--panel);border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px}
/* How confident we are it is a real spot (WP95): three small bars (decorative; the words say the grade), the grade in
   words and the reason under it, muted; beside the strip with a hairline, or over it with one on a phone. */
.sg-sure{display:flex;flex:0 1 auto;align-items:center;gap:12px;max-width:380px;padding:2px 20px 2px 16px;color:var(--ink)}
.sg-sure:only-child{max-width:none}
.sg-sure:not(:only-child){border-right:1px solid var(--line)}
.sg-sure b{font-size:15.5px;font-weight:600}
.sg-sure-why{display:block;font-size:13px;line-height:1.4;color:var(--muted)}
.sg-bars{display:flex;flex:none;gap:3px;align-items:flex-end}
.sg-bars i{width:6px;height:8px;border-radius:2px;background:var(--line)}
.sg-bars i:nth-child(2){height:12px}
.sg-bars i:nth-child(3){height:16px}
.sg-bars .sg-on{background:var(--help)}
.sg-low .sg-on{background:#b97a3e}
/* One line of icons and words with hairline dividers, no boxes; a strip too long for the width wraps into rows, the
   divider at the start of a row clipped away. Absent is rust with a slashed icon; unknown is muted with a dashed icon
   and said as unknown. */
.sg-facts{display:flex;flex-wrap:wrap;flex:1 1 auto;min-width:0;overflow:hidden;margin:0;padding:0;list-style:none}
.sg-fact{display:flex;flex:0 0 auto;align-items:center;gap:9px;margin:4px 0 4px -1px;padding:2px 18px;border-left:1px solid var(--line);color:var(--ink);overflow-wrap:normal}
.sg-fact svg{flex:none}
.sg-fact-words{display:flex;flex-direction:column;line-height:1.25}
.sg-fact b{font-size:15.5px;font-weight:600;white-space:nowrap}
.sg-fact-note{font-size:12.5px;color:var(--muted)}
.sg-absent{color:var(--rust)}
.sg-unknown{color:var(--muted)}
.sg-unknown b{font-weight:500}
.sg-unknown svg{stroke-dasharray:2.5 2.2}
.sg-slash .sg-gap{stroke:var(--panel);stroke-width:4.5}

/* ---------------------------------------------------------------- the body and the side column */
.sg-columns{max-width:1120px;margin:40px auto 64px;padding:0 var(--gutter);display:flex;flex-wrap:wrap;gap:40px 48px;align-items:flex-start}
.sg-body{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:40px}
.sg-side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:20px}
.sg-page p{margin:0}
.sg-lead{max-width:34em;font:400 clamp(19px,.6vw + 16px,22px)/1.5 var(--serif);color:var(--ink)}
.sg-section{display:flex;flex-direction:column;gap:14px}
.account-main .sg-section h2{margin:0;font:500 clamp(24px,.8vw + 19px,28px)/1.2 var(--serif);color:var(--ink)}
.sg-meta{font-size:13px;line-height:1.5;color:var(--muted)}
.sg-quiet{color:var(--muted)}
/* Before you go: the warning first, in rust, then each access entry, each with its sources and date. */
.sg-notes{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.sg-note{display:flex;gap:14px;padding:16px 20px;border-radius:12px;background:var(--panel);border:1px solid var(--wash)}
.sg-notice{border-color:#e3c9a8;background:#fbf4ea}
.sg-note-icon{flex:none;margin-top:2px;color:var(--rust)}
.sg-note-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.sg-note-text{font-size:16px;line-height:1.6}
.sg-notice strong{color:var(--ink)}
.sg-note-meta{font-size:13px;line-height:1.5;color:var(--muted)}
.sg-cite{color:var(--muted)}
.sg-cite:hover{color:var(--rust)}
/* Facilities: each amenity in its words, with its date and citations. */
.sg-facilities{margin:0;font-size:15.5px;line-height:1.55}
.sg-facilities>div{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(0,3fr);column-gap:16px;padding:10px 0;border-top:1px solid var(--line)}
.sg-facilities>div:first-child{border-top:0;padding-top:0}
.sg-facilities dt{font-weight:600;color:var(--ink)}
.sg-facilities dd{margin:0}
.sg-absent-words{font-weight:600;color:var(--rust)}
/* From the guidebooks (plan/WP86b1.md; mockup "Full page site guide"): each book the viewer holds as its key facts on a
   green wash, each label beside its facts; every other book in a dashed box with how to ask for its notes. */
.sg-book{display:flex;flex-direction:column;gap:12px;padding:20px 22px;border-radius:12px;background:var(--wash)}
.account-main .sg-book-head{margin:0;font:600 13px/1.45 var(--sans);color:var(--help)}
.sg-book-gate{font-weight:500;color:var(--muted)}
.account-main .sg-book-entry{margin:4px 0 0;font:600 15px/1.4 var(--sans);color:var(--ink)}
.sg-book-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0;font-size:16px;line-height:1.5}
.sg-book-facts>div{display:contents}
.sg-book-facts dt{grid-column:1;font-weight:600;color:var(--muted)}
.sg-book-facts dd{grid-column:2;margin:0;overflow-wrap:anywhere}
.sg-book-facts .sg-meta{white-space:nowrap}
.sg-book-area{font-style:italic;color:var(--muted)}
.sg-also{display:flex;gap:12px;padding:16px 20px;border:1px dashed #b9c3b5;border-radius:12px}
.sg-also-icon{flex:none;margin-top:1px;color:var(--ink)}
.sg-also-body{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:16px;line-height:1.5}
.sg-also-body a{overflow-wrap:anywhere}
/* Paddler reports: a dated line, newest first, an overnight stay's dot in rust. */
.sg-timeline{margin:0;padding:0;list-style:none;border-left:2px solid var(--line)}
.sg-report{position:relative;padding:0 0 22px 22px}
.sg-report:last-child{padding-bottom:4px}
.sg-report::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:6px;background:var(--help)}
.sg-report-overnight::before{background:var(--rust)}
.account-main .sg-report-head{display:flex;flex-wrap:wrap;column-gap:10px;margin:0;font:600 15px/1.45 var(--sans);color:var(--ink)}
.sg-report-kind{font-weight:500;color:var(--muted)}
.sg-report-text{margin-top:4px !important;font-size:16px;line-height:1.55}
.sg-publication summary{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:600;color:var(--ink)}
/* Folds: the sources in the body, the position in the side column. */
.sg-fold>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;color:var(--ink)}
.sg-fold>summary::-webkit-details-marker{display:none}
.sg-fold>summary::before{content:"";flex:none;width:8px;height:8px;margin:0 4px 0 2px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
.sg-fold[open]>summary::before{transform:rotate(45deg)}
.sg-sources>summary{font:500 24px/1.2 var(--serif)}
.sg-fold-count{font-size:.8em;color:var(--muted)}
.sg-source-list{display:flex;flex-direction:column;margin:12px 0 0;padding:0;list-style:none;font-size:15px;line-height:1.45}
.sg-source-list>li{display:flex;flex-direction:column;gap:3px;padding:10px 0;border-top:1px solid var(--line);scroll-margin-block:16px}
.sg-source-list>li:target,.sg-source-list>li:focus{background:var(--wash)}
.sg-source-list>li:focus{outline:none}
.sg-source-list>li:focus-visible{outline:3px solid #ad522c;outline-offset:2px}
.sg-source-name{font-weight:600;color:var(--ink)}
.sg-source-meta{display:flex;flex-wrap:wrap;gap:2px 12px}
/* The side column's cards. */
.sg-card{padding:16px 18px;border-radius:12px;background:var(--panel);border:1px solid var(--wash)}
.sg-card[hidden]{display:none}
.sg-where>summary{font-weight:600;font-size:14px}
.sg-no-position{display:flex;flex-direction:column;gap:6px}
.sg-position-note{font-size:12.5px;line-height:1.45;color:var(--soft)}
.sg-where .pc-where{margin-top:4px;border-top:0}
.sg-all a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
/* The satellite views and Copy position (site-guide.js linksHtml, the pane's markup), in a card of their own. */
.sg-elsewhere .sp-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 6px}
.sg-elsewhere .sp-links-label{flex:1 1 100%;font-size:14px;font-weight:600;color:var(--ink)}
.sg-elsewhere .sp-grow{flex:1 1 auto}
.sg-elsewhere .sp-link,.sg-elsewhere .pc-copy.sp-copy{display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid var(--line);border-radius:20px;background:transparent;color:var(--ink);font:700 15px var(--sans);text-decoration:none;cursor:pointer}
.sg-elsewhere .sp-link:hover,.sg-elsewhere .pc-copy.sp-copy:hover{background:var(--wash)}
.sg-elsewhere .pc-status{margin:6px 0 0;min-height:0}

@media(max-width:760px){
.sg-top{flex-wrap:wrap}
.sg-top .sg-key{flex:1 1 220px;max-width:none}
.sg-sure{flex-basis:100%;max-width:none}
.sg-sure:not(:only-child){border-right:0;padding-bottom:10px;border-bottom:1px solid var(--line)}
.sg-cover{padding-bottom:18px;row-gap:12px}
.sg-credit-box{padding:0 6px 6px 0;background:none}
.sg-credit-box .mc-text{position:absolute;right:30px;bottom:0;width:min(300px,calc(100vw - 60px));padding:6px 8px;border-radius:8px;background:rgba(255,253,247,.94);box-shadow:0 1px 6px rgba(13,40,48,.2)}
.sg-columns{margin-top:28px;gap:32px}
.sg-body{gap:32px}
.sg-note{padding:14px 16px;gap:12px}
.sg-fact{padding:2px 14px}
.sg-facilities>div{grid-template-columns:minmax(0,1fr);row-gap:2px}
.sg-book{padding:16px}
.sg-book-facts{column-gap:12px;font-size:15.5px}
.sg-also{padding:14px 16px}
}

/* Printing: the guide in words, every fold open; the map, its controls and the links out are for the screen. */
@media print{
.account-main.sg-main{padding:0}
.sg-head{min-height:0;background:none;color:var(--ink)}
.sg-map,.sg-top,.sg-tools,.sg-elsewhere,.sg-all,.pc-copy,.pc-status{display:none !important}
.sg-cover{margin:0;padding:0 0 12px;background:none}
.account-main .sg-titles h1{font-size:30px;color:var(--ink);text-shadow:none}
.sg-role{border:1px solid currentColor}
.sg-bar,.sg-columns{max-width:none;padding:0}
.sg-bar-in{border:1px solid var(--line);border-radius:8px}
.sg-columns{display:block;margin:20px 0 0}
.sg-side{margin-top:20px}
.sg-page details::details-content{content-visibility:visible}
.sg-fold>summary::before{display:none}
.sg-note,.sg-report,.sg-source-list>li,.sg-book,.sg-also{break-inside:avoid}
}
