/* ==========================================================================
   HISTLab presentation theme for reveal.js  —  editorial / professional
   Type:  Inter (UI, body, labels)  +  Newsreader (serif display headings)
   Color: ink navy + one refined blue accent; gradient used sparingly.
   Light by default; .theme-dark on <html> flips it.
   ========================================================================== */

/* ---- fonts (vendored, offline) ----------------------------------------- */
@font-face { font-family:"Inter"; font-weight:400; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:500; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:600; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:700; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family:"Newsreader"; font-weight:400; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/newsreader-400.woff2") format("woff2"); }
@font-face { font-family:"Newsreader"; font-weight:500; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/newsreader-500.woff2") format("woff2"); }
@font-face { font-family:"Newsreader"; font-weight:600; font-style:normal; font-display:swap;
             src:url("../../vendor/fonts/newsreader-600.woff2") format("woff2"); }
@font-face { font-family:"Newsreader"; font-weight:400; font-style:italic; font-display:swap;
             src:url("../../vendor/fonts/newsreader-400-italic.woff2") format("woff2"); }

/* ---- palette ------------------------------------------------------------ */
:root {
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:"Newsreader", Georgia, "Times New Roman", serif;

  --hl-blue:      #0f8fc4;
  --hl-blue-deep: #0a6ea3;
  --hl-ink:       #0e1b2e;
  --hl-purple:    #4a148c;
  --hl-grad:      linear-gradient(90deg, #0a6ea3 0%, #3f2d8c 100%);

  --hl-bg:        #fbfcfe;
  --hl-bg-alt:    #f1f5fa;
  --hl-surface:   #ffffff;
  --hl-border:    #e6ebf2;
  --hl-border-2:  #d7dfea;
  --hl-text:      #33415a;
  --hl-muted:     #6b7a90;
  --hl-heading:   var(--hl-ink);
  --hl-accent:    var(--hl-blue-deep);
  --hl-shadow:    0 1px 2px rgba(14,27,46,.04), 0 8px 24px rgba(14,27,46,.05);
  --hl-shadow-hi: 0 6px 16px rgba(10,110,163,.10), 0 18px 40px rgba(14,27,46,.10);
}
html.theme-dark {
  --hl-blue:      #4fc3f0;
  --hl-blue-deep: #6fd0f4;
  --hl-grad:      linear-gradient(90deg, #4fc3f0 0%, #a48be8 100%);
  --hl-bg:        #0a1120;
  --hl-bg-alt:    #101a30;
  --hl-surface:   #111c33;
  --hl-border:    #1f2c45;
  --hl-border-2:  #2a3a58;
  --hl-text:      #c4d0e4;
  --hl-muted:     #8595ad;
  --hl-heading:   #f2f6fc;
  --hl-accent:    #6fd0f4;
  --hl-shadow:    0 1px 2px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.35);
  --hl-shadow-hi: 0 8px 30px rgba(0,0,0,.45);
}

/* ---- base --------------------------------------------------------------- */
.reveal-viewport { background: var(--hl-bg); transition: background .35s ease; }

/* subtle editorial background motif (very faint, professional) */
.reveal-viewport::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 92% -10%, rgba(15,143,196,.06), transparent 60%),
    radial-gradient(50vw 50vw at -8% 108%, rgba(74,20,140,.05), transparent 60%);
}
html.theme-dark .reveal-viewport::before {
  background:
    radial-gradient(60vw 60vw at 92% -10%, rgba(79,195,240,.10), transparent 60%),
    radial-gradient(50vw 50vw at -8% 108%, rgba(164,139,232,.08), transparent 60%);
}

.reveal { font-family: var(--sans); font-size: 29px; font-weight: 400; color: var(--hl-text);
          letter-spacing: -0.003em; }
.reveal .slides { text-align: left; }
.reveal .slides section { top: 0 !important; }
/* top-aligned editorial layout; leaf slides clear the 54px top bar */
.reveal .slides section:not(:has(section)) {
  padding: 78px 14px 40px; box-sizing: border-box; }
/* cover centers within the slide box */
.reveal .slides section#cover { min-height: 700px; display: flex;
  flex-direction: column; justify-content: center; padding-top: 54px; }

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--serif); color: var(--hl-heading); font-weight: 500;
  text-transform: none; letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 .4em; }
