/* Story Map — /story-map/. Same palette and type as the route map (/route/). v2: no frame around the map, a scroll-driven
   story column beside a sticky map (on phones: map sticky on top, text below), explore section at the end. */
:root{
  --paper:#fbfcfd; --ink:#17232c; --muted:#56646e; --faint:#8a969f; --rule:#dce3e8; --rule-2:#eef2f5;
  --navy:#003e75; --navy-2:#0f4c81; --sun-soft:#fff6cc; --card:#ffffff;
  --flag:#8a5a00; --flag-bg:#fff2d6; --grey-pt:#c3cad1; --float:rgba(251,252,253,.86);
  --display:"EB Garamond",Georgia,"Times New Roman",serif;
  --body:"Libre Baskerville",Georgia,"Times New Roman",serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--paper);color:var(--ink)}
body{font-family:var(--body);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer}
a{color:var(--navy)}
.sm{max-width:1600px;margin:0 auto}

/* ---------------------------------------------------------------- layout: text column left, sticky map right */
.sm-story{display:grid;grid-template-columns:minmax(330px,430px) minmax(0,1fr);grid-template-areas:"text map";gap:0 28px;padding:0 24px 0 32px}
.sm-text{grid-area:text;min-width:0;padding-bottom:10vh}
.sm-mapcol{grid-area:map;position:sticky;top:0;height:100vh;height:100svh;align-self:start;min-width:0}
.sm-mapwrap{position:relative;width:100%;height:100%;touch-action:none}
#sm-canvas{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;cursor:grab}
#sm-canvas.pointing{cursor:pointer}
#sm-canvas:active{cursor:grabbing}
.sm-gl{position:absolute;inset:0;width:100%;height:100%;display:none}

