/* PDP top bar, Round Ten (November 15, 2026). One bar for every page. Load it after the page's own sheets.
   Every name here starts "tb" and the bar keeps its own colours (--tb-*), so a page's own dark styles cannot reach it
   and it cannot reach them. It uses the page's --gutter and --head-top when the page has them.
   Widths: 1280 up, the row at the system's 18 (24 apart from 1440, 18 apart under it); 1101 to 1279 at 16 with a 230 px logo;
   1100 and under, the logo and Menu, the switch in the open menu; under 375 the logo as wide as leaves Menu its room. */

/* The bar's own name for Libre Franklin. top-bar.js, in <head>, gives the page this face from the bytes it carries, as
   "TB Franklin Ready", first in every font list of the bar (a
   FontFace made from data is ready at once), so the bar is laid out and drawn in its own face from the first frame on every
   load, cold or cached: fetched as a file with font-display optional, some loads drew the bar in the fallback face and some
   in its own, and the row sat 4 px apart from one load to the next (the testers, November 16, 2026: at 1280 the row at 574.9
   wide 479.6 on some loads, 579 wide 477 on others; written into this sheet as a data: address it still missed now and then).
   These two files are the face for a page without scripts and for the accented letters; optional, so the bar never redraws
   in another face once it is drawn. */
@font-face { font-family: "TB Franklin"; src: url(/fonts/librefranklin-latin.woff2) format("woff2"); font-weight: 400 700; font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TB Franklin"; src: url(/fonts/librefranklin-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.tb {
  --tb-ground: #fff; --tb-ink: #1D3C8F; --tb-quiet: #4A5670; --tb-panel: #fff; --tb-rule: #D5DCE6; --tb-line: #8E9CC0;
  --tb-here: #7FC0AC; --tb-btn: #1D3C8F; --tb-btn-ink: #fff; --tb-btn-hover: #16306F; --tb-tint: #EFF1F7;
  --tb-ring: #1D3C8F; --tb-on: #1D3C8F; --tb-on-ink: #fff; --tb-frame: #1D3C8F; --tb-veil: rgba(12, 24, 57, .32);
  --tb-gut: var(--gutter, 56px); --tb-logo: 270px; --tb-logo-h: 73px; --tb-size: 18px; --tb-gap: 24px; --tb-join-pad: 20px;
  position: relative; z-index: 60; background: var(--tb-ground); padding-top: var(--head-top, 15.5px);
  font-family: "TB Franklin Ready", "TB Franklin", system-ui, sans-serif; -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .tb {
  --tb-ground: #131B33; --tb-ink: #ECEFF6; --tb-quiet: #AAB4CD; --tb-panel: #1A2340; --tb-rule: #2E3A5E; --tb-line: #4D5B7E;
  --tb-here: #72B3A0; --tb-btn: #ECEFF6; --tb-btn-ink: #131B33; --tb-btn-hover: #D5DCE6; --tb-tint: #1F2949;
  --tb-ring: #B6C5F0; --tb-on: #72B3A0; --tb-on-ink: #0B1A3F; --tb-frame: #AAB4CD; --tb-veil: rgba(4, 8, 20, .6);
}
.tb, .tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb p { margin: 0; }
.tb-in { position: relative; display: flex; align-items: center; gap: var(--tb-gap); width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--tb-gut); }

/* the logo, home */
.tb-home { display: block; line-height: 0; margin-right: auto; flex: none; }
/* its height set, not read from the picture: the <img>'s 270 by 73 gave 73.0 until the SVG (405.32 by 109.39) loaded and
   then 72.9, so the bar was a tenth of a pixel taller for its first frames on some loads (the testers, November 16, 2026).
   Whole pixels at each size; the drawing fits inside by its own proportions (a tenth of a pixel to spare, unseen) */
.tb-logo { display: block; width: var(--tb-logo); max-width: none; height: var(--tb-logo-h); margin-left: calc(var(--tb-logo) * -0.03227); }
.tb-dk { display: none; }
:root[data-theme="dark"] .tb-lt { display: none; }
:root[data-theme="dark"] .tb-dk { display: block; }