.reveal h1 { font-size: 2.5em; }
.reveal h2 { font-size: 1.85em; }
.reveal h3 { font-size: 1.18em; font-weight: 600; }
.reveal h4 { font-size: 1em; }
.reveal p, .reveal li { color: var(--hl-text); line-height: 1.5; }
.reveal ul, .reveal ol { display: block; margin: .3em 0 .3em 1em; }
.reveal li { margin: .18em 0; padding-left: .2em; }
.reveal a { color: var(--hl-accent); text-decoration: none;
            border-bottom: 1px solid color-mix(in srgb, var(--hl-accent) 35%, transparent); }
.reveal a:hover { border-bottom-color: var(--hl-accent); }
.reveal strong { color: var(--hl-heading); font-weight: 600; }
.reveal em { font-family: var(--serif); font-style: italic; }

/* ---- shared header system ---------------------------------------------- */
.hl-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em;
              font-size: .46em; font-weight: 600; color: var(--hl-accent); margin: 0 0 1em; }
.hl-secttitle { position: relative; margin-bottom: .7em; padding-bottom: .32em; }
.hl-secttitle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.2em;
                       height: 3px; border-radius: 2px; background: var(--hl-grad); }
.hl-lead   { font-size: 1.08em; color: var(--hl-muted); line-height: 1.5; max-width: 30ch; }
.hl-muted  { color: var(--hl-muted) !important; }
.hl-center { text-align: center; }
.hl-kicker { color: var(--hl-accent); font-weight: 700; }
.hl-grad-text { background: var(--hl-grad); -webkit-background-clip: text;
                background-clip: text; -webkit-text-fill-color: transparent; }
.reveal section > *:first-child { margin-top: 0; }

/* ---- cover -------------------------------------------------------------- */
.hl-cover { text-align: center; display: flex; flex-direction: column;
            align-items: center; justify-content: center; }
/* --- the logo as the "beating heart of research" + an ECG line --- */
.hl-cover .logo-wrap { position: relative; display: inline-block; transform-origin: center;
                       will-change: transform; animation: hl-beat 2.4s ease-in-out infinite; }
.hl-cover .cover-logo { width: 168px; height: auto; margin-bottom: .55em; display: block;
                        will-change: filter; animation: hl-glow 2.4s ease-in-out infinite; }
/* the logo beats along the whole mountain range (pulse over the peaks,
   ~36%–72% of the cycle) with the biggest thump on the Matterhorn (~53%),
   and rests while the pulse is on the flat line */
@keyframes hl-beat {
  0%, 36% { transform: scale(1); }        /* flat approach — calm */
  40%     { transform: scale(1.02); }     /* first foothill */
  44%     { transform: scale(1.005); }
  47%     { transform: scale(1.035); }     /* rising peak */
  50%     { transform: scale(1.012); }
  53%     { transform: scale(1.085); }     /* MAIN peak — the Matterhorn beat */
  57%     { transform: scale(1.012); }
  61%     { transform: scale(1.035); }     /* descending peak */
  65%     { transform: scale(1.005); }
  69%     { transform: scale(1.02); }      /* last foothill */
  72%, 100% { transform: scale(1); }       /* flat again — calm */
}
@keyframes hl-glow {
  0%, 36%, 72%, 100% { filter: drop-shadow(0 8px 22px rgba(10,110,163,.16)); }
  47%                { filter: drop-shadow(0 11px 28px rgba(10,110,163,.34)); }
  53%                { filter: drop-shadow(0 15px 38px rgba(10,110,163,.58)); }
  61%                { filter: drop-shadow(0 11px 28px rgba(10,110,163,.34)); }
}

