/* HAZ utilities — framework-agnostic. Loaded for Pico, Simple, or any vendor.
   Framework element chrome stays in pico-x / simple-x. Kit chrome (search, …) lives here.
   Tokens: prefer Simple knobs (--bg, --text, --accent, …) + --haz_site_primary. */

.haz_sr_only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.haz_sr_only:focus,
.haz_sr_only:focus-visible {
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.haz_text_align_left {
  text-align: left;
}
.haz_text_align_center {
  text-align: center;
}
.haz_text_align_right {
  text-align: right;
}

.haz_display_flex {
  display: flex;
}

.haz_flex_direction_row {
  flex-direction: row;
}

.haz_flex_direction_column {
  flex-direction: column;
}

.haz_flex_direction_column_row {
  flex-direction: column;
}

@media (min-width: var(--mobile-breakpoint-min, 40rem)) {
  .haz_flex_direction_column_row {
    flex-direction: row;
  }
}

.haz_flex_direction_row_column {
  flex-direction: row;
}

@media (min-width: var(--mobile-breakpoint-min, 40rem)) {
  .haz_flex_direction_row_column {
    flex-direction: column;
  }
}

.haz_margin_bottom_0 {
  margin-bottom: 0;
}

.haz_display_block_inner_svg svg {
  display: block;
}

/* --- Search (Pagefind Component UI) — was stranded in pico-x after ditch Pico --- */

.haz_search {
  display: inline-flex;
  align-items: center;
}

/* Icon chrome buttons — defeat Simple’s filled button chrome anywhere (modal close, …). */
.haz_btn {
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  background: transparent;
  color: var(--haz_site_primary, var(--accent));
}

.haz_btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.haz_btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.haz_btn:hover,
.haz_btn:focus-visible,
.haz_btn:enabled:hover {
  background: transparent;
  border: none;
  color: var(--haz_site_primary_hover, var(--accent-hover));
}

/* Pagefind host tokens — bind to Simple/HAZ, not Pico. Do not rename pagefind-* classes. */
:root {
  --pf-font: inherit;
  --pf-text: var(--text);
  --pf-text-secondary: var(--text-light);
  --pf-text-muted: var(--text-light);
  --pf-background: var(--bg);
  --pf-border: var(--border);
  --pf-border-focus: var(--haz_site_primary, var(--accent));
  --pf-hover: var(--accent-bg);
  --pf-skeleton: var(--accent-bg);
  --pf-mark: var(--marked);
  --pf-outline-focus: var(--haz_site_primary, var(--accent));
  --pf-modal-backdrop: rgba(0, 0, 0, 0.45);
  --pf-summary-font-size: inherit;
  --pf-result-title-font-size: inherit;
  --pf-result-excerpt-font-size: inherit;
  --pf-border-radius: var(--standard-border-radius, 5px);
}

html:has(dialog[open]),
html:has(dialog[open]) body {
  overflow: hidden;
}

.haz_search_pagefind_modal,
.haz_search_pagefind_modal [data-pf-theme] {
  --pf-font: inherit;
  --pf-text: var(--text);
  --pf-text-secondary: var(--text-light);
  --pf-text-muted: var(--text-light);
  --pf-background: var(--bg);
  --pf-border: transparent;
  --pf-border-focus: var(--haz_site_primary, var(--accent));
  --pf-hover: var(--accent-bg);
  --pf-skeleton: var(--accent-bg);
  /* Search hit chip — mid grey + site off-black ink (not --marked / Pico blue).
     Same chip both schemes; mid grey reads on light --bg and on dark. */
  --haz_search_mark: var(--gray-5, #adb5bd);
  --haz_search_mark_ink: var(--gray-12, #212121);
  --pf-mark: var(--haz_search_mark);
  --pf-outline-focus: var(--haz_site_primary, var(--accent));
  --pf-modal-backdrop: rgba(0, 0, 0, 0.55);
  --pf-border-radius: var(--standard-border-radius, 5px);
  --pf-shadow-sm: none;
  --pf-shadow-md: none;
  --pf-shadow-lg: none;
}

.haz_search_pagefind_modal {
  --haz_search_field_max: 32rem;
  --haz_search_modal_pad_inline: 1rem;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  /* No side pad — separator full-bleeds; gutters live on field/results. */
  padding: 0.35rem 0 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--bg);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease, overlay 0.2s ease allow-discrete, display 0.2s ease allow-discrete;
}

.haz_search_pagefind_modal[open] {
  display: flex;
  opacity: 1;
  line-height: inherit;
}

@starting-style {
  .haz_search_pagefind_modal[open] {
    opacity: 0;
  }
}

.haz_search_pagefind_modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease, overlay 0.2s ease allow-discrete, display 0.2s ease allow-discrete;
}

.haz_search_pagefind_modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .haz_search_pagefind_modal[open]::backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haz_search_pagefind_modal,
  .haz_search_pagefind_modal::backdrop {
    transition: none;
  }
}