/* the row */
.tb-row { display: flex; align-items: center; gap: var(--tb-gap); }
.tb-link, .tb-signin { display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--tb-size)/1 "TB Franklin Ready", "TB Franklin", sans-serif;
  color: var(--tb-ink); text-decoration: none; white-space: nowrap; flex: none; }
.tb-link[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tb-here); text-underline-offset: 10px; }
.tb-has::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top: 6px solid currentColor; border-bottom: 0; }
.tb-part { position: relative; }
.tb-sub { display: none; position: absolute; z-index: 70; top: 100%; left: -24px; min-width: 260px; padding: 6px 24px 10px;
  background: var(--tb-panel); box-shadow: 0 0 0 1px var(--tb-line), 0 18px 40px rgba(12, 24, 57, .14); }
.tb-part:not(.tb-closed):focus-within .tb-sub { display: block; }
.tb-sub a { display: block; padding: 16px 0 15px; border-top: 1px solid var(--tb-rule); font: 600 var(--tb-size)/1 "TB Franklin Ready", "TB Franklin", sans-serif;
  color: var(--tb-ink); text-decoration: none; white-space: nowrap; }
.tb-sub a:first-child { border-top: 0; }
.tb-sub a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tb-here); text-underline-offset: 7px; }

/* the join button */
.tb-join, .tb-sjoin { display: inline-flex; align-items: center; justify-content: center; flex: none; font: 600 var(--tb-size)/1 "TB Franklin Ready", "TB Franklin", sans-serif;
  white-space: nowrap; text-decoration: none; background: var(--tb-btn); color: var(--tb-btn-ink); }
.tb-join { height: 56px; padding: 0 var(--tb-join-pad); }

/* the switch: one small icon, the theme that is on (a sun in light, a moon in dark), in the row's own ink and about the
   weight of its type, no border, no fill. Drawn 16 px, about the row's capital letters, its centre on the middle of the
   capitals beside it (--tb-sw-y). The button that takes the click is 44 by 44 and unseen; its sides reach into the gaps,
   so the space you see either side of the icon is the row's own gap. */
.tb { --tb-sw-y: -0.7px; }
.tb-theme { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--tb-ink); cursor: pointer; font: inherit; }
.tb-theme svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  transform: translateY(var(--tb-sw-y)); }
.tb-theme .tb-moon, :root[data-theme="dark"] .tb-theme .tb-sun { display: none; }
:root[data-theme="dark"] .tb-theme .tb-moon { display: block; }
/* where the unseen area meets Sign in or the button (2 px at 1101 to 1279), they sit above it and take the click */
.tb-theme-bar { margin-inline: -14px; position: relative; z-index: 0; }
.tb-signin, .tb-join { position: relative; z-index: 1; }
.tb .tb-theme:focus-visible { outline-offset: -8px; }

/* Menu, under 1101 */
.tb-menu { display: none; flex: none; }
.tb-menu summary { list-style: none; cursor: pointer; display: grid; align-items: center; justify-items: center; min-height: 44px; padding: 0 16px;
  font: 600 var(--tb-size)/1 "TB Franklin Ready", "TB Franklin", sans-serif; color: var(--tb-ink); background: var(--tb-ground); box-shadow: inset 0 0 0 2px var(--tb-ink);
  -webkit-user-select: none; user-select: none; }