/* heart-rate line shaped as the Alps, between the logo and the wordmark */
.hl-ecg { display: block; width: min(440px, 56vw); height: 46px; margin: .1em auto .4em; overflow: visible; }
.hl-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hl-ecg .ecg-base  { stroke: var(--hl-border-2); stroke-width: 2; opacity: .5; }
.hl-ecg .ecg-pulse { stroke: var(--hl-blue); stroke-width: 3; stroke-dasharray: 55 700;
                     filter: drop-shadow(0 0 5px rgba(15,143,196,.6));
                     animation: hl-ecg 2.4s linear infinite; }
@keyframes hl-ecg { from { stroke-dashoffset: 55; } to { stroke-dashoffset: -700; } }

/* staggered fade-up entrance for the title text (the logo just beats) */
.hl-cover > *:not(.logo-wrap) { opacity: 0; animation: hl-rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hl-cover .hl-ecg     { animation-delay: .10s; }
.hl-cover .wordmark   { animation-delay: .20s; }
.hl-cover .expand     { animation-delay: .32s; }
.hl-cover .hl-eyebrow { animation-delay: .44s; }
.hl-cover .affil      { animation-delay: .56s; }
@keyframes hl-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hl-cover .logo-wrap, .hl-cover .cover-logo, .hl-cover .ecg-pulse { animation: none; }
  .hl-cover .cover-logo { filter: drop-shadow(0 10px 28px rgba(10,110,163,.18)); }
  .hl-cover > *:not(.logo-wrap) { opacity: 1; animation: none; }
}
.hl-cover .wordmark { font-family: var(--sans); font-size: 3.1em; font-weight: 800;
                      letter-spacing: -.035em; color: var(--hl-ink); line-height: 1; }
html.theme-dark .hl-cover .wordmark { color: var(--hl-heading); }
.hl-cover .wordmark .lab { color: var(--hl-muted); font-weight: 300; }
.hl-cover .expand { font-family: var(--serif); font-style: italic; font-size: .82em;
                    color: var(--hl-muted); margin-top: .5em; letter-spacing: 0; }
.hl-cover .hl-eyebrow { margin-top: 1.8em; margin-bottom: .6em; }
.hl-cover .affil { color: var(--hl-muted); font-size: .62em; line-height: 1.6; }

/* ---- mission ------------------------------------------------------------ */
/* stacked: compact copy on top, a large image filling the rest */
.hl-mission .mission-copy { min-width: 0; }
.hl-mission .hl-eyebrow { position: relative; padding-bottom: .6em; margin-bottom: .15em; }
.hl-mission .hl-eyebrow::after { content: ""; position: absolute; left: 0; bottom: 0;
                                 width: 2.4em; height: 3px; border-radius: 3px;
                                 background: var(--hl-grad); }
.hl-mission .statement { font-family: var(--serif); font-weight: 500; font-size: 1.9em;
                         line-height: 1.18; letter-spacing: -.02em; max-width: 20ch;
                         color: var(--hl-heading); }
.hl-mission .statement .soft { color: var(--hl-muted); font-weight: 400; }
/* compact copy on top, big image below. Heights are capped in px (reveal's
   1280x720 coord space) — NOT height:100%, which doesn't resolve under reveal's
   vertically-centred slides and let the image render at natural size / overflow. */
.hl-mission.stacked { display: flex; flex-direction: column; gap: .5em; }
.hl-mission.stacked .mission-copy { flex: 0 0 auto; }
.hl-mission.stacked .statement { font-size: 1.3em; max-width: 60ch; }
.hl-mission.stacked .hl-pills { margin-top: .6em; }
/* figure just centres the image; the frame lives on the <img> so a wide area
   never draws an empty box around it */
