/* ==========================================================================
   PUBLIC SHELL — Phase H.1 (2026-11-04)
   Desktop header (components/header.html) + mobile top bar and navigation
   drawer (components/public_mobile_nav.html), loaded by base/base.html and
   base/public_base.html. Replaces the copies that lived inline in header.html
   and in both base templates.

   app.css (also loaded by auth and dashboard pages) still carries older
   header rules, some with !important; the selectors below are prefixed with
   `body` where they must win over them, so app.css itself stays untouched.

   Tokens: --ps-*   Components: .ps-*   Legacy hooks kept: .public-header-shell,
   .public-nav__link, .public-mobile-* (ids/classes used by the script).
   ========================================================================== */

:root {
  --ps-bg: rgb(var(--t-c-04111a));
  --ps-surface: rgba(var(--t-c-091c24), 0.78);
  --ps-surface-2: rgba(var(--t-c-0e282e), 0.9);
  --ps-line: rgba(var(--t-c-94a3b8), 0.12);
  --ps-line-strong: rgba(var(--t-c-2fbfa4), 0.32);
  --ps-text: rgb(var(--t-c-f2f8f7));
  --ps-text-2: rgb(var(--t-c-b6c8cf));
  --ps-muted: rgb(var(--t-c-7f97a3));
  --ps-accent: rgb(var(--t-c-2fbfa4));
  --ps-lime: rgb(var(--t-c-82bc41));
  --ps-primary: rgb(var(--t-c-34d399));
  --ps-primary-2: rgb(var(--t-c-18c79b));
  --ps-primary-ink: rgb(var(--t-c-03251d));
  --ps-focus: 0 0 0 2px var(--ps-bg), 0 0 0 4px var(--ps-lime);
  --ps-radius: 12px;
  --ps-control: 42px;
  --ps-ease: 180ms ease;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.ps-brand {
  align-items: center;
  color: var(--ps-text);
  display: inline-flex;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
}

.ps-brand__mark {
  align-items: center;
  background: linear-gradient(145deg, rgba(var(--t-c-006b69), 0.38), rgba(var(--t-c-0d8f7a), 0.14));
  border: 1px solid rgba(var(--t-c-2fbfa4), 0.26);
  border-radius: 14px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  padding: 4px;
  transition: border-color var(--ps-ease), transform var(--ps-ease);
  width: 46px;
}

.ps-brand__mark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

/* The logo artwork is white: in the light theme its tile keeps the brand teal so the mark stays visible
   (theme phase 5 step 10). Light only: the dark tile above is unchanged. */
[data-theme="light"] :is(.ps-brand__mark, .au-head__mark) {
  background: linear-gradient(145deg, var(--tp-teal-800), var(--tp-teal-950));
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] :is(.ps-brand__mark, .au-head__mark) {
    background: linear-gradient(145deg, var(--tp-teal-800), var(--tp-teal-950));
  }
}

.ps-brand:hover .ps-brand__mark {
  border-color: rgba(var(--t-c-82bc41), 0.5);
  transform: translateY(-1px);
}

.ps-brand__text {
  display: grid;
  min-width: 0;
}

