/* Hallmark · theme: custom, the green system's header and footer on today's pages · shape: chrome only · signature: the floating glass bar · genre: modern-minimal · nav: floating glass bar with day/night/auto · footer: columns and mast */
/* critique: P4 H4 E4 S4 R4 V4 · weakest: V, chrome only; the pages under it keep their own layout until rebuilt */
.nh { position: sticky; top: 12px; z-index: 60; padding: 0 12px; border: 0 !important; background: transparent; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.nh.tucked:not(:focus-within) { transform: translateY(calc(-100% - 16px)); }
.nh-row { display: flex; align-items: center; gap: 20px; max-width: 1240px; min-height: 64px; margin: 12px auto 0; padding: 0 8px 0 20px;
  border-radius: 999px; background: color-mix(in oklch, var(--bg) 76%, transparent); border: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(14px); font-family: var(--f-body); }
.nh a { color: var(--ink); }
.nh-brand { display: inline-flex; align-items: center; min-height: 48px; width: 124px; flex: none; }
.nh-brand svg { width: 100%; height: auto; display: block; }
.nh-links { display: none; gap: 24px; margin-left: auto; } .nh-links a { text-decoration: none; font-size: 18px; padding-block: 12px; opacity: .86; }
.nh-links a:hover, .nh-links a[aria-current] { opacity: 1; text-decoration: underline; }
.nh-theme { display: none; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--line); }
.nh-theme button { min-height: 48px; min-width: 60px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 500 18px/1 var(--f-body); cursor: pointer; }
.nh-theme button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.nh-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nh-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--teal); color: var(--c-black) !important;
  font: 600 18px/1 var(--f-body); text-decoration: none; white-space: nowrap; transition: transform 160ms ease; }
.nh-btn:active { transform: translateY(1px); }
.nh-menu-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 600 18px/1 var(--f-body); text-decoration: none; cursor: pointer; }
.nh :focus-visible, .nf :focus-visible, .nh-menu :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transition: none; }
.no-js .nh-theme, .no-js .nh-menu .nh-theme { display: none !important; }
@media (min-width: 1100px) { .nh-links, .nh-row > .nh-theme { display: flex; } .nh-end { margin-left: 0; } .nh-menu-btn { display: none; } }
/* the back and forward arrows (pagenav.py, computers only) sit inside the bar, before the logo (WEB-NAV) */
.nh > .pnav { top: 32px !important; left: max(32px, calc((100% - 1264px) / 2 + 32px)) !important; }
html.pnav-on .nh-brand { margin-left: 76px; }
@media (max-width: 420px) { .nh-brand { width: 108px; } .nh-btn, .nh-menu-btn { padding: 0 16px; } .nh-row { gap: 8px; padding-left: 16px; } }
.nh-menu { display: none; position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; padding: 0 16px; font-family: var(--f-body); }
.nh-menu:target, .nh-menu.open { display: block; }
.nh-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.nh-menu ul { list-style: none; margin: 8px 0 0; padding: 0; }
.nh-menu li a { display: flex; align-items: center; min-height: 56px; font-size: 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nh-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nh-menu .nh-theme { display: inline-flex; }
.nh-menu .nh-btn { width: 100%; justify-content: center; margin: 24px 0 40px; min-height: 56px; }
html.nh-open, html.nh-open body { overflow: hidden; }
.nf { margin-top: 64px; padding: 56px 16px 40px; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--f-body); }
.nf-in { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; }
.nf-top { display: grid; gap: 20px; }
@media (min-width: 1000px) { .nf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; } }
.nf-line { font-size: 24px; letter-spacing: -0.02em; margin: 12px 0 0; }
.nf p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 18px; line-height: 1.55; }
.nf p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }  /* a link in a sentence shows by more than colour */
.nf-cols { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.nf-cols a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 18px; }
.nf-cols a:hover { text-decoration: underline; }
.nf-base { font-size: 18px !important; }
.nf-mast { color: var(--ink); } .nf-mast svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .nh-btn, .nh { transition: none; } }