.tb-menu summary::-webkit-details-marker { display: none; }
.tb-menu summary > span { grid-area: 1 / 1; }
.tb-menu .tb-shut, .tb-menu[open] .tb-open { visibility: hidden; }
.tb-menu[open] .tb-shut { visibility: visible; }
.tb-menu[open] summary { background: var(--tb-tint); }
.tb-sheet { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; display: flex; flex-direction: column; align-items: stretch;
  margin-top: 12px; padding: 0 var(--tb-gut) 32px; background: var(--tb-ground); max-height: calc(100dvh - 100px - 44px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 1px 0 var(--tb-line), 0 0 0 100vmax var(--tb-veil); clip-path: inset(0 -100vmax -100vmax -100vmax); }
.tb-sgo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; padding: 16px 0 20px; border-bottom: 1px solid var(--tb-rule); }
.tb-sjoin { font-size: 17px; height: 52px; padding: 0 24px; }
.tb-ssign { margin-left: 24px; display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1 "TB Franklin Ready", "TB Franklin", sans-serif; color: var(--tb-ink); text-decoration: none; }
.tb-theme-sheet { margin-left: auto; margin-right: -14px; }
.tb-sgrp { display: flex; flex-direction: column; padding: 16px 0 6px; border-bottom: 1px solid var(--tb-rule); }
.tb-sl { font: 600 12px/16px "TB Franklin Ready", "TB Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-quiet); }
.tb-sgrp a, .tb-one { display: flex; align-items: center; min-height: 44px; font: 700 24px/1.2 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50;
  color: var(--tb-ink); text-decoration: none; padding: 8px 0; }
.tb-one { padding: 15px 0; border-bottom: 1px solid var(--tb-rule); }
.tb-sgrp a[aria-current], .tb-one[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tb-here); text-underline-offset: 6px; }

/* A member signed in (November 16, 2026; Taylor: the bar "expands and then quickly contracts on the page load", and "Where
   is the logout button?"). The bar carries both states and top-bar.js, in <head>, sets <html data-me> from the hint this
   device keeps once /api/me has named a member, so a member's bar is drawn in its own state from the first paint and the
   answer only confirms it; nothing in the bar moves on a load. Signed in: the row's Sign in and Put your name down step out
   and .tb-mine stands where Sign in stood, their small face and Profile, a dropdown like the four words' (Profile, Sign
   out); the open menu shows Profile and Sign out where Put your name down and Sign in were. The face is drawn at its final
   size from the start, its initials and picture set on <html> by top-bar.js (--tb-me-i, --tb-me-pic). */