/* ---------------------------------------------------------------- header + story sections */
.sm-head{padding:30px 0 6vh}
.sm-topline{margin:0 0 8px}
.sm-home{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:var(--navy);margin-right:10px}
.sm-flag{display:inline-block;font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;color:var(--flag);background:var(--flag-bg);padding:1px 7px;border-radius:3px}
.sm-head h1{font-family:var(--display);font-weight:600;font-size:clamp(40px,4vw,54px);line-height:1.02;margin:6px 0 10px;color:var(--navy);letter-spacing:-.01em}
.sm-lede{margin:0;color:#2b3a45;font-size:15.5px}
.sm-skip{margin:14px 0 0;font-family:var(--mono);font-size:12.5px}
.sm-skip a{text-decoration:none;border-bottom:1px solid currentColor}

.sm-step{min-height:72vh;display:flex;flex-direction:column;justify-content:center;padding:4vh 0;opacity:.5;transition:opacity .45s}
.sm-step.active{opacity:1}
.sm-step-intro{min-height:60vh}
.sm-kicker{margin:0 0 4px;font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.sm-step h2,.sm-explore h2{font-family:var(--display);font-weight:600;font-size:31px;line-height:1.12;margin:0 0 10px;color:var(--navy)}
.sm-step-sub h2,.sm-step-post h2{font-size:26px}
.sm-step-post h2{font-style:italic;font-weight:500}
.sm-step p{margin:0;font-size:16px;color:#26343f}
.sm-postlink{display:inline-flex;align-items:center;gap:12px;margin-top:14px;text-decoration:none;color:var(--navy);font-family:var(--mono);font-size:12.5px}
.sm-postlink img{width:56px;height:56px;object-fit:cover;border-radius:4px;background:var(--rule-2)}
.sm-postlink small{display:block;color:var(--faint);font-size:11px}
.sm-postlink:hover span{text-decoration:underline}

/* explore section: search + theme list, unboxed */
.sm-explore{min-height:100vh;justify-content:flex-start;padding-top:12vh}
.sm-form{margin-top:22px}
.sm-form label{display:block;font-family:var(--display);font-weight:600;font-size:20px;color:var(--navy);margin-bottom:6px}
.sm-qrow{display:flex;gap:8px}
.sm-qrow input{flex:1;min-width:0;font:15px/1.4 var(--body);padding:10px 2px;border:0;border-bottom:1.5px solid #9fb0bf;border-radius:0;background:transparent;color:var(--ink)}
.sm-qrow input:focus{outline:none;border-bottom-color:var(--navy)}
.sm-qrow button{font-family:var(--mono);font-size:12.5px;font-weight:500;letter-spacing:.04em;background:var(--navy);color:#fff;border:0;border-radius:999px;padding:0 18px}
.sm-qrow button:hover{background:var(--navy-2)}
.sm-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.sm-chip{font-family:var(--body);font-style:italic;font-size:13px;background:transparent;border:1px solid var(--rule);border-radius:999px;padding:3px 11px;color:#2b3a45}
.sm-chip:hover,.sm-chip.on{border-color:var(--navy);color:var(--navy)}
.sm-show{display:flex;align-items:center;gap:10px;margin:22px 0 4px;font-family:var(--mono);font-size:11.5px;color:var(--muted)}

/* ---------------------------------------------------------------- floating controls (light, no boxes) */
.sm-seg{display:inline-flex;background:var(--float);border:1px solid var(--rule);border-radius:999px;padding:2px}
.sm-seg button{font-family:var(--mono);font-size:12px;border:0;background:transparent;border-radius:999px;padding:4px 12px;color:var(--muted)}
.sm-seg button[aria-pressed="true"]{background:var(--navy);color:#fff}
.sm-seg button:disabled{opacity:.4;cursor:not-allowed}
.sm-topbar{position:absolute;z-index:3;top:14px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none}
.sm-topbar>*{pointer-events:auto}
.sm-crumb{position:absolute;z-index:3;left:12px;top:50px;font-family:var(--mono);font-size:11px;color:var(--muted);background:var(--float);border-radius:4px;padding:1px 6px;pointer-events:none;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-crumb:empty{display:none}
.sm-crumb b{font-weight:500;color:var(--ink)}
.sm-back{position:absolute;z-index:3;left:12px;top:76px;font-family:var(--mono);font-size:12px;background:var(--float);color:var(--navy);border:1px solid var(--navy);border-radius:999px;padding:3px 11px}
.sm-back span{color:var(--faint);font-size:10.5px}
.sm-back[hidden]{display:none}
.sm-timebar{position:absolute;z-index:3;left:12px;bottom:14px;display:flex;gap:8px;flex-wrap:wrap;max-width:calc(100% - 80px)}
.sm-pill{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:12px;background:var(--float);color:var(--navy);border:1px solid var(--rule);border-radius:999px;padding:5px 13px}
.sm-pill:hover{border-color:var(--navy)}
.sm-pill[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.sm-pill[hidden]{display:none}
.i-play{width:0;height:0;border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.sm-pill[aria-pressed="true"] .i-play{width:8px;height:9px;border:0;background:currentColor}
.sm-zoom{position:absolute;z-index:3;right:12px;bottom:14px;display:flex;flex-direction:column;gap:4px}
.sm-zoom button{width:32px;height:32px;border:1px solid var(--rule);border-radius:50%;background:var(--float);font-size:17px;line-height:1;color:var(--navy);padding:0}
.sm-zoom button:hover{border-color:var(--navy)}
.sm-keys{position:absolute;z-index:2;left:12px;bottom:52px;max-width:calc(100% - 80px);margin:0;font-family:var(--mono);font-size:10.5px;line-height:1.9;color:var(--faint);pointer-events:none;display:none}
.sm.mode-cloud.phase-explore .sm-keys{display:block}
.sm-keys kbd{font:inherit;border:1px solid var(--rule);border-bottom-width:2px;border-radius:3px;padding:0 3px;margin:0 1px;background:#fff;color:var(--muted)}
.sm-keys .k-touch{display:none}
@media (hover:none){.sm-keys .k-desk{display:none}.sm-keys .k-touch{display:inline}}

/* the year during Play through time */
.sm-year{position:absolute;z-index:2;right:18px;top:12px;text-align:right;color:var(--navy);opacity:0;transition:opacity .4s;pointer-events:none}
.sm-year.on{opacity:1}
.sm-year b{display:block;font-family:var(--display);font-weight:600;font-size:64px;line-height:1;font-variant-numeric:tabular-nums;opacity:.85}
.sm-year span{font-family:var(--mono);font-size:11px;color:var(--muted)}
.sm-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:13px;color:var(--muted);pointer-events:none}
.sm:not(.is-loading) .sm-status{display:none}

/* ---------------------------------------------------------------- teaser → reading card (v4.1): see-through glass over the map.
   #sm-teaser: the small teaser beside a dot. #sm-preview: the reading card; its glass is its own layer (.pv-glass) so the
   zoom can scale the panel without distorting text. Positions and sizes are set inline by story-map.js. */
.sm-teaser{position:absolute;z-index:9;display:flex;gap:10px;padding:9px 11px 10px;cursor:pointer;
  background:rgba(251,252,253,.55);-webkit-backdrop-filter:blur(5px) saturate(1.1);backdrop-filter:blur(5px) saturate(1.1);
  border:1px solid rgba(200,212,222,.9);border-radius:12px;box-shadow:0 8px 26px rgba(16,36,56,.14);color:var(--ink);
  text-shadow:0 0 4px rgba(255,255,255,.95),0 0 9px rgba(255,255,255,.85);transition:opacity .12s}
.sm-teaser[hidden]{display:none}
.sm-teaser.out{opacity:0}
.pv-tz-img{flex:none;width:46px;height:46px;border-radius:6px;overflow:hidden;background:rgba(232,238,243,.7)}
.pv-tz-img img{width:100%;height:100%;object-fit:cover;display:block}
.pv-tz-text{min-width:0}
.pv-tz-title{margin:0;font-family:var(--display);font-weight:600;font-size:16px;line-height:1.15;color:var(--navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-tz-meta{margin:2px 0 0;display:flex;align-items:center;gap:5px;font-family:var(--mono);font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-tz-meta i{width:7px;height:7px;border-radius:50%;flex:none}
.pv-tz-sum{margin:3px 0 0;font-size:12px;line-height:1.45;color:#22313b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-tz-sum:empty{display:none}
.sm-preview{position:absolute;z-index:8;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;color:var(--ink)}
.sm-preview[hidden]{display:none}
.pv-glass{position:absolute;inset:0;border-radius:12px;transform-origin:0 0;
  background:rgba(251,252,253,.5);-webkit-backdrop-filter:blur(5px) saturate(1.1);backdrop-filter:blur(5px) saturate(1.1);
  border:1px solid rgba(200,212,222,.9);box-shadow:0 10px 34px rgba(16,36,56,.16)}
.sm-preview.pinned .pv-glass{border-color:rgba(0,62,117,.45)}
/* a soft light halo keeps the text readable over busy parts of the map */
.sm-preview .pv-text{text-shadow:0 0 4px rgba(255,255,255,.95),0 0 9px rgba(255,255,255,.85)}
/* the reading card */
.pv-full{position:relative;display:flex;flex-direction:column;min-height:0;flex:1}
.pv-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px 6px 14px;border-bottom:1px solid rgba(200,212,222,.6);background:rgba(251,252,253,.55)}
.pv-nav{display:flex;align-items:center;gap:6px;min-width:0;font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.pv-nav button{width:26px;height:26px;border-radius:50%;border:1px solid var(--rule);background:rgba(255,255,255,.75);color:var(--navy);font-size:16px;line-height:1;padding:0;flex:none}
.pv-nav button:disabled{opacity:.35;cursor:default}
.pv-count{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-x{border:0;background:none;font-size:22px;line-height:1;color:var(--muted);padding:2px 6px;flex:none}
.pv-x:hover{color:var(--navy)}
.pv-scroll{flex:1;overflow:auto;overscroll-behavior:contain;padding:14px 18px 18px;-webkit-overflow-scrolling:touch}
.pv-hero{aspect-ratio:16/9;border-radius:8px;margin:0 0 12px;background:rgba(232,238,243,.5) center/cover no-repeat;overflow:hidden}
.pv-hero img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.pv-hero img.in{opacity:1}
.pv-where{display:flex;align-items:center;gap:7px;margin:0 0 4px;font-family:var(--mono);font-size:10.5px;letter-spacing:.02em;color:#44535e}
.pv-where i{width:8px;height:8px;border-radius:50%;flex:none}
.pv-title{font-family:var(--display);font-weight:600;font-size:27px;line-height:1.12;margin:0 0 4px;color:var(--navy)}
.pv-date{margin:0 0 12px;font-family:var(--mono);font-size:11px;color:#5d6a74}
.pv-body p{margin:0 0 .85em;font-size:14.5px;line-height:1.7;color:#16232c}
.pv-loading{color:var(--muted)!important;font-style:italic}
.pv-inshort{background:rgba(238,242,246,.82);border-left:4px solid var(--navy);border-radius:4px;padding:.75em 1em;margin:0 0 1.2em}
.pv-inshort .pv-inshort-label{margin:0 0 .3em;font:600 12px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--navy)}
.pv-inshort p{margin:0;font-size:14.5px}
.pv-fig{margin:.4em 0 1em}
.pv-fig img{display:block;max-width:100%;height:auto;border-radius:6px}
.pv-gap{text-align:center;color:var(--faint)!important;letter-spacing:.3em}
.pv-hlsec{margin:0 0 1em}
/* the pill: jump to the part that matched */
.pv-pillslot:empty{display:none}
.pv-pill{position:relative;display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:0 0 12px;padding:4px 12px;border:1px solid rgba(0,62,117,.35);border-radius:999px;
  background:rgba(255,246,204,.75);font-family:var(--mono);font-size:11px;color:var(--navy);text-shadow:none;text-align:left}
.pv-pill:hover{border-color:var(--navy)}
.pv-pill-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-tip{display:none;position:absolute;left:0;top:calc(100% + 6px);z-index:3;width:min(330px,80vw);padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.96);
  border:1px solid var(--rule);box-shadow:0 6px 18px rgba(16,36,56,.14);font-family:var(--body);font-size:12px;line-height:1.5;color:#22313b;white-space:normal;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;visibility:hidden;opacity:0;transition:opacity .12s}
@media (hover:hover){.pv-pill:hover .pv-tip{visibility:visible;opacity:1}}
.pv-flash,.pv-hlsec.flash,.pv-hl.flash{animation:pvflash 1.1s ease-out}
@keyframes pvflash{0%{background-color:rgba(255,226,120,.95)}100%{background-color:transparent}}
.pv-top{display:inline-block;margin:.2em 0 0;border:0;background:none;padding:0;font-family:var(--mono);font-size:11px;color:var(--navy);text-decoration:underline;text-underline-offset:2px}
.pv-hl-label{margin:0 0 .4em!important;font-family:var(--mono);font-size:10.5px!important;letter-spacing:.05em;text-transform:uppercase;color:var(--navy)!important}
.pv-hlsec h3{font-family:var(--display);font-weight:600;font-size:19px;margin:0 0 .4em;color:var(--navy)}
.pv-body .pv-hl{background:rgba(255,246,204,.82);box-shadow:-10px 0 0 rgba(255,246,204,.82),10px 0 0 rgba(255,246,204,.82);border-left:3px solid var(--navy);padding-left:8px}
.pv-more{color:var(--faint)!important}
.pv-foot{padding:10px 16px 12px;border-top:1px solid rgba(200,212,222,.6);background:rgba(251,252,253,.55)}
.pv-go{display:block;text-align:center;font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:.02em;background:var(--navy);color:#fff;text-decoration:none;border-radius:999px;padding:10px 16px;text-shadow:none}
.pv-go:hover{background:var(--navy-2)}
/* phones: a bottom sheet over the page */
.sm-preview.sheet{position:fixed;z-index:60;top:auto;left:0;right:0;bottom:0;width:auto;height:70vh;height:70svh;max-height:70svh;border-radius:16px 16px 0 0;transition:transform .2s}
.sm-preview.sheet .pv-glass{border-radius:16px 16px 0 0;background:rgba(251,252,253,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)} /* over page text, not the map: more opaque */
.sm-preview.sheet .pv-bar{padding-top:16px;position:relative}
.sm-preview.sheet .pv-bar::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#c3cad1}
.sm-preview.sheet .pv-title{font-size:24px}

/* ---------------------------------------------------------------- theme list + results (unboxed) */
.sm-panel{font-size:13.5px;margin-top:6px}
.sm-panel h2{font-family:var(--display);font-weight:600;font-size:22px;color:var(--navy);margin:14px 0 2px}
.sm-panel .p-sub{font-family:var(--mono);font-size:11px;color:var(--muted);margin:0 0 10px}
.sm-colour{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11px;color:var(--muted);margin:0 0 10px}
.sm-colour .sm-seg button{font-size:11px;padding:2px 10px}
.sm-themes{list-style:none;margin:0;padding:0}
.sm-themes>li{border-top:1px solid var(--rule-2)}
.sm-th{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:7px 0}
.sm-th:hover .t-name{color:var(--navy);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.sm-th i{width:11px;height:11px;border-radius:50%}
.sm-th .t-name{font-family:var(--display);font-weight:600;font-size:17px;line-height:1.2}
.sm-th .t-n{font-family:var(--mono);font-size:11px;color:var(--muted)}
.sm-subs{list-style:none;margin:0 0 6px 21px;padding:0}
.sm-subs button{display:flex;justify-content:space-between;gap:8px;width:100%;border:0;background:none;text-align:left;padding:2px 0;font-style:italic;font-size:13px;color:#34434e}
.sm-subs button:hover{color:var(--navy)}
.sm-subs .t-n{font-family:var(--mono);font-style:normal;font-size:10.5px;color:var(--faint)}
.sm-grey{display:flex;gap:9px;align-items:center;font-size:12.5px;color:var(--muted);border-top:1px solid var(--rule-2);padding-top:8px;margin-top:2px}
.sm-grey i{width:10px;height:10px;border-radius:50%;background:var(--grey-pt);flex:none}
.sm-yearkey{height:8px;border-radius:4px;margin:4px 0 2px}
.sm-yearkey-l{display:flex;justify-content:space-between;font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.sm-res-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.sm-clear{border:0;background:none;font-family:var(--mono);font-size:11px;color:var(--navy);padding:0;white-space:nowrap}
.sm-results{list-style:none;margin:6px 0 0;padding:0}
.sm-results li{border-top:1px solid var(--rule-2);padding:10px 0 10px 30px;position:relative}
.sm-results .r-img{float:right;width:44px;height:44px;object-fit:cover;border-radius:6px;margin:2px 0 4px 10px}
.sm-results li .r-n{position:absolute;left:0;top:11px;width:21px;height:21px;border-radius:50%;background:var(--navy);color:#fff;font-family:var(--mono);font-size:11px;display:flex;align-items:center;justify-content:center}
.sm-results li.alt .r-n{background:transparent;color:var(--navy);border:1.5px solid var(--navy)}
.sm-results li:hover,.sm-results li.hot{background:#f2f6fa}
.sm-results .r-where{font-family:var(--mono);font-size:10.5px;color:var(--muted);display:flex;gap:6px;align-items:center}
.sm-results .r-where i{width:8px;height:8px;border-radius:50%;flex:none}
.sm-results a.r-title{display:block;font-family:var(--display);font-weight:600;font-size:16.5px;line-height:1.25;color:var(--ink);text-decoration:none;margin:2px 0 3px}
.sm-results a.r-title:hover{color:var(--navy);text-decoration:underline}
.sm-results .r-date{font-family:var(--mono);font-size:10.5px;color:var(--faint)}
.sm-results .r-snip{margin:5px 0 0;font-size:12.8px;line-height:1.55;color:#33424d}
.sm-results .r-snip b{background:var(--sun-soft);font-weight:400;color:var(--ink)}
.sm-msg{font-size:13.5px;color:var(--muted);padding:8px 0}
.sm-msg.err{color:#8a3b00}
.sm-spin{display:inline-block;width:12px;height:12px;border:2px solid var(--rule);border-top-color:var(--navy);border-radius:50%;animation:spin .8s linear infinite;vertical-align:-1px;margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------------------------------------------------------------- footer */
.sm-foot{max-width:760px;margin:0 0 0 32px;border-top:1px solid var(--rule);padding:16px 0 40px;font-size:14px;color:#33424d}
.sm-foot h2{font-family:var(--display);font-weight:600;font-size:22px;color:var(--navy);margin:0 0 6px}
.sm-meta{font-family:var(--mono);font-size:11px;color:var(--faint)}

/* ---------------------------------------------------------------- phones and narrow tablets: map sticky on top, text below */
@media (max-width:979px){
  .sm-story{grid-template-columns:minmax(0,1fr);grid-template-areas:"map" "text";padding:0}
  .sm-mapcol{height:54vh;height:54svh;z-index:6;background:var(--paper);box-shadow:0 1px 0 var(--rule)}
  .sm-text{padding:0 18px 12vh}
  .sm-head{padding:22px 0 4vh}
  .sm-step{min-height:58vh;padding:3vh 0}
  .sm-step-intro{min-height:40vh}
  .sm-explore{min-height:70vh;padding-top:6vh}
  .sm-foot{margin:0 18px}
}
@media (max-width:560px){
  .sm-head h1{font-size:38px}
  .sm-lede,.sm-step p{font-size:15px}
  .sm-step h2,.sm-explore h2{font-size:26px}
  .sm-step-sub h2,.sm-step-post h2{font-size:23px}
  .sm-topbar{top:10px}
  .sm-crumb{top:44px;font-size:10px;max-width:calc(100% - 24px)}
  .sm-back{top:68px}
  .sm-pill{font-size:11.5px;padding:4px 11px}
  .sm-year{right:12px;top:8px}
  .sm-year b{font-size:42px}
  .sm-year span{display:none}
  .sm-zoom button{width:30px;height:30px}
  .sm-zoom{bottom:10px}
  .sm-timebar{bottom:10px}
  .sm.mode-cloud.phase-explore .sm-keys{display:none}
}
@media (prefers-reduced-motion:reduce){
  .sm-year,.sm-step,.sm-preview.sheet,.sm-teaser{transition:none}
  .pv-hlsec.flash,.pv-hl.flash{animation:none}
  .sm-spin{animation:none}
}

/* "Browse the themes": the server-rendered list of themes, sub-themes and representative posts (crawlable links) */
.sm-browse{max-width:1200px;margin:0 0 0 32px;padding:22px 24px 8px 0;border-top:1px solid var(--rule)}
.sm-browse summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px}
.sm-browse summary::-webkit-details-marker{display:none}
.sm-browse summary::after{content:"";width:8px;height:8px;border:solid var(--navy);border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-4px;transition:transform .2s}
.sm-browse details[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.sm-browse h2{display:inline;font-family:var(--display);font-weight:600;font-size:24px;color:var(--navy);margin:0}
.sm-browse-intro{font-size:14px;color:var(--muted);margin:8px 0 14px}
.sm-browse-grid{columns:3 300px;column-gap:36px}
.sm-bt{break-inside:avoid;margin:0 0 20px}
.sm-bt h3{font-family:var(--display);font-weight:600;font-size:19px;line-height:1.2;color:var(--navy);margin:0 0 4px;border-bottom:1px solid var(--rule);padding-bottom:4px}
.sm-bt h3 small{display:block;font-family:var(--mono);font-weight:400;font-size:10.5px;color:var(--faint);margin-top:2px}
.sm-bt h4{font-family:var(--body);font-style:italic;font-weight:400;font-size:13.5px;color:#34434e;margin:8px 0 2px}
.sm-bt ul{margin:0;padding:0 0 0 16px;font-size:13.5px;line-height:1.5}
.sm-bt li{margin:2px 0}
.sm-bt a{color:var(--ink);text-decoration:none}
.sm-bt a:hover{color:var(--navy);text-decoration:underline}
@media (max-width:979px){.sm-browse{margin:0 18px;padding-right:0}}