.hl-mission.stacked .hl-figure { margin: .3em 0 0; display: flex; justify-content: center;
                                 border: 0; background: none; border-radius: 0; overflow: visible; }
.hl-mission.stacked .hl-figure img { max-width: 100%; max-height: 420px; width: auto; height: auto;
                                     border: 1px solid var(--hl-border); border-radius: 16px;
                                     box-shadow: 0 18px 50px -14px rgba(14,27,46,.30); }

/* ---- where we are (location) -------------------------------------------- */
/* big map image (carries the Sion/HES-SO info) + a 2x3 grid of Valais photos.
   Cells use a fixed aspect so the grid has a bounded height (~ the map's) and
   the slide never overflows — earlier the 1fr rows took the images' natural
   height and blew past 720. */
/* align-items:stretch → the map box takes the same height as the photo grid,
   so their top and bottom edges line up. The grid (aspect-ratio cells) defines
   that height; the map <img> is absolutely positioned so it does NOT contribute
   its natural height (which would re-inflate the row and overflow the slide),
   and object-fit:contain keeps the whole map visible (no crop) inside the box. */
.hl-location.v2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8em;
                  align-items: stretch; }
.hl-location.v2 .hl-figure { position: relative; margin: 0; border: 1px solid var(--hl-border);
                             border-radius: 16px; overflow: hidden; background: #fff;
                             box-shadow: 0 18px 50px -14px rgba(14,27,46,.30); }
.hl-location.v2 .hl-figure img { position: absolute; inset: 0; width: 100%; height: 100%;
                                 object-fit: contain; display: block; }
.theme-dark .hl-location.v2 .hl-figure { background: #0e1b2e; }
.hl-location.v2 .loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3em; }
.hl-location.v2 .cell { margin: 0; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden;
                        border: 1px solid var(--hl-border); }