.tb-mine, .tb-sme, .tb-sgo .tb-out { display: none; }
:root[data-me] .tb-signin, :root[data-me] .tb-join, :root[data-me] .tb-sjoin, :root[data-me] .tb-sgo .tb-ssign:not(.tb-sme):not(.tb-out) { display: none; }
:root[data-me] .tb-mine { display: block; flex: none; }
:root[data-me] .tb-sme, :root[data-me] .tb-sgo .tb-out { display: inline-flex; }
:root[data-me] .tb-sme { margin-left: 0; }
.tb-me { gap: 10px; }
.tb-me::after { margin-left: -4px; }   /* its arrow 6 from the word, as the four words' are */
/* the face takes no underline: the word under the pointer and the page's mark are on the word alone */
.tb-link.tb-me, .tb-link.tb-me:hover { text-decoration: none; }
.tb-me[aria-current] .tb-word { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tb-here); text-underline-offset: 10px; }
.tb-face { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #1D3C8F var(--tb-me-pic, none) center / cover no-repeat;
  color: #fff; font: 700 12px/1 "TB Franklin Ready", "TB Franklin", sans-serif; box-shadow: inset 0 0 0 3px var(--tb-here); }
.tb-face::before { content: var(--tb-me-i, ""); }
:root[data-me-pic] .tb-face::before { content: none; }
/* its dropdown opens toward the bar's left from its own right end, so it stays inside the window's right edge */
.tb-mine .tb-sub { left: auto; right: -24px; }
.tb-sub .tb-out { cursor: pointer; }
@media (min-width: 1101px) and (max-width: 1279px) { .tb-mine .tb-sub { right: -18px; } }
@media (forced-colors: active) { .tb-face { forced-color-adjust: none; } }

/* focus: a ring that shows on white and on the navy (blue 10.0 to 1 on white; pale blue 9.9 to 1 on the navy, apart from the Dome of the switch) */
.tb :focus { outline: none; }
.tb :focus-visible { outline: 3px solid var(--tb-ring); outline-offset: 3px; position: relative; z-index: 1; }
.tb-sub :focus-visible { outline-offset: 2px; }

/* the pointer's looks, only where there is a pointer that hovers, so a touch leaves nothing pressed */
@media (hover: hover) and (pointer: fine) {
  .tb-me:hover .tb-word { text-decoration: underline; text-underline-offset: 6px; }
  .tb-me[aria-current]:hover .tb-word { text-underline-offset: 10px; }
  .tb-part:not(.tb-closed):hover .tb-sub { display: block; }
  .tb-link:hover, .tb-signin:hover, .tb-sub a:hover, .tb-ssign:hover, .tb-sgrp a:hover, .tb-one:hover { text-decoration: underline; text-underline-offset: 6px; }
  .tb-link[aria-current]:hover { text-underline-offset: 10px; }
  .tb-join:hover, .tb-sjoin:hover { background: var(--tb-btn-hover); }
  .tb-menu summary:hover { background: var(--tb-tint); }
}

@media (min-width: 1101px) and (max-width: 1439px) { .tb { --tb-gap: 18px; --tb-join-pad: 16px; } }
@media (min-width: 1101px) and (max-width: 1279px) { .tb { --tb-logo: 230px; --tb-logo-h: 62px; --tb-size: 16px; --tb-gap: 12px; --tb-join-pad: 12px; --tb-sw-y: -0.9px; } .tb-sub { left: -18px; padding-inline: 18px; } }
@media (max-width: 1100px) {
  .tb-row, .tb-signin, .tb-theme-bar, .tb-join, :root[data-me] .tb-mine { display: none; }
  .tb-menu { display: block; }
}
@media (max-width: 760px) {
  .tb { --tb-gut: var(--gutter, 20px); --tb-logo: 260px; --tb-logo-h: 70px; --tb-gap: 12px; padding-top: var(--head-top, 15.8px); }
  .tb-menu summary { font-size: 16px; padding: 0 12px; }
}
/* under 375 (a 320 or 360 phone) the 260 px logo and Menu no longer fit beside each other and the bar ran up to 33 px past
   the window (November 16, 2026): the logo takes the width the gutters, the gap and Menu (about 67 px) leave it, never more
   than its 260; from 375 up nothing changes */
@media (max-width: 374px) {
  .tb { --tb-logo: min(260px, calc((100vw - 2 * var(--tb-gut) - var(--tb-gap) - 68px) / 0.96773)); --tb-logo-h: calc(var(--tb-logo) * 109.39 / 405.32); }
}
@media (prefers-reduced-motion: reduce) { .tb, .tb * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .tb-theme { color: ButtonText; } }

/* the skip link (November 16, 2026): the first stop on every page, out of sight until the keyboard reaches it, then a button's
   blue over the bar's left end; it goes to the page's <main> (top-bar.js gives it its mark and the focus) */
.tb-skip, .tb .tb-skip:focus-visible { position: absolute; z-index: 90; left: var(--tb-gut); top: 6px; }
.tb-skip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--tb-btn); color: var(--tb-btn-ink);
  font: 600 16px/1 "TB Franklin Ready", "TB Franklin", sans-serif; text-decoration: none; white-space: nowrap; transform: translateY(calc(-100% - 40px)); }
.tb-skip:focus { transform: none; }
/* where the switch says what it did: heard, not seen */
.tb-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The menu sheet holds the page still while it is open (the testers, November 16, 2026: it scrolled away with the page and
   stayed open far above the view); the sheet still scrolls inside itself. Where the row of menus stands (1101 and up) the
   sheet is closed by the bar's script, as before. */
@media (max-width: 1100px) { html:has(.tb-menu[open]) { overflow: hidden; } }
/* The sheet stops 44 px above the window's foot, a finger's reach of the dimmed page left under it even on a phone, where
   the sheet is taller than the screen: a tap there closes the menu (top-bar.js; the testers, November 16, 2026: on a phone
   the sheet ran to the foot and only Close closed it) */