.haz_search_pagefind_modal__close {
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-end: 0.25rem;
  z-index: 2;
  margin: 0;
  color: var(--haz_site_primary, var(--accent));
}

.haz_search_pagefind_modal__close:hover,
.haz_search_pagefind_modal__close:focus-visible {
  color: var(--haz_site_primary_hover, var(--accent-hover));
  background: transparent;
  border: none;
}

.haz_search_pagefind_modal :is(pagefind-config, pagefind-input, pagefind-summary, pagefind-results) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.haz_search_pagefind_modal pagefind-input {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--haz_search_field_max);
  /* Clear corner-pinned close (out of flex flow). */
  margin-block-start: 2rem;
  margin-inline: auto;
  padding-inline: var(--haz_search_modal_pad_inline);
  box-sizing: border-box;
  --pf-input-font-size: 1.25rem;
  --pf-input-height: 2.75rem;
}

.haz_search_pagefind_modal pagefind-summary {
  display: block;
  width: 100%;
  max-width: var(--haz_search_field_max);
  margin-inline: auto;
  padding-inline: var(--haz_search_modal_pad_inline);
  box-sizing: border-box;
  font-size: 1rem;
  text-align: center;
  --pf-summary-font-size: 1rem;
}

.haz_search_pagefind_modal pagefind-results {
  overflow: auto;
  flex: 1;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  margin-inline: 0;
  /* Full-bleed rule under the field. */
  border-top: 2px solid var(--haz_site_primary, var(--accent));
  --pf-results-gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--text-light) var(--accent-bg);
}

.haz_search_pagefind_modal pagefind-results::-webkit-scrollbar {
  width: 0.5rem;
}

.haz_search_pagefind_modal pagefind-results::-webkit-scrollbar-track {
  background: var(--accent-bg);
}

.haz_search_pagefind_modal pagefind-results::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: var(--standard-border-radius, 5px);
}

.haz_search_pagefind_modal :is(.pf-result-title, .pf-result-excerpt, .pf-heading-link, .pf-heading-excerpt) {
  line-height: inherit;
}

