/* ── Zentanee: the Tibeb Band system (site-wide) ──────────────────────
   White cotton ground, ink type, two thread colours (indigo, green) that live with ink inside
   the authored SVG bands (zent-tibeb-bands.css). Depth by overlap and 2px ink
   rules, never by shadow. Every corner is square. Loaded by templates/base.html
   on every storefront page; page layouts live in zent-tibeb-pages.css and the
   homepage keeps zent-home.css. Prefix: .zh-  */

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  --zh-ground: #fbfbf8;
  --zh-ink: #111111;
  --zh-ink-2: #3d3a36;      /* secondary text on the white ground */
  --zh-paper: #ffffff;
  --zh-green: #1b7f4c;
  --zh-indigo: #1f3a93;
  --zh-display: "Unbounded", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --zh-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --zh-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --zh-band-h: 56px;
  --zh-gap: 16px;
  --zh-wrap: 1240px;
  --zh-pad: 16px;
  --zh-tabbar: 62px;
}

/* ── Ground ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.zh-body {
  margin: 0;
  min-height: 100vh;
  background: var(--zh-ground);
  color: var(--zh-ink);
  font-family: var(--zh-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--zh-tabbar) + env(safe-area-inset-bottom, 0px));
}
body.zh-body.has-sticky-cta { padding-bottom: calc(var(--zh-tabbar) + 78px + env(safe-area-inset-bottom, 0px)); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--zh-indigo); color: var(--zh-paper); }
:focus-visible { outline: 3px solid var(--zh-indigo); outline-offset: 3px; border-radius: 2px; }
.zh-num { font-variant-numeric: tabular-nums lining-nums; }
.zh-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zh-skip {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 14px; background: var(--zh-ink); color: var(--zh-paper);
  font: 600 12px/1 var(--zh-display); letter-spacing: 0.04em; text-transform: uppercase;
  transition: top 160ms ease;
}
.zh-skip:focus { top: 12px; }

/* ── Type ──────────────────────────────────────────────────────────── */
.zh-display, .zh-h1, .zh-h2, .zh-h3 { font-family: var(--zh-display); font-weight: 700; letter-spacing: -0.02em; }
.zh-h1 { font-size: clamp(28px, 6vw, 56px); line-height: 1.02; text-wrap: balance; }
.zh-h2 { font-size: clamp(22px, 4vw, 34px); line-height: 1.05; }
.zh-h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.zh-label { font: 600 12px/1.3 var(--zh-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--zh-ink); }
.zh-muted, .zh-meta { color: var(--zh-ink-2); }
.zh-meta { font-size: 13px; }
.zh-lede { font-size: 16px; line-height: 1.5; color: var(--zh-ink-2); max-width: 62ch; }
.zh-price { font-family: var(--zh-display); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }

/* The indigo thread: one underline device for every highlighted phrase and link. */
.zh-thread, .zh-link, mark.zh-mark, .zh-home mark, .zh-prose a, .zh-section__head a,
.zh-nav a:hover, .zh-nav a[aria-current="page"], .zh-footer a:hover, .zh-header__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--zh-indigo);
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}
.zh-link { font-weight: 600; color: var(--zh-ink); }
.zh-link:hover { text-decoration-color: var(--zh-ink); }
mark.zh-mark, .zh-home mark { background: transparent; color: var(--zh-ink); font-weight: 600; }