.hl-location.v2 .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-location.v2 .cell.placeholder { display: flex; align-items: center; justify-content: center;
                                    border: 1px dashed var(--hl-border-2); background: #eef4fb; }
.hl-location.v2 .cell.placeholder span { font-family: var(--sans); font-size: .5em;
                                         text-transform: uppercase; letter-spacing: .16em;
                                         color: var(--hl-muted); }
.theme-dark .hl-location.v2 .cell.placeholder { background: #12233b; }

/* ---- pills -------------------------------------------------------------- */
.hl-pills { display: flex; flex-wrap: wrap; gap: .45em; margin-top: 1em; }
.hl-pill  { font-family: var(--sans); font-size: .5em; font-weight: 500; padding: .42em .9em;
            border-radius: 999px; background: transparent; color: var(--hl-muted);
            border: 1px solid var(--hl-border-2); white-space: nowrap; letter-spacing: .01em; }
.hl-pill.solid { background: var(--hl-grad); color: #fff; border: none; }

/* ---- cards / grids ------------------------------------------------------ */
.hl-grid { display: grid; gap: .9em; margin-top: .4em; }
.hl-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hl-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hl-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.hl-card { position: relative; background: var(--hl-surface); border: 1px solid var(--hl-border);
           border-radius: 14px; padding: 1em 1.1em; box-shadow: var(--hl-shadow);
           transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hl-card .num { font-family: var(--sans); font-size: .5em; font-weight: 700; letter-spacing: .12em;
                color: var(--hl-accent); }
.hl-card h3 { margin: .1em 0 .28em; font-size: 1.04em; font-weight: 600; color: var(--hl-heading); }
.hl-card p  { font-size: .58em; color: var(--hl-muted); margin: 0; line-height: 1.5; }

a.hl-card, .hl-card.clickable { cursor: pointer; }
a.hl-card { border-bottom: 1px solid var(--hl-border); }
a.hl-card:hover, .hl-card.clickable:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--hl-accent) 45%, var(--hl-border));
  box-shadow: var(--hl-shadow-hi); }
/* chapter hub tiles: bigger, serif label, quiet arrow */
.hl-hubtile h3 { font-family: var(--serif); font-size: 1.35em; font-weight: 500; margin: 0; }
.hl-hubtile .go { position: absolute; top: 1em; right: 1.1em; color: var(--hl-muted);
                  transition: transform .18s ease, color .18s ease; }
.hl-hubtile:hover .go { color: var(--hl-accent); transform: translateX(3px); }

/* icon chip + offer/domain cards (icon on top) */
.hl-offer { padding: .9em 1.05em; }
.hl-ic { display: inline-flex; align-items: center; justify-content: center;
         width: 1.9em; height: 1.9em; border-radius: 11px; margin-bottom: .4em;
         color: var(--hl-accent); font-size: .9em;
         background: color-mix(in srgb, var(--hl-accent) 12%, transparent);
         border: 1px solid color-mix(in srgb, var(--hl-accent) 22%, transparent); }
.hl-offer h3 { margin-bottom: .2em; }
.hl-offer p { font-size: .6em; }

/* closing CTA panel */
.hl-cta { margin-top: .85em; display: flex; align-items: center; justify-content: space-between;
          flex-wrap: wrap; gap: .6em 1.4em; padding: .85em 1.2em; border-radius: 16px;
          background: var(--hl-bg-alt); border: 1px solid var(--hl-border);
          box-shadow: var(--hl-shadow); }
.hl-cta-lead { font-family: var(--serif); font-size: .84em; color: var(--hl-heading);
               margin: 0 0 .15em; }
.hl-cta-name { font-size: .56em; color: var(--hl-muted); margin: 0; }
.hl-cta-actions { display: flex; gap: .5em; flex-wrap: wrap; }
.hl-cta-btn { font-family: var(--sans); font-size: .56em; font-weight: 500; padding: .6em 1.1em;
              border-radius: 999px; border: 1px solid var(--hl-border-2); color: var(--hl-text);
              background: var(--hl-surface); white-space: nowrap; }
.hl-cta-btn:hover { border-color: var(--hl-accent); color: var(--hl-accent); }
.hl-cta-btn.primary { background: var(--hl-grad); color: #fff; border: none; }
.hl-cta-btn.primary:hover { color: #fff; opacity: .92; }

/* compact project tiles (overview) */
.hl-ptile { padding: .6em .9em; }
.hl-ptile h3 { display: flex; align-items: center; gap: .4em; margin: 0 0 .25em; font-size: 1em; }
.hl-ptile .dot { width: .44em; height: .44em; border-radius: 50%; flex: none; }
.hl-ptile .dot.current { background: #16a34a; }
.hl-ptile .dot.past { background: var(--hl-muted); }
.hl-ptile p { font-size: .5em; margin: 0; }
/* tighter rhythm so Current + Completed both fit above the fold */
#projects .hl-eyebrow { margin-bottom: .5em; }
#projects h2.hl-secttitle { margin-bottom: .4em; }
#projects .hl-grid { gap: .7em; }

/* project subgroup headers (Current / Completed) */
.hl-subhead { display: flex; align-items: center; gap: .5em; margin: .7em 0 .4em;
              font-family: var(--sans); font-size: .5em; font-weight: 600;
              text-transform: uppercase; letter-spacing: .16em; color: var(--hl-muted); }
.hl-subhead:first-of-type { margin-top: .1em; }
.hl-subhead::after { content: ""; flex: 1; height: 1px; background: var(--hl-border); }
.hl-count { color: var(--hl-accent); font-weight: 700; }

/* stat tiles */
.hl-stat { text-align: left; }
.hl-stat .big { font-family: var(--serif); font-size: 2.4em; font-weight: 500;
                color: var(--hl-heading); line-height: 1; }
.hl-stat .lbl { font-size: .5em; color: var(--hl-muted); margin-top: .5em; line-height: 1.4; }

/* ---- project chapter ---------------------------------------------------- */
.hl-proj .status { display: inline-block; font-family: var(--sans); font-size: .46em;
                   padding: .34em .9em; border-radius: 999px; text-transform: uppercase;
                   letter-spacing: .12em; font-weight: 600; }
.hl-proj .status.current { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.hl-proj .status.past { background: var(--hl-bg-alt); color: var(--hl-muted); }
html.theme-dark .hl-proj .status.current { background: rgba(34,197,94,.16); color: #86efac; }
.hl-proj .meta { font-size: .58em; color: var(--hl-muted); margin: .35em 0; }
.hl-proj .meta b { color: var(--hl-heading); font-weight: 600; }
.hl-proj .fulltitle { font-family: var(--serif); font-style: italic; color: var(--hl-muted);
                      font-size: .74em; margin: .1em 0 .6em; }
.hl-projlogo { display: block; max-height: 64px; max-width: 340px; width: auto;
               margin-bottom: .55em; object-fit: contain; }
html.theme-dark .hl-projlogo { background: #fff; padding: 7px 11px; border-radius: 10px; }

/* publications list */
.hl-publist { list-style: none; margin: .2em 0 0; padding: 0; }
.hl-pub { padding: .5em 0; border-bottom: 1px solid var(--hl-border); }
.hl-pub:last-child { border-bottom: none; }
.hl-pub .t { font-weight: 600; color: var(--hl-heading); font-size: .74em; }
.hl-pub .m { display: block; color: var(--hl-muted); font-size: .58em; margin-top: .12em; }
.hl-pub a { font-size: .7em; }
.hl-toappear { font-family: var(--serif); font-style: italic; color: var(--hl-muted); }

/* two-column project layout (text + figure) */
.hl-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6em; align-items: start; }
.hl-split-mid { align-items: center; }
.hl-split-text { grid-template-columns: 1.45fr .85fr; }        /* text-heavy narrative slides */
.hl-split-text .statement { font-size: 1.5em; max-width: none; } /* fit the mission statement in a column */
.hl-split-text .hl-lead { max-width: none; }
.hl-figure { border: 1px solid var(--hl-border); border-radius: 14px; overflow: hidden;
             background: var(--hl-bg-alt); box-shadow: var(--hl-shadow); }
.hl-figure img { display: block; width: 100%; height: auto; }
.hl-figure figcaption { font-size: .5em; color: var(--hl-muted); padding: .7em .9em;
                        border-top: 1px solid var(--hl-border); background: var(--hl-surface); }

/* ---- team --------------------------------------------------------------- */
.hl-person { text-align: center; }
.hl-person img, .hl-person .initials {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto .5em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--hl-shadow); border: 3px solid var(--hl-surface); }
.hl-person .initials { background: var(--hl-grad); color: #fff; font-family: var(--serif);
                       font-size: 1.5em; font-weight: 500; }
.hl-person .nm { font-size: .64em; font-weight: 600; color: var(--hl-heading); }
.hl-person .rl { font-size: .52em; color: var(--hl-muted); margin-top: .1em; }
.hl-person .pd { font-size: .46em; color: var(--hl-muted); margin-top: .25em; letter-spacing: .04em; }

/* ==========================================================================
   Chrome: top bar, buttons, jump menu (collapsible), back-to-hub
   ========================================================================== */
.hl-topbar { position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 30;
             display: flex; align-items: center; justify-content: space-between;
             padding: 0 22px; pointer-events: none; }
.hl-topbar > * { pointer-events: auto; }
.hl-brand { display: flex; align-items: center; gap: .55em; font-family: var(--sans);
            font-weight: 700; font-size: 16px; color: var(--hl-heading); letter-spacing: -.01em;
            border: 0 !important; text-decoration: none !important; opacity: .9; }
.hl-brand:hover { text-decoration: none !important; }
.hl-brand:hover { opacity: 1; }
.hl-brand img { width: 25px; height: 25px; }
.hl-brand .lab { color: var(--hl-muted); font-weight: 300; }
.hl-chrome-btns { display: flex; gap: 7px; }
/* centred "you are here" breadcrumb — a translucent glass pill:
   [• gradient dot]  SECTION  |  Topic */
.hl-crumb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
            display: flex; max-width: 52%; pointer-events: none;
            opacity: 0; transition: opacity .3s ease; }
.hl-crumb.show { opacity: 1; }
.hl-crumb .crumb-pill { display: flex; align-items: center; gap: .62em; max-width: 100%;
                        padding: .34em .95em .34em .68em; border-radius: 999px;
                        background: rgba(255, 255, 255, .72); border: 1px solid var(--hl-border);
                        box-shadow: 0 2px 12px -5px rgba(14, 27, 46, .30);
                        -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.hl-crumb .crumb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%;
                       background: var(--hl-grad); box-shadow: 0 0 0 3px rgba(63, 45, 140, .14); }
.hl-crumb .crumb-group { font-family: var(--sans); font-size: 9.5px; font-weight: 700;
                         text-transform: uppercase; letter-spacing: .2em; color: var(--hl-muted);
                         white-space: nowrap; }
.hl-crumb .crumb-div { flex: none; width: 1px; height: 11px; background: var(--hl-border-2); }
.hl-crumb .crumb-topic { min-width: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
                         color: var(--hl-heading); white-space: nowrap; overflow: hidden;
                         text-overflow: ellipsis; }
.theme-dark .hl-crumb .crumb-pill { background: rgba(18, 35, 59, .62);
                                    border-color: rgba(255, 255, 255, .12);
                                    box-shadow: 0 2px 14px -5px rgba(0, 0, 0, .5); }
.theme-dark .hl-crumb .crumb-dot { box-shadow: 0 0 0 3px rgba(164, 139, 232, .20); }
.hl-btn { height: 36px; min-width: 36px; padding: 0 9px; border-radius: 10px;
          border: 1px solid var(--hl-border-2); background: color-mix(in srgb, var(--hl-surface) 82%, transparent);
          backdrop-filter: blur(6px); color: var(--hl-text); cursor: pointer;
          display: inline-flex; align-items: center; justify-content: center; gap: 6px;
          font-family: var(--sans); font-size: 13px; font-weight: 500;
          transition: background .15s, border-color .15s, color .15s; }
.hl-btn:hover { border-color: var(--hl-accent); color: var(--hl-accent); }
.hl-btn .lbl { font-size: 13px; }
.hl-btn-q { font-weight: 700; font-family: var(--serif); font-size: 16px; line-height: 1; }

/* shortcuts help panel */
.hl-help { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center;
           justify-content: center; background: rgba(10,17,32,.42); backdrop-filter: blur(3px);
           opacity: 0; visibility: hidden; transition: opacity .22s; }
.hl-help.open { opacity: 1; visibility: visible; }
.hl-help-card { background: var(--hl-surface); border: 1px solid var(--hl-border);
                border-radius: 18px; box-shadow: var(--hl-shadow-hi); padding: 22px 26px 16px;
                min-width: 300px; transform: translateY(8px); transition: transform .22s;
                font-family: var(--sans); }
.hl-help.open .hl-help-card { transform: none; }
.hl-help-h { font-family: var(--serif); font-size: 20px; color: var(--hl-heading); margin-bottom: 14px; }
.hl-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hl-help li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--hl-text); }
.hl-help .k { flex: 0 0 96px; display: flex; gap: 5px; }
.hl-help kbd { font-family: var(--sans); font-size: 12px; min-width: 20px; text-align: center;
               padding: 3px 7px; border-radius: 6px; background: var(--hl-bg-alt);
               border: 1px solid var(--hl-border-2); color: var(--hl-heading); box-shadow: 0 1px 0 var(--hl-border-2); }
.hl-help-foot { margin-top: 14px; font-size: 11.5px; color: var(--hl-muted); text-align: right; }

/* jump menu (slide-over drawer) */
.hl-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 86vw;
           background: var(--hl-surface); border-left: 1px solid var(--hl-border);
           box-shadow: -18px 0 50px rgba(14,27,46,.18); z-index: 60; transform: translateX(100%);
           transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
           padding: 22px 16px 28px; font-family: var(--sans); }
.hl-menu.open { transform: translateX(0); }
.hl-menu .menu-head { font-family: var(--sans); font-size: 12px; font-weight: 600;
                      text-transform: uppercase; letter-spacing: .18em; color: var(--hl-muted);
                      padding: 8px 10px 14px; }
.hl-group { border-top: 1px solid var(--hl-border); }
.hl-group:first-of-type { border-top: none; }
.hl-group > button.hl-grouphead {
  width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: none;
  cursor: pointer; padding: 13px 10px; font-family: var(--sans); font-size: 15px;
  font-weight: 600; color: var(--hl-heading); text-align: left; }
.hl-grouphead .chev { margin-left: auto; color: var(--hl-muted); transition: transform .22s ease; }
.hl-group.collapsed .chev { transform: rotate(-90deg); }
.hl-grouphead .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--hl-grad); flex: none; }
.hl-group .hl-groupitems { overflow: hidden; transition: height .24s ease; }
.hl-menu a.item { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px 8px 28px;
                  border-radius: 8px; color: var(--hl-text); font-size: 14.5px; line-height: 1.35;
                  border: none; text-decoration: none; cursor: pointer; position: relative; }