/* PF layers :is(*, #\#)×3 on these classes — match that so hide/title stick. */
:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-result-excerpt {
  display: none;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-result-title {
  font-size: 1.25rem;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-summary {
  color: var(--haz_site_primary, var(--accent));
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-heading-chip, .pf-heading-link, .pf-heading-excerpt) {
  font-size: inherit;
  line-height: inherit;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-result-link, .pf-heading-link) {
  color: var(--haz_site_primary, var(--accent));
  text-decoration: underline;
  text-underline-offset: 0.125em;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-heading-link::before {
  content: none;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-result-link, .pf-heading-link):is(:hover, :focus) {
  color: var(--haz_site_primary_hover, var(--accent-hover));
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-result-card, .pf-heading-chip) {
  border: none;
  border-radius: var(--standard-border-radius, 5px);
  background: var(--accent-bg);
  box-shadow: none;
  color: var(--text);
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-result-card, .pf-heading-chip):hover {
  border: none;
  box-shadow: none;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal :is(.pf-result-card, .pf-heading-chip):has(:focus-visible) {
  border: none;
  box-shadow: 0 0 0 2px var(--haz_site_primary, var(--accent));
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal mark {
  color: var(--haz_search_mark_ink, var(--gray-12, #212121));
  background-color: var(--haz_search_mark, var(--gray-5, #adb5bd));
  font-weight: inherit;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-heading-chips {
  padding-inline-start: 1rem;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-input-clear {
  background: var(--haz_site_primary, var(--accent));
  color: var(--accent-text, #fff);
  font-size: inherit;
  border: none;
  border-radius: inherit;
  box-shadow: none;
  background-image: none;
  inset-inline-end: 5px;
  height: calc(100% - 10px);
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-input-clear:hover {
  background: var(--haz_site_primary_hover, var(--accent-hover));
  color: var(--accent-text, #fff);
  box-shadow: none;
  background-image: none;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-input-wrapper::before {
  width: 1.25rem;
  height: 1.25rem;
  top: calc((var(--pf-input-height) - 1.25rem) / 2);
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-input {
  padding-inline-start: 2.5rem;
  padding-inline-end: 3.5rem;
  font-weight: inherit;
  border: 3px solid var(--haz_site_primary, var(--accent));
  border-radius: inherit;
  background: var(--bg);
  color: var(--text);
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-input:is(:focus, :focus-visible) {
  border-color: var(--haz_site_primary, var(--accent));
  box-shadow: 0 0 0 2px var(--haz_site_primary, var(--accent));
  outline: none;
}

:is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-results {
  padding: 2rem var(--haz_search_modal_pad_inline) 1rem;
}

/* Float clear + spacer — used by haz_do and haz_img wrap. Was stranded in pico-x (#95 OP stack). */
.haz_float_left {
  float: left;
  margin-inline-end: 1rem;
  margin-block-end: 0.5rem;
}

.haz_float_right {
  float: right;
  margin-inline-start: 1rem;
  margin-block-end: 0.5rem;
}

.haz_do_spacer {
  height: 1rem;
}

.haz_clear {
  clear: both;
}

/* haz_do callout. Icon urls below are Go templates, so this file is ExecuteAsTemplate.
   Col 1 is a large icon. Col 2 is title + body. No accent bar.
   The base rule is the fallback (note). A type token adds haz_do_callout--{type}.
   The modifiers below are the default set. A site can add its own.
   Type colors are :root tokens. Recolor in child theme.css. The type rule
   only reads the token and sets the icon. Several types may share a color. */
:root {
  --haz_callout_calendar: var(--text-light, var(--border));
  --haz_callout_cancel: var(--red-7, var(--code));
  --haz_callout_caution: var(--yellow-7, var(--marked));
  --haz_callout_code: var(--code);
  --haz_callout_deadline: var(--text-light, var(--border));
  --haz_callout_fast-forward: var(--green-7, #2f9e44);
  --haz_callout_focus: var(--blue-6, var(--haz_site_primary, var(--accent)));
  --haz_callout_go: var(--haz_site_primary, var(--pink-7));
  --haz_callout_happy: var(--yellow-7, var(--marked));
  --haz_callout_important: var(--blue-6, var(--haz_site_primary, var(--accent)));
  --haz_callout_info: var(--blue-6, var(--haz_site_primary, var(--accent)));
  --haz_callout_love: var(--red-7, var(--code));
  --haz_callout_note: var(--text-light, var(--border));
  --haz_callout_pause: var(--green-7, #2f9e44);
  --haz_callout_peace: var(--green-7, #2f9e44);
  --haz_callout_play: var(--green-7, #2f9e44);
  --haz_callout_rewind: var(--green-7, #2f9e44);
  --haz_callout_sad: var(--yellow-7, var(--marked));
  --haz_callout_steps: var(--haz_site_primary, var(--pink-7));
  --haz_callout_tip: var(--yellow-7, var(--marked));
  --haz_callout_understanding: var(--green-7, #2f9e44);
  --haz_callout_warning: var(--red-7, var(--code));
  /* Regional earth. Default blue. No plain earth or globe default. */
  --haz_callout_earth-africa: var(--blue-6, var(--accent));
  --haz_callout_earth-americas: var(--blue-6, var(--accent));
  --haz_callout_earth-asia: var(--blue-6, var(--accent));
  --haz_callout_earth-europe: var(--blue-6, var(--accent));
  --haz_callout_earth-oceania: var(--blue-6, var(--accent));
  /* Silhouette and gene symbols. Default purple. Clothing names, not gender. */
  --haz_callout_person-dress: var(--purple-6, var(--accent));
  --haz_callout_person-trousers: var(--purple-6, var(--accent));
  --haz_callout_human-xx: var(--purple-6, var(--accent));
  --haz_callout_human-xy: var(--purple-6, var(--accent));
  --haz_callout_user-circle: var(--purple-6, var(--accent));
}

.haz_do_callout {
  --haz_callout_accent: var(--haz_callout_note);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/pen-to-square.svg");
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  margin-block: 1rem;
  padding: 1rem;
  background: var(--accent-bg);
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--standard-border-radius, 5px);
}

.haz_do_callout::before {
  content: "";
  grid-column: 1;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--haz_callout_accent);
  -webkit-mask: var(--haz_callout_icon) center / contain no-repeat;
  mask: var(--haz_callout_icon) center / contain no-repeat;
}

.haz_do_callout__copy {
  grid-column: 2;
  min-width: 0;
}

.haz_do_callout__title,
.haz_do_list__title,
.haz_do_tab__label {
  font-weight: var(--haz_do_title_weight, 700);
}

.haz_do_callout__title {
  margin: 0;
  color: var(--haz_callout_accent);
}

.haz_do_callout__title + .haz_do_callout__body {
  margin-top: 0.25rem;
}

.haz_do_callout__body > :first-child {
  margin-top: 0;
}

.haz_do_callout__body > :last-child {
  margin-bottom: 0;
}

.haz_do_callout--note {
  --haz_callout_accent: var(--haz_callout_note);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/pen-to-square.svg");
}

.haz_do_callout--tip {
  --haz_callout_accent: var(--haz_callout_tip);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/lightbulb.svg");
}

.haz_do_callout--info {
  --haz_callout_accent: var(--haz_callout_info);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/circle-info.svg");
}

.haz_do_callout--code {
  --haz_callout_accent: var(--haz_callout_code);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/code.svg");
}

.haz_do_callout--steps {
  --haz_callout_accent: var(--haz_callout_steps);
}

.haz_do_callout--steps::before {
  content: attr(data-haz_callout_step);
  -webkit-mask: none;
  mask: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  padding: 0.25rem;
  box-sizing: border-box;
  color: var(--accent-text, var(--bg));
  font-weight: var(--haz_do_title_weight, 700);
  font-size: 1rem;
  line-height: 1;
}

.haz_do_callout--warning {
  --haz_callout_accent: var(--haz_callout_warning);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/triangle-exclamation.svg");
}

.haz_do_callout--caution {
  --haz_callout_accent: var(--haz_callout_caution);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/circle-exclamation.svg");
}

.haz_do_callout--cancel {
  --haz_callout_accent: var(--haz_callout_cancel);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/cancel.svg");
}

/* Placeholders. Colors are for the lineup comparison, not a locked palette. */
.haz_do_callout--important {
  --haz_callout_accent: var(--haz_callout_important);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/star.svg");
}

.haz_do_callout--happy {
  --haz_callout_accent: var(--haz_callout_happy);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/face-smile.svg");
}

.haz_do_callout--sad {
  --haz_callout_accent: var(--haz_callout_sad);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/face-frown.svg");
}

.haz_do_callout--love {
  --haz_callout_accent: var(--haz_callout_love);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/heart.svg");
}

.haz_do_callout--peace {
  --haz_callout_accent: var(--haz_callout_peace);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/peace.svg");
}

.haz_do_callout--calendar {
  --haz_callout_accent: var(--haz_callout_calendar);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/calendar-check.svg");
}

.haz_do_callout--deadline {
  --haz_callout_accent: var(--haz_callout_deadline);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/alarm-clock.svg");
}

.haz_do_callout--focus {
  --haz_callout_accent: var(--haz_callout_focus);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/eye.svg");
}

.haz_do_callout--understanding {
  --haz_callout_accent: var(--haz_callout_understanding);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/yin-yang.svg");
}

.haz_do_callout--go {
  --haz_callout_accent: var(--haz_callout_go);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/rocket.svg");
}

.haz_do_callout--play {
  --haz_callout_accent: var(--haz_callout_play);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/circle-play.svg");
}

.haz_do_callout--pause {
  --haz_callout_accent: var(--haz_callout_pause);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/circle-pause.svg");
}

.haz_do_callout--fast-forward {
  --haz_callout_accent: var(--haz_callout_fast-forward);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/forward-fast.svg");
}

.haz_do_callout--rewind {
  --haz_callout_accent: var(--haz_callout_rewind);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/backward-fast.svg");
}

.haz_do_callout--earth-africa {
  --haz_callout_accent: var(--haz_callout_earth-africa);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/earth-africa.svg");
}

.haz_do_callout--earth-americas {
  --haz_callout_accent: var(--haz_callout_earth-americas);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/earth-americas.svg");
}

.haz_do_callout--earth-asia {
  --haz_callout_accent: var(--haz_callout_earth-asia);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/earth-asia.svg");
}

.haz_do_callout--earth-europe {
  --haz_callout_accent: var(--haz_callout_earth-europe);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/earth-europe.svg");
}

.haz_do_callout--earth-oceania {
  --haz_callout_accent: var(--haz_callout_earth-oceania);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/earth-oceania.svg");
}

.haz_do_callout--person-dress {
  --haz_callout_accent: var(--haz_callout_person-dress);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/person-dress.svg");
}

.haz_do_callout--person-trousers {
  --haz_callout_accent: var(--haz_callout_person-trousers);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/person.svg");
}

.haz_do_callout--human-xx {
  --haz_callout_accent: var(--haz_callout_human-xx);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/venus.svg");
}

.haz_do_callout--human-xy {
  --haz_callout_accent: var(--haz_callout_human-xy);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/mars.svg");
}

.haz_do_callout--user-circle {
  --haz_callout_accent: var(--haz_callout_user-circle);
  --haz_callout_icon: url("/third_party/fontawesome-free/svgs-full/solid/user-circle.svg");
}

/* haz_do list. Chrome around a Markdown ul or ol. A plain list is untouched. */
.haz_do_list {
  margin-block: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--haz_do_list_box_border, transparent);
  border-radius: var(--standard-border-radius, 5px);
}

.haz_do_list__title {
  margin: 0 0 0.5rem;
}

.haz_do_list__body > :first-child {
  margin-top: 0;
}

.haz_do_list__body > :last-child {
  margin-bottom: 0;
}

.haz_do_list__body > :is(ol, ul) {
  margin: 0;
  margin-inline-start: 0.5rem;
  padding-inline-start: 1.75rem;
  border-inline-start: 2px solid var(--haz_do_list_border, var(--haz_site_primary, var(--accent)));
}

.haz_do_list__body li + li {
  margin-top: 0.5rem;
}

/* haz_do tabs. CSS radios switch panels.
   A swipe row prints the library tag. Labels sit in one scrolling row.
   The panel stays full width below. The active button and the panel share one fill. */
.haz_do_tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  margin-block: 1rem;
  min-width: 0;
  max-width: 100%;
}

.haz_do_tabs__bar {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.haz_do_tabs__bar::-webkit-scrollbar {
  display: none;
}

.haz_do_tabs__bar.haz_swipe_true {
  overflow: hidden;
  scroll-snap-type: none;
}

/* The track stays the width of the bar. Slides overflow it. A max-content width here grows the viewport to the whole row, Embla's limit is 0, and a drag springs home. */
.haz_do_tabs__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  touch-action: pan-y pinch-zoom;
}

.haz_do_tab {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
}

/* Beat Simple's input[type=radio] (position, width). A radio left in the flex row eats a gap and indents the first button. */
.haz_do_tabs input.haz_do_tab__radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  appearance: none;
  background: transparent;
}

.haz_do_tabs input.haz_do_tab__radio::after {
  content: none;
}

.haz_do_tabs__bar.haz_swipe_true .haz_do_tab__label {
  cursor: grab;
}

.haz_do_tab__label {
  flex: none;
  width: auto;
  min-width: max-content;
  scroll-snap-align: start;
  white-space: nowrap;
  margin: 0;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-align: center;
  color: var(--text);
  background: var(--bg);
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--standard-border-radius, 5px);
}

.haz_do_tab__radio:checked + .haz_do_tab__label,
.haz_do_tabs:not(:has(.haz_do_tab__radio:checked)) .haz_do_tabs__tabs > .haz_do_tab:first-child > .haz_do_tab__label {
  background: var(--haz_do_tab_fill, var(--accent-bg));
  border-color: var(--border);
}

.haz_do_tab__radio:focus-visible + .haz_do_tab__label {
  outline: 2px solid var(--haz_site_primary, var(--accent));
  outline-offset: -2px;
}

.haz_do_tab__panel {
  display: none;
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--haz_do_tab_fill, var(--accent-bg));
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--standard-border-radius, 5px);
}

.haz_do_tabs:not(:has(.haz_do_tab__radio:checked)) > .haz_do_tabs__panels > .haz_do_tab__panel:first-child {
  display: block;
}

.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(1) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(1),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(2) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(2),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(3) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(3),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(4) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(4),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(5) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(5),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(6) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(6),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(7) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(7),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(8) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(8),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(9) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(9),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(10) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(10),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(11) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(11),
.haz_do_tabs:has(.haz_do_tabs__tabs > .haz_do_tab:nth-child(12) .haz_do_tab__radio:checked) > .haz_do_tabs__panels > .haz_do_tab__panel:nth-child(12) {
  display: block;
}

.haz_do_tab__panel > :first-child {
  margin-top: 0;
}

.haz_do_tab__panel > :last-child {
  margin-bottom: 0;
}

/* haz_do grid. Columns come from how many cells there are.
   Phone is one column. Tablet is two. Desktop is the wide count.
   haz_do_grid_swipe_false owns these rules. swipe_true is a later pass.
   Whitespace between pasted cells is a text node, so counts use `of *`. */
.haz_do_grid {
  margin-block: 1rem;
  min-width: 0;
  max-width: 100%;
}

.haz_do_grid_swipe_false .haz_do_grid__cells {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.haz_do_grid__item {
  display: block;
  min-width: 0;
  padding: 0.7rem 1rem;
  color: var(--text);
  background: var(--bg);
  border: var(--border-width, 1px) solid var(--border);
  border-radius: var(--standard-border-radius, 5px);
  text-decoration: none;
}

.haz_do_grid__item > :first-child {
  margin-top: 0;
}

.haz_do_grid__item > :last-child {
  margin-bottom: 0;
}

.haz_do_grid__more {
  display: none;
  margin-top: 0.75rem;
  cursor: pointer;
}

/* Phone is the base. Show All hides the tail here. The tablet min-width below puts those cells back. */
.haz_do_grid_more_1:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 2 of *),
.haz_do_grid_more_2:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 3 of *),
.haz_do_grid_more_3:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 4 of *),
.haz_do_grid_more_4:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 5 of *),
.haz_do_grid_more_5:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 6 of *),
.haz_do_grid_more_6:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 7 of *),
.haz_do_grid_more_7:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 8 of *),
.haz_do_grid_more_8:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 9 of *),
.haz_do_grid_more_9:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 10 of *),
.haz_do_grid_more_10:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 11 of *),
.haz_do_grid_more_11:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 12 of *),
.haz_do_grid_more_12:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 13 of *) {
  display: none;
}

.haz_do_grid_more_1:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(2 of *)) .haz_do_grid__more,
.haz_do_grid_more_2:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(3 of *)) .haz_do_grid__more,
.haz_do_grid_more_3:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(4 of *)) .haz_do_grid__more,
.haz_do_grid_more_4:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(5 of *)) .haz_do_grid__more,
.haz_do_grid_more_5:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(6 of *)) .haz_do_grid__more,
.haz_do_grid_more_6:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(7 of *)) .haz_do_grid__more,
.haz_do_grid_more_7:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(8 of *)) .haz_do_grid__more,
.haz_do_grid_more_8:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(9 of *)) .haz_do_grid__more,
.haz_do_grid_more_9:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(10 of *)) .haz_do_grid__more,
.haz_do_grid_more_10:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(11 of *)) .haz_do_grid__more,
.haz_do_grid_more_11:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(12 of *)) .haz_do_grid__more,
.haz_do_grid_more_12:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(13 of *)) .haz_do_grid__more {
  display: block;
  inline-size: 100%;
}@media (min-width: 480px) {
  .haz_do_grid_swipe_false .haz_do_grid__cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haz_do_grid_swipe_false:has(.haz_do_grid__cells > :nth-child(1 of *):nth-last-child(1 of *)) .haz_do_grid__cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .haz_do_grid_more_1:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 2 of *),
  .haz_do_grid_more_2:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 3 of *),
  .haz_do_grid_more_3:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 4 of *),
  .haz_do_grid_more_4:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 5 of *),
  .haz_do_grid_more_5:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 6 of *),
  .haz_do_grid_more_6:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 7 of *),
  .haz_do_grid_more_7:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 8 of *),
  .haz_do_grid_more_8:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 9 of *),
  .haz_do_grid_more_9:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 10 of *),
  .haz_do_grid_more_10:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 11 of *),
  .haz_do_grid_more_11:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 12 of *),
  .haz_do_grid_more_12:not(.haz_do_grid_more_open) .haz_do_grid__cells > :nth-child(n + 13 of *) {
    display: block;
  }

  .haz_do_grid_more_1:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(2 of *)) .haz_do_grid__more,
  .haz_do_grid_more_2:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(3 of *)) .haz_do_grid__more,
  .haz_do_grid_more_3:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(4 of *)) .haz_do_grid__more,
  .haz_do_grid_more_4:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(5 of *)) .haz_do_grid__more,
  .haz_do_grid_more_5:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(6 of *)) .haz_do_grid__more,
  .haz_do_grid_more_6:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(7 of *)) .haz_do_grid__more,
  .haz_do_grid_more_7:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(8 of *)) .haz_do_grid__more,
  .haz_do_grid_more_8:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(9 of *)) .haz_do_grid__more,
  .haz_do_grid_more_9:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(10 of *)) .haz_do_grid__more,
  .haz_do_grid_more_10:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(11 of *)) .haz_do_grid__more,
  .haz_do_grid_more_11:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(12 of *)) .haz_do_grid__more,
  .haz_do_grid_more_12:not(.haz_do_grid_more_open):has(.haz_do_grid__cells > :nth-child(13 of *)) .haz_do_grid__more {
    display: none;
  }
}

