/*
 * Q Portal / 3.0 — the whole-site design layer.
 * Native WooCommerce components and all compliance logic remain in place.
 * No section needs JavaScript to become visible.
 */
:root {
  --hq-gutter: clamp(1.25rem, 4.5vw, 5rem);
  --hq-wide: 1360px;
  --hq-radius: 16px;
  --hq-soft: #705850;
  --hq-hair: #dfcec4;
  --hq-line: #80665c;
  --hq-ease: cubic-bezier(.2,.65,.2,1);
}
html { scroll-padding-block-start: 112px; }
body { letter-spacing: normal; }
.health-qwest-store :where(main) { min-inline-size: 0; }
.health-qwest-store :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--hq-berry);
  outline-offset: 4px;
}
.health-qwest-store :where(p, li, h1, h2, h3, figcaption) { overflow-wrap: break-word; }
.hq-header { background: var(--hq-paper); backdrop-filter: none; border-block-end: 1px solid var(--hq-hair); }
.hq-header__inner { min-block-size: 92px; gap: 1.5rem; }
.hq-wordmark__link { font-size: clamp(1.55rem, 2.8vw, 2.5rem); letter-spacing: -.055em; min-block-size: 44px; }
.hq-wordmark__ar { font-size: .75rem; line-height: 1.5; }
.hq-header .wp-block-navigation-item__content { font-size: .8rem; letter-spacing: .035em; }
.hq-cart { border-radius: 99px; font-size: .75rem; min-block-size: 48px; }
.hq-eyebrow { font-size: .7rem; line-height: 1.7; letter-spacing: .16em; }
.hq-btn, .wp-block-button__link {
  border-radius: 99px;
  min-block-size: 52px;
  gap: 1.3rem;
}
.hq-btn--solid, .wp-block-button__link {
  background: var(--hq-berry);
  color: var(--hq-paper);
}
.hq-btn--solid:hover, .wp-block-button__link:hover, a.wp-block-button__link:hover {
  background: #822c50;
  color: var(--hq-paper);
}
.hq-btn:active { transform: translateY(1px); }