/* ── Layout ────────────────────────────────────────────────────────── */
.zh-wrap { width: 100%; max-width: var(--zh-wrap); margin: 0 auto; padding: 0 var(--zh-pad); }
.zh-main { display: block; padding-bottom: 40px; }
.zh-page__head { display: grid; gap: 8px; padding: 26px 0 22px; }
.zh-page__head h1 { font-family: var(--zh-display); font-weight: 700; font-size: clamp(28px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; max-width: 22ch; }
.zh-page__head .zh-lede { margin-top: 2px; }
.zh-page__count { font-size: 13px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-page__head--ruled { border-bottom: 2px solid var(--zh-ink); }
.zh-section { padding: 40px 0 8px; }
.zh-section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 16px; margin: 18px 0 20px;
}
.zh-section__head h2 { font-family: var(--zh-display); font-weight: 700; font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.05; }
.zh-section__head a { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--zh-ink); }
.zh-section__head a:hover { text-decoration-color: var(--zh-ink); }
.zh-section__meta { font-size: 13px; color: var(--zh-ink-2); }
.zh-section__head .zh-section__meta { flex: 1 1 100%; }
.zh-section__meta--standalone { margin-top: 14px; font-size: 15px; }
.zh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--zh-gap); }
.zh-stack { display: grid; gap: 16px; }
.zh-split { display: grid; gap: 32px; }