@media (min-width: 768px) {
  .haz_do_grid_swipe_false .haz_do_grid__cells {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .haz_do_grid_swipe_false:has(.haz_do_grid__cells > :nth-child(1 of *):nth-last-child(1 of *)) .haz_do_grid__cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .haz_do_grid_swipe_false:has(.haz_do_grid__cells > :nth-child(2 of *):nth-last-child(1 of *)) .haz_do_grid__cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haz_do_grid_swipe_false:has(.haz_do_grid__cells > :nth-child(4 of *):nth-last-child(1 of *)) .haz_do_grid__cells,
  .haz_do_grid_swipe_false:has(.haz_do_grid__cells > :nth-child(8 of *):nth-last-child(1 of *)) .haz_do_grid__cells {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet+: full-bleed panel (base width/height 100%), top-aligned — covers the site. */
@media (min-width: 768px) {
  .haz_search_pagefind_modal {
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
  }

  .haz_search_pagefind_modal pagefind-input,
  .haz_search_pagefind_modal pagefind-summary {
    max-width: 26rem;
  }

  :is(*, #\#):is(*, #\#):is(*, #\#) .haz_search_pagefind_modal .pf-results {
    max-width: 34rem;
    margin-inline: auto;
  }
}

/* Pager. Full row: Prev | numbers | Next. Numbers take leftover (viewport
   minus Prev/Next minus gap). Next may omit. Native ol counters off.
   Font: --font-size-2 (1.1rem); --font-size-3 is 1.25rem. */
.haz_pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  padding: 1rem;
  font-size: var(--font-size-2);
}

.haz_pager a,
.haz_pager a:visited,
.haz_pager a:hover {
  text-decoration: none;
}

.haz_pager__prev,
.haz_pager__next {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  color: var(--haz_site_primary, var(--accent));
  border: var(--border-width, 1px) solid var(--haz_site_primary, var(--accent));
  border-radius: var(--standard-border-radius, 5px);
}

.haz_pager__prev {
  justify-self: start;
}

.haz_pager__prev[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.haz_pager__swipe {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

.haz_pager__next {
  justify-self: end;
}

.haz_pager__numbers {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.haz_pager__numbers > li {
  flex: 0 0 auto;
}

.haz_pager__page {
  display: inline-block;
  box-sizing: border-box;
  min-width: 2.25rem;
  padding: 0.35rem 0.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--haz_site_primary, var(--accent));
  border: var(--border-width, 1px) solid var(--haz_site_primary, var(--accent));
  border-radius: var(--standard-border-radius, 5px);
}

.haz_pager__page[aria-current="page"] {
  color: inherit;
  background: var(--haz_do_tab_fill, var(--accent-bg));
  border-color: var(--border);
  font-weight: 600;
}

.haz_pager__swipe.haz_swipe_true {
  --haz_pager_swipe_fade: 2.75rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.haz_pager__swipe.haz_swipe_true.haz_swipe__more_after::after,
.haz_pager__swipe.haz_swipe_true.haz_swipe__more_before::before {
  content: "";
  position: absolute;
  inset-block: 0;
  width: var(--haz_pager_swipe_fade);
  pointer-events: none;
  z-index: 1;
}

.haz_pager__swipe.haz_swipe_true.haz_swipe__more_after::after {
  inset-inline-end: 0;
  background: linear-gradient(to right, transparent, var(--bg, #fff) 70%);
}

.haz_pager__swipe.haz_swipe_true.haz_swipe__more_before::before {
  inset-inline-start: 0;
  background: linear-gradient(to left, transparent, var(--bg, #fff) 70%);
}

