/* The trail (js/trailnav.js, js/main.js; the home page only): under the header the page is two columns, the trail's map on the left and
   beside it the main panel, which shows one stop at a time. The header has the Ask field, its left edge on the main panel's.
   Two sizes. From 768px up ("small desktop and up") the trail stands to the side. The map is drawn 320px wide and never scaled: as the
   window narrows from 1240px its scenery gives way before the navigation does. The drawing slides left, so what is left of the boxes
   (the bushes, grass and trees, the loop round the meadow's four) goes off the page's edge, and its right edge (the arcs round Overview and Study, Incubation
   and Growth funding) is trimmed, until at 768px the column costs little more than the boxes' own 228px. The main panel lays itself out
   for its own width (container queries on `pgmain`: css/main.css, css/intro.css), not the window's.
   Under 768px (phones) the panel is the page and the trail is a screen of its own, opened by the header's "The trail" button. At 700px
   and under the Ask field takes a second row of the header. */

/* ── The header ── */
/* --tn-shift: how far the drawing has slid off to the left; --tn-trim: how much of its right edge the column leaves out (the drawing goes on under the panel); --tn-w: what is left of its
   320px; --tn-gap: between it and the panel; --tn-gut: the page's gutters. All 0 / full from 1240px up, and on phones. */
:root{--hdr:0px;--pg-top:20px;--tn-shift:0px;--tn-trim:0px;--tn-gap:44px;--tn-gut:16px;--tn-w:calc(320px - var(--tn-shift) - var(--tn-trim));--tn-mw:calc(320px - var(--tn-shift) - var(--tn-trim))}
@media (min-width:768px){:root{--tn-shift:clamp(0px,calc((1240px - 100vw) * .089),42px);--tn-trim:clamp(0px,calc((1240px - 100vw) * .0763),36px);--tn-gap:clamp(16px,calc(16px + (100vw - 768px) * .0593),44px)}}
@media (min-width:1240px){:root{--tn-gut:20px}}
.fb-inner{max-width:1600px;padding:0 var(--tn-gut)}
.sfr-logo{flex:none}
.fg-ask{flex:1 1 200px;display:flex;align-items:center;gap:8px;box-sizing:border-box;min-width:0;max-width:620px;height:40px;padding:3px 3px 3px 12px;border-radius:6px;background:var(--hover-paper)}
.fg-ask:focus-within{box-shadow:0 0 0 2px var(--ochre)}
.fg-ask-i{flex:none;width:18px;height:18px;color:var(--burnt)}
.fg-ask input{flex:1 1 auto;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--ink)}
.fg-ask input::placeholder{color:var(--muted)}
.fg-ask button{flex:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:4px;background:var(--ochre);color:var(--ink);cursor:pointer}
.fg-ask button:hover{background:#E3B55A}
.fg-ask button:focus-visible{outline:2px solid var(--cream);outline-offset:1px}
.fg-trailbtn{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:1px solid rgba(244,238,220,.38);border-radius:4px;background:none;color:var(--cream);font:inherit;font-size:16px;font-weight:700;white-space:nowrap;cursor:pointer}
.fg-trailbtn:hover{background:rgba(244,238,220,.1);border-color:rgba(244,238,220,.7)}
.fg-trailbtn:focus-visible{outline:2px solid var(--ochre);outline-offset:1px}
.fg-trailbtn[aria-pressed="true"]{background:var(--cream);border-color:var(--cream);color:var(--forest)}

/* ── The two columns ── */
.page{max-width:1600px;padding-left:var(--tn-gut);padding-right:var(--tn-gut)}
.fg-foot-in{max-width:1600px}
.tn-wrap{display:flex;align-items:flex-start;gap:var(--tn-gap)}
/* the main panel is what its pages measure themselves by (`pgmain`, as #main is in css/main.css) */
.tn-main{position:relative;z-index:1;flex:1 1 0;min-width:0;container:pgmain / inline-size}
/* the map: the drawing reaches past the column's edges (the trail's bends), the boxes are placed on it, the hikers walk over both.
   .tn is the room it has; .tn-in is the map itself, always 320 wide, slid left by --tn-shift. Its left runs off the page, which doesn't
   scroll that way. Its right edge is not cut (2026-11-17; it was cut where the room ended): where the trail's bends reach past the column
   they run on under the main panel, which sits above the map (z-index 1), so the panel's cards cover them. The profile item (.tn-me, z-index
   3) and its hover cards stay above the panel; .tn makes no stacking context of its own so they can. */
.tn{position:relative;flex:0 0 var(--tn-w);width:var(--tn-w)}
/* its right edge is never cut (2026-11-22): the drawing is the page's backdrop, so where the column narrows it runs on under the main
   panel (z-index 1), showing between its cards. Only the window's own edges cut it, as they do the weather's clouds (js/weather.js). */
.tn-in{position:relative;width:320px;height:997px;margin:-24px 0 0 calc(-1 * var(--tn-shift));clip-path:inset(-40px -100vw -40px -100vw)}
/* the Supporters stop showing (2026-11-19; trailnav.js trail): the map is a box's pitch taller */
.tn-in.tn-su{height:1069px}
.tn-map,.tn-hikers,.tn-weather{position:absolute;left:-60px;top:0;display:block;overflow:visible}
.tn-map{z-index:0}
.tn-hikers{z-index:2;pointer-events:none}
/* the weather over the mountain (js/weather.js): under the hikers, in the same stack, before them */
.tn-weather{z-index:2;pointer-events:none}
/* what is in front of the mountain, over the hikers on it */
.tn-weather.tn-wx-top{z-index:3}
.tn-hill{fill:#BCC3AB}
.tn-walk{fill:none;stroke:#DED5BA;stroke-width:7px;stroke-linecap:round;stroke-linejoin:round}
.tn-decor{fill:none;stroke:#B9AD86;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}
/* the scenery (trailnav.js SCENERY): bushes and pines with a faint sage fill, which also lets one in front hide one behind; a meadow's few flowers, faint */
.tn-bush,.tn-pine{fill:#E3E3C9}
.tn-flower{fill:#D8BC78}.tn-flower-1{fill:#D2AFA2}
.tn-mt{fill:#6B8068}
.tn-mt-face{fill:#4C614E}
.tn-snow{fill:#F7F2E2}
.tn-climb{fill:none;stroke:#EADFBE;stroke-width:4px;stroke-linecap:round}
.tn-ground{fill:#DCD7B8}
.tn-pole{fill:none;stroke:var(--ink);stroke-width:2.2px;stroke-linecap:round}
.tn-flag{fill:var(--ochre)}
/* a stop's box: all one size; the one showing is filled pale sage and wears the ochre ring */
.tn-box{position:absolute;z-index:1;left:46px;display:flex;align-items:center;gap:10px;box-sizing:border-box;width:228px;height:62px;padding:0 12px;border:2px solid var(--card-line);border-radius:6px;background:var(--paper-2);font:inherit;text-align:left;color:var(--ink);cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s}
.tn-box:hover{background:var(--hover-paper);border-color:var(--forest)}
.tn-box:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.tn-box.on{background:#E2E8DA;border-color:var(--ochre);box-shadow:0 0 0 3px rgba(217,164,65,.35)}
.tn-i{flex:none;color:var(--forest)}
.tn-tx{display:flex;flex-direction:column;min-width:0}
.tn-t{font-family:var(--f-display);font-size:18px;font-weight:600;line-height:1.2;color:var(--forest)}
.tn-live{overflow:hidden;font-size:14.5px;line-height:1.25;color:#5F5A4A;white-space:nowrap;text-overflow:ellipsis}
.tn-badge{position:absolute;top:-10px;right:8px;padding:1px 8px;border-radius:10px;background:var(--burnt);color:#fff;font-size:12.5px;font-weight:700;line-height:1.4}
/* a member-only stop the visitor can't open yet (js/lockedstop.js): a small lock at the box's right end, in place of a badge */
.tn-lock{flex:none;display:flex;margin-left:auto;color:var(--muted)}
.tn-box.locked .tn-live{color:var(--muted)}

/* ── The profile item: the top of the column, above the signpost; the member, so quieter than the stops and edged differently ── */
.tn-me{position:relative;z-index:3;box-sizing:border-box;width:228px;margin:4px 0 6px calc(46px - var(--tn-shift))}
.tn-me-box{position:relative;display:flex;align-items:center;gap:11px;box-sizing:border-box;width:100%;height:62px;padding:0 12px 0 9px;border:1px solid var(--card-line);border-radius:8px;background:rgba(250,246,234,.5);font:inherit;text-align:left;color:var(--ink)}
button.tn-me-box{cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s}
button.tn-me-box:hover,.tn-me-out:hover{background:var(--hover-paper);border-color:var(--forest)}
button.tn-me-box:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.tn-me-box.on{background:var(--hover-paper);border-color:var(--ochre);box-shadow:0 0 0 3px rgba(217,164,65,.35)}
.tn-me-ph{flex:none;display:block;width:42px;height:42px;overflow:hidden;border-radius:50%;object-fit:cover;background:#EAE4D2}
.tn-me-ph svg{display:block;width:100%;height:100%}
.tn-me-n{overflow:hidden;font-family:var(--f-display);font-size:17px;font-weight:600;line-height:1.2;color:var(--ink);white-space:nowrap;text-overflow:ellipsis}
.tn-me-l{overflow:hidden;font-size:14px;line-height:1.3;color:#5F5A4A;white-space:nowrap;text-overflow:ellipsis}
.tn-me-l.warn{color:var(--burnt);font-weight:700}
.tn-me-ed{flex:none;margin-left:auto;color:var(--muted)}
button.tn-me-box:hover .tn-me-ed{color:var(--forest)}
.tn-me-wait{border-style:dashed;opacity:.45}
/* signed out: a dashed invitation; the whole box is Create my profile (its ::after), and "sign in" sits above that */
.tn-me-out{border-style:dashed}
.tn-me-up{padding:0;border:0;background:none;text-align:left;cursor:pointer}
.tn-me-up::after{content:"";position:absolute;inset:0;border-radius:8px}
.tn-me-up:focus-visible{outline:none}.tn-me-up:focus-visible::after{outline:2px solid var(--forest);outline-offset:3px}
.tn-me-in{position:relative;z-index:1;padding:0;border:0;background:none;font:inherit;color:var(--forest);text-decoration:underline;cursor:pointer}
/* "What's left to complete my profile?" (trailnav.js leftList): under the item while the profile is under the bar; it opens what's left, right under it */
.tn-left{margin-top:6px}
.tn-left-q{display:inline-flex;align-items:center;gap:5px;padding:2px 0;border:0;background:none;font:inherit;font-size:14.5px;color:var(--forest);text-decoration:underline;text-underline-offset:2px;text-align:left;cursor:pointer}
.tn-left-q:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.tn-left-c{flex:none;transition:transform .12s}.tn-left.open .tn-left-c{transform:rotate(180deg)}
.tn-left-l{display:flex;flex-direction:column;gap:2px;margin:6px 0 0;padding:8px 10px;list-style:none;border:1px solid var(--card-line);border-left:3px solid var(--ochre);border-radius:6px;background:var(--hover-paper)}
.tn-left-l button{display:block;width:100%;padding:4px 2px;border:0;border-radius:4px;background:none;font:inherit;font-size:14.5px;line-height:1.3;text-align:left;color:var(--ink);cursor:pointer}
.tn-left-l button::before{content:"";display:inline-block;width:6px;height:6px;margin:0 8px 2px 0;border-radius:50%;background:var(--burnt)}
.tn-left-l button:hover,.tn-left-l button:focus-visible{background:var(--hover-stone);outline:none}
@media (prefers-reduced-motion:reduce){.tn-left-c{transition:none}}
/* The editor's sections (2026-11-17): a rail down the left of the form at every two-column width, never the row across the top the
   builder takes in a narrow panel (css/intro.css); in a panel up to 828px a compact rail, its counts kept. Phones keep the row. */
@media (min-width:768px){
  .ab.ab-ed .pb-b{display:grid;grid-template-columns:168px minmax(0,1fr);gap:22px;align-items:start}
  .ab.ab-ed .pb-rail{position:sticky;top:calc(var(--hdr) + 16px);flex-direction:column;overflow:visible;margin-bottom:0}
  .ab.ab-ed .pb-ri{flex:initial}
  .ab.ab-ed .pb-ri.sep{margin:11px 0 0}
  .ab.ab-ed .pb-ri.sep::before{top:-7px;bottom:auto;left:10px;right:10px;width:auto;height:1px}
  @container pgmain (width <= 828px){
    .ab.ab-ed .pb{padding-left:12px;padding-right:14px}
    .ab.ab-ed .pb-b{grid-template-columns:118px minmax(0,1fr);gap:12px}
    .ab.ab-ed .pb-ri{gap:5px;padding:6px 5px;font-size:13.5px}
    .ab.ab-ed .pb-ri svg{width:14px;height:14px}
    .ab.ab-ed .pb-rs{font-size:11.5px}
    .ab.ab-ed .pb-ok{width:15px;height:15px}
    .ab.ab-ed .pb-rn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  }
}
@media (prefers-reduced-motion:reduce){.tn-box,button.tn-me-box{transition:none}}

/* ── Small desktop and up: both columns; the trail stays in view as a long stop scrolls, its boxes always on screen ── */
@media (min-width:768px){
  .sfr-logo{flex:0 0 var(--tn-mw);min-width:0;margin-right:calc(var(--tn-gap) - 14px)} /* with the header's 14px gap: the Ask field starts where the main panel does. The map's width (--tn-mw) */
  .sfr-name{font-size:clamp(18px,calc(18px + (100vw - 768px) * .0182),25.5px)} /* the wordmark keeps inside the trail's room (admin/admin.css sets it the same) */
  .fg-trailbtn{display:none}
  .fg-ask{flex:1 1 150px}
  /* 2026-11-19: the header stays put and so does the trail; only the main panel moves as the page scrolls. The trail moves with it only as far
     as it must to bring its last box into a short window (--tn-bot: from the column's top down to that box's bottom; the mountain below
     doesn't count). The window still scrolls (main.js and the jumps read window.scrollY), so this is position:sticky, not a scroll box. */
  :root{--hdr:72px;scroll-padding-top:var(--hdr)}
  .fb-bar{position:sticky;top:0;z-index:40}
  /* the column is the window's height (never shorter than its boxes), so it can stay put the whole way down a stop; what of the mountain
     doesn't fit is cut at its foot (overflow:clip, no scroll box) */
  /* --tn-lift (2026-11-19): the column starts half the way up the room above it, so the profile item sits nearer the header than the panel's title does */
  /* The cut (2026-11-19): overflow:clip on both axes, the column's box widened by padding: 600px off the page's left edge, and on the
     right past all the drawing has (its trim plus the 20px it reaches past 320), so it runs on under the main panel uncut (2026-11-22; it was cut at
     the panel's edge). Not wider: a box past the window's right edge would scroll the page sideways.
     The weather (js/weather.js fit, 2026-11-22) widens it to the window's edges both ways (--tn-wx-l, --tn-wx-r, measured, never past them) (the margins take the padding back, so nothing moves). One axis alone (overflow-y:clip, overflow-x:visible) cut the
     drawing at the column's own sides in some browsers. Its foot stops 2px short of the window's, so a fraction of a pixel of rounding
     can't push the whole column up when the page reaches its end. */
  .tn{--tn-bot:761px;--tn-lift:calc((var(--pg-top) + 4px) / 2);margin-top:calc(-1 * var(--tn-lift));position:sticky;top:min(calc(var(--hdr) + var(--pg-top) - var(--tn-lift)),calc(100vh - var(--tn-bot) - 16px));height:max(calc(var(--tn-bot) + 14px),calc(100vh - var(--hdr) - var(--pg-top) + var(--tn-lift) - 2px));overflow:clip;box-sizing:content-box;padding:0 max(calc(var(--tn-trim) + 40px),var(--tn-wx-r,0px)) 0 max(600px,var(--tn-wx-l,0px));margin-left:calc(-1 * max(600px,var(--tn-wx-l,0px)));margin-right:calc(-1 * max(calc(var(--tn-trim) + 40px),var(--tn-wx-r,0px)))} /* 761: 72 of profile item, -24 of the map's empty top, Growth funding's bottom at 713 */
  .tn:has(.tn-su){--tn-bot:833px}
  /* no rubber-band at the ends of the page (2026-11-19): with the header and trail held still it showed as the whole frame bouncing */
  html,body{overscroll-behavior-y:none}
  /* the footer is the main panel's (main.js placeFoot), so the trail stays put to the very bottom; the page ends where it does */
  .page:has(.tn-main > .fg-foot){padding-bottom:0}
  .tn-main > .fg-foot{margin-top:32px}
  .tn-main > .fg-foot .fg-foot-in{max-width:none;padding-left:0;padding-right:0}
  @container pgmain (max-width:1000px){.tn-main .fg-foot-wide{display:none}}
}
@media (min-width:1240px){.page{padding-top:26px}:root{--pg-top:26px}}
/* the header's own buttons (Create account, Book Advising, the bell, the account) stay out of the menu down to 768px here (css/base.css folds them into it at 860px) */
@media (min-width:768px) and (max-width:860px){
  .fb-inner{flex-wrap:nowrap}
  .fg-cta{display:inline-flex}
  .fb-inner > .fg-mewrap{display:inline-flex}
  .fg-burgerwrap{display:none}
}
@media (min-width:768px) and (max-width:1000px){
  .fg-btn{padding:0 10px;font-size:15px}
}
/* ── Phones: one screen at a time, the stop or the trail ── */
@media (max-width:767.98px){
  .tn-wrap{display:block}
  .tn{display:none;margin:0 auto}
  .tn-wrap.tn-open .tn{display:block}
  .tn-wrap.tn-open .tn-main{display:none}
  .tn-wrap.tn-open{overflow:hidden;margin:0 -16px;padding:0 16px} /* the drawing's edges are cut at the window's, never scrolled to */
  .fg-trailbtn{margin-left:auto}
  .fg-burgerwrap{margin-left:0}
}
@media (max-width:700px){
  /* the Ask field on a second row */
  .fb-inner{flex-wrap:wrap;row-gap:0;column-gap:8px;padding-bottom:12px}
  .sfr-logo{flex:0 1 auto;min-width:0}
  .fb-inner > .sfr-logo{min-height:58px}
  .fg-ask{order:10;flex:1 0 100%;max-width:none}
}
@media (max-width:480px){
  .fb-inner{padding:0 14px 12px}
  .sfr-name{font-size:clamp(15px,4.4vw,22px)}
  .lg-helm{width:46px;height:46px;margin:-7px -7px -7px -8px}
  .fg-trailbtn{height:38px;padding:0 10px;font-size:15px}
  .fg-trailbtn svg{display:none}
  .fg-ask input{font-size:16.5px}
}