/* ── Bands ─────────────────────────────────────────────────────────── */
.zh-band { display: block; width: 100%; line-height: 0; }
.zh-band__tile { display: block; width: 100%; background-repeat: repeat-x; background-position: left center; background-size: auto 100%; }
.zh-band__tile--full { height: var(--zh-band-h); }
.zh-band__tile--thin { height: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .zh-band--weave .zh-band__tile { clip-path: inset(0 0 0 0); animation: zh-weave 1100ms var(--zh-ease) both; }
  @keyframes zh-weave { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ── Motion layer (asset/js/zent-motion.js) ────────────────────────────
   html.zh-motion is set by the inline head script only when motion is
   allowed; zent-motion.js takes over the hero weave and adds
   .zh-motion-ready once its opening states are in place. Without the
   script the class is dropped after 2.5s and the page shows as authored. */
html.zh-motion .zh-band--weave .zh-band__tile { animation: none; }
html.zh-motion:not(.zh-motion-ready) .zh-hero__inner,
html.zh-motion:not(.zh-motion-ready) .zh-band--weave .zh-band__tile,
html.zh-motion:not(.zh-motion-ready) .zh-page__head h1 { visibility: hidden; }
/* SplitText line masks: room below the baseline for descenders and the indigo underline. */
.zh-sline-mask { padding-bottom: 0.2em; margin-bottom: -0.2em; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis .zh-drawer, .lenis .zent-search-suggest__list { overscroll-behavior: contain; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.zh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 18px;
  font-family: var(--zh-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.2;
  border: 2px solid var(--zh-ink); background: var(--zh-ink); color: var(--zh-paper);
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: transform 220ms var(--zh-ease), background 160ms ease, color 160ms ease;
}
.zh-btn i { font-size: 15px; }
.zh-btn--primary { border-bottom: 6px solid var(--zh-indigo); } /* the selvedge */
.zh-btn--ghost { background: transparent; color: var(--zh-ink); }
.zh-btn--sm { min-height: 40px; padding: 0 14px; font-size: 11.5px; }
.zh-btn--block { display: flex; width: 100%; }
.zh-btn:hover, .zh-btn:focus-visible { background: var(--zh-paper); color: var(--zh-ink); }
.zh-btn--ghost:hover, .zh-btn--ghost:focus-visible { background: var(--zh-ink); color: var(--zh-paper); }
.zh-btn:active { transform: translateY(1px); }
.zh-btn[disabled], .zh-btn:disabled, .zh-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.zh-btn.htmx-request, form.htmx-request .zh-btn[type="submit"] { opacity: 0.6; pointer-events: none; }
.zh-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--zh-ink); background: transparent; color: var(--zh-ink); font-size: 16px;
  transition: background 140ms ease, color 140ms ease;
}
.zh-iconbtn:hover, .zh-iconbtn:focus-visible { background: var(--zh-ink); color: var(--zh-paper); }
.zh-iconbtn--flat { border-color: transparent; }
.zh-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Chips, sizes and tags ─────────────────────────────────────────── */
.zh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zh-chip, .zh-size {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  font: 600 12px/1 var(--zh-body); letter-spacing: 0.02em;
  border: 2px solid var(--zh-ink); background: transparent; color: var(--zh-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.zh-size { height: 30px; padding: 0 8px; font-size: 11.5px; }
.zh-chip:hover, .zh-chip:focus-visible, .zh-size:hover, .zh-size:focus-visible,
.zh-chip.is-active, .zh-chip[aria-pressed="true"], .zh-chip[aria-current], .zh-size.is-active, .zh-size[aria-pressed="true"] { background: var(--zh-ink); color: var(--zh-paper); }
.zh-chip.htmx-request, .zh-size.htmx-request { opacity: 0.5; pointer-events: none; }
.zh-chip[disabled], .zh-size[disabled], .zh-chip.is-disabled, .zh-size.is-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.zh-chip__x { font-size: 14px; line-height: 1; margin-left: 2px; }
.zh-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.zh-tag, .zh-module__tag {
  display: inline-block; padding: 4px 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
  background: var(--zh-paper); color: var(--zh-ink); border: 2px solid var(--zh-ink);
}
.zh-tag--inverse, .zh-module__tag--sale, .zh-module__tag--soldout { background: var(--zh-ink); color: var(--zh-paper); }

/* ── Forms ─────────────────────────────────────────────────────────── */
.zh-form { display: grid; gap: 18px; }
.zh-form--narrow { max-width: 440px; }
.zh-field { display: grid; gap: 6px; }
.zh-field > label, .zh-field__label, .zh-form label:not(.zh-check):not(.zh-chip) { font: 600 12px/1.3 var(--zh-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--zh-ink); }
.zh-input, .zh-select, .zh-textarea,
.zh-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not(.zh-size),
.zh-form select, .zh-form textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--zh-ink); border-radius: 0; background: var(--zh-paper); color: var(--zh-ink);
  font: 400 15px/1.4 var(--zh-body); appearance: none; -webkit-appearance: none;
  transition: none;
}
.zh-textarea, .zh-form textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.zh-select, .zh-form select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111111' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 9px;
}
.zh-select--sm { min-height: 40px; font-size: 14px; }
::placeholder { color: var(--zh-ink-2); opacity: 1; }
.zh-input:disabled, .zh-select:disabled, .zh-form input:disabled { background: var(--zh-ground); opacity: 0.6; }
.zh-input[aria-invalid="true"], .zh-field.is-error input, .zh-field.is-error select, .zh-field.is-error textarea { border-width: 3px; }
.zh-help { font-size: 12.5px; color: var(--zh-ink-2); }
.zh-error, .errorlist { margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--zh-ink); }
.zh-error, .errorlist li { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.zh-check input, input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--zh-ink); flex: 0 0 auto; }
.zh-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.zh-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.zh-fieldset legend { padding: 0; margin: 0 0 4px; font-family: var(--zh-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

/* ── Search ────────────────────────────────────────────────────────── */
.zent-search { position: relative; }
.zh-search { display: flex; align-items: stretch; gap: 0; }
.zh-search input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 8px;
  border: 0; border-bottom: 2px solid var(--zh-ink); border-radius: 0; background: transparent; color: var(--zh-ink); font-size: 14px;
}
.zh-search input::placeholder { color: var(--zh-ink-2); }
.zh-search .zh-iconbtn { flex: 0 0 auto; }
.zent-search-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; }
.zent-search-suggest__list { list-style: none; margin: 0; padding: 0; background: var(--zh-paper); border: 2px solid var(--zh-ink); max-height: 320px; overflow-y: auto; }
.zent-search-suggest__list li + li { border-top: 2px solid var(--zh-ink); }
.zent-search-suggest__list li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; color: var(--zh-ink); }
.zent-search-suggest__list li a:hover, .zent-search-suggest__list li a:focus { background: var(--zh-ink); color: var(--zh-paper); }
.zent-search-suggest__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 2px solid currentColor; padding: 1px 6px; }

