/* Mobile category bar (below 1000px). Colours use Blocksy variables for dark mode. */
.sn-catbar {
  position: relative;
  background: var(--theme-palette-color-8);
  border-bottom: 1px solid var(--theme-border-color, rgba(128, 128, 128, 0.25));
}
.sn-catbar::after { /* soft fade on the right edge: scroll hint */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--theme-palette-color-8));
}
.sn-catbar__list {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 24px 0 8px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sn-catbar__list::-webkit-scrollbar { display: none; }
.sn-catbar__item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.sn-catbar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--theme-text-color);
  border-bottom: 3px solid transparent;
}
.sn-catbar__link:hover { color: var(--theme-palette-color-1); }
.sn-catbar__link:focus-visible { outline: 2px solid var(--theme-palette-color-1); outline-offset: -2px; }
.sn-catbar__link.is-current {
  font-weight: 700;
  color: var(--theme-palette-color-1);
  border-bottom-color: var(--theme-palette-color-1);
}
@media (min-width: 1000px) {
  .sn-catbar { display: none; }
}

/* ===== Menu panel (phones): sections first, then pages, socials, note ===== */
#offcanvas [data-device="mobile"] .ct-panel-content-inner { display: flex; flex-direction: column; padding-top: 56px; }
#offcanvas [data-device="mobile"] .sn-panelnav { order: 0; }
#offcanvas [data-device="mobile"] .mobile-menu { order: 2; margin-top: 8px; }
#offcanvas [data-device="mobile"] .ct-header-socials { order: 3; margin-top: 20px; }
#offcanvas [data-device="mobile"] .ct-header-divider { display: none; }
#offcanvas [data-device="mobile"] .ct-header-content-block {
  order: 4; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px; line-height: 1.5; opacity: 0.7;
}
#offcanvas [data-device="mobile"] .ct-header-content-block h4 { font-size: 14px; margin: 0 0 6px; }
#offcanvas [data-device="mobile"] .ct-header-content-block p { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
#offcanvas [data-device="mobile"] .ct-header-content-block p:empty { display: none; }

/* Close buttons: 44px target */
#offcanvas .ct-toggle-close, #search-modal .ct-toggle-close { width: 44px; height: 44px; top: 6px; inset-inline-end: 6px; }

/* Search inside the panel */
.sn-panelnav__search { display: flex; align-items: center; gap: 0; margin: 0 0 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px; }
.sn-panelnav__search input[type="search"] {
  flex: 1; min-width: 0; height: 48px; min-height: 48px; padding: 0 14px; border: 0; background: transparent;
  color: #fff; font-size: 16px; box-shadow: none; outline-offset: 0;
}
.sn-panelnav__search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.sn-panelnav__search button { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #fff; }

/* Section list */
.sn-panelnav__list, .sn-panelnav__sub { list-style: none; margin: 0; padding: 0; }
.sn-panelnav__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.sn-panelnav a { color: #fff; text-decoration: none; }
.sn-panelnav__link { display: flex; align-items: center; flex: 1; min-height: 48px; font-size: 18px; font-weight: 600; line-height: 1.2; }
.sn-panelnav a.is-current { color: #ff6b6b; }
.sn-panelnav__group > summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.sn-panelnav__group > summary::-webkit-details-marker { display: none; }
.sn-panelnav__chev { flex: none; width: 48px; height: 48px; position: relative; }
.sn-panelnav__chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.sn-panelnav__group[open] > summary .sn-panelnav__chev::before { transform: rotate(-135deg); margin-top: -2px; }
.sn-panelnav__sub { padding: 0 0 8px 16px; }
.sn-panelnav__sub a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 400; opacity: 0.9; }

/* Footer pages list: small second list */
#offcanvas [data-device="mobile"] .mobile-menu a { min-height: 44px; font-size: 15px; opacity: 0.8; }
#offcanvas [data-device="mobile"] .mobile-menu .current-menu-item > a { color: #ff6b6b; }
#offcanvas [data-device="mobile"] .mobile-menu li { border-bottom: 0; }
#offcanvas .ct-social-box a { width: 44px; height: 44px; }

/* Search overlay: field near the top, 16px+ text, 44px button */
#search-modal .ct-panel-content { align-items: flex-start; justify-content: flex-start; padding-top: 28px; }
#search-modal input[type="search"] { font-size: 17px; min-height: 48px; }
#search-modal .ct-search-form button[type="submit"] { width: 44px; height: 44px; }

/* Phones: bar belongs to the header strip */
.archive .sn-catbar { border-bottom: 0; }
.sn-catbar__list { padding-right: 36px; }
@media (min-width: 690px) { .sn-panelnav { display: none; } }
#offcanvas [data-device="mobile"] .mobile-menu .menu-item-home { display: none; }

/* ======================= Coordinator pass (mobile round, 2026-11-25) ======================= */
/* Category bar: part of the black header on phones, with full-size tap targets. */
.sn-catbar { background: #000; border-bottom: 0; }
.sn-catbar::after { background: linear-gradient(to right, rgba(0, 0, 0, 0), #000); }
.sn-catbar__link { min-height: 44px; color: rgba(255, 255, 255, 0.82); }
.sn-catbar__link:hover { color: #fff; }
.sn-catbar__link.is-current { color: #fff; }
/* Menu panel: every block uses the full panel width, so all lines end at the same edge. */
#offcanvas [data-device="mobile"] .ct-panel-content-inner > * { width: 100% !important; max-width: none !important; align-self: stretch; }
#offcanvas .ct-panel-actions { position: sticky; top: 0; z-index: 3; background: inherit; }
/* The "about" text at the end of the panel: small and quiet. */
#offcanvas [data-device="mobile"] .ct-header-content-block :is(h1, h2, h3, h4, h5, p, strong, b, em, a, span) {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  margin: 0 0 6px !important;
}
/* Search overlay: it covers the header and the page fully, and the field sits under the close button. */
#search-modal { background: rgba(0, 0, 0, 0.94) !important; z-index: 1000; }
#search-modal .ct-panel-content { padding-top: 64px; }