.ps-brand__title {
  color: var(--ps-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-brand__subtitle {
  color: var(--ps-muted);
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons */
.ps-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--ps-radius);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 900;
  gap: .45rem;
  justify-content: center;
  line-height: 1.2;
  min-height: var(--ps-control);
  padding: 0 1.05rem;
  text-decoration: none;
  transition: background var(--ps-ease), border-color var(--ps-ease), color var(--ps-ease), box-shadow var(--ps-ease), transform var(--ps-ease);
  white-space: nowrap;
}

.ps-btn svg {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.ps-btn--primary {
  background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
  box-shadow: 0 10px 24px -14px rgba(var(--t-c-18c79b), 0.9);
  color: var(--ps-primary-ink);
}

.ps-btn--primary:hover {
  box-shadow: 0 14px 28px -14px rgb(var(--t-c-18c79b));
  color: var(--ps-primary-ink);
  transform: translateY(-1px);
}

.ps-btn--ghost {
  background: rgba(var(--t-c-ffffff), 0.035);
  border-color: var(--ps-line);
  color: var(--ps-text-2);
}

.ps-btn--ghost:hover {
  background: rgba(var(--t-c-006b69), 0.26);
  border-color: var(--ps-line-strong);
  color: var(--ps-text);
}

.ps-btn--sm {
  font-size: .78rem;
  min-height: 36px;
  padding: 0 .8rem;
}

.ps-icon-btn {
  align-items: center;
  background: rgba(var(--t-c-ffffff), 0.04);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  color: var(--ps-text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: var(--ps-control);
  justify-content: center;
  transition: background var(--ps-ease), border-color var(--ps-ease);
  width: var(--ps-control);
}

.ps-icon-btn:hover {
  background: rgba(var(--t-c-006b69), 0.3);
  border-color: var(--ps-line-strong);
}

.ps-icon-btn svg {
  height: 20px;
  width: 20px;
}

/* Account: avatar + name */
.ps-avatar {
  align-items: center;
  background: rgba(var(--t-c-34d399), 0.14);
  border: 1px solid rgba(var(--t-c-34d399), 0.32);
  border-radius: 50%;
  color: rgb(var(--t-c-8ff0d2));
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .9rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  width: 36px;
}

.ps-account {
  align-items: center;
  display: flex;
  gap: .65rem;
  min-width: 0;
}

.ps-account__text {
  display: grid;
  min-width: 0;
}

.ps-account__name {
  color: var(--ps-text);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-account__handle {
  color: var(--ps-muted);
  direction: ltr;
  font-size: .72rem;
  line-height: 1.3;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.ps-account--chip {
  background: rgba(var(--t-c-ffffff), 0.035);
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  max-width: 220px;
  padding: 3px 4px;
  padding-inline-end: 14px;
  text-decoration: none;
  transition: background var(--ps-ease), border-color var(--ps-ease);
}

.ps-account--chip:hover {
  background: rgba(var(--t-c-006b69), 0.26);
  border-color: var(--ps-line-strong);
}

.ps-account--chip .ps-account__handle {
  direction: inherit;
}

/* Keyboard focus across the shell */
:is(.public-header-shell, .public-mobile-sidebar, .public-mobile-topbar) :is(a, button, select, input, [tabindex]):focus-visible {
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-focus);
  outline: none;
}

/* --------------------------------------------------------------------------
   Desktop header (>=1024px)
   -------------------------------------------------------------------------- */

body .public-header-shell {
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  background: linear-gradient(180deg, rgba(var(--t-c-05141c), 0.9), rgba(var(--t-c-030c14), 0.84)) !important;
  border-block-end: 1px solid var(--ps-line) !important;
  box-shadow: 0 12px 30px -24px rgba(var(--t-c-000000), 0.9);
  inset-block-start: 0;
  position: sticky;
  z-index: 45;
}

/* Light only (step 12b): the gradient ends in c-030c14, a shadow ink in light, so the header faded to dark. */
[data-theme="light"] body .public-header-shell { background: linear-gradient(180deg, rgba(var(--t-c-05141c), 0.9), rgba(var(--t-c-05141c), 0.84)) !important; }
@media (prefers-color-scheme: light) {
  [data-theme="system"] body .public-header-shell { background: linear-gradient(180deg, rgba(var(--t-c-05141c), 0.9), rgba(var(--t-c-05141c), 0.84)) !important; }
}

body .public-header-shell::after {
  background: linear-gradient(90deg, transparent, rgba(var(--t-c-2fbfa4), 0.55), rgba(var(--t-c-82bc41), 0.35), transparent);
  content: "";
  height: 1px;
  inset-block-end: -1px;
  inset-inline: 0;
  opacity: .5;
  pointer-events: none;
  position: absolute;
}

body .public-header-shell .ps-header {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-inline: auto;
  max-width: 80rem;
  min-height: 76px !important;
  padding-inline: 1.5rem;
}

body .public-header-shell .ps-header__actions {
  align-items: center;
  display: flex;
  gap: .6rem;
  min-height: 0 !important;
}

body .public-header-shell .ps-nav {
  align-items: center;
  display: flex;
  gap: .25rem;
  justify-content: center;
  min-height: 0 !important;
  min-width: 0;
}

body .public-header-shell .public-nav__link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ps-text-2);
  display: inline-flex;
  font-size: .84rem;
  font-weight: 800;
  min-height: 38px !important;
  padding-inline: .85rem !important;
  position: relative;
  text-decoration: none;
  transition: color var(--ps-ease), background var(--ps-ease), border-color var(--ps-ease);
  white-space: nowrap;
}

body .public-header-shell .public-nav__link:hover {
  background: rgba(var(--t-c-006b69), 0.22) !important;
  border-color: rgba(var(--t-c-2fbfa4), 0.22);
  color: var(--ps-text);
}

body .public-header-shell .public-nav__link.is-active {
  background: rgba(var(--t-c-006b69), 0.4) !important;
  border-color: rgba(var(--t-c-2fbfa4), 0.34);
  color: rgb(var(--t-c-dcf6ee));
}

body .public-header-shell .public-nav__link.is-active::after {
  background: linear-gradient(90deg, var(--ps-accent), var(--ps-lime));
  border-radius: 999px;
  bottom: .2rem;
  content: "";
  height: 2px;
  inset-inline: 30%;
  position: absolute;
}

/* Narrow desktops: drop the subtitle, tighten the links */
@media (max-width: 1240px) {
  body .public-header-shell .ps-brand__subtitle {
    display: none;
  }

  body .public-header-shell .public-nav__link {
    padding-inline: .6rem !important;
  }

  body .public-header-shell .ps-account--chip .ps-account__text {
    display: none;
  }

  body .public-header-shell .ps-account--chip {
    padding: 3px;
  }
}

@media (max-width: 1100px) {
  body .public-header-shell .ps-btn svg {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile top bar (<1024px)
   -------------------------------------------------------------------------- */

.public-mobile-topbar {
  inset-block-start: 0;
  padding: .6rem .75rem 0;
  position: sticky;
  z-index: 40;
}

.ps-topbar {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  align-items: center;
  background: rgba(var(--t-c-06141c), 0.86);
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  box-shadow: 0 12px 28px -22px rgba(var(--t-c-000000), 0.9);
  display: flex;
  gap: .6rem;
  padding: .45rem;
}

.ps-brand--compact {
  flex: 1 1 auto;
  gap: .5rem;
}

.ps-brand--compact .ps-brand__mark {
  border-radius: 11px;
  height: 36px;
  padding: 3px;
  width: 36px;
}

.ps-brand--compact .ps-brand__title {
  font-size: .92rem;
}

.ps-topbar__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: .4rem;
}

.ps-avatar--link:hover {
  border-color: var(--ps-primary);
}

@media (max-width: 374px) {
  .ps-brand--compact .ps-brand__title {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Navigation drawer
   -------------------------------------------------------------------------- */

body .public-mobile-sidebar {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(var(--t-c-072e2c), 0.98) 0%, rgba(var(--t-c-030d15), 0.99) 60%) !important;
  border-inline-end: 1px solid var(--ps-line-strong);
  border-inline-start: 0;
  box-shadow: -18px 0 48px rgba(var(--t-c-000000), 0.45);
  color: var(--ps-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  inset-block: 0;
  inset-inline: 0 auto;
  max-width: 86vw;
  overflow: hidden;
  padding: 0 !important;
  position: fixed;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .28s;
  visibility: hidden;
  width: 20rem;
  z-index: 60;
}

/* The drawer opens from the reading-start edge: right in RTL, left in LTR */
[dir="ltr"] body .public-mobile-sidebar {
  box-shadow: 18px 0 48px rgba(var(--t-c-000000), 0.45);
  transform: translateX(-100%);
}

body .public-mobile-sidebar.is-open {
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  visibility: visible;
}

body .public-mobile-overlay {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: rgba(var(--t-c-020810), 0.66);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .25s ease;
  z-index: 55;
}

body .public-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ps-drawer__head {
  align-items: center;
  border-block-end: 1px solid var(--ps-line);
  display: flex;
  flex: 0 0 auto;
  gap: .75rem;
  justify-content: space-between;
  padding: 1rem 1rem .9rem;
}

.ps-drawer__body {
  display: grid;
  flex: 1 1 auto;
  gap: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  align-content: start;
}

.ps-drawer__cta {
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr 1fr;
}

.ps-drawer__cta .ps-btn {
  padding-inline: .6rem;
}

.ps-drawer__body > .ps-account {
  background: rgba(var(--t-c-ffffff), 0.04);
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  padding: .65rem .75rem;
}

.ps-drawer__nav {
  display: grid;
  gap: .9rem;
}

body .public-mobile-sidebar .public-mobile-nav-group {
  border-top: 0;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

body .public-mobile-sidebar .public-mobile-nav-group + .public-mobile-nav-group {
  border-top: 1px solid var(--ps-line);
  margin: 0;
  padding-top: .9rem;
}

body .public-mobile-sidebar .public-mobile-nav-group__title {
  color: var(--ps-muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 0 .5rem .35rem;
}

body .public-mobile-sidebar .public-mobile-nav-link {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ps-text-2);
  display: flex;
  font-size: .9rem;
  font-weight: 800;
  gap: .6rem;
  min-height: 44px;
  padding: 0 .75rem;
  text-decoration: none;
  transition: background var(--ps-ease), border-color var(--ps-ease), color var(--ps-ease);
}

body .public-mobile-sidebar .public-mobile-nav-link:hover {
  background: rgba(var(--t-c-ffffff), 0.05);
  color: var(--ps-text);
}

body .public-mobile-sidebar .public-mobile-nav-link.is-active {
  background: rgba(var(--t-c-006b69), 0.38);
  border-color: rgba(var(--t-c-2fbfa4), 0.3);
  color: rgb(var(--t-c-dcf6ee));
}

body .public-mobile-sidebar .public-mobile-nav-link.is-active::before {
  background: linear-gradient(180deg, var(--ps-accent), var(--ps-lime));
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 16px;
  width: 3px;
}

.ps-drawer__foot {
  align-items: center;
  border-block-start: 1px solid var(--ps-line);
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
}

/* Background scroll lock while the drawer is open (position kept by the script) */
html.ps-scroll-locked,
html.ps-scroll-locked body {
  overflow: hidden !important;
}

html.ps-scroll-locked body {
  inset-inline: 0;
  position: fixed;
  top: var(--ps-scroll-offset, 0);
  width: 100%;
}

/* Breakpoint split: desktop header vs mobile shell */
@media (min-width: 1024px) {
  .public-mobile-sidebar,
  .public-mobile-overlay,
  .public-mobile-topbar {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  body .public-header-shell {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.public-header-shell, .public-mobile-sidebar, .public-mobile-overlay, .public-mobile-topbar),
  :is(.public-header-shell, .public-mobile-sidebar, .public-mobile-topbar) * {
    transition-duration: .01ms !important;
  }
}

/* Footer: moved to static/css/components/site-footer.css (2026-11-23, owner's item 7). */

/* --------------------------------------------------------------------------
   Public component: activity metric bar (components/activity_metrics.html)
   Phase P2 (2026-11-04) — shared by homepage, assessments and games cards.
   -------------------------------------------------------------------------- */

.am-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.am-item {
  align-items: center;
  background: rgba(var(--t-c-ffffff), 0.035);
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  color: var(--ps-muted);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 700;
  gap: .3rem;
  line-height: 1;
  min-height: 30px;
  padding: 0 .65rem;
  white-space: nowrap;
}

.am-item svg {
  color: rgb(var(--t-c-7ee6c6));
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.am-item strong {
  color: var(--ps-text);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.am-item--good svg,
.am-item--good strong {
  color: rgb(var(--t-c-8ff0b8));
}

.am-item--invite {
  border-color: rgba(var(--t-c-82bc41), 0.32);
  color: rgb(var(--t-c-c3e79a));
}

.am-item--invite svg {
  color: var(--ps-lime);
}

.assessment-card-v2__facts,
.games-catalog__facts {
  margin-block: .8rem .2rem;
}



/* ==========================================================================
   PAGE HEADER — Phase P4b (2026-11-04)
   components/page_header.html, used by library, news, contests, assessments
   and games lists. Compact on phones so the first cards show on screen 1.
   ========================================================================== */
.pg-head {
  align-items: end;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(var(--t-c-2fbfa4), 0.14), transparent 70%),
    linear-gradient(180deg, rgba(var(--t-c-0e282e), 0.88), rgba(var(--t-c-091c24), 0.82));
  border: 1px solid var(--ps-line);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(var(--t-c-ffffff), 0.04);
  color: var(--ps-text);
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  padding: clamp(20px, 3.2vw, 34px);
  position: relative;
}
.pg-head::after {
  background: linear-gradient(90deg, transparent, var(--ps-line-strong), transparent);
  content: "";
  height: 1px;
  inset-inline: 10% 10%;
  position: absolute;
  top: 0;
}
.pg-head__copy { min-width: 0; }
/* Light only (step 11): the accent text on its tinted pill read 3.8:1; emerald-800 from the chip token. */
/* Step 13: the page-header count and the avatar letter (emerald-700 on their tint, 4.2-4.3:1) use it too. */
[data-theme="light"] :is(.pg-head__eyebrow, .pg-head__stat strong, .ps-avatar) { color: rgb(var(--t-c-a7ecd9)); }
@media (prefers-color-scheme: light) {
  [data-theme="system"] :is(.pg-head__eyebrow, .pg-head__stat strong, .ps-avatar) { color: rgb(var(--t-c-a7ecd9)); }
}
.pg-head__eyebrow {
  align-items: center;
  background: rgba(var(--t-c-2fbfa4), 0.1);
  border: 1px solid var(--ps-line-strong);
  border-radius: 999px;
  color: var(--ps-accent);
  display: inline-flex;
  font-size: .8rem;
  font-weight: 800;
  gap: .45rem;
  line-height: 1.4;
  margin: 0 0 .85rem;
  padding: .3rem .8rem .3rem .65rem;
}
.pg-head__icon { display: inline-flex; }
.pg-head__icon svg { height: 16px; width: 16px; }
.pg-head .pg-head__title {
  color: var(--ps-text);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.pg-head__lead {
  color: var(--ps-text-2);
  font-size: clamp(.92rem, 1.4vw, 1.02rem);
  line-height: 1.85;
  margin: .6rem 0 0;
  max-width: 62ch;
}
.pg-head__stat {
  align-items: center;
  background: rgba(var(--t-c-020c12), 0.4);
  border: 1px solid var(--ps-line);
  border-radius: 18px;
  display: grid;
  justify-items: center;
  margin: 0;
  min-width: 132px;
  padding: .85rem 1.2rem;
  text-align: center;
}
.pg-head__stat strong {
  color: var(--ps-primary);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.1;
}
.pg-head__stat span { color: var(--ps-text-2); font-size: .8rem; font-weight: 700; }

@media (max-width: 640px) {
  .pg-head { border-radius: 20px; gap: .8rem; grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .pg-head__eyebrow { margin-bottom: .6rem; }
  .pg-head__lead { font-size: .9rem; line-height: 1.75; margin-top: .4rem; }
  .pg-head__stat {
    background: none;
    border: 0;
    display: inline-flex;
    gap: .45rem;
    justify-self: start;
    min-width: 0;
    padding: 0;
  }
  .pg-head__stat strong { font-size: 1.15rem; }
}

/* 2026-11-23 (owner's item 6): with the icon buttons the header fits in English; below 1120px the gaps and link
   padding shrink a little so the four English links never touch or clip. */
@media (max-width: 1120px) {
  body .public-header-shell .ps-header { gap: .75rem; padding-inline: 1rem; }
  body .public-header-shell .ps-header__actions { gap: .45rem; }
  body .public-header-shell .public-nav__link { padding-inline: .5rem !important; font-size: .8rem; }
}

/* 2026-11-23: on small phones the English brand («Awareness») was cut by four pixels; slimmer top-bar buttons. */
@media (max-width: 400px) {
  body .ps-topbar .ps-topbar__actions .ps-btn { padding-inline: .6rem; }
}