/* ── Rulers, rows, lists, tables ───────────────────────────────────── */
.zh-ruler {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink);
}
.zh-ruler li { display: grid; gap: 1px; padding: 8px 10px 8px 0; font-size: 12px; letter-spacing: 0.02em; color: var(--zh-ink-2); min-width: 0; }
.zh-ruler li:nth-child(even) { border-left: 2px solid var(--zh-ink); padding-left: 10px; }
.zh-ruler li:nth-child(n+3) { border-top: 2px solid var(--zh-ink); }
.zh-ruler strong { font-family: var(--zh-display); font-weight: 600; font-size: 17px; color: var(--zh-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.zh-rows { margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px solid var(--zh-ink); }
.zh-row__label, .zh-row dt { font-size: 12.5px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-row__value, .zh-row dd { margin: 0; font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.zh-row--total .zh-row__label, .zh-row--total dt { color: var(--zh-ink); font-weight: 600; }
.zh-row--total .zh-row__value, .zh-row--total dd { font-size: 20px; }
.zh-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-list > li { border-bottom: 2px solid var(--zh-ink); padding: 14px 0; }
.zh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.zh-table th { text-align: left; padding: 10px 12px 10px 0; font: 600 12px/1.3 var(--zh-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--zh-ink-2); border-bottom: 2px solid var(--zh-ink); }
.zh-table td { padding: 12px 12px 12px 0; border-bottom: 2px solid var(--zh-ink); vertical-align: top; }
.zh-table th:last-child, .zh-table td:last-child { padding-right: 0; }
.zh-table .is-num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.zh-table-wrap { overflow-x: auto; }

/* ── Steps (the mechanism, as one ruler) ───────────────────────────── */
.zh-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.zh-step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 2px solid var(--zh-ink); }
.zh-step:last-child { border-bottom: 2px solid var(--zh-ink); }
.zh-step__n { font-family: var(--zh-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--zh-ink); }
.zh-step h3 { margin: 4px 0 4px; font-family: var(--zh-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.zh-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--zh-ink-2); max-width: 46ch; }
.zh-step__time { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-step__time strong { color: var(--zh-ink); font-weight: 600; }

/* ── Product module (photo, name, price, size ruler; no card chrome) ── */
.zh-module { position: relative; display: grid; gap: 10px; align-content: start; }
.zh-module__media { position: relative; display: block; background: var(--zh-paper); border: 2px solid var(--zh-ink); }
.zh-module__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.zh-module__alt { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 220ms ease; }
.zh-module__alt img { width: 100%; height: 100%; }
@media (hover: hover) { .zh-module:hover .zh-module__alt { opacity: 1; } }
.zh-module__tag { position: absolute; top: 10px; left: -2px; border-left: 0; }
.zh-module__save {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 2px solid var(--zh-ink); background: var(--zh-paper); color: var(--zh-ink); font-size: 14px;
  transition: background 140ms ease, color 140ms ease;
}
.zh-module__save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zh-module__save:hover, .zh-module__save:focus-visible, .zh-module__save.is-saved { background: var(--zh-ink); color: var(--zh-paper); }
.zh-module__save-form { display: contents; }
.zh-module__body { display: grid; gap: 4px; }
.zh-module__title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.zh-module__title a { color: var(--zh-ink); }
.zh-module:hover .zh-module__title a { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zh-module__meta { margin: 0; font-size: 12px; color: var(--zh-ink-2); letter-spacing: 0.02em; }
.zh-module__price { margin: 2px 0 0; font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.zh-module__price s { color: var(--zh-ink-2); font-weight: 400; margin-left: 8px; font-family: var(--zh-body); }
.zh-module__price--soldout { color: var(--zh-ink-2); }
.zh-module__price--soldout a { color: var(--zh-ink); font-family: var(--zh-body); font-weight: 500; font-size: 12px; margin-left: 8px; border-bottom: 2px solid var(--zh-indigo); }

/* Rails: phone snap rail bled to the viewport edge; a ruled grid from 768px. */
.zh-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: var(--zh-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 14px;
  margin: 0 calc(50% - 50vw);
  padding-left: max(16px, calc(50vw - 620px)); padding-right: max(16px, calc(50vw - 620px));
  -webkit-overflow-scrolling: touch; scrollbar-color: var(--zh-ink) transparent; scrollbar-width: thin;
}
.zh-rail::-webkit-scrollbar { height: 6px; }
.zh-rail::-webkit-scrollbar-thumb { background: var(--zh-ink); }
.zh-rail::-webkit-scrollbar-track { background: transparent; }
.zh-rail > * { scroll-snap-align: start; }

/* ── Prose (Read surfaces) ─────────────────────────────────────────── */
.zh-prose { max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--zh-ink); }
.zh-prose h2 { margin: 36px 0 12px; font-family: var(--zh-display); font-weight: 700; font-size: clamp(20px, 3.2vw, 26px); letter-spacing: -0.02em; line-height: 1.1; }
.zh-prose h3 { margin: 24px 0 8px; font-family: var(--zh-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.zh-prose h2:first-child, .zh-prose h3:first-child { margin-top: 0; }
.zh-prose p, .zh-prose ul, .zh-prose ol { margin: 0 0 16px; }
.zh-prose ul, .zh-prose ol { padding-left: 22px; }
.zh-prose li { margin: 6px 0; }
.zh-prose li::marker { color: var(--zh-ink); font-weight: 600; }
.zh-prose a { color: var(--zh-ink); font-weight: 600; }
.zh-prose a:hover { text-decoration-color: var(--zh-ink); }
.zh-prose strong { font-weight: 600; }
.zh-prose hr { border: 0; border-top: 2px solid var(--zh-ink); margin: 28px 0; }
.zh-prose blockquote { margin: 24px 0; padding: 14px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); font-family: var(--zh-display); font-weight: 600; font-size: 18px; line-height: 1.35; }
.zh-prose small { font-size: 13px; color: var(--zh-ink-2); }

/* ── FAQ / details ─────────────────────────────────────────────────── */
.zh-faq { border-top: 2px solid var(--zh-ink); max-width: 76ch; }
.zh-faq details { border-bottom: 2px solid var(--zh-ink); }
.zh-faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3;
}
.zh-faq summary::-webkit-details-marker { display: none; }
.zh-faq summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0v14M0 7h14' stroke='%23111111' stroke-width='2.4'/%3E%3C/svg%3E");
  background-size: 14px 14px; transition: transform 220ms var(--zh-ease);
}
.zh-faq details[open] summary::after { transform: rotate(45deg); }
.zh-faq details > :not(summary) { max-width: 68ch; }
.zh-faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--zh-ink-2); }

/* ── Messages, alerts, toast, htmx states ──────────────────────────── */
.zent-messages { display: grid; gap: 10px; margin: 16px 0; }
.zent-alert { margin: 0; padding: 12px 16px; border: 2px solid var(--zh-ink); background: var(--zh-paper); color: var(--zh-ink); font-size: 14px; line-height: 1.45; }
.zent-alert a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zent-alert--danger { background: var(--zh-ink); color: var(--zh-paper); }
.zent-alert--warning { border-style: dashed; }
.zent-alert--success { border-width: 3px; }
.zent-toast {
  position: fixed; left: 50%; bottom: calc(var(--zh-tabbar) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 1300;
  width: min(92vw, 420px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 260ms var(--zh-ease);
}
.zent-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.zent-toast .zent-alert { background: var(--zh-ink); color: var(--zh-paper); border-color: var(--zh-ink); border-bottom: 6px solid var(--zh-indigo); }
/* Install card: sits where the toast does, above the tab bar. Square, 2px ink border; the
   indigo selvedge stays on its primary Install button (DESIGN.md: never a box border). */
.zh-install {
  position: fixed; left: 50%; z-index: 1250;
  bottom: calc(var(--zh-tabbar) + 14px + env(safe-area-inset-bottom, 0px));
  width: min(calc(100vw - 32px), 440px); transform: translateX(-50%);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 10px 12px 14px; background: var(--zh-paper); color: var(--zh-ink);
  border: 2px solid var(--zh-ink);
  animation: zh-install-in 320ms var(--zh-ease) both;
}
.zh-install[hidden] { display: none; }
@media (max-width: 991.98px) { body.zh-body.has-sticky-cta .zh-install { bottom: calc(var(--zh-tabbar) + 78px + 14px + env(safe-area-inset-bottom, 0px)); } }
.zh-install__mark { display: block; width: 40px; height: 40px; }
.zh-install__text { display: grid; gap: 2px; min-width: 0; }
.zh-install__title { margin: 0; font: 700 14px/1.25 var(--zh-body); letter-spacing: -0.005em; }
.zh-install__body { margin: 0; font-size: 13px; line-height: 1.4; color: var(--zh-ink-2); }
.zh-install__body strong { color: var(--zh-ink); font-weight: 600; }
.zh-install__share { display: inline-block; vertical-align: -2px; color: var(--zh-indigo); }
.zh-install__actions { display: flex; align-items: center; gap: 4px; }
.zh-install [hidden] { display: none; }
@keyframes zh-install-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .zh-install { animation: none; } }
.zent-busy-region.htmx-request { opacity: 0.55; pointer-events: none; transition: opacity 150ms ease; }
.zent-spinner { display: none; width: 12px; height: 12px; background: currentColor; vertical-align: -1px; margin-left: 8px; animation: zh-spin 0.9s linear infinite; }
.htmx-request .zent-spinner, .htmx-request.zent-spinner { display: inline-block; }
@keyframes zh-spin { to { transform: rotate(360deg); } }
form.htmx-request button[type="submit"] { opacity: 0.6; pointer-events: none; }
.zh-empty { display: grid; gap: 12px; justify-items: start; padding: 26px 22px; border: 2px dashed var(--zh-ink); max-width: 560px; }
.zh-empty h2, .zh-empty h3 { font-family: var(--zh-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.zh-empty p { color: var(--zh-ink-2); font-size: 15px; max-width: 46ch; }
.zh-empty--center { justify-items: center; text-align: center; margin: 0 auto; }

/* ── Shell: announcement, header, nav ──────────────────────────────── */
.zh-announce { background: var(--zh-ink); color: var(--zh-paper); text-align: center; padding: 8px 0; }
.zh-announce p { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.zh-header { background: var(--zh-ground); }
.zh-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.zh-header__left { display: flex; align-items: center; gap: 10px; }
.zh-header__search { display: none; }
.zh-logo { display: inline-flex; align-items: center; gap: 10px; justify-self: center; color: var(--zh-ink); }
.zh-logo__mark { display: block; width: 36px; height: 36px; }
.zh-logo__word { font-family: var(--zh-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.zh-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.zh-header__link { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; font-family: var(--zh-display); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zh-ink); }
.zh-header__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--zh-ink); color: var(--zh-paper); font: 600 11px/1 var(--zh-body); }
.zh-cart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 2px solid var(--zh-ink); color: var(--zh-ink); font-family: var(--zh-display); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 140ms ease, color 140ms ease; }
.zh-cart i { font-size: 15px; }
.zh-cart__text { display: none; }
.zh-cart__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--zh-ink); color: var(--zh-paper); font: 600 12px/1 var(--zh-body); transition: background 140ms ease, color 140ms ease; }
.zh-cart:hover, .zh-cart:focus-visible { background: var(--zh-ink); color: var(--zh-paper); }
.zh-cart:hover .zh-cart__count, .zh-cart:focus-visible .zh-cart__count { background: var(--zh-paper); color: var(--zh-ink); }
.zh-nav { display: none; }
.zh-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; list-style: none; margin: 0; padding: 4px 0 12px; }
.zh-nav a { display: inline-block; padding: 8px 0; font-family: var(--zh-display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zh-ink); }
.zh-nav__sale { font-weight: 700; }

/* ── Shell: drawer ─────────────────────────────────────────────────── */
.mobile-menu-wrapper { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; }
.mobile-menu-overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.72); opacity: 0; transition: opacity 220ms ease; }
.zh-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 400px);
  display: grid; align-content: start; gap: 22px; padding: 18px 18px 48px;
  background: var(--zh-ground); border-right: 2px solid var(--zh-ink);
  transform: translateX(-102%); transition: transform 280ms var(--zh-ease);
  overflow-y: auto; scrollbar-color: var(--zh-ink) transparent; scrollbar-width: thin;
}
.mobile-menu-close {
  position: absolute; top: 12px; left: calc(min(88vw, 400px) + 12px); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--zh-ink); background: var(--zh-ground); color: var(--zh-ink); font-size: 16px; opacity: 0; transition: opacity 220ms ease;
}
body.mmenu-active { overflow: hidden; }
body.mmenu-active .mobile-menu-wrapper { visibility: visible; pointer-events: auto; }
body.mmenu-active .mobile-menu-overlay, body.mmenu-active .mobile-menu-close { opacity: 1; }
body.mmenu-active .zh-drawer { transform: translateX(0); }
.zh-drawer__menu { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-drawer__menu li { border-bottom: 2px solid var(--zh-ink); }
.zh-drawer__menu a { display: block; padding: 14px 0; font-family: var(--zh-display); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zh-ink); }
.zh-drawer__menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zh-drawer__account { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.zh-drawer__account a { font-size: 14px; font-weight: 500; color: var(--zh-ink); }
.zh-drawer__account a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zh-drawer .zh-logo { justify-self: start; }

/* ── Shell: phone tab bar ──────────────────────────────────────────── */
.zh-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--zh-tabbar) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--zh-ground); border-top: 2px solid var(--zh-ink);
}
.zh-tabbar__item { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; color: var(--zh-ink); font: 600 9.5px/1 var(--zh-body); letter-spacing: 0.08em; text-transform: uppercase; }
.zh-tabbar__item i { font-size: 17px; }
.zh-tabbar__item.is-active::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px; background: var(--zh-indigo); }
.zh-tabbar__icon-wrap { position: relative; display: inline-block; }
.zh-tabbar__badge { position: absolute; top: -7px; right: -11px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; background: var(--zh-ink); color: var(--zh-paper); font: 600 10.5px/1 var(--zh-body); font-variant-numeric: tabular-nums; }
.zh-tabbar__badge.is-zero { display: none; }