.hl-menu a.item::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0;
                          width: 2px; background: var(--hl-border-2); border-radius: 2px; }
.hl-menu a.item:hover { background: var(--hl-bg-alt); }
.hl-menu a.item.active { background: color-mix(in srgb, var(--hl-accent) 12%, transparent);
                         color: var(--hl-accent); font-weight: 600; }
.hl-menu a.item.active::before { background: var(--hl-accent); }
.hl-backdrop { position: fixed; inset: 0; background: rgba(10,17,32,.42); z-index: 55;
               opacity: 0; visibility: hidden; transition: opacity .28s; backdrop-filter: blur(2px); }
.hl-backdrop.open { opacity: 1; visibility: visible; }

.hl-tohub { position: fixed; left: 22px; bottom: 18px; z-index: 30; font-family: var(--sans);
            font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: 999px;
            background: color-mix(in srgb, var(--hl-surface) 86%, transparent); backdrop-filter: blur(6px);
            border: 1px solid var(--hl-border-2); color: var(--hl-muted); cursor: pointer; }
.hl-tohub:hover { color: var(--hl-accent); border-color: var(--hl-accent); }

/* reveal built-ins tuned to the theme */
.reveal .progress { color: var(--hl-accent); height: 3px; }
.reveal .controls { color: var(--hl-accent); }
/* slide counter lives inline in the top bar (see menu.js) */
.hl-slideno { font-family: var(--sans); font-size: 13px; font-variant-numeric: tabular-nums;
              color: var(--hl-muted); align-self: center; margin-right: 4px; white-space: nowrap; }

/* data-load banner */
.hl-databanner { position: fixed; top: 54px; left: 0; right: 0; z-index: 40; background: #fff3cd;
                 color: #664d03; font-size: 13px; text-align: center; padding: 6px 12px;
                 border-bottom: 1px solid #ffe69c; font-family: var(--sans); }

/* scroll-view tweaks */
.reveal.scroll-view .hl-topbar { position: absolute; }
.reveal.scroll-view .hl-tohub { display: none !important; }

/* responsive */
@media (max-width: 760px) {
  .hl-grid.cols-3, .hl-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hl-split, .hl-location.v2 { grid-template-columns: 1fr; }
  .hl-btn .lbl { display: none; }
}
