/* generated by scripts/parts.mjs from assets/css/parts/*.css - edit those files, not this one */
/* ===== brew-method-shop.css ===== */
/* ---------- Shop by brew method (.section-brew-method-shop / .uc-bm) ----------------------------------------------
   Tabs = line pictograms in a hairline grid; panel = brew recipe strip + product cards + one underlined text link. */
.uc-bm { display: grid; gap: 0; min-width: 0; }

/* header */
.uc-bm__head { display: grid; gap: 16px; margin-block-end: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .uc-bm__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 6vw, 96px); } }
.uc-bm__intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.uc-bm__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
.uc-bm__head .uc-display { margin: 0; max-width: 14ch; }
.uc-bm__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted, #6b6b6b); max-width: 40ch; }
@media (min-width: 900px) { .uc-bm__lead { font-size: 17px; justify-self: end; } }

/* tabs */
.uc-bm__tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-block: 1px solid var(--foreground, #000); }
.uc-bm__tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; min-height: 104px; padding: 22px 6px 16px; margin: 0;
  background: transparent; color: var(--foreground, #000); border: 0; border-inline-end: 1px solid var(--border, #e5e5e5); border-radius: 0;
  font: inherit; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease;
}
.uc-bm__tab:last-child { border-inline-end: 0; }
.uc-bm__ico { width: 34px; height: 34px; flex: none; transition: transform 0.35s ease; }
.uc-bm__lbl { font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.uc-bm__num { position: absolute; inset-block-start: 8px; inset-inline-start: 10px; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; opacity: 0.74; }
.uc-bm__tab[aria-selected="true"] { background: var(--foreground, #000); color: var(--background, #fff); }
.uc-bm__tab[aria-selected="true"] .uc-bm__num { opacity: 0.88; }
.uc-bm__tab:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: -6px; }
.uc-bm__tab[aria-selected="true"]:focus-visible { outline-color: var(--background, #fff); }
@media (hover: hover) {
  .uc-bm__tab[aria-selected="false"]:hover .uc-bm__ico { transform: translateY(-3px); }
  .uc-bm__tab[aria-selected="false"]:hover .uc-bm__lbl { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 768px) {
  .uc-bm__tab { min-height: 148px; gap: 16px; padding: 30px 12px 22px; }
  .uc-bm__ico { width: 46px; height: 46px; }
  .uc-bm__lbl { font-size: 13px; letter-spacing: 0.12em; }
  .uc-bm__num { inset-block-start: 12px; inset-inline-start: 14px; font-size: 12px; }
}
[dir="rtl"] .uc-bm__badge, [dir="rtl"] .uc-bm__lbl, [dir="rtl"] .uc-bm__num { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .uc-bm__badge { font-size: 14px; }
[dir="rtl"] .uc-bm__lbl { font-size: 14px; }

/* panel */
.uc-bm__panel { padding-block-start: clamp(24px, 3.2vw, 44px); transition: opacity 0.3s ease; }
.uc-bm__panel[data-bm-off] { display: none; } /* not [hidden]: Tailwind's layered [hidden]{display:none!important} would beat the no-JS override */
.uc-bm__panel.is-fading { opacity: 0; }
.uc-bm__ptitle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }

/* brew recipe strip */
.uc-bm__brew { display: grid; gap: 18px; margin-block-end: clamp(28px, 3.6vw, 48px); }
@media (min-width: 900px) { .uc-bm__brew { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); } }
.uc-bm__spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-block-end: 1px solid var(--border, #e5e5e5); }
.uc-bm__spec > div { padding: 14px 14px 16px; border-block-start: 1px solid var(--border, #e5e5e5); min-width: 0; }
.uc-bm__spec > div:nth-child(2n) { border-inline-start: 1px solid var(--border, #e5e5e5); }
.uc-bm__spec > div:nth-child(2n+1) { padding-inline-start: 0; }
@media (min-width: 640px) {
  .uc-bm__spec { grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border, #e5e5e5); }
  .uc-bm__spec > div { border-block-start: 0; padding: 18px 20px 20px; }
  .uc-bm__spec > div + div { border-inline-start: 1px solid var(--border, #e5e5e5); }
  .uc-bm__spec > div:nth-child(2n+1) { padding-inline-start: 20px; }
  .uc-bm__spec > div:first-child { padding-inline-start: 0; }
}
.uc-bm__spec dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted, #6b6b6b); margin-block-end: 6px; }
.uc-bm__spec dd { margin: 0; font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
[dir="rtl"] .uc-bm__spec dt { letter-spacing: 0; text-transform: none; font-size: 13px; }
[dir="rtl"] .uc-bm__spec dd { letter-spacing: 0; }
.uc-bm__tip { margin: 0; font-size: 15px; line-height: 1.6; color: var(--foreground, #000); max-width: 46ch; }
.uc-bm__tiplbl { display: block; margin-block-end: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
[dir="rtl"] .uc-bm__tiplbl { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* products */
.uc-bm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.uc-bm__cell { min-width: 0; }
@media (max-width: 767.98px) { .uc-bm__cell:nth-child(n+5) { display: none; } }
@media (min-width: 768px) { .uc-bm__grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 48px 24px; } }

/* text link (no arrow) */
.uc-bm__more { margin: clamp(28px, 3.6vw, 48px) 0 0; display: flex; justify-content: center; }
.uc-bm__all {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--foreground, #000);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.uc-bm__all:hover { text-decoration-thickness: 2px; }
[dir="rtl"] .uc-bm__all { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* motion */
html[data-motion="off"] .uc-bm__panel, html[data-motion="off"] .uc-bm__ico, html[data-motion="off"] .uc-bm__tab { transition: none; }
@media (prefers-reduced-motion: reduce) { .uc-bm__panel, .uc-bm__ico, .uc-bm__tab { transition: none; } }

/* ===== bundle-builder.css ===== */
/* ---------- Build-a-box bundle (sections/bundle-builder.jinja, assets/js/features/bundle-builder.js) ----------
   Black and white only, square corners. Desktop: sticky box beside a product grid. Phones: box above the grid,
   plus a black dock that slides up only while the grid is on screen and the shopper has started a box. */
.uc-bx { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 1000px) {
  .uc-bx { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); }
  /* the aside runs the full height of the grid so the box itself can stay in view while the head scrolls away */
  .uc-bx__aside { align-self: stretch; align-content: start; }
  .uc-bx__box { position: sticky; top: calc(var(--header-h, 72px) + 24px); }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .uc-bx__photo { display: none; }
}
.uc-bx__aside { display: grid; gap: clamp(24px, 3vw, 40px); min-width: 0; }

/* head */
.uc-bx__head { display: grid; gap: 14px; }
.uc-bx__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.uc-bx__title { margin: 0; max-width: 12ch; }
.uc-bx__lead { margin: 0; max-width: 42ch; font-size: 16px; line-height: 1.6; opacity: 0.75; }

/* the box */
.uc-bx__box { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--foreground, #000); background: var(--background, #fff); }
.uc-bx__photo { position: relative; aspect-ratio: 21 / 9; margin: calc(-1 * clamp(18px, 2.4vw, 28px)); margin-bottom: 4px; overflow: hidden; background: var(--secondary, #f5f5f5); }
.uc-bx__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 639.98px) { .uc-bx__photo { display: none; } }
.uc-bx__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uc-bx__count { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.uc-bx__deal { padding: 5px 9px; background: var(--foreground, #000); color: var(--background, #fff); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.uc-bx__tray { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.uc-bx__slot { position: relative; display: grid; place-content: center; justify-items: center; gap: 2px; aspect-ratio: 1; min-width: 0; border: 1px dashed var(--foreground, #000); overflow: hidden; transition: border-color 0.2s; }
.uc-bx__n { font-size: clamp(15px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.uc-bx__slotlabel { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.uc-bx[data-size="6"] .uc-bx__slotlabel { display: none; }
.uc-bx__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-bx__thumb[hidden] { display: none; }
.uc-bx__slot.is-filled { border-style: solid; }
.uc-bx__slot.is-filled .uc-bx__n, .uc-bx__slot.is-filled .uc-bx__slotlabel { visibility: hidden; }
/* the whole filled slot is the remove button (big tap target); a small square cross marks it */
.uc-bx__x { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: transparent; cursor: pointer; }
.uc-bx__x[hidden] { display: none; }
.uc-bx__x span { position: absolute; top: 0; inset-inline-end: 0; width: 22px; height: 22px; background: var(--foreground, #000); }
.uc-bx__x span::before, .uc-bx__x span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--background, #fff); transform: translate(-50%, -50%) rotate(45deg); }
.uc-bx__x span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.uc-bx__x:hover span, .uc-bx__x:focus-visible span { width: 26px; height: 26px; }
.uc-bx__x:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: -4px; }

.uc-bx__bar { height: 2px; background: rgba(128, 128, 128, 0.3); }
.uc-bx__bar i { display: block; height: 100%; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform 0.3s ease; }
[dir="rtl"] .uc-bx__bar i { transform-origin: right center; }
.uc-bx__msg { margin: 0; min-height: 1.55em; font-size: 15px; line-height: 1.55; }
.uc-bx__msg.is-error { font-weight: 600; }

.uc-bx__cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 20px; border: 1px solid var(--foreground, #000); background: var(--foreground, #000); color: var(--background, #fff); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.uc-bx__cta:hover:not(:disabled) { background: var(--background, #fff); color: var(--foreground, #000); }
.uc-bx__cta:disabled { background: transparent; color: var(--foreground, #000); opacity: 0.4; cursor: not-allowed; }
.uc-bx__cta[aria-busy="true"] { opacity: 1; cursor: progress; }

.uc-bx__code { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; }
.uc-bx__code > span { opacity: 0.7; }
.uc-bx__code code { padding: 3px 8px; border: 1px dashed currentColor; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.uc-bx__copy { min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.uc-bx__nojs { margin: 0; font-size: 14px; opacity: 0.7; }

/* product grid */
.uc-bx__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; list-style: none; margin: 0; padding: 0; min-width: 0; }
@media (min-width: 640px) { .uc-bx__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1000px) { .uc-bx__grid { gap: 48px 24px; } }
.uc-bx__item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.uc-bx__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary, #f5f5f5); }
.uc-bx__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; }
.uc-bx__item:hover .uc-bx__media img { transform: scale(1.03); }
.uc-bx__item.is-out .uc-bx__media img { opacity: 0.45; }
.uc-bx__tick { position: absolute; top: 0; inset-inline-start: 0; display: none; min-width: 32px; padding: 7px 9px; background: var(--foreground, #000); color: var(--background, #fff); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-align: center; font-variant-numeric: tabular-nums; }
.uc-bx__item.is-boxed .uc-bx__tick { display: block; }
.uc-bx__item.is-boxed .uc-bx__media { outline: 1px solid var(--foreground, #000); outline-offset: 0; }
.uc-bx__info { display: grid; gap: 4px; flex: 1; }
.uc-bx__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.uc-bx__name a { color: inherit; text-decoration: none; }
.uc-bx__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.uc-bx__price { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.uc-bx__price s { margin-inline-start: 4px; opacity: 0.72; font-size: 13px; }

.uc-bx__add { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--foreground, #000); background: transparent; color: var(--foreground, #000); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.uc-bx__add:hover:not(:disabled), .uc-bx__add[aria-pressed="true"] { background: var(--foreground, #000); color: var(--background, #fff); }
.uc-bx__add:disabled { border-style: dashed; opacity: 0.45; cursor: not-allowed; }
.uc-bx__add[aria-pressed="true"]:disabled { opacity: 1; cursor: pointer; }
.uc-bx__opt, .uc-bx__view { display: inline-flex; align-items: center; min-height: 46px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.uc-bx :is(.uc-bx__add, .uc-bx__cta, .uc-bx__copy, .uc-bx__opt, .uc-bx__view, .uc-bx__name a):focus-visible { outline: 2px solid var(--foreground, #000); outline-offset: 2px; }
/* without JS the cards are plain product links; with JS the box controls take over */
.uc-bx:not([data-bx-ready]) .uc-bx__add[data-bx-add], .uc-bx:not([data-bx-ready]) .uc-bx__cta, .uc-bx[data-bx-ready] .uc-bx__view { display: none; }

[dir="rtl"] :is(.uc-bx__eyebrow, .uc-bx__count, .uc-bx__deal, .uc-bx__slotlabel, .uc-bx__cta, .uc-bx__add, .uc-bx__tick, .uc-bx__code code) { letter-spacing: 0; text-transform: none; }
[dir="rtl"] :is(.uc-bx__eyebrow, .uc-bx__count) { font-size: 13px; }
[dir="rtl"] :is(.uc-bx__cta, .uc-bx__add) { font-size: 15px; }

/* phone dock: fixed black bar with mini slots and the CTA */
.uc-bx__dock { display: none; }
@media (max-width: 999.98px) {
  .uc-bx__dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 39; display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #000; color: #fff; border-top: 1px solid #333; transform: translateY(110%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s; }
  .uc-bx__dock.is-active { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
  .uc-bx.is-docked { padding-bottom: 132px; }
  /* never sit on top of an open drawer, dialog or the cart */
  :is(html, body):is(.drawer-open, .cart-open, .overflow-hidden, .uc-lock) .uc-bx__dock,
  body:has(dialog[open], [data-cart-drawer][open], [data-cart-drawer].is-open, .uc-cart-drawer.is-open) .uc-bx__dock { transform: translateY(110%); visibility: hidden; }
  body:has(.uc-bx__dock.is-active) .uc-float { display: none; }
}
.uc-bx__dockrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.uc-bx__mini { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 40px)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.uc-bx__ms { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; }
.uc-bx__ms.is-filled { border: 1px solid #fff; }
.uc-bx__ms img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-bx__ms img[hidden] { display: none; }
.uc-bx__dockcount { flex: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.uc-bx__cta--dock { min-height: 48px; border-color: #fff; background: #fff; color: #000; }
.uc-bx__cta--dock:hover:not(:disabled) { background: #000; color: #fff; }
.uc-bx__cta--dock:disabled { background: transparent; color: #fff; opacity: 0.55; }
.uc-bx__cta--dock:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the flying thumbnail */
.uc-bx__fly { position: fixed; z-index: 60; margin: 0; object-fit: cover; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .uc-bx__dock, .uc-bx__dock.is-active, .uc-bx__bar i, .uc-bx__media img { transition: none; }
  .uc-bx__item:hover .uc-bx__media img { transform: none; }
}
html[data-motion="off"] :is(.uc-bx__dock, .uc-bx__dock.is-active, .uc-bx__bar i, .uc-bx__media img) { transition: none; }
html[data-motion="off"] .uc-bx__item:hover .uc-bx__media img { transform: none; }

/* ===== cupping-sheet.css ===== */
/* ---------- Cupping sheet (sections/cupping-sheet.jinja) -------------------------------------------------------
   One lot, presented as the signed SCA cupping form: a ruled document with a lot bar, the coffee name, a large final
   score, the grader, ten ruled 6–10 scales with square markers, descriptors and a buy line. Black and white only;
   tokens re-point inside data-bg="dark". No JavaScript: motion.js adds .is-in to the sheet ([data-m="up"]) and the
   markers slide in from the start of each scale; with motion off or reduced the markup is already the final state. */
.section-cupping-sheet { --cs-bg: var(--background, #fff); --cs-pad: clamp(20px, 2.6vw, 40px); }
.section-cupping-sheet[data-bg="light"] { --cs-bg: var(--secondary, #f5f5f5); }
.section-cupping-sheet[data-bg="dark"] { --cs-bg: #000; }

.uc-cs { display: grid; gap: clamp(28px, 3.6vw, 56px); color: var(--foreground); }
.uc-cs__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* head */
.uc-cs__head { display: grid; gap: 14px; align-items: end; }
.uc-cs__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-cs__h { margin: 0; max-width: 14ch; }
.uc-cs__lead { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--muted-foreground, var(--muted)); }

/* the document */
.uc-cs__doc {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "bar" "id" "sheet" "notes" "buy" "foot";
  border: 1px solid currentColor; background: var(--cs-bg);
  overflow: clip; /* keeps the sheet's reveal slide inside the ruled frame */
}
.uc-cs__bar {
  grid-area: bar; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px;
  padding: 14px var(--cs-pad); border-bottom: 1px solid currentColor;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.uc-cs__lot { font-variant-numeric: tabular-nums; }
.uc-cs__lot b { font-weight: 800; letter-spacing: 0.06em; }

/* identity + score */
.uc-cs__id { grid-area: id; display: flex; flex-direction: column; gap: 20px; padding: var(--cs-pad); min-width: 0; }
.uc-cs__name { margin: 0; font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
.uc-cs__score { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: start; column-gap: 8px; margin: 0; }
.uc-cs__num {
  font-size: clamp(76px, 25vw, 112px); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.uc-cs__of { padding-top: 0.35em; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-foreground, var(--muted)); font-variant-numeric: tabular-nums; }
.uc-cs__cap { grid-column: 1 / -1; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-cs__meta { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.uc-cs__meta > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--border); }
.uc-cs__meta dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-cs__meta dd { margin: 0; font-size: 15px; line-height: 1.45; }
.uc-cs__sig { display: block; max-height: 48px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
[dir="rtl"] .uc-cs__sig { object-position: right center; }
[data-bg="dark"] .uc-cs__sig { filter: invert(1); }

/* the ruled scales */
.uc-cs__sheet { grid-area: sheet; padding: 8px var(--cs-pad) 20px; min-width: 0; border-top: 1px solid currentColor; }
.uc-cs__axis, .uc-cs__row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; column-gap: 16px; align-items: center; }
.uc-cs__axis { grid-template-areas: "s ."; padding-block: 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted-foreground, var(--muted)); font-variant-numeric: tabular-nums; }
.uc-cs__axis > span:first-child { display: none; }
.uc-cs__axis-l, .uc-cs__axis-r { grid-area: s; }
.uc-cs__axis-r { justify-self: end; }
.uc-cs__rows { list-style: none; margin: 0; padding: 0; }
.uc-cs__row { grid-template-areas: "l l" "s v"; row-gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.uc-cs__row:last-child { border-bottom: 0; }
.uc-cs__label { grid-area: l; font-size: 15px; line-height: 1.3; min-width: 0; overflow-wrap: break-word; }
.uc-cs__val { grid-area: v; text-align: end; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.uc-cs__scale {
  grid-area: s; position: relative; display: block; height: 14px;
  --v: clamp(0, calc((var(--s, var(--lo)) - var(--lo)) / (10 - var(--lo))), 1);
}
/* baseline + quarter ticks + whole ticks; drawn 1px wider so the closing tick at 10 shows (the pattern is symmetric, so RTL needs no flip) */
.uc-cs__scale::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(100% + 1px); opacity: 0.5;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px calc((100% - 1px) / var(--q))) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px calc((100% - 1px) / var(--w))) left bottom / 100% 10px no-repeat;
}
/* the filled rule from the start of the scale to the score */
.uc-cs__scale::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: calc(var(--v) * 100%); background: currentColor;
}
.uc-cs__mk {
  position: absolute; bottom: -4px; inset-inline-start: calc(var(--v) * 100% - 5px);
  width: 10px; height: 10px; background: currentColor;
}
.uc-cs__mk[hidden] { display: none; }
.uc-cs__row:not([style*="--s"]) .uc-cs__scale::after { display: none; }

/* reveal: only when motion.js has armed motion (html.m-on); otherwise the markers are already in place */
html.m-on .uc-cs__sheet[data-m] .uc-cs__mk,
html.m-on .uc-cs__sheet[data-m] .uc-cs__scale::after {
  transition: inset-inline-start 0.6s cubic-bezier(0.2, 0.8, 0.1, 1), width 0.6s cubic-bezier(0.2, 0.8, 0.1, 1);
  transition-delay: calc(200ms + var(--i, 0) * 50ms);
}
html.m-on .uc-cs__sheet[data-m]:not(.is-in) .uc-cs__mk { inset-inline-start: -5px; }
html.m-on .uc-cs__sheet[data-m]:not(.is-in) .uc-cs__scale::after { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .uc-cs__mk, .uc-cs__scale::after { transition: none !important; }
}

/* descriptors */
.uc-cs__notes { grid-area: notes; padding: 20px var(--cs-pad) var(--cs-pad); border-top: 1px solid currentColor; min-width: 0; }
.uc-cs__sub { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-cs__desc { display: flex; flex-wrap: wrap; gap: 12px 10px; list-style: none; margin: 0; padding: 0; }
.uc-cs__desc li { padding: 5px 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; }
.uc-cs__desc li.is-on { outline: 1.5px solid currentColor; outline-offset: -1.5px; }

/* buy line */
.uc-cs__buy {
  grid-area: buy; display: grid; gap: 14px; padding: 16px var(--cs-pad);
  border-top: 1px solid currentColor; background: var(--cs-bg);
}
.uc-cs__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.uc-cs__now { font-size: 20px; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.uc-cs__was { font-size: 15px; color: var(--muted-foreground, var(--muted)); font-variant-numeric: tabular-nums; }
.uc-cs__more {
  margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: inherit;
}
.uc-cs__more:hover { text-decoration-thickness: 2px; }
/* phones: the link is visually compact beside the button but keeps a 44px tap area */
.uc-cs__more { position: relative; }
.uc-cs__more::after { content: ""; position: absolute; inset: -6px -8px; }
.uc-cs__btn { width: 100%; min-height: 52px; }
@media (max-width: 767.98px) {
  .uc-cs__buy:not(.uc-cs__buy--link) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 16px; }
  .uc-cs__buy .uc-cs__price { flex-direction: column; align-items: flex-start; gap: 0; }
  .uc-cs__buy .uc-cs__now { font-size: 18px; }
  .uc-cs__buy .uc-cs__was { font-size: 13px; }
  .uc-cs__buy .uc-cs__more { margin-inline-start: 0; min-height: 32px; font-size: 14px; }
  .uc-cs__buy:not(.uc-cs__buy--link) .uc-cs__btn { width: auto; min-width: 132px; padding-inline: 16px; }
  .uc-cs__buy .uc-cs__qty { min-width: 132px; }
}
.uc-cs__btn[hidden] { display: none; }
[data-bg="dark"] .uc-cs__btn.btn-filled { background: #fff; color: #000; border-color: #fff; }
[data-bg="dark"] .uc-cs__btn.btn-filled:hover { background: #000; color: #fff; border-color: #fff; }
[data-bg="dark"] .uc-cs__btn.btn-outlined { border-color: #fff; color: #fff; background: transparent; }
[data-bg="dark"] .uc-cs__btn.btn-outlined:hover { background: #fff; color: #000; }
.uc-cs__more:focus-visible, .uc-cs__btn:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 3px; }

.uc-cs__foot { grid-area: foot; margin: 0; padding: 14px var(--cs-pad); border-top: 1px solid currentColor; font-size: 13px; line-height: 1.5; color: var(--muted-foreground, var(--muted)); font-variant-numeric: tabular-nums; }

/* Arabic / RTL: no tracking or forced capitals on labels */
[dir="rtl"] .uc-cs__badge, [dir="rtl"] .uc-cs__bar, [dir="rtl"] .uc-cs__cap, [dir="rtl"] .uc-cs__meta dt,
[dir="rtl"] .uc-cs__sub, [dir="rtl"] .uc-cs__desc li, [dir="rtl"] .uc-cs__lot b,
[lang="ar"] .uc-cs__badge, [lang="ar"] .uc-cs__bar, [lang="ar"] .uc-cs__cap, [lang="ar"] .uc-cs__meta dt,
[lang="ar"] .uc-cs__sub, [lang="ar"] .uc-cs__desc li, [lang="ar"] .uc-cs__lot b { letter-spacing: 0; text-transform: none; }
[lang="ar"] .uc-cs__badge, [lang="ar"] .uc-cs__bar, [lang="ar"] .uc-cs__cap, [lang="ar"] .uc-cs__meta dt, [lang="ar"] .uc-cs__sub { font-size: 13px; }
[lang="ar"] .uc-cs__desc li { font-size: 15px; }
[lang="ar"] .uc-cs__name { letter-spacing: 0; line-height: 1.35; }
/* the score and the scale numbers stay left-to-right digits */
.uc-cs__score, .uc-cs__val { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .uc-cs__score { justify-content: end; }
[dir="rtl"] .uc-cs__cap { direction: rtl; justify-self: end; }
[dir="rtl"] .uc-cs__val { text-align: left; }

/* tablet and up */
@media (min-width: 768px) {
  .uc-cs__head { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 4vw, 80px); }
  .uc-cs__head .uc-cs__badge { grid-column: 1 / -1; }
  .uc-cs__lead { justify-self: end; }
  .uc-cs__row, .uc-cs__axis { grid-template-columns: 150px minmax(0, 1fr) 56px; grid-template-areas: "l s v"; column-gap: 24px; }
  .uc-cs__axis { grid-template-areas: ". s ."; }
  .uc-cs__axis > span:first-child { display: block; grid-area: auto; }
  .uc-cs__row { padding-block: 13px; row-gap: 0; }
}

/* desktop: two columns, the identity and buy line beside the sheet */
@media (min-width: 1024px) {
  .uc-cs__doc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas: "bar bar" "id sheet" "notes sheet" "buy sheet" "foot foot";
  }
  .uc-cs__id { border-inline-end: 1px solid currentColor; gap: 24px; }
  .uc-cs__notes, .uc-cs__buy { border-inline-end: 1px solid currentColor; }
  /* the sheet fills the column height: rows share the space so the right column never ends in a blank block */
  .uc-cs__sheet { border-top: 0; padding-block: 12px 24px; align-self: stretch; display: flex; flex-direction: column; }
  .uc-cs__rows { flex: 1; display: grid; grid-auto-rows: minmax(min-content, 1fr); }
  .uc-cs__num { font-size: clamp(120px, 11vw, 200px); }
  .uc-cs__of { font-size: 17px; }
}

/* ===== origin-journal.css ===== */
/* ---------- Origin journal (sections/origin-journal.jinja) -------------------------------------------------------
   A field-notes spread per origin: photograph + folio, display title, hairline spec grid, essay with a drop cap, pull quote
   and an underlined text link. Black and white only; tokens re-point inside data-bg="dark". */
.uc-oj { display: grid; gap: clamp(28px, 3.4vw, 48px); color: var(--foreground); }

/* head */
.uc-oj__head { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.uc-oj__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-oj__h { margin: 0; }

/* tabs: a quiet row of text buttons; the active one is underlined */
.uc-oj__tabs {
  display: flex; gap: clamp(20px, 2.6vw, 44px);
  margin-inline: calc(-1 * var(--uc-pad, 16px)); padding-inline: var(--uc-pad, 16px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--uc-pad, 16px);
  scrollbar-width: none;
}
.uc-oj__tabs::-webkit-scrollbar { display: none; }
.uc-oj__tabs::after { content: ""; flex: 0 0 1px; } /* keeps the end gutter when the row scrolls */
.uc-oj:not([data-oj-armed]) .uc-oj__tabs { display: none; } /* no JavaScript: every issue is shown, so the tabs have nothing to do */
.uc-oj__tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 0; color: inherit; cursor: pointer; scroll-snap-align: start;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  opacity: 0.74; transition: opacity 0.2s ease;
}
.uc-oj__tab:hover { opacity: 1; }
.uc-oj__tab[aria-selected="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.uc-oj__tab:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: -2px; }
.uc-oj__tabnum { font-variant-numeric: tabular-nums; }
.uc-oj__tabsep { opacity: 0.6; }

/* spread */
.uc-oj__spread { display: grid; gap: 28px; align-items: start; }
.uc-oj__spread[hidden] { display: none; }
.uc-oj__spread:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 8px; }
.uc-oj:not([data-oj-armed]) .uc-oj__spread + .uc-oj__spread { margin-top: clamp(48px, 7vw, 112px); padding-top: clamp(48px, 7vw, 112px); border-top: 1px solid var(--border); }

.uc-oj__fig { margin: 0 calc(-1 * var(--uc-pad, 16px)); min-width: 0; }
.uc-oj__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary, #f2f2f2); }
.uc-oj__media { position: absolute; inset: 0; }
.uc-oj__media .uc-media__img { object-fit: cover; }
.uc-oj__blank { position: absolute; inset: 0; background: var(--secondary, #f2f2f2); }
.uc-oj__cap { display: flex; gap: 10px; margin-top: 12px; padding-inline: var(--uc-pad, 16px); font-size: 12px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-oj__capno { flex: 0 0 auto; font-weight: 700; color: var(--foreground); }

.uc-oj__text { display: flex; flex-direction: column; min-width: 0; }
.uc-oj__folio {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 12px; border-top: 1px solid currentColor;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.uc-oj__coord { color: var(--muted-foreground, var(--muted)); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.uc-oj__title {
  margin: 22px 0 28px; font-size: clamp(40px, 5vw, 88px); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em;
  text-wrap: balance; overflow-wrap: break-word;
}

.uc-oj__spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid currentColor; }
.uc-oj__spec > div { padding-block: 14px; padding-inline: 0 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.uc-oj__spec > div:nth-child(even) { padding-inline: 16px 0; border-inline-start: 1px solid var(--border); }
.uc-oj__spec dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-oj__spec dd { margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }

.uc-oj__essay { margin-top: 32px; max-width: 58ch; font-size: 16px; line-height: 1.6; }
.uc-oj__essay > p { margin: 0 0 1em; }
.uc-oj__essay > p:last-child { margin-bottom: 0; }
.uc-oj__lead { font-weight: inherit; }
.uc-oj__essay.has-drop > p:first-child:not(:lang(ar))::first-letter {
  float: left; font-size: 5.2em; line-height: 0.8; font-weight: 800; margin-inline-end: 0.08em; margin-top: 0.06em;
}
[dir="rtl"] .uc-oj__essay.has-drop > p:first-child:not(:lang(ar))::first-letter { float: right; }

.uc-oj__quote { margin: 1.1em 0 0; padding-top: 0.5em; border-top: 3px solid currentColor; max-width: 20ch; font-size: clamp(24px, 2.4vw, 36px); }
.uc-oj__quote p { margin: 0; font-size: inherit; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }

.uc-oj__more { margin: 24px 0 0; }
.uc-oj__link {
  display: inline-flex; align-items: center; min-height: 44px; color: inherit;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.uc-oj__link:hover { text-decoration-thickness: 2px; }

/* switching issues: the photograph fades in */
.uc-oj__spread.is-entering .uc-oj__frame { animation: uc-oj-fade 0.4s ease both; }
@keyframes uc-oj-fade { from { opacity: 0; } to { opacity: 1; } }
html[data-motion="off"] .uc-oj__spread.is-entering .uc-oj__frame { animation: none; }
@media (prefers-reduced-motion: reduce) { .uc-oj__spread.is-entering .uc-oj__frame { animation: none; } .uc-oj__tab { transition: none; } }

/* tablet and up: two columns, photograph sticky beside the text */
@media (min-width: 768px) {
  .uc-oj__spread { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); }
  .uc-oj[data-side="end"] .uc-oj__spread { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .uc-oj[data-side="end"] .uc-oj__fig { grid-column: 2; grid-row: 1; }
  .uc-oj[data-side="end"] .uc-oj__text { grid-column: 1; grid-row: 1; }
  .uc-oj__tabs { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } /* hairline aligns with the content edge */
  .uc-oj__fig { margin: 0; }
  .uc-oj__cap { padding-inline: 0; }
  .uc-oj[data-sticky="on"] .uc-oj__fig {
    position: sticky; top: calc(var(--header-h, 72px) + 24px);
    /* the frame is capped by the viewport height, so size the figure to match: caption stays under the photo and an
       end-side photo sits flush with the content edge */
    width: 100%; max-width: max(336px, calc((100vh - var(--header-h, 72px) - 110px) * 0.8));
  }
  .uc-oj[data-side="end"] .uc-oj__fig { justify-self: end; }
  .uc-oj[data-sticky="on"] .uc-oj__frame { max-height: calc(100vh - var(--header-h, 72px) - 110px); min-height: 420px; }
  .uc-oj__essay { font-size: 17px; line-height: 1.65; }
  .uc-oj__text { padding-top: 4px; }
}
@media (min-width: 1280px) {
  .uc-oj__spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uc-oj__spec > div, .uc-oj__spec > div:nth-child(even) { padding-inline: 16px; border-inline-start: 1px solid var(--border); }
  .uc-oj__spec > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
}

/* Arabic: no tracking or capitals, joined letters, a heavier first word instead of a drop cap */
[dir="rtl"] .uc-oj__badge, [dir="rtl"] .uc-oj__tab, [dir="rtl"] .uc-oj__cap, [dir="rtl"] .uc-oj__folio,
[dir="rtl"] .uc-oj__spec dt, [dir="rtl"] .uc-oj__link { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .uc-oj__badge, [dir="rtl"] .uc-oj__cap, [dir="rtl"] .uc-oj__folio, [dir="rtl"] .uc-oj__spec dt { font-size: 13px; }
[dir="rtl"] .uc-oj__tab { font-size: 15px; }
[dir="rtl"] .uc-oj__link { font-size: 16px; }
[dir="rtl"] .uc-oj__title { letter-spacing: 0; line-height: 1.2; font-size: clamp(36px, 4.2vw, 72px); }
[dir="rtl"] .uc-oj__quote { max-width: 20ch; }
[dir="rtl"] .uc-oj__quote p { letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .uc-oj__essay { line-height: 1.85; }
.uc-oj__lead:lang(ar) { font-weight: 800; font-size: 1.2em; line-height: 1; }
.uc-oj__coord { direction: ltr; unicode-bidi: isolate; }

/* ===== origin-shop.css ===== */
/* ---------- Shop by origin (.section-origin-shop / .uc-os) ----------------------------------------------------------------
   Desktop: a typographic list of origins with a sticky photograph that follows the row you point at. Phones: a two-column photo grid. */
.uc-os { display: grid; gap: clamp(28px, 4vw, 56px); min-width: 0; }
.uc-os__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.uc-os__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
.uc-os__head .uc-display { margin: 0; }
.uc-os__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted, #6b6b6b); max-width: 52ch; }
.uc-os__grid { display: none; }
.uc-os__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.uc-os__card a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #111; color: #fff; text-decoration: none; }
.uc-os__card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.78); }
.uc-os__cardname { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 14px 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; background: #000; }
:lang(ar) .uc-os__cardname { letter-spacing: 0; line-height: 1.3; }
.uc-os__more { margin: 0; } .uc-os__all { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; color: inherit; }
:lang(ar) .uc-os__all, :lang(ar) .uc-os__badge { letter-spacing: 0; text-transform: none; font-size: 15px; }
@media (min-width: 768px) {
  .uc-os__cards { display: none; }
  .uc-os__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
  .uc-os__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--foreground, #000); }
  .uc-os__row { border-bottom: 1px solid var(--border, #d4d4d4); }
  .uc-os__link { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: clamp(18px, 2.2vw, 30px) 0; color: inherit; text-decoration: none; opacity: 0.6; transition: opacity 0.3s ease, padding 0.3s ease; }
  .uc-os__row.is-on .uc-os__link, .uc-os__link:hover, .uc-os__link:focus-visible { opacity: 1; }
  .uc-os__link:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: 4px; }
  .uc-os__no { grid-row: 1 / span 2; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
  .uc-os__name { font-size: clamp(36px, 5.4vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; text-transform: var(--uc-heading-transform, uppercase); }
  :lang(ar) .uc-os__name { letter-spacing: 0; line-height: 1.15; text-transform: none; }
  .uc-os__meta { grid-column: 2; min-height: 0; max-height: 0; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--muted, #6b6b6b); transition: max-height 0.4s ease, margin 0.4s ease; }
  .uc-os__row.is-on .uc-os__meta { max-height: 4.5em; margin-top: 10px; }
  .uc-os__stage { position: sticky; top: calc(var(--header-h, 72px) + 24px); aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
  .uc-os__fig { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.1, 1); }
  .uc-os__fig.is-on { opacity: 1; transform: none; }
  .uc-os__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .uc-os__count { position: absolute; z-index: 2; inset-block-end: 16px; inset-inline-start: 16px; padding: 6px 10px; background: #000; color: #fff; font-size: 12px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
}

/* ===== producer-index.css ===== */
/* ---------- Producer index (sections/producer-index.jinja) -------------------------------------------------------
   A typographic index of producers: giant names on hairlines, each row a native <details> that opens to a portrait,
   a quote and an underlined link. Black and white only; tokens re-point inside data-bg="dark". Square corners, flat. */
.uc-pi { position: relative; display: grid; gap: clamp(28px, 4vw, 64px); color: var(--foreground); }

/* head: label + title on the start side, intro on the end side (stacked on phones) */
.uc-pi__head { display: grid; gap: 18px; align-items: end; }
.uc-pi__headline { display: flex; flex-direction: column; gap: 14px; }
.uc-pi__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground, var(--muted)); }
.uc-pi__h { margin: 0; max-width: 14ch; }
.uc-pi__intro { margin: 0; max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--muted-foreground, var(--muted)); }
@media (min-width: 900px) {
  .uc-pi__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
  .uc-pi__intro { justify-self: end; font-size: 17px; }
}

/* list */
.uc-pi__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid currentColor; }
.uc-pi__item { margin: 0; padding: 0; }
.uc-pi__row { border-top: 1px solid currentColor; transition: opacity 0.2s ease; }
@media (hover: hover) {
  .uc-pi__list:hover .uc-pi__row:not(:hover):not([open]) { opacity: 0.28; }
}

/* summary: name | meta | plus */
.uc-pi__sum {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) 48px; align-items: baseline; column-gap: 24px;
  padding-block: 22px; list-style: none; cursor: pointer; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.uc-pi__sum::-webkit-details-marker { display: none; }
.uc-pi__sum::marker { content: ""; }
.uc-pi__sum:focus { outline: none; }
.uc-pi__sum:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 4px; }
.uc-pi__thumb { display: none; }

.uc-pi__name {
  position: relative; min-width: 0;
  font-size: clamp(36px, 5.6vw, 104px); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase;
  overflow-wrap: anywhere; text-wrap: balance;
}
.uc-pi__no {
  display: inline-block; vertical-align: top; margin-inline-end: 0.6em; transform: translateY(0.35em);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; font-variant-numeric: tabular-nums;
}
.uc-pi__meta {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.uc-pi__since { color: var(--muted-foreground, var(--muted)); }

/* plus: two hairline bars that turn into an x */
.uc-pi__plus { position: relative; justify-self: end; align-self: center; width: 32px; height: 32px; transition: transform 0.3s ease; }
.uc-pi__plus::before, .uc-pi__plus::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 50%; width: 100%; height: 2px; margin-block-start: -1px; background: currentColor; }
.uc-pi__plus::after { transform: rotate(90deg); }
.uc-pi__row[open] .uc-pi__plus { transform: rotate(45deg); }

/* body: portrait | quote */
.uc-pi__body { display: grid; gap: 28px; padding-block-end: 32px; }
.uc-pi__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.uc-pi__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.uc-pi__fig { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0; }
.uc-pi__quote { margin: 0; padding: 0; border: 0; }
.uc-pi__quote p { margin: 0; max-width: 26ch; font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.uc-pi__quote p::before { content: open-quote; }
.uc-pi__quote p::after { content: close-quote; }
.uc-pi__cap { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }
.uc-pi__cap::before { content: ""; display: block; width: 32px; height: 1px; margin-block-end: 12px; background: currentColor; }
.uc-pi__role { color: var(--muted-foreground, var(--muted)); }
.uc-pi__link {
  display: inline-flex; align-items: center; min-height: 44px; color: inherit;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.uc-pi__link:hover { text-decoration-thickness: 2px; }
.uc-pi__link:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 4px; }

@media (min-width: 768px) {
  .uc-pi__body { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: end; padding-block: 8px 40px; }
  .uc-pi__quote p { font-size: 24px; line-height: 1.4; max-width: 30ch; }
}
@media (min-width: 1200px) {
  /* same tracks as the summary row: portrait under the name, quote lined up under the meta column, so the open row reads as a spread */
  .uc-pi__body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) 48px; column-gap: 24px; }
  .uc-pi__frame { width: min(100%, 400px); }
  .uc-pi__body:not(:has(.uc-pi__frame)) .uc-pi__fig { grid-column: 2; }
  .uc-pi__quote p { font-size: 28px; line-height: 1.35; max-width: 22ch; }
}

/* open/close: animate the height where the browser can interpolate to auto, otherwise it opens instantly */
@supports (interpolate-size: allow-keywords) {
  .uc-pi { interpolate-size: allow-keywords; }
  .uc-pi__row::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s cubic-bezier(0.2, 0.8, 0.1, 1), content-visibility 0.45s allow-discrete; }
  .uc-pi__row[open]::details-content { block-size: auto; }
}

/* cursor portrait (desktop, fine pointer, motion on) */
.uc-pi__cursor {
  position: absolute; z-index: 5; inset-block-start: 0; left: 0; /* physical on purpose: the script moves it with translate3d in page x/y */ width: 280px; height: 350px; margin: 0;
  pointer-events: none; opacity: 0; scale: 0.96; transition: opacity 0.24s ease, scale 0.24s ease; will-change: transform;
  background: var(--secondary); overflow: hidden;
}
.uc-pi__cursor img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.uc-pi__cursor.is-on { opacity: 1; scale: 1; }
.uc-pi:not([data-pi-armed]) .uc-pi__cursor { display: none; }
@media (hover: none), (pointer: coarse) { .uc-pi__cursor { display: none; } }
html[data-motion="off"] .uc-pi__cursor { display: none; }

/* phones: thumb | name + meta | plus */
@media (max-width: 767.98px) {
  .uc-pi__sum { grid-template-columns: 56px minmax(0, 1fr) 32px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; min-height: 64px; padding-block: 16px; }
  .uc-pi__thumb { display: block; grid-row: 1 / span 2; width: 56px; height: 56px; object-fit: cover; object-position: 50% 30%; background: var(--secondary); }
  .uc-pi__name { grid-column: 2; font-size: clamp(28px, 8vw, 40px); align-self: end; }
  .uc-pi__meta { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; font-size: 12px; }
  .uc-pi__plus { grid-column: 3; grid-row: 1 / span 2; width: 22px; height: 22px; }
  .uc-pi__sum:not(:has(.uc-pi__thumb)) { grid-template-columns: minmax(0, 1fr) 32px; }
  .uc-pi__sum:not(:has(.uc-pi__thumb)) .uc-pi__name, .uc-pi__sum:not(:has(.uc-pi__thumb)) .uc-pi__meta { grid-column: 1; }
  .uc-pi__sum:not(:has(.uc-pi__thumb)) .uc-pi__plus { grid-column: 2; }
  .uc-pi__no { display: none; }
  .uc-pi__body { padding-block-start: 4px; }
}

/* RTL / Arabic: no tracking or forced capitals, roomier line height for Arabic script */
[dir="rtl"] .uc-pi__badge, [dir="rtl"] .uc-pi__meta, [dir="rtl"] .uc-pi__cap, [dir="rtl"] .uc-pi__link, [dir="rtl"] .uc-pi__no { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .uc-pi__badge, [dir="rtl"] .uc-pi__meta, [dir="rtl"] .uc-pi__cap { font-size: 13px; }
[dir="rtl"] .uc-pi__link { font-size: 16px; }
[dir="rtl"] .uc-pi__name { letter-spacing: 0; text-transform: none; line-height: 1.2; font-size: clamp(32px, 4.8vw, 88px); }
[dir="rtl"] .uc-pi__quote p { letter-spacing: 0; line-height: 1.7; quotes: "«" "»"; }
@media (max-width: 767.98px) { [dir="rtl"] .uc-pi__name { font-size: clamp(26px, 7.4vw, 36px); } }

/* motion: stagger the row reveals; switch off transitions when motion is off */
html.m-on .uc-pi__item[data-m] { transition-delay: calc(var(--i, 0) * 60ms); }
html[data-motion="off"] .uc-pi__row, html[data-motion="off"] .uc-pi__plus, html[data-motion="off"] .uc-pi__row::details-content { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .uc-pi__row, .uc-pi__plus, .uc-pi__cursor, .uc-pi__row::details-content { transition: none; }
}

/* ===== roast-calendar.css ===== */
/* ==========================================================================
   Roast day & drop calendar (sections/roast-calendar.jinja · assets/js/features/roast-calendar.js)
   Black and white only, square corners, hairline structure. Tokens re-point inside [data-bg="dark"].
   ========================================================================== */
.uc-rc { display: grid; gap: clamp(28px, 4vw, 56px); color: var(--foreground); }
.uc-rc__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- head ---------- */
.uc-rc__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.uc-rc__head .uc-display { margin: 0; }
.uc-rc__eyebrow,
.uc-rc__label,
.uc-rc__within { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.uc-rc__eyebrow { opacity: 0.72; }
.uc-rc__lead { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; opacity: 0.72; }
[dir="rtl"] .uc-rc__eyebrow,
[dir="rtl"] .uc-rc__label,
[dir="rtl"] .uc-rc__within { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- layout ---------- */
.uc-rc__grid { display: grid; gap: clamp(40px, 5vw, 96px); align-items: start; }
@media (min-width: 1024px) {
  .uc-rc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* the drop rides along while the calendar column scrolls past */
  .uc-rc__drop { position: sticky; top: calc(var(--header-h, 72px) + 24px); }
}

/* ---------- when: date, timer, calendar ---------- */
.uc-rc__when { display: flex; flex-direction: column; gap: 16px; padding-block-start: 20px; border-block-start: 2px solid var(--foreground); min-width: 0; }
.uc-rc__date { margin: 0; font-size: clamp(36px, 5vw, 72px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.uc-rc__date--none { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
[dir="rtl"] .uc-rc__date { letter-spacing: 0; line-height: 1.3; }
.uc-rc__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; font-size: 15px; color: var(--muted); }
.uc-rc__meta b { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.uc-rc__tz { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }

.uc-rc__timer { display: flex; flex-direction: column; gap: 10px; margin-block: 8px 4px; padding-block: 18px; border-block: 1px solid var(--border); }
.uc-rc__timer[hidden] { display: none; }
.uc-rc__within { color: var(--muted); }
.uc-rc__digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); direction: ltr; }
[dir="rtl"] .uc-rc__digits { direction: rtl; }
.uc-rc__unit { display: flex; flex-direction: column; gap: 6px; padding-inline-end: 8px; }
.uc-rc__unit + .uc-rc__unit { padding-inline-start: clamp(10px, 1.4vw, 18px); border-inline-start: 1px solid var(--border); }
.uc-rc__unit b { font-size: clamp(34px, 4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.uc-rc__unit i { font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .uc-rc__unit i { letter-spacing: 0; text-transform: none; font-size: 13px; }

.uc-rc__note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.uc-rc__promise { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.6; }

/* calendar: 7 columns, hairline grid drawn by the gap over a currentColor background */
.uc-rc__calwrap { display: flex; flex-direction: column; gap: 10px; margin-block-start: 12px; }
.uc-rc__calwrap[hidden] { display: none; }
.uc-rc__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.uc-rc__dow span { overflow: hidden; text-overflow: clip; white-space: nowrap; padding-inline-start: 6px; }
[dir="rtl"] .uc-rc__dow { letter-spacing: 0; text-transform: none; font-size: 12px; }
.uc-rc__dow b { font-weight: inherit; }
.uc-rc__dow-n { display: none; }
@media (max-width: 419.98px) {
  .uc-rc__dow-s { display: none; }
  .uc-rc__dow-n { display: inline; }
}
.uc-rc__cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--border); }
.uc-rc__day { position: relative; aspect-ratio: 1; min-height: 40px; background: var(--background); }
.uc-rc__n { position: absolute; inset-block-start: 6px; inset-inline-start: 7px; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.uc-rc__n small { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .uc-rc__n small { letter-spacing: 0; text-transform: none; font-size: 10px; }
.uc-rc__day.is-past .uc-rc__n { opacity: 0.32; }
.uc-rc__day::after,
.uc-rc__day::before { content: none; position: absolute; width: 8px; height: 8px; inset-block-end: 7px; }
.uc-rc__day.is-roast::after { content: ""; inset-inline-end: 7px; background: currentColor; }
.uc-rc__day.is-drop::before { content: ""; inset-inline-end: 19px; border: 1.5px solid currentColor; box-sizing: border-box; }
.uc-rc__day.is-drop:not(.is-roast)::before { inset-inline-end: 7px; }
.uc-rc__day.is-past::after,
.uc-rc__day.is-past::before { opacity: 0.32; }
.uc-rc__day.is-today { outline: 2px solid var(--foreground); outline-offset: -2px; z-index: 1; }
.uc-rc__day.is-next { background: var(--foreground); color: var(--background); }
.uc-rc__day.is-next .uc-rc__n small { color: inherit; opacity: 0.7; }

.uc-rc__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.uc-rc__legend li { display: inline-flex; align-items: center; gap: 8px; }
.uc-rc__key { display: inline-block; width: 10px; height: 10px; box-sizing: border-box; }
.uc-rc__key--roast { background: var(--foreground); }
.uc-rc__key--drop { border: 1.5px solid var(--foreground); }
.uc-rc__key--today { width: 14px; height: 14px; border: 2px solid var(--foreground); }

/* upcoming drops: server-rendered list, past dates are removed by the script */
.uc-rc__drops { display: flex; flex-direction: column; gap: 10px; margin-block-start: 8px; }
.uc-rc__drops[hidden] { display: none; }
.uc-rc__droplist { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--border); }
.uc-rc__droplist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-block: 12px; border-block-end: 1px solid var(--border); font-size: 15px; line-height: 1.45; }
.uc-rc__droplist li[hidden] { display: none; }
.uc-rc__droplist time { min-width: 7.5em; font-weight: 600; font-variant-numeric: tabular-nums; }
.uc-rc__droplist span { color: var(--muted); }
/* the stamp only makes sense once the script has filled in the roast date */
.uc-rc:not(.is-live) .uc-rc__stamp { display: none; }

/* ---------- drop ---------- */
.uc-rc__drop { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-block-start: 20px; border-block-start: 1px solid var(--border); }
.uc-rc__drophead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.uc-rc__droptitle { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
[dir="rtl"] .uc-rc__droptitle { letter-spacing: 0; line-height: 1.35; }
.uc-rc__droptext { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.uc-rc__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--foreground); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.uc-rc__link:hover { text-decoration-thickness: 2px; }

.uc-rc__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); margin: 0; padding: 0; list-style: none; }
.uc-rc__item { min-width: 0; display: flex; }
.uc-rc__card { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.uc-rc__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.uc-rc__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.1, 1); }
.uc-rc__card:hover .uc-rc__img img { transform: scale(1.03); }
.uc-rc__stamp,
.uc-rc__out { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 4px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; background: #fff; color: #000; border: 1px solid #000; }
.uc-rc__out { inset-block-start: auto; inset-block-end: 12px; background: #000; color: #fff; border-color: #fff; }
[dir="rtl"] .uc-rc__stamp,
[dir="rtl"] .uc-rc__out { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 12px; }
.uc-rc__stamp [data-rc-stamp] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.uc-rc__body { display: flex; flex-direction: column; gap: 6px; }
.uc-rc__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.uc-rc__name a { color: inherit; text-decoration: none; }
.uc-rc__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.uc-rc__price { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.uc-rc__price b { font-weight: 600; }
.uc-rc__price s { margin-inline-start: 6px; color: var(--muted); }
.uc-rc__stock { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.uc-rc__stock::before { content: ""; width: 6px; height: 6px; background: currentColor; }
[dir="rtl"] .uc-rc__stock { letter-spacing: 0; text-transform: none; font-size: 14px; }
.uc-rc__buy { margin-block-start: auto; }
.uc-rc .uc-rc__btn { width: 100%; min-height: 48px; white-space: normal; text-align: center; background: var(--foreground); color: var(--background); border: 1px solid var(--foreground); font-weight: 600; }
.uc-rc .uc-rc__btn:hover { background: var(--background); color: var(--foreground); }
.uc-rc .uc-rc__btn.btn-outlined { background: transparent; color: var(--foreground); }
.uc-rc .uc-rc__btn.btn-outlined:hover { background: var(--foreground); color: var(--background); }
.uc-rc__btn[hidden],
.uc-rc__qty[hidden] { display: none; }

.uc-rc__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--secondary); }
.uc-rc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* focus */
.uc-rc a:focus-visible,
.uc-rc button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.uc-rc__img:focus-visible { outline-offset: -2px; }

/* ---------- tablet ---------- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .uc-rc__when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .uc-rc__when > * { grid-column: 1; }
  .uc-rc__calwrap { grid-column: 2; grid-row: 1 / span 8; margin: 0; }
}

/* ---------- phones ---------- */
@media (max-width: 767.98px) {
  .uc-rc__lead { font-size: 15px; }
  .uc-rc__date { font-size: clamp(34px, 10vw, 48px); }
  .uc-rc__unit b { font-size: 32px; }
  .uc-rc__unit { padding-inline-end: 4px; }
  .uc-rc__unit + .uc-rc__unit { padding-inline-start: 10px; }
  /* two weeks are enough on a phone and keep the grid legible */
  .uc-rc__day:nth-child(n + 15) { display: none; }
  .uc-rc__day { aspect-ratio: auto; min-height: 48px; }
  /* drop cards: a swipe row that keeps a 16px gutter at both ends */
  .uc-rc__cards { display: flex; gap: 12px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .uc-rc__cards::-webkit-scrollbar { display: none; }
  .uc-rc__cards::after { content: ""; flex: 0 0 4px; }
  .uc-rc__item { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
  .uc-rc__item:only-child { flex-basis: 100%; max-width: none; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .uc-rc__img img { transition: none; }
  .uc-rc__card:hover .uc-rc__img img { transform: none; }
}
html[data-motion="off"] .uc-rc__img img { transition: none; }
html[data-motion="off"] .uc-rc__card:hover .uc-rc__img img { transform: none; }

/* ===== roast-finder.css ===== */
/* ---------- Roast & caffeine finder (.section-roast-finder / .uc-rf) ------------------------------------------------------
   A slider walks from light to dark roast (five flat grey swatches show the colour), chips pick the caffeine level; the product grid follows. */
.uc-rf { display: grid; gap: 0; min-width: 0; }
.uc-rf__head { display: grid; gap: 16px; margin-block-end: clamp(26px, 4vw, 48px); }
@media (min-width: 900px) { .uc-rf__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 6vw, 96px); } }
.uc-rf__intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.uc-rf__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
.uc-rf__head .uc-display { margin: 0; max-width: 14ch; }
.uc-rf__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted, #6b6b6b); max-width: 40ch; }
@media (min-width: 900px) { .uc-rf__lead { font-size: 17px; justify-self: end; } }
:lang(ar) :is(.uc-rf__badge, .uc-rf__tick, .uc-rf__mode, .uc-rf__all) { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* mode switch */
.uc-rf__modes { display: inline-flex; align-self: start; margin-block-end: clamp(20px, 3vw, 32px); border: 1px solid var(--foreground, #000); }
.uc-rf__mode { min-height: 48px; padding: 0 22px; background: transparent; color: var(--foreground, #000); border: 0; border-radius: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.uc-rf__mode + .uc-rf__mode { border-inline-start: 1px solid var(--foreground, #000); }
.uc-rf__mode[aria-selected="true"] { background: var(--foreground, #000); color: var(--background, #fff); }
.uc-rf__mode:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: 3px; }

/* roast slider */
.uc-rf__ctrl { display: grid; gap: 4px; margin-block-end: clamp(26px, 4vw, 48px); }
.uc-rf__ctrl[hidden] { display: none; }
.uc-rf__swatches { display: grid; grid-template-columns: repeat(var(--rn, 5), minmax(0, 1fr)); height: 18px; border: 1px solid var(--foreground, #000); }
.uc-rf__swatches i { display: block; }
.uc-rf__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.uc-rf__range::-webkit-slider-runnable-track { height: 2px; background: var(--foreground, #000); }
.uc-rf__range::-moz-range-track { height: 2px; background: var(--foreground, #000); }
.uc-rf__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; background: var(--foreground, #000); border: 3px solid var(--background, #fff); box-shadow: 0 0 0 1px var(--foreground, #000); border-radius: 0; }
.uc-rf__range::-moz-range-thumb { width: 22px; height: 22px; background: var(--foreground, #000); border: 3px solid var(--background, #fff); outline: 1px solid var(--foreground, #000); border-radius: 0; }
.uc-rf__range:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: 4px; }
.uc-rf__ticks { display: flex; justify-content: space-between; gap: 6px; margin: 0; padding: 0; list-style: none; }
.uc-rf__tick { min-height: 44px; padding: 4px 2px; background: none; border: 0; color: inherit; opacity: 0.6; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; text-align: center; }
.uc-rf__tick[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.uc-rf__tick:hover { opacity: 1; }
@media (max-width: 640px) { .uc-rf__tick { font-size: 11px; letter-spacing: 0.04em; } }

/* caffeine chips */
.uc-rf__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.uc-rf__chip { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; background: transparent; color: var(--foreground, #000); border: 1px solid var(--foreground, #000); border-radius: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.uc-rf__chip[aria-current="true"] { background: var(--foreground, #000); color: var(--background, #fff); }
.uc-rf__chip:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: 3px; }
.uc-rf__meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.uc-rf__meter i { display: block; width: 5px; background: currentColor; opacity: 0.25; }
.uc-rf__meter i:nth-child(1) { height: 7px; } .uc-rf__meter i:nth-child(2) { height: 12px; } .uc-rf__meter i:nth-child(3) { height: 18px; }
.uc-rf__meter[data-lvl="1"] i:nth-child(-n+1), .uc-rf__meter[data-lvl="2"] i:nth-child(-n+2), .uc-rf__meter[data-lvl="3"] i { opacity: 1; }

/* panels */
.uc-rf__panel[data-rf-off] { display: none; }
.uc-rf__panel { display: grid; gap: clamp(20px, 3vw, 36px); animation: uc-rf-in 0.35s ease both; }
@keyframes uc-rf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .uc-rf__panel { animation: none; } }
.uc-rf__read { display: grid; gap: 8px; padding-block-end: 4px; border-bottom: 1px solid var(--foreground, #000); padding-bottom: 20px; }
.uc-rf__name { margin: 0; font-size: clamp(30px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; text-transform: var(--uc-heading-transform, uppercase); }
:lang(ar) .uc-rf__name { letter-spacing: 0; line-height: 1.2; text-transform: none; }
.uc-rf__note { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--muted, #6b6b6b); }
.uc-rf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.uc-rf__cell { min-width: 0; }
@media (min-width: 768px) { .uc-rf__grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 767px) { .uc-rf__cell:nth-child(n+5) { display: none; } }
.uc-rf__empty { margin: 0; padding: 28px 0; font-size: 16px; color: var(--muted, #6b6b6b); }
.uc-rf__more { margin: 0; } .uc-rf__all { display: inline-flex; align-items: center; min-height: 48px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; color: inherit; }

/* ===== taste-finder.css ===== */
/* ---------- Taste finder (.section-taste-finder / .uc-tf) ---------------------------------------------------------------
   A few questions with square chips; the coffees below narrow down as the visitor answers. */
.uc-tf { display: grid; gap: 0; min-width: 0; }
.uc-tf__head { display: grid; gap: 16px; margin-block-end: clamp(26px, 4vw, 44px); }
@media (min-width: 900px) { .uc-tf__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 6vw, 96px); } }
.uc-tf__intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.uc-tf__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
.uc-tf__head .uc-display { margin: 0; max-width: 16ch; }
.uc-tf__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted, #6b6b6b); max-width: 42ch; }
@media (min-width: 900px) { .uc-tf__lead { font-size: 17px; justify-self: end; } }
:lang(ar) :is(.uc-tf__badge, .uc-tf__chip, .uc-tf__q, .uc-tf__all) { letter-spacing: 0; text-transform: none; font-size: 15px; }

.uc-tf__ctrl { display: grid; gap: clamp(18px, 2.6vw, 28px); padding-block: clamp(20px, 3vw, 32px); border-block: 1px solid var(--foreground, #000); }
.uc-tf__group { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
@media (min-width: 900px) { .uc-tf__group { grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 24px; } }
.uc-tf__q { margin: 0; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.uc-tf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-tf__chip { min-height: 48px; padding: 0 20px; background: transparent; color: var(--foreground, #000); border: 1px solid var(--foreground, #000); border-radius: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.uc-tf__chip:hover { background: color-mix(in srgb, var(--foreground, #000) 8%, transparent); }
.uc-tf__chip[aria-pressed="true"] { background: var(--foreground, #000); color: var(--background, #fff); }
.uc-tf__chip:focus-visible { outline: 2px solid var(--ring, #000); outline-offset: 3px; }

.uc-tf__status { margin: 0; padding-block: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted, #6b6b6b); min-height: 1.5em; }
:lang(ar) .uc-tf__status { letter-spacing: 0; text-transform: none; font-size: 15px; }
.uc-tf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 768px) { .uc-tf__grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px 24px; } }
.uc-tf__cell { min-width: 0; animation: uc-tf-in 0.35s ease both; }
.uc-tf__cell[hidden] { display: none; }
@keyframes uc-tf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .uc-tf__cell { animation: none; } }
.uc-tf__empty { display: grid; justify-items: start; gap: 16px; padding-block: 28px; }
.uc-tf__empty[hidden] { display: none; }
.uc-tf__empty p { margin: 0; font-size: 17px; }
.uc-tf__all { display: inline-flex; align-items: center; min-height: 48px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; color: inherit; }