/* ── Shell: footer ─────────────────────────────────────────────────── */
.zh-footer { margin-top: 56px; }
.zh-footer__channel { display: grid; gap: 14px; padding: 26px 0; border-bottom: 2px solid var(--zh-ink); }
.zh-footer__channel h3 { font-family: var(--zh-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.zh-footer__channel p { font-size: 15px; color: var(--zh-ink-2); max-width: 52ch; }
.zh-footer__channel .zh-btn { justify-self: start; }
.zh-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 32px 0; }
.zh-footer__brand { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.zh-footer__brand p { font-size: 14px; color: var(--zh-ink-2); max-width: 36ch; }
.zh-footer__identity { font-size: 13px; line-height: 1.6; color: var(--zh-ink-2); }
.zh-footer__identity a { color: var(--zh-ink); font-weight: 500; }
.zh-footer__title { font-family: var(--zh-display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.zh-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zh-footer__links a { font-size: 14px; font-weight: 500; color: var(--zh-ink); }
.zh-footer__language { margin-top: 18px; display: grid; gap: 6px; max-width: 200px; }
.zh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 0 28px; border-top: 2px solid var(--zh-ink); font-size: 12.5px; color: var(--zh-ink-2); }
.zh-footer__bottom a { color: var(--zh-ink); font-weight: 500; }
.zh-footer__social { display: flex; gap: 18px; }
.zh-footer__social a { font-family: var(--zh-display); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
body.zent-home-page .zh-footer__channel { display: none; }
body.zent-home-page .zh-footer { margin-top: 0; }

/* ── Tablet and up ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --zh-band-h: 72px; --zh-gap: 20px; --zh-pad: 24px; }
  .zh-page__head { padding: 36px 0 28px; }
  .zh-section__head .zh-section__meta { flex: 0 1 auto; }
  .zh-section__head .zh-section__meta:last-child { flex: 1 1 100%; }
  .zh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zh-ruler { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zh-ruler li { padding: 12px 12px 12px 0; }
  .zh-ruler li:nth-child(n+2) { border-left: 2px solid var(--zh-ink); padding-left: 12px; }
  .zh-ruler li:nth-child(n+3) { border-top: 0; }
  .zh-ruler--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zh-ruler--stack li:nth-child(n+2) { border-left: 0; padding-left: 0; }
  .zh-ruler--stack li:nth-child(even) { border-left: 2px solid var(--zh-ink); padding-left: 12px; }
  .zh-ruler--stack li:nth-child(n+3) { border-top: 2px solid var(--zh-ink); }
  .zh-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 4px 0 0; row-gap: 28px; }
  .zh-rail--weave > :first-child { grid-column: span 2; grid-row: span 2; }
  .zh-rail--weave > :first-child .zh-module__title, .zh-rail--weave > :first-child .zh-module__price { font-size: 19px; }
  .zh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zh-step { grid-template-columns: 1fr; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); padding: 22px 20px 22px 0; }
  .zh-step + .zh-step { border-left: 2px solid var(--zh-ink); padding-left: 20px; }
  .zh-step:last-child { padding-right: 0; }
  .zh-footer__channel { grid-template-columns: 1fr auto; align-items: center; }
  .zh-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
  .zh-footer__brand { grid-column: auto; }
  .zh-btn { padding: 0 22px; }
  .zh-btn--sm { padding: 0 16px; }
}

/* ── Desktop ───────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  body.zh-body, body.zh-body.has-sticky-cta { padding-bottom: 0; }
  .zh-tabbar { display: none; }
  .zent-toast { bottom: 24px; }
  .zh-install { bottom: 24px; }
  .zh-header__row { min-height: 76px; }
  .zh-header__search { display: flex; width: min(320px, 100%); }
  .zh-header__link { display: inline-flex; }
  .zh-cart__text { display: inline; }
  .zh-logo__mark { width: 40px; height: 40px; }
  .zh-logo__word { font-size: 18px; }
  .zh-nav { display: block; }
  .zh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zh-main { padding-bottom: 56px; }
}
@media (min-width: 1200px) {
  :root { --zh-band-h: 88px; }
  .zh-section { padding-top: 56px; }
}

/* ── Amharic: Ethiopic script needs its own face and a little more leading ── */
html[lang="am"] body.zh-body {
  --zh-display: "Noto Sans Ethiopic", "Unbounded", sans-serif;
  --zh-body: "Noto Sans Ethiopic", "Archivo", sans-serif;
}
html[lang="am"] .zh-h1, html[lang="am"] .zh-page__head h1 { line-height: 1.15; letter-spacing: 0; }

/* ── Motion and print ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .zh-announce, .zh-tabbar, .mobile-menu-wrapper, .zent-toast, .zh-footer__channel, .zh-header__right, .zh-header__left, .zh-nav { display: none !important; }
  body.zh-body { padding-bottom: 0; background: #fff; }
}