/* Quiet left / sculptural right. The photograph has its own captioned surface. */
.hq-portal { position: relative; isolation: isolate; background: #f8efe5; overflow: hidden; }
.hq-portal__art { position: absolute; inset: -8px; max-inline-size: none; z-index: -2; pointer-events: none; }
/* The backdrop is a photograph now, not the abstract Q. Two consequences.
   Its focal point sits right and low so the pack in it falls behind the product card
   rather than competing with it, and it is softened and desaturated so it reads as the
   environment the product is in — the crisp, captioned statement of the pack is the card. */
.hq-portal__art img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  /* The source has no pack in it, so this only chooses which part of the garden shows —
     it can no longer put a second wordmark on screen however the container is shaped. */
  object-position: 58% 42%;
  filter: saturate(0.86) contrast(0.96) blur(2px);
  transform: translate(var(--portal-x, 0), var(--portal-y, 0));
  transition: transform 650ms var(--hq-ease);
}
.hq-portal::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(96deg, rgba(250,244,237,.97) 0%, rgba(250,244,237,.93) 30%, rgba(250,244,237,.55) 56%, rgba(250,244,237,.18) 100%);
}
.hq-portal__inner {
  max-inline-size: var(--hq-wide); margin-inline: auto; padding: 72px var(--hq-gutter) 56px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  min-block-size: min(770px, 85svh);
}
.hq-portal__copy { max-inline-size: 650px; padding-block: 1rem 2rem; }
.hq-portal__copy .hq-eyebrow { color: #65473d; margin: 0 0 2.3rem; }
.hq-portal__title {
  display: flex; flex-direction: column; gap: 1.25rem; margin: 0; color: var(--hq-deep);
  font-family: var(--wp--preset--font-family--read);
}
.hq-portal__en { display: block; font-size: clamp(4.5rem, 8.9vw, 8.6rem); line-height: .91; font-weight: 650; letter-spacing: -.067em; }
.hq-portal__en em { font-weight: 450; color: var(--hq-berry); }
.hq-portal__ar { font-family: var(--wp--preset--font-family--arabic); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.65; text-align: start; font-weight: 500; }
.hq-portal__promise { font-family: var(--wp--preset--font-family--read); font-size: clamp(1.35rem, 2.2vw, 1.95rem); margin: 1.25rem 0 0; }
.hq-portal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-block-start: 2rem; }
.hq-portal__text-link { display: inline-flex; gap: 1.1rem; align-items: center; min-block-size: 48px; color: var(--hq-deep); font-size: .9rem; text-decoration: none; }
.hq-portal__text-link__label { text-decoration: underline; text-underline-offset: .4em; }
.hq-portal__pack { align-self: end; justify-self: end; inline-size: clamp(195px, 19vw, 270px); padding: 1.2rem; background: var(--hq-paper); border: 1px solid #dbc4b7; border-radius: 20px; box-shadow: 0 22px 60px #54231a19; }
.hq-portal__pack .hq-range__pack { inline-size: 100%; margin: 0; display: block; }
.hq-portal__pack .hq-range__pack img { max-inline-size: 100%; inline-size: 100%; margin: 0; }
.hq-portal__pack figcaption { margin-block-start: .9rem; color: #65473d; font-size: .75rem; line-height: 1.65; }
.hq-portal__rail { padding: 1rem var(--hq-gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--hq-paper); border-block: 1px solid var(--hq-hair); }
.hq-portal__rail p { font-family: var(--wp--preset--font-family--read); font-size: clamp(1rem, 1.6vw, 1.35rem); margin: 0; }
.hq-portal__rail a { display: inline-flex; align-items: center; gap: 2rem; min-block-size: 44px; font-size: .75rem; color: var(--hq-deep); text-decoration: none; }
.hq-portal__rail a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* Four actual range names, not four imaginary pack variants. */
.hq-range.hq-plate--cream { background: linear-gradient(var(--hq-paper), #f4e6dc); padding-block: clamp(4rem, 7vw, 7rem); scroll-margin-block-start: 5rem; }
.hq-range__head { max-inline-size: var(--hq-wide); width: 100%; margin-inline: auto; gap: 2.5rem; align-items: end; margin-block-end: 2.7rem; }
.hq-range__title { font-size: clamp(2.4rem, 4.3vw, 4.8rem); line-height: 1.03; letter-spacing: -.047em; font-weight: 600; }
.hq-range__title em { font-weight: 420; }
.hq-range__note { font-family: var(--wp--preset--font-family--sign); font-size: .88rem; font-style: normal; line-height: 1.8; max-inline-size: 30ch; color: #65473d; text-align: start; }
.hq-cards { gap: 1rem; }
.hq-card {
  min-block-size: 330px; border-radius: 18px; padding: clamp(1.15rem, 2vw, 1.8rem);
  box-shadow: inset 0 0 0 1px #3e2b2512;
}
.hq-card:hover { transform: none; }
.hq-card__index { display: block; margin-block-end: 3rem; font-family: var(--wp--preset--font-family--sign); font-size: .7rem; font-weight: 500; letter-spacing: .09em; }
.hq-card__name { font-size: clamp(1.8rem, 2.75vw, 2.7rem); padding: 0; line-height: 1.02; letter-spacing: -.045em; max-inline-size: 100%; font-weight: 600; }
.hq-card__copy { line-height: 1.7; font-size: .82rem; color: #493028; max-inline-size: 25ch; margin-block-start: 1rem; }
.hq-card--brownie-date-ball .hq-card__copy { color: #fff3e9; }
/* Arabic pages mirror the card: the index and the Q already change sides, so the English name
   and line (dir="ltr" until there are Arabic names) follow the index to the right. Left alone,
   the name stayed on the left while the copy's box sat at the right with its text starting
   part-way across the card. */
html[dir="rtl"] .hq-card__name,
html[dir="rtl"] .hq-card__copy { text-align: right; }
.hq-card::after { font-size: 7rem; inset-block-end: .1rem; opacity: .08; }
.hq-card--shot { padding-block-end: 13rem; }
.hq-card__shot { max-block-size: 12rem; object-fit: contain; }
.hq-availability { max-inline-size: 84ch; line-height: 1.8; font-size: .8rem; color: #65473d; margin-block-start: 1.6rem; }

/* Editorial photography preserves the complete image and authentic printed mark. */
.hq-editorial { padding: clamp(3.5rem, 7vw, 7rem) var(--hq-gutter); }
.hq-editorial--berry { background: var(--hq-berry); color: var(--hq-paper); }
.hq-editorial__inner { max-inline-size: var(--hq-wide); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 8vw, 8rem); }
.hq-editorial__copy { position: relative; isolation: isolate; }
.hq-editorial .hq-lockup__primary { font-size: clamp(2.5rem, 5vw, 5.6rem); color: var(--hq-paper); letter-spacing: -.045em; line-height: 1.03; font-weight: 500; }
.hq-editorial .hq-lockup__ar { color: var(--hq-paper); border-color: #fffaf455; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.hq-editorial__copy > p:not(.hq-eyebrow) { font-size: 1rem; line-height: 1.9; max-inline-size: 43ch; margin-block: 2rem; }
/* The eyebrow keeps its own --hq-soft brown, which on the berry field measured 1.09:1. */
.hq-editorial--berry .hq-eyebrow { color: var(--hq-paper); }
.hq-editorial .hq-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--hq-paper); color: var(--hq-paper); background: transparent; }
.hq-editorial .hq-btn--ghost:hover { background: #822c50; }
.hq-editorial :where(a, button):focus-visible { outline-color: var(--hq-paper); }
.hq-editorial__photo { margin: 0; }
.hq-editorial__photo img { border-radius: 180px 180px 18px 18px; inline-size: 100%; block-size: auto; }
.hq-editorial__photo figcaption { margin-block-start: 1rem; font-size: .7rem; line-height: 1.7; color: var(--hq-paper); }
.hq-editorial__ornament { display: block; margin-block-start: 2rem; font-family: var(--wp--preset--font-family--read); font-size: 5rem; font-style: italic; opacity: .35; line-height: 1; }
.hq-shelf.hq-plate { background: var(--hq-paper); padding-block: clamp(3.5rem, 7vw, 7rem); }
.hq-shelf .hq-shelf__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hq-shelf figure { margin: 0; }
.hq-shelf img { border-radius: 20px; inline-size: 100%; block-size: auto; }
.hq-shelf .hq-lockup__primary { font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: 1.08; }
.hq-shelf__body > p { font-size: .95rem; line-height: 1.9; }

/* Shared content, policy and editorial templates. No editor content is discarded. */
.hq-page, .hq-commerce, .hq-shop, .hq-single-product { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 7vw, 7rem); }
.hq-page > .wp-block-post-title, .hq-commerce > .wp-block-post-title, .hq-shop > .wp-block-query-title {
  font-family: var(--wp--preset--font-family--read);
  font-size: clamp(2.8rem, 6vw, 6rem); line-height: 1.08; letter-spacing: -.055em;
  margin-block: 0 2.5rem;
}
.hq-page .wp-block-post-content { line-height: 1.9; }
.hq-page .wp-block-post-content > h2 { margin-block-start: 2.8rem; }
.hq-page .wp-block-post-content :where(a):not(.wp-element-button) { text-underline-offset: .25em; }
.hq-page .wp-block-post-content :where(table) { display: block; overflow-x: auto; max-inline-size: 100%; }
.hq-story-opening { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); margin-block-end: 4rem; }
/* Top-set beside the arch. Centred against a 680px photograph it left ~250px of empty paper
   between the page title and the lockup. */
.hq-story-opening__copy { padding-block-start: clamp(2rem, 6vw, 5rem); }
.hq-story-opening__photo { margin: 0; }
.hq-story-opening__photo img { border-radius: 180px 180px 20px 20px; display: block; inline-size: 100%; max-inline-size: 510px; block-size: auto; margin-inline-start: auto; }
.hq-story-opening__copy .hq-lockup__primary { font-size: clamp(2.1rem, 3.8vw, 4rem); line-height: 1.1; }
.hq-story-opening__copy > p { line-height: 1.9; color: #65473d; }
.hq-journal { background: #f1dfd2; padding: clamp(3rem, 6vw, 6rem) var(--hq-gutter); margin-block-start: 4rem; }
.hq-journal__head, .hq-journal__grid { max-inline-size: var(--hq-wide) !important; margin-inline: auto; }
.hq-journal__head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: space-between; margin-block-end: 2.5rem; }
.hq-journal__head .hq-lockup__primary { font-size: clamp(2.3rem, 4.5vw, 4.5rem); }
.hq-editorial .hq-lockup__primary,
.hq-story-opening__copy .hq-lockup__primary,
.hq-journal__head .hq-lockup__primary,
.hq-shelf .hq-lockup__primary { max-inline-size: 14ch; text-wrap: balance; }
/* The journal is the page's last block; the page padding below it, and the root block gap
   above the footer part (invisible wherever main is paper), painted an empty band. */
.hq-story-page { padding-block-end: 0; }
.hq-story-page + .wp-block-template-part { margin-block-start: 0; }
/* Untranslated English inside an Arabic page keeps its own direction, so its full stops stay
   at the end of the sentence instead of jumping to the start of the line. Translated Arabic
   paragraphs are unaffected: their first strong character is Arabic. */
html[dir="rtl"] .wp-block-post-content :where(p, li, h2, h3, h4) { unicode-bidi: plaintext; }
.hq-journal__head > p { font-size: .9rem; }
.hq-journal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.hq-journal__grid figure { margin: 0; }
.hq-journal__grid figure:nth-child(2) { margin-block-start: 5rem; }
.hq-journal__grid img { inline-size: 100%; block-size: auto; border-radius: 18px; }
.hq-journal__grid figcaption { font-size: .78rem; line-height: 1.8; margin-block-start: 1rem; color: #65473d; }

/* Real products and real transactions. Do not hide errors, stock, taxes or totals. */
.hq-shop .hq-range__head { margin-block: 2rem; }
.hq-shop__pack { padding: 1.5rem; margin-block-end: 2rem; background: #f1dfd2; border-radius: 20px; }
.hq-shop__pack .hq-range__pack { display: flex; align-items: center; gap: 2rem; margin: 0; inline-size: 100%; }
.hq-shop__pack picture { flex: 0 0 140px; }
.hq-shop__pack figcaption { max-inline-size: 38ch; font-size: .85rem; line-height: 1.8; }
.hq-shop .woocommerce-breadcrumb, .hq-single-product .woocommerce-breadcrumb { font-size: .8rem; color: #65473d; line-height: 1.8; }
.hq-shop .woocommerce-breadcrumb a, .hq-single-product .woocommerce-breadcrumb a { display: inline-flex; align-items: center; min-block-size: 44px; }
.health-qwest-store .wc-block-product-template { gap: 1.5rem; }
.health-qwest-store .wc-block-product { padding: 1.1rem; background: #f2e4da; border: 1px solid #dfcec4; border-radius: 18px; }
.health-qwest-store .wc-block-components-product-image img { border-radius: 10px; object-fit: contain; }
.health-qwest-store .wc-block-product .wp-block-post-title { font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.12; margin-block: 1.3rem .7rem; }
.health-qwest-store .wc-block-components-product-price { color: var(--hq-deep); font-size: 1rem; }
.health-qwest-store .wc-block-components-button { min-block-size: 48px; border-radius: 99px; }
/* Phones: WooCommerce's grid keeps 150px columns, two to a row at 390px, which broke the
   names over three lines and "Add to cart" over two. One product per row instead, photo
   beside the text. */
@media (max-width: 599px) {
  .health-qwest-store .wc-block-product-template__responsive { grid-template-columns: 1fr; gap: 1rem; }
  .health-qwest-store .wc-block-product {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .health-qwest-store .wc-block-product > .wc-block-components-product-image { grid-row: 1 / span 3; margin: 0; }
  .health-qwest-store .wc-block-product .wp-block-post-title { margin-block: .25rem .35rem; font-size: 1.35rem; text-wrap: balance; }
  .health-qwest-store .wc-block-product .wp-block-post-excerpt { display: none; }
  .health-qwest-store .wc-block-product > * { margin-block-start: 0; }
}
.hq-single-product .wp-block-post-title { font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1.08; }
.hq-single-product .woocommerce-product-gallery img { border-radius: 20px; }
.hq-single-product .wp-block-post-excerpt { line-height: 1.8; }
.hq-single-product .woocommerce-tabs { margin-block-start: 4rem; }
.hq-commerce .wc-block-components-sidebar-layout { gap: 2rem; }
.hq-commerce .wc-block-components-sidebar { border: 1px solid var(--hq-hair); border-radius: 18px; padding: 1.5rem; background: #f2e4da; }
.hq-commerce :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.hq-single-product :where(input[type="number"], select) {
  min-block-size: 52px; border-radius: 10px; color: var(--hq-deep); background: var(--hq-paper);
}
.hq-commerce :where(input[type="checkbox"],input[type="radio"]) { accent-color: var(--hq-berry); }
.hq-commerce .wc-block-components-checkbox label { min-block-size: 44px; }
.hq-commerce .woocommerce-MyAccount-navigation ul { list-style: none; padding: 1rem; margin: 0 0 2rem; border: 1px solid var(--hq-hair); border-radius: 18px; background: #f2e4da; }
.hq-commerce .woocommerce-MyAccount-navigation a { min-block-size: 48px; display: flex; align-items: center; padding-inline: 1rem; border-radius: 99px; text-decoration: none; }
.hq-commerce .woocommerce-MyAccount-navigation .is-active a { background: var(--hq-deep); color: var(--hq-paper); }
.hq-commerce .woocommerce-MyAccount-content { line-height: 1.8; min-inline-size: 0; }
.hq-commerce .woocommerce-MyAccount-content :where(table) { display: block; overflow: auto; }
.hq-commerce .woocommerce form.login, .hq-commerce .woocommerce form.register { border: 1px solid var(--hq-hair); padding: clamp(1.5rem, 3vw, 3rem); border-radius: 20px; }
.hq-empty { padding-block: clamp(3rem, 8vw, 7rem); }

/* Footer is a clear ending, with genuine published support links only. */
.hq-footer.hq-plate { background: var(--hq-deep); padding-block: clamp(3rem, 6vw, 6rem) 1.5rem; }
.hq-footer__grid { gap: 3rem; }
.hq-footer .hq-lockup__primary { font-size: clamp(2.2rem, 4.5vw, 4.5rem); line-height: 1.06; letter-spacing: -.045em; max-inline-size: 9ch; font-weight: 450; }
.hq-footer .hq-lockup__ar { line-height: 1.9; }
.hq-footer__col { flex-basis: 12rem; }
.hq-footer__col h3 { font-size: .75rem; letter-spacing: .03em; }
.hq-footer__col a { min-block-size: 44px; display: flex; align-items: center; font-size: .78rem; line-height: 1.8; }
.hq-footer__col a:hover { color: var(--hq-paper); }
.hq-footer__meta { font-size: .75rem; line-height: 1.9; }
.hq-footer__base { margin-block-start: 3rem; font-size: .72rem; min-block-size: 60px; }
.health-qwest-store .hq-footer :where(a,button):focus-visible { outline-color: var(--hq-paper); }

/* Genuine RTL, including deeply nested text. English SKU names retain their direction. */
:where([lang="ar"], [lang^="ar-"], [dir="rtl"]) { letter-spacing: normal; text-transform: none; }
:where([lang="ar"], [lang^="ar-"]) * { letter-spacing: normal !important; text-transform: none !important; }
html[dir="rtl"] :where(h1,h2,h3,h4,p,a,button,li,span,label,input,figcaption) { letter-spacing: normal !important; text-transform: none !important; }
html[dir="rtl"] .hq-portal::before { background: linear-gradient(264deg, rgba(250,244,237,.97) 0%, rgba(250,244,237,.93) 30%, rgba(250,244,237,.55) 56%, rgba(250,244,237,.18) 100%); }
/* NOT mirrored in RTL. This rule flipped the backdrop with scaleX(-1), which is safe for
   abstract artwork and unsafe the moment the backdrop is a photograph of the pack: it
   prints the Cookie Qwest wordmark as mirror-writing. docs/MEDIA-PROVENANCE.md records
   that exact defect shipping once before. The RTL layout moves the copy, never the frame;
   the object-position below gives the composition its negative space on the other side. */
html[dir="rtl"] .hq-portal__art img { object-position: 42% 42%; }
html[dir="rtl"] .hq-portal__ar { font-size: clamp(2.8rem, 5.5vw, 5rem); }
html[dir="rtl"] .hq-portal__en { font-size: clamp(2.5rem, 4.3vw, 4rem); }
/* The space before the <br> in the markup is what keeps "your" and "Qwest." apart here;
   without it the words ran together as "yourQwest." once the break was hidden. */
html[dir="rtl"] .hq-portal__en br { display: none; }
/* Directional arrows point the way the reader travels. Moving → to the other side of the
   label without turning it round is the mirrored-shell defect, so each directional glyph
   carries .hq-dir and flips under RTL. ↓ is not directional and is left alone. */
.hq-dir { display: inline-block; }
html[dir="rtl"] .hq-dir { transform: scaleX(-1); }
html[dir="rtl"] .hq-card::after { transform: none; }
html[dir="rtl"] .hq-editorial .hq-lockup__primary { line-height: 1.5; }
[lang="ar"], [lang^="ar-"] { font-family: var(--wp--preset--font-family--arabic); }

@media (min-width: 1600px) {
  .hq-portal__inner { min-block-size: 820px; }
}
@media (max-width: 1023px) {
  .hq-portal__inner { min-block-size: 690px; padding-block: 3.5rem; }
  .hq-portal__pack { inline-size: 195px; }
  .hq-portal__en { font-size: clamp(4.5rem, 10vw, 6.5rem); }
  .hq-range__head { align-items: start; gap: 1.5rem; }
  .hq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-card { min-block-size: 290px; }
  .hq-card__name { font-size: 2.3rem; }
  .hq-editorial__inner { gap: 3rem; }
}
@media (max-width: 699px) {
  .hq-header__inner { min-block-size: 80px; gap: .5rem; }
  /* On a phone the header row is wordmark, menu, language, bag. The current language is
     evident from the page itself, so only the link to the other one stays; the marker,
     separator and divider were costing ~55px the row does not have. */
  .hq-utility { gap: .25rem; }
  .hq-locale { padding-inline-end: 0; border-inline-end: 0; }
  .hq-locale__on, .hq-locale__sep { display: none; }
  .hq-wordmark__link { font-size: 1.6rem; }
  .hq-wordmark__ar { font-size: .65rem; }
  .hq-cart { padding-inline: .7rem; gap: .4rem; min-block-size: 44px; }
  .hq-cart__glyph { display: none; }
  .hq-portal__inner { display: flex; flex-direction: column; align-items: stretch; min-block-size: 0; padding-block: 2.25rem; gap: .75rem; }
  .hq-portal::before { background: linear-gradient(180deg, #f8f1e9 0%, rgba(248,241,233,.96) 46%, transparent 79%); }
  /* Was `62% bottom`, written for the abstract artwork where the bottom edge is the
     interesting part. On a photograph of a hand holding the pack, `bottom` is precisely
     where the pack is — which is how a second wordmark ended up beside the card on a
     phone while desktop looked correct. The source is pouch-free now and this no longer
     reaches for the pack, but it is corrected rather than left as a trap for the next
     image that lands here. */
  .hq-portal__art img { object-position: 58% 38%; }
  .hq-portal__copy { padding-block: 0; }
  .hq-portal__copy .hq-eyebrow { margin-block-end: 1.5rem; font-size: .75rem; }
  .hq-portal__en { font-size: clamp(4.4rem, 17vw, 6rem); }
  .hq-portal__title { gap: 1rem; }
  .hq-portal__ar { font-size: 1.5rem; }
  .hq-portal__promise { font-size: 1.5rem; margin-block-start: .7rem; }
  .hq-portal__actions { margin-block-start: 1.4rem; gap: 1rem; }
  .hq-portal__actions .hq-btn { padding-inline: 1.5rem; }
  .hq-portal__text-link { font-size: .8rem; }
  .hq-portal__pack { inline-size: 165px; padding: .75rem; margin-block-start: .75rem; align-self: flex-end; border-radius: 14px; }
  .hq-portal__pack figcaption { font-size: .75rem; line-height: 1.65; margin-block-start: .6rem; }
  .hq-portal__rail { gap: .5rem; padding-block: .7rem; }
  .hq-portal__rail p { max-inline-size: 22ch; font-size: 1rem; text-wrap: pretty; }
  .hq-portal__rail a { gap: .6rem; font-size: .65rem; }
  .hq-range__head { display: block; }
  .hq-range__note { margin-block-start: 1.25rem; max-inline-size: 42ch; }
  .hq-range__title { font-size: clamp(2.15rem, 8.5vw, 3.4rem); }
  .hq-cards { grid-template-columns: 1fr; }
  .hq-card { min-block-size: 260px; padding: 1.5rem; }
  .hq-card__index { margin-block-end: 2rem; }
  .hq-card__name { max-inline-size: 12ch; font-size: 2.4rem; }
  .hq-card__copy { max-inline-size: 30ch; }
  .hq-card__form, .hq-card::after { transition: none; }
  .hq-editorial__inner, .hq-shelf .hq-shelf__grid, .hq-story-opening { grid-template-columns: 1fr; gap: 2.5rem; }
  .hq-story-opening__copy { padding-block-start: 0; }
  .hq-editorial__ornament { display: none; }
  .hq-editorial__photo img, .hq-story-opening__photo img { border-start-start-radius: 130px; border-start-end-radius: 130px; }
  .hq-editorial .hq-lockup__primary { font-size: 3rem; }
  .hq-journal__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hq-journal__grid figure:nth-child(2) { margin-block-start: 0; }
  .hq-shop__pack .hq-range__pack { gap: 1.2rem; }
  .hq-shop__pack picture { flex-basis: 110px; }
  .hq-shop__pack figcaption { font-size: .74rem; }
  .hq-footer__grid { gap: 2.5rem; }
  .hq-footer__grid > :first-child { flex-basis: 100%; }
  html[dir="rtl"] .hq-portal::before { background: linear-gradient(180deg, #f8f1e9, rgba(248,241,233,.96) 46%, transparent 79%); }
}
/* At 400px and below even the compact row overran by up to ~20px (measured at 360 with a
   two-digit bag count): the wordmark steps down and the bag becomes glyph + count, with
   the word kept for screen readers so the link's name is unchanged. */
@media (max-width: 400px) {
  .hq-wordmark__link { font-size: 1.4rem; }
  .hq-cart__glyph { display: block; }
  .hq-cart > span:not(.hq-cart-count) {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hq-portal__art img { transform: none; transition: none; }
  .hq-card, .hq-card__form, .hq-btn { transform: none !important; transition: none !important; }
}
@media print {
  .hq-portal__art, .hq-editorial__ornament { display: none; }
  .hq-portal__inner { min-block-size: 0; }
}

/* Coming Soon gate (templates/coming-soon.html): centred, inside the gutter, in the theme's type. */
.hq-coming-soon { min-block-size: 46vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hq-coming-soon h1 { font-family: var(--wp--preset--font-family--read); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; margin-inline: auto; max-inline-size: 16ch; }
.hq-coming-soon__note { color: #65473d; max-inline-size: 46ch; margin-inline: auto; text-wrap: pretty; }

/* Policy and contact pages: on a phone, the WhatsApp, phone and email links are how customers
   reach the business. As plain links in a list item they were 18px tall; give them a 44px target. */
.hq-page .wp-block-post-content li > a { display: inline-block; padding-block: .65rem; }
