/* Maktoob — home page (EN, desktop first) */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 var(--fs-b)/1.6 var(--f-ui);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, ol, ul, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
[lang="ar"] { font-family: var(--f-ar); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--stone); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: top var(--t-ui) var(--ease-out); }
.skip:focus { top: 16px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[data-dark] :focus-visible, .foot :focus-visible { outline-color: var(--sky); }
::selection { background: var(--sky); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- type ---------- */
.eyebrow, .label { font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; }
.label { display: flex; align-items: baseline; gap: 14px; color: var(--ink); }
.label__ar { font-family: var(--f-ar); font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.label--quiet { color: var(--ink-2); }
.label--on-dark, [data-dark] .label { color: var(--sky); }
.h2 { font: 700 var(--fs-h2)/1.04 var(--f-ui); letter-spacing: -.035em; }
.h3 { font: 600 var(--fs-h3)/1.2 var(--f-ui); letter-spacing: -.015em; }
.lede { font-size: var(--fs-bl); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
[data-dark] .lede { color: color-mix(in srgb, var(--stone) 86%, transparent); }
.hdr__in { padding-inline: var(--pad-x); }
.h2 .ln, .hero__title .ln { display: block; }
.h2 .ln > span, .hero__title .ln > span { display: inline-block; }

.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-micro); }
.link:hover { text-decoration-color: currentColor; }
.link--on-dark { color: var(--stone); }
.link--btn { font-size: var(--fs-s); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--stone);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  font: 600 15px/1 var(--f-ui); letter-spacing: .005em;
  transition: transform var(--t-micro) var(--ease-out), background-color var(--t-ui), box-shadow var(--t-ui), color var(--t-ui);
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after { /* water rises on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, color-mix(in srgb, var(--fg) 14%, transparent));
  transform: translateY(102%); transition: transform 420ms var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ink { --bg: var(--ink); --fg: var(--stone); }
.btn--act { --bg: var(--red-act); --fg: var(--white); --hover: var(--red-act-press); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); --hover: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--on-dark { --bg: var(--stone); --fg: var(--ink); --hover: var(--white); }
[data-dark] .btn--ghost { --fg: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--stone) 40%, transparent); --hover: color-mix(in srgb, var(--stone) 12%, transparent); }
.btn[aria-busy="true"] { pointer-events: none; }
.btn.is-owned { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }
[data-dark] .btn.is-owned { --fg: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--stone) 40%, transparent); }
.plan--plus .btn.is-owned { --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after { transform: translateY(0); background: var(--red-act-press); animation: tide 1s var(--ease-water) infinite alternate; }
.btn.is-loading::before { content: 'One moment\2026'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); z-index: 1; }
@keyframes tide { from { transform: translateY(70%); } to { transform: translateY(0); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: inherit; transition: background-color var(--t-micro), transform var(--t-micro) var(--ease-out), color var(--t-micro);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--ring { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 30%, transparent); }
.icon-btn--ring:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- chips, tabs, segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
  font: 500 14px/1 var(--f-ui); color: var(--ink);
  transition: background-color var(--t-micro), color var(--t-micro), box-shadow var(--t-micro), transform var(--t-micro) var(--ease-out);
}
.chip:hover { background: var(--ink); color: var(--stone); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip:active { transform: scale(.97); }
.chip--ar { font: 700 19px/1 var(--f-ar); padding-bottom: 3px; }
.chips--dark .chip { color: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--stone) 35%, transparent); }
.chips--dark .chip:hover, .chips--dark .chip[aria-checked="true"] { background: var(--stone); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stone); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { height: 40px; padding: 0 18px; border-radius: var(--r-pill); font: 600 14px/1 var(--f-ui); color: var(--ink); transition: background-color var(--t-ui), color var(--t-ui); }
.tab:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--stone); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--stone) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 22%, transparent); }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); font: 600 14px/1 var(--f-ui); color: var(--stone); transition: background-color var(--t-ui), color var(--t-ui); }
.seg button[lang="ar"] { font: 700 17px/1 var(--f-ar); }
.seg button:hover { background: color-mix(in srgb, var(--stone) 10%, transparent); }
.seg button[aria-checked="true"] { background: var(--stone); color: var(--ink); }
.seg__tag { font: 600 11px/1 var(--f-ui); padding: 4px 7px; border-radius: var(--r-pill); background: var(--red-act); color: var(--white); }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.sw--paper { background: var(--stone-50); } .sw--mist { background: var(--mist); } .sw--night { background: var(--deep); box-shadow: inset 0 0 0 1px var(--sky); }

.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; height: 46px; padding: 0 44px 0 18px; border-radius: var(--r-pill); border: 0; background: transparent; font: 600 14px/1 var(--f-ui); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 30%, transparent); }
.select--dark select { color: var(--stone); }
.select select option { color: var(--ink); }
.select svg { position: absolute; right: 16px; width: 18px; height: 18px; pointer-events: none; }

/* ---------- inputs ---------- */
.field { display: grid; gap: 10px; }
fieldset.field { display: block; }
fieldset.field > legend.field__l { padding: 0; margin-bottom: 10px; }
.field__l { display: flex; justify-content: space-between; font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--sky); }
.field__count { letter-spacing: 0; text-transform: none; font-weight: 500; color: color-mix(in srgb, var(--stone) 70%, transparent); font-variant-numeric: tabular-nums; }
.field__err { display: flex; align-items: center; gap: 8px; color: var(--stone); font-size: 14px; }
.field__err::before { content: '!'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red-act); color: var(--white); font-weight: 700; font-size: 13px; }
.input {
  width: 100%; height: 52px; padding: 0 18px; border-radius: var(--r-md); border: 0;
  background: color-mix(in srgb, var(--stone) 7%, transparent); color: var(--stone);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 30%, transparent);
  font-size: 16px; transition: box-shadow var(--t-ui), background-color var(--t-ui);
}
.input::placeholder { color: color-mix(in srgb, var(--stone) 52%, transparent); }
.input:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 55%, transparent); }
.input:focus { box-shadow: inset 0 0 0 2px var(--sky); background: color-mix(in srgb, var(--stone) 10%, transparent); outline: none; }
.input--area { height: auto; min-height: 104px; padding: 14px 18px; resize: none; line-height: 1.5; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }

/* ---------- bands + wave edges ---------- */
.band { position: relative; padding-block: var(--pad-y); }
.band--stone { background: var(--stone); }
.band--mist { background: var(--mist); }
.band--sky { background: var(--sky); }
.band--blue { background: var(--blue); color: var(--white); }
.band--ink { background: var(--ink); color: var(--stone); }
.band--deep { background: var(--deep); color: var(--stone); }
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--edge-h, 26px); overflow: hidden; pointer-events: none; z-index: 3; }
.edge svg { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; max-width: none; will-change: transform; }
.edge--inline { top: 0; bottom: auto; transform: translateY(calc(-100% + 1px)); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 80; color: var(--ink); transition: background-color 360ms var(--ease-out), color 360ms var(--ease-out), box-shadow 360ms, transform 420ms var(--ease-out); }
.hdr__in { display: flex; align-items: center; gap: 40px; height: 80px; max-width: calc(var(--container) + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); transition: height 360ms var(--ease-out); }
.hdr.is-solid { background: color-mix(in srgb, var(--stone) 86%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.hdr.is-solid .hdr__in { height: 66px; }
.hdr.is-dark { color: var(--stone); }
.hdr.is-dark.is-solid { background: color-mix(in srgb, var(--deep) 82%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--stone) 12%, transparent); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo { display: block; flex: none; color: inherit; }
.hdr__logo svg { width: 142px; height: 35px; }
.hdr__nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.hdr__link, .hdr__navbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font: 500 15px/1 var(--f-ui); text-decoration: none; border-radius: var(--r-pill); color: inherit; transition: background-color var(--t-micro); }
.hdr__navbtn svg { width: 16px; height: 16px; transition: transform var(--t-ui) var(--ease-out); }
.hdr__navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr__link::after, .hdr__navbtn::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out); }
.hdr__navbtn::after { right: 34px; }
.hdr__link:hover::after, .hdr__link[aria-current="page"]::after, .hdr__navbtn:hover::after, .hdr__navbtn.is-current::after, .hdr__navbtn[aria-expanded="true"]::after { transform: scaleX(1); }
.hdr__link[aria-current="page"], .hdr__navbtn.is-current { font-weight: 650; }
.hdr__lib { position: relative; }
.hdr__lib[aria-current="page"] .hdr__lib-txt { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hdr.has-menu { background: var(--stone); color: var(--ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.hdr.has-menu .btn--ink { --bg: var(--ink); --fg: var(--stone); }

/* the Store menu: shelves, collections, authors and today's book, on the grid */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--stone); color: var(--ink); box-shadow: 0 30px 50px -30px rgb(0 41 56 / .45), inset 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.mega__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); max-width: calc(var(--container) + 2 * var(--pad-x)); margin-inline: auto; padding: var(--s7) var(--pad-x) var(--s8); }
.mega__col { grid-column: span 3; }
.mega__h { margin-bottom: var(--s4); font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.mega__col ul { display: grid; gap: 2px; }
.mega__col a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; margin-inline: -12px; border-radius: var(--r-sm); font: 500 16px/1.3 var(--f-ui); text-decoration: none; color: var(--ink); transition: background-color var(--t-micro); }
.mega__col a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.mega__n { font: 600 12.5px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mega__ar { font: 400 17px/1 var(--f-ar); color: var(--ink-2); }
.mega__feat { grid-column: span 3; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding: 18px; border-radius: var(--r-lg); background: var(--mist); color: var(--ink); text-decoration: none; transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.mega__feat:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.mega__cv .cover { width: 96px; }
.mega__ft { display: grid; gap: 4px; }
.mega__k { font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.mega__t { font: 700 30px/1.3 var(--f-ar); }
.mega__t[lang="en"] { font: 700 22px/1.2 var(--f-ui); letter-spacing: -.01em; }
.mega__s { font-size: 14px; color: var(--ink-2); }
.mega__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 14px/1 var(--f-ui); color: var(--red-act); }
.mega__go svg { width: 16px; height: 16px; }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.hdr__lang { padding: 6px 12px 10px; font: 700 18px/1 var(--f-ar); text-decoration: none; border-radius: var(--r-pill); }
.hdr__lang:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr__lib { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-pill); text-decoration: none; font: 600 14px/1 var(--f-ui); transition: background-color var(--t-micro); }
.hdr__lib:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr__lib-ico { position: relative; display: block; width: 24px; height: 22px; }
.hdr__lib-ico svg { width: 24px; height: 22px; }
.hdr__badge { position: absolute; top: -9px; right: -11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red-act); color: var(--white); font: 700 11px/19px var(--f-ui); text-align: center; transform: scale(0); transition: transform 300ms var(--ease-out); }
.hdr__badge.has { transform: scale(1); }
.hdr.is-dark .btn--ink { --bg: var(--stone); --fg: var(--ink); }

/* ---------- hero: the shelf ---------- */
/* full screen (100svh), no wave or band at the fold; continuation is a quiet cue inside the bottom padding */
.hs { height: 100svh; min-height: 640px; padding-top: calc(80px + var(--pad-y)); padding-bottom: var(--pad-y); display: flex; }
.hs__in { display: flex; flex-direction: column; justify-content: center; }
.hs__cue { position: absolute; left: 0; right: 0; bottom: calc(var(--pad-y) / 2); transform: translateY(50%); }
.hs__cue a { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; transition: color var(--t-micro); }
.hs__cue a:hover { color: var(--ink); }
.hs__cue svg { width: 16px; height: 16px; transform: rotate(90deg); }
.hs__cue a:hover svg { animation: nudge 900ms var(--ease-out) infinite alternate; }
@keyframes nudge { to { transform: rotate(90deg) translateX(4px); } }
.hs__top { container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hs__title { grid-column: 1 / span 9; font: 700 clamp(44px, min(5.6cqi, 8.4vh), 84px)/.98 var(--f-ui); letter-spacing: -.045em; margin-left: -.04em; color: var(--ink); }
.hs__title .ln { display: block; white-space: nowrap; }
.hs__title .ln > span { display: inline-block; }
.hs__title em { font-style: normal; color: var(--red); }
.hs__lede { grid-column: 10 / span 3; padding-bottom: .5em; font: 400 17px/1.55 var(--f-ui); color: var(--ink-2); max-width: 34ch; }
.hs__lede strong { color: var(--ink); font-weight: 600; }

/* ask: search on columns 1–6, ideas on 7–12 */
.ask { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; margin-top: var(--stack); }
.ask__field { position: relative; grid-column: 1 / span 6; display: flex; align-items: center; height: 64px; padding: 0 7px 0 56px; border-radius: var(--r-pill); background: var(--stone-50); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 16%, transparent), var(--e1); transition: box-shadow var(--t-ui) var(--ease-out); }
.ask__field:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 34%, transparent), var(--e1); }
.ask__field:focus-within { box-shadow: inset 0 0 0 2px var(--ink), 0 22px 44px -22px rgb(47 58 86 / .45); }
.ask__ico { position: absolute; left: 22px; width: 22px; height: 22px; color: var(--ink); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: 500 18px/1 var(--f-ui); color: var(--ink); outline: none; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask__ph { position: absolute; left: 56px; right: 200px; top: 50%; transform: translateY(-50%); font: 500 18px/1.2 var(--f-ui); color: var(--ink-2); pointer-events: none; white-space: nowrap; overflow: hidden; }
.ask__ph[dir="rtl"] { text-align: left; font: 400 21px/1.2 var(--f-ar); }
.ask__ph::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: currentColor; animation: caret 1s steps(1) infinite; }
.ask.has-value .ask__ph, .ask:focus-within .ask__ph { opacity: 0; }
.ask__kbd { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 7px; font: 600 13px/1 var(--f-ui); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 20%, transparent); }
.ask:focus-within .ask__kbd, .ask.has-value .ask__kbd { display: none; }
.ask__clear { display: none; place-items: center; width: 40px; height: 40px; margin-right: 4px; border-radius: 50%; color: var(--ink-2); }
.ask__clear svg { width: 18px; height: 18px; }
.ask__clear:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.ask.has-value .ask__clear { display: grid; }
.ask__go { height: 50px; }
@keyframes caret { 50% { opacity: 0; } }
.try { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; gap: 8px; }
.try .chip[aria-pressed="true"] { background: var(--ink); color: var(--stone); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* the shelf: a short object standing on one plank that runs exactly across the 12 columns */
.shelf { position: relative; z-index: 5; flex: 1 1 auto; min-height: 0; max-height: 480px; display: flex; flex-direction: column; margin-top: var(--stack); }
.shelf__status { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: var(--stack); min-height: 20px; font: 500 14.5px/1.4 var(--f-ui); color: var(--ink-2); }
.shelf__status strong, .shelf__status q { color: var(--ink); font-weight: 600; font-style: normal; }
.shelf__key { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.shelf__key i { display: inline-block; height: 14px; border-radius: 2px; background: var(--ink); opacity: .55; }
.shelf__row { position: relative; flex: 1 1 auto; min-height: 150px; display: flex; align-items: flex-end; gap: 3px; }
.shelf__row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; border-radius: 2px; background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 92%, var(--stone)), var(--ink)); box-shadow: 0 18px 30px -14px rgb(0 41 56 / .5); }

.sp { --t: 44px; --h: 1; --c1: var(--ink); --c2: var(--blue); --ci: var(--stone); --wl: 78%;
  position: relative; flex: none; width: calc(var(--t) * var(--k, 1)); height: calc(var(--h) * 100%); cursor: pointer; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to bottom, var(--c1) var(--wl), var(--c2) var(--wl)); color: var(--ci);
  box-shadow: inset 2px 0 0 rgb(255 255 255 / .12), inset -3px 0 0 rgb(0 0 0 / .12), 0 1px 0 rgb(0 0 0 / .08);
  transform: translateY(var(--y, 0)); transition: transform 520ms var(--ease-out), opacity 520ms var(--ease-out); }
.sp::before { content: ''; position: absolute; left: 0; right: 0; top: 9%; height: 2px; background: currentColor; opacity: .32; }
.sp__t { position: absolute; left: 50%; top: 13%; bottom: calc(100% - var(--wl) + 8%); writing-mode: vertical-rl; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.sp__name { min-height: 0; overflow: hidden; text-overflow: ellipsis; font: 700 13px/1 var(--f-ui); letter-spacing: .01em; }
.sp__name[lang="ar"] { font: 700 17px/1 var(--f-ar); }
.sp.is-tight .sp__name { font-size: 11.5px; }
.sp.is-tight .sp__name[lang="ar"] { font-size: 15px; }
.sp.is-tighter .sp__name { font-size: 10px; letter-spacing: -.005em; }
.sp.is-tighter .sp__name[lang="ar"] { font-size: 13.5px; }
.sp__by { font: 500 10.5px/1 var(--f-ui); opacity: .78; }
.sp__by[lang="ar"] { font: 400 13px/1 var(--f-ar); }
.sp__mk { position: absolute; left: 50%; bottom: calc((100% - var(--wl)) / 2); width: min(18px, calc(var(--t) * .44)); height: auto; aspect-ratio: 28.3 / 30.8; transform: translate(-50%, 50%); color: var(--c1); }
.sp.is-thin .sp__by, .sp.no-by .sp__by { display: none; }
.sp.lean { transform-origin: 100% 100%; transform: translateY(var(--y, 0)) rotate(-7deg); margin-left: var(--lean-x, 24px); }
.sp:hover, .sp:focus-visible { --y: -18px; }
.sp:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 3px 3px 1px 1px; }
.sp.is-hint { --y: -12px; }
.shelf.is-asking .sp { opacity: .34; }
.shelf.is-asking .sp.is-hit { opacity: 1; --y: -34px; }
.shelf.is-asking .sp.is-hit:hover, .shelf.is-asking .sp.is-hit:focus-visible { --y: -44px; }
/* entrance: books are set on the shelf one by one */
.motion .shelf:not(.is-in) .sp { opacity: 0; --y: 56px; }
.shelf.is-entering .sp { transition-delay: var(--d, 0ms); transition-duration: 760ms; }

.shelf__card { position: absolute; z-index: 20; left: 0; width: 300px; display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--white); box-shadow: 0 24px 48px -20px rgb(0 41 56 / .45), 0 0 0 1px rgb(47 58 86 / .06); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
.shelf__card.is-on { opacity: 1; transform: none; }
.shelf__card .cover { width: 72px; border-radius: 2px 4px 4px 2px; }
.shelf__ct { font: 700 16px/1.2 var(--f-ui); color: var(--ink); letter-spacing: -.01em; }
.shelf__ct .ar { display: block; margin-top: 2px; font: 700 18px/1.3 var(--f-ar); }
.shelf__ca { margin-top: 3px; font: 500 13px/1.3 var(--f-ui); color: var(--ink-2); }
.shelf__cm { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 12.5px/1 var(--f-ui); color: var(--ink); }
.shelf__cm svg { width: 15px; height: 15px; }
.shelf__cgo { margin-top: 10px; font: 600 13px/1 var(--f-ui); color: var(--red-act); }

/* ---------- today ---------- */
.today__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: var(--s5); border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.today__next { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--f-ui); color: var(--ink-2); }
.today__next svg { width: 18px; height: 18px; }
.today__next time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); min-width: 7.2ch; }
.today__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: var(--s8); align-items: start; }
.today__line { grid-column: 1 / span 7; padding-top: var(--s4); }
.today__ar { font: 400 clamp(38px, 3.7vw, 56px)/1.75 var(--f-ar); color: var(--ink); text-align: right; }
[data-words] .w { display: inline-block; }
.today__line figcaption { display: grid; gap: 10px; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.today__gloss { font: italic 400 22px/1.5 var(--f-book); color: var(--ink-2); max-width: 40ch; }
.today__turn { margin-top: var(--s6); }
.today__turn svg { transition: transform var(--t-ui) var(--ease-out); }
.today__turn:hover svg { transform: translateX(4px); }
.today:not(.is-closed) .today__turn { display: none; }
.today.is-closed .today__info { display: none; }

.today__book { grid-column: 8 / span 5; position: relative; align-self: stretch; display: flex; }
.today__stage { position: relative; flex: 1; min-height: 520px; display: grid; justify-items: center; align-items: end; overflow: hidden; border-radius: var(--r-lg); background: var(--stone-50); box-shadow: var(--e1); }
.today__stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 70%); }
.today__hint { position: absolute; z-index: 3; top: 26px; left: 28px; right: 28px; font: 500 14px/1.45 var(--f-ui); color: var(--ink-2); transition: opacity 400ms; }
.today__hint strong { display: block; color: var(--ink); font-weight: 600; }
.today:not(.is-closed) .today__hint { opacity: 0; }
.today__pool { position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; background: var(--sky); border-radius: 0 0 var(--r-lg) var(--r-lg); z-index: 2; }
.today__pool .edge { --edge-h: 12px; }
.today__cover { position: relative; z-index: 1; width: 250px; margin-bottom: 62px; transform-origin: 50% 100%; }
.today__cover .cover { box-shadow: var(--e3); }
html:not(.motion) .today__book.is-closed .today__cover { transform: translateY(56%) rotate(-3deg); }
.motion .today__cover { transform: translateY(56%) rotate(-3deg); }
.today__info { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.today__title:focus { outline: none; }
.today__book.is-closed .today__info { opacity: 0; visibility: hidden; }
.today__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.today__title .ar { font: 700 40px/1.2 var(--f-ar); }
.today__title-en { font: 700 26px/1.2 var(--f-ui); letter-spacing: -.02em; }
.today__meta { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.today__meta [lang="ar"] { font-size: 17px; }
.today__why { margin-top: var(--s4); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.today__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--s5); }
.today__cta .btn { height: 48px; padding: 0 20px; font-size: 14px; }
/* English: the day's line, then the book beside it, then what it is; nothing waits behind a button */
.today[data-daily] { --pool: 150px; }
.today[data-daily] .today__line { grid-row: 1; }
.today[data-daily] .today__book { grid-row: 1 / span 2; }
.today[data-daily] .today__info { grid-column: 1 / span 7; grid-row: 2; }
.today__kick { margin-bottom: var(--s5); }
.today[data-daily] .today__ar.is-long { font-size: clamp(32px, 3vw, 46px); }
.today__en { font: 400 clamp(28px, 2.8vw, 40px)/1.28 var(--f-book); color: var(--ink); }
.today__en.is-long { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.32; }
.today__title-en:only-child { font-size: 32px; }
/* lifted, the book stands in the water rather than under it */
.today[data-daily] .today__pool { height: var(--pool); }
.today[data-daily] .today__stage { padding-top: var(--s6); }
.today[data-daily] .today__cover { width: min(270px, 78%); margin-bottom: calc(var(--pool) - 12px); }
.today__more { margin-top: var(--s4); font-size: var(--fs-s); color: var(--ink-2); }
.today__more a { color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.today__more a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; margin-bottom: var(--s8); }
.sec-head > :first-child { grid-column: 1 / span 7; }
.sec-head > :last-child { grid-column: 8 / span 5; }
.sec-head .label { margin-bottom: var(--s4); }
.sec-head .chips { margin-top: var(--s5); }

/* ---------- covers (generated) ---------- */
.cover {
  --c1: var(--stone); --c2: var(--blue); --ci: var(--ink); --c3: var(--sky);
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 3px 7px 7px 3px; background: var(--c1); color: var(--ci);
  container-type: inline-size; isolation: isolate;
  box-shadow: 0 1px 1px rgb(0 0 0 / .08), 0 10px 22px -12px rgb(0 41 56 / .5);
}
.cover::before { /* spine */
  content: ''; position: absolute; inset: 0 auto 0 0; width: 6%; z-index: 4;
  background: linear-gradient(90deg, rgb(0 0 0 / .14), rgb(0 0 0 / 0) 70%, rgb(255 255 255 / .1));
}
.cover__series { position: absolute; z-index: 3; top: 10cqw; left: 12cqw; right: 10cqw; font: 600 5.2cqw/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.cover--ar .cover__series { left: 10cqw; right: 12cqw; text-align: right; }
.cover__tt { position: absolute; z-index: 3; left: 12cqw; right: 10cqw; top: 23cqw; }
.cover--ar .cover__tt { left: 10cqw; right: 12cqw; }
.cover__title { display: block; font: 700 11.6cqw/1.02 var(--f-ui); letter-spacing: -.035em; text-wrap: balance; hyphens: manual; }
.cover__title.is-long { font-size: 9.6cqw; }
.cover__title[lang="ar"] { font: 700 16cqw/1.25 var(--f-ar); letter-spacing: 0; text-align: right; }
.cover__author { display: block; margin-top: 4cqw; font: 500 6.2cqw/1.25 var(--f-ui); opacity: .86; }
.cover__author[lang="ar"] { font: 400 8.2cqw/1.3 var(--f-ar); text-align: right; }
/* poetry: the title has sunk; birds fly above the surface */
.cover--poetry .cover__tt { top: auto; bottom: 22cqw; color: var(--co); }
.cover--poetry .cover__title { font-size: 12.6cqw; }
/* philosophy: brand waves in the sky, title just under the surface */
.cover--philo .cover__tt { top: calc(var(--wl) + 10cqw); color: var(--co); }
.cover__sky { position: absolute; z-index: 2; left: 12cqw; right: 10cqw; top: 25cqw; bottom: calc(100% - var(--wl) + 6cqw); display: grid; align-content: center; gap: 3cqw; color: var(--c3); }
.cover__sky svg { width: 28cqw; height: auto; aspect-ratio: 64/50; }
.cover__sky svg:nth-child(2) { margin-left: 30cqw; }
.cover__sky svg:nth-child(3) { margin-left: 12cqw; }
.cover__water { position: absolute; left: 0; right: 0; bottom: 0; top: var(--wl, 60%); background: var(--c2); z-index: 1; }
.cover__crest { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 7cqw; color: var(--c2); }
.cover__crest svg { width: 100%; height: 100%; }
.cover__pat { position: absolute; inset: 0; overflow: hidden; color: var(--c3); }
.cover__pat--frieze svg { position: absolute; width: 150%; height: auto; left: -25%; top: 22%; opacity: .55; --frieze-c: currentColor; --frieze-s: currentColor; }
.cover__birds { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cover__birds svg { position: absolute; width: 16cqw; height: auto; aspect-ratio: 164/118; color: var(--c2); }
.cover__birds svg:nth-child(1) { left: 54%; top: calc(var(--wl) - 26%); width: 22cqw; }
.cover__birds svg:nth-child(2) { left: 22%; top: calc(var(--wl) - 15%); width: 13cqw; color: var(--c3); }
.cover__birds svg:nth-child(3) { left: 76%; top: calc(var(--wl) - 11%); width: 10cqw; }
.cover__mark { position: absolute; right: 9cqw; bottom: 8cqw; width: 10cqw; height: auto; aspect-ratio: 28.3/30.8; z-index: 3; color: var(--c1); opacity: .95; }
.cover--poetry .cover__tt { right: 24cqw; }

/* ---------- book card ---------- */
.bk { position: relative; flex: none; width: 216px; scroll-snap-align: start; display: flex; flex-direction: column; }
.bk__body { flex: 1; display: flex; flex-direction: column; }
.bk__row { margin-top: auto !important; }
.bk__a { margin-bottom: 12px; }
.bk__cv { display: block; position: relative; transition: transform 500ms var(--ease-out); transform-origin: 50% 100%; }
.bk__cv::after { /* page edges revealed on hover */
  content: ''; position: absolute; top: 2%; bottom: 2%; right: -6px; width: 8px; z-index: -1; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, var(--stone-50) 0 1px, color-mix(in srgb, var(--stone) 88%, var(--ink)) 1px 2px);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.bk:hover .bk__cv, .bk:focus-within .bk__cv { transform: translateY(-8px) rotate(-1.2deg); }
.bk:hover .bk__cv::after, .bk:focus-within .bk__cv::after { transform: scaleX(1); }
.bk__body { margin-top: 16px; }
.bk__t { font: 600 16px/1.3 var(--f-ui); letter-spacing: -.01em; }
.bk__t a { text-decoration: none; }
.bk__t a::before { content: ''; position: absolute; inset: 0 0 64px 0; z-index: 1; }
.bk__t .ar { display: block; font: 700 19px/1.4 var(--f-ar); }
.bk__a { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.bk__row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.bk__price { font: 700 15px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.bk__plus { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font: 600 11px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.bk__acts { display: flex; gap: 2px; margin-right: -8px; }
.bk__acts .icon-btn { width: 40px; height: 40px; }
.bk__acts .icon-btn svg { width: 21px; height: 21px; }
.bk__owned { display: none; align-items: center; gap: 6px; font: 600 13px/1 var(--f-ui); color: var(--ink); }
.bk__owned svg { width: 16px; height: 16px; color: var(--red-act); }
.bk.is-owned .bk__buy { display: none; }
.bk.is-owned .bk__owned { display: inline-flex; }
.bk__heart[aria-pressed="true"] { color: var(--red-act); }
.bk__heart[aria-pressed="true"] svg { animation: pop 420ms var(--ease-out); }
.bk__min { font-size: 12.5px; color: var(--ink-2); }
@keyframes pop { 40% { transform: scale(1.3); } }

/* ---------- taste ---------- */
.taste__meter { display: flex; align-items: center; gap: 14px; margin-top: var(--s5); font: 600 14px/1 var(--f-ui); }
.taste__slots { display: flex; gap: 6px; }
.taste__slots i { width: 30px; height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); -webkit-mask: var(--bird-mask) center / contain no-repeat; mask: var(--bird-mask) center / contain no-repeat; transition: background-color 400ms var(--ease-out), transform 400ms var(--ease-out); }
.taste__slots i.on { background: var(--red-act); transform: translateY(-3px); }
.taste__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.line {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 236px; padding: 26px 24px 20px; border-radius: var(--r-md); text-align: left;
  background: var(--stone-50); color: var(--ink); overflow: hidden; isolation: isolate;
  box-shadow: var(--e1); transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out), color 420ms;
}
.line:hover { transform: translateY(-4px); box-shadow: var(--e2); }
.line:active { transform: translateY(-1px) scale(.99); }
.line__q { font: 400 21px/1.42 var(--f-book); letter-spacing: -.005em; white-space: pre-line; }
.line__q[lang="ar"] { font: 400 25px/1.75 var(--f-ar); text-align: right; }
.line__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 12.5px/1.3 var(--f-ui); color: var(--ink-2); transition: color 420ms; }
.line__who { opacity: 0; transform: translateY(6px); transition: opacity 420ms var(--ease-out) 120ms, transform 420ms var(--ease-out) 120ms; }
.line__tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); transition: background-color 300ms, box-shadow 300ms; }
.line__tick svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity 260ms, transform 360ms var(--ease-out); }
.line__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(calc(100% + 16px)); transition: transform 760ms cubic-bezier(.7, 0, .2, 1); }
.line:hover .line__fill { transform: translateY(calc(100% - 10px)); transition-duration: 500ms; }
.line[aria-disabled="true"] .line__fill { transform: translateY(calc(100% + 16px)); }
.line__fill .edge { --edge-h: 14px; }
.line[aria-pressed="true"] { color: var(--stone); }
.line[aria-pressed="true"] .line__fill { transform: translateY(0); }
.line[aria-pressed="true"] .line__foot { color: var(--sky); }
.line[aria-pressed="true"] .line__who { opacity: 1; transform: none; }
.line[aria-pressed="true"] .line__tick { background: var(--red-act); box-shadow: none; color: var(--white); }
.line[aria-pressed="true"] .line__tick svg { opacity: 1; transform: none; }
.line[aria-disabled="true"] { opacity: .55; }
.line[aria-disabled="true"]:hover { transform: none; box-shadow: var(--e1); }

.taste__result { margin-top: var(--s8); padding-top: var(--s7); border-top: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.taste__result-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: var(--s6); }
.taste__because { color: var(--ink-2); font-size: 15px; }
.taste__because strong { color: var(--ink); }
.taste__result-head .link--btn { margin-left: auto; }
.rail.rail--static { display: flex; gap: 32px; overflow: visible; padding: 0; cursor: auto; scroll-snap-type: none; }
.ghost { flex: none; width: 216px; }
.ghost__cv { position: relative; aspect-ratio: 2/3; border-radius: 3px 7px 7px 3px; background: color-mix(in srgb, var(--stone-50) 70%, transparent); overflow: hidden; }
.ghost__cv::after { content: ''; position: absolute; inset: 0; background: var(--blue); opacity: .35; transform: translateY(100%); animation: fill 1.1s var(--ease-water) infinite; }
.ghost__l { height: 12px; margin-top: 16px; border-radius: 6px; background: color-mix(in srgb, var(--stone-50) 70%, transparent); }
.ghost__l + .ghost__l { width: 60%; margin-top: 8px; }
@keyframes fill { 0% { transform: translateY(100%); } 60%, 100% { transform: translateY(0); opacity: 0; } }

/* ---------- editions rail ---------- */
.ed__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: var(--s6); }
.rail-ctrl { display: flex; gap: 10px; }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 32px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px max(var(--side), calc((100vw - var(--container)) / 2)) 28px; scroll-padding-inline: max(var(--side), calc((100vw - var(--container)) / 2)); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a, .rail.is-drag button { pointer-events: none; }
.rail__progress { height: 2px; margin-inline: max(var(--side), calc((100vw - var(--container)) / 2)); background: color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 2px; overflow: hidden; }
.rail__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.2); }

/* ---------- authors ---------- */
.authors__list { counter-reset: au; border-bottom: 1px solid color-mix(in srgb, var(--white) 28%, transparent); }
.au { position: relative; }
.au a { position: relative; text-decoration: none; display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 140px 120px; align-items: center; gap: var(--gutter); width: 100%; padding: 26px 4px; text-align: left; color: var(--white); border-top: 1px solid color-mix(in srgb, var(--white) 28%, transparent); }
.au__n { font: 600 13px/1 var(--f-ui); letter-spacing: .08em; opacity: .7; font-variant-numeric: tabular-nums; }
.au__en { font: 600 clamp(26px, 2.5vw, 38px)/1.1 var(--f-ui); letter-spacing: -.025em; transition: transform 500ms var(--ease-out); }
.au__ar { font: 700 clamp(26px, 2.4vw, 36px)/1.4 var(--f-ar); text-align: right; opacity: .9; }
.au__y { font: 500 14px/1.3 var(--f-ui); opacity: .82; font-variant-numeric: tabular-nums; }
.au__c { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; font: 600 14px/1 var(--f-ui); }
.au__c svg { width: 20px; height: 20px; transition: transform 500ms var(--ease-out); }
.au a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out); }
.au a:hover::after, .au a:focus-visible::after { transform: scaleX(1); }
.au a:hover .au__en { transform: translateX(10px); }
.au a:hover .au__c svg { transform: translateX(6px); }
.au__note { display: block; margin-top: 6px; font: 500 14px/1.3 var(--f-ui); letter-spacing: 0; opacity: 0; max-height: 0; transition: opacity 400ms, max-height 500ms var(--ease-out); }
.au a:hover .au__note, .au a:focus-visible .au__note { opacity: .82; max-height: 24px; }
/* English: authors close the store band, on sky; both alphabets share a line */
.sv__au { margin-top: var(--s9); }
.sv__auhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: var(--s5); }
.sv__aulede { max-width: 54ch; font-size: 15px; line-height: 1.55; color: var(--ink); }
.sv__aulede [lang="ar"] { font-size: 18px; white-space: nowrap; }
.authors__list--compact { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.authors__list--compact .au a { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px var(--s6); padding: 16px 4px; color: var(--ink); border-top-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.authors__list--compact .au a::after { background: var(--ink); }
.authors__list--compact .au__n { color: var(--ink-2); }
.au__names { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; min-width: 0; }
.authors__list--compact .au__en { font-size: clamp(20px, 1.7vw, 24px); }
.authors__list--compact .au__ar { margin-left: auto; font: 700 clamp(21px, 1.75vw, 25px)/1.3 var(--f-ar); text-align: right; opacity: 1; }
.authors__list--compact .au__c { grid-column: auto; grid-row: auto; }
.au__bk { max-width: 16ch; text-align: right; line-height: 1.3; }
@media (min-width: 901px) {
  .authors__list--compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); }
}

/* ---------- sample reader ---------- */
.sample__track { height: 290vh; position: relative; }
.sample__stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 56px; }
.sample__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.sample__copy { grid-column: 1 / span 5; }
.sample__copy .label { margin-bottom: var(--s4); }
.sample__copy .lede { margin-top: var(--s5); }
.reader-ctrl { display: grid; justify-items: start; gap: 12px; margin-top: var(--s6); }
.size-ctrl { display: inline-flex; align-items: center; gap: 12px; color: var(--stone); }
.size-ctrl__val { min-width: 5ch; text-align: center; font: 600 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.aa { font: 600 14px/1 var(--f-book); }
.aa--l { font-size: 21px; }
.sample__progress { margin-top: var(--s4); font: 500 14px/1 var(--f-ui); color: var(--sky); font-variant-numeric: tabular-nums; }
.sample__progress span { display: inline-block; min-width: 3ch; text-align: right; font-weight: 700; }

.reader {
  --rbg: var(--stone-50); --rfg: var(--ink); --rwater: var(--sky); --rmeta: var(--ink-2); --rs: 1;
  grid-column: 7 / span 6; position: relative; display: flex; flex-direction: column;
  height: min(74svh, 700px); border-radius: var(--r-lg); overflow: hidden;
  background: var(--rbg); color: var(--rfg); box-shadow: var(--e3), 0 0 0 1px rgb(255 255 255 / .06);
  transition: background-color 500ms var(--ease-out), color 500ms var(--ease-out);
}
.reader[data-theme="mist"] { --rbg: var(--mist); --rfg: var(--ink); --rwater: var(--sky); }
.reader[data-theme="night"] { --rbg: var(--deep); --rfg: var(--stone); --rwater: var(--deep-water); --rmeta: color-mix(in srgb, var(--stone) 72%, transparent); }
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px 12px 28px; border-bottom: 1px solid color-mix(in srgb, var(--rfg) 12%, transparent); font: 600 13px/1 var(--f-ui); letter-spacing: .04em; color: var(--rmeta); }
.reader__book { font-weight: 700; color: var(--rfg); }
.reader__id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.reader__ch { font-weight: 500; }
.reader__tools { display: flex; align-items: center; gap: 10px; }
.reader .seg { background: color-mix(in srgb, var(--rfg) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rfg) 14%, transparent); padding: 3px; }
.reader .seg button { height: 30px; padding: 0 12px; font-size: 12.5px; color: var(--rfg); }
.reader .seg button[lang="ar"] { font: 700 16px/1 var(--f-ar); }
.reader .seg button[aria-checked="true"] { background: var(--rfg); color: var(--rbg); }
.swatches { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rfg) 14%, transparent); }
.swatches button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: box-shadow var(--t-micro); }
.swatches button:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rfg) 35%, transparent); }
.swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--rfg); }
.swatches .sw { width: 16px; height: 16px; }
.reader .size-ctrl { gap: 2px; padding: 3px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rfg) 14%, transparent); color: var(--rfg); }
.size-ctrl__b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: background-color var(--t-micro); }
.size-ctrl__b:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.size-ctrl__b:disabled { opacity: .35; pointer-events: none; }
.sample__meter { margin-top: var(--s7); height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--stone) 16%, transparent); overflow: hidden; max-width: 420px; }
.sample__meter span { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.sample__facts { display: grid; gap: 12px; margin-top: var(--s6); font-size: 15px; color: color-mix(in srgb, var(--stone) 86%, transparent); }
.sample__facts li { display: flex; align-items: center; gap: 12px; }
.sample__facts svg { width: 20px; height: 20px; color: var(--sky); }
.reader[data-theme="night"] .shore { background: var(--deep-water); color: var(--stone); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sky) 20%, transparent), var(--e3); }
.reader[data-theme="night"] .shore__k { color: var(--sky); }
.reader[data-theme="night"] .shore .btn--ghost { --fg: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--stone) 40%, transparent); }
.reader__bar [lang="ar"] { font: 700 17px/1 var(--f-ar); letter-spacing: 0; }
.reader__view { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
.reader__text { position: relative; z-index: 2; padding: 40px 56px 40px; font: 400 calc(20px * var(--rs))/1.72 var(--f-book); font-optical-sizing: auto; will-change: transform; }
.reader__text p + p { text-indent: 1.4em; }
.reader__text p:first-child::first-letter { font-size: 3.1em; float: left; line-height: .86; padding: 7px 6px 0 0; margin-left: -2px; font-weight: 500; }
.reader__text[lang="ar"] { font: 400 calc(25px * var(--rs))/2 var(--f-ar); text-align: justify; }
.reader__text[lang="ar"] p:first-child::first-letter { font-size: inherit; float: none; padding: 0; }
.reader__water { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: 1; background: var(--rwater); transform: translateY(calc(100% - var(--lvl, 0) * 100%)); transition: background-color 500ms; }
.reader__water .edge { --edge-h: 16px; color: var(--rwater); }
.shore { position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 28px; padding: 26px 28px; border-radius: var(--r-md); background: var(--stone-50); color: var(--ink); box-shadow: var(--e3); opacity: 0; transform: translateY(30px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.shore.is-on { opacity: 1; transform: none; }
.shore__k { font: 600 var(--fs-label)/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.shore__t { margin-top: 8px; font: 700 22px/1.25 var(--f-ui); letter-spacing: -.015em; }
.shore__t [lang="ar"] { font-family: var(--f-ar); }
.shore__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.shore__cta .btn { height: 46px; font-size: 14px; padding: 0 20px; }
.shore .btn--ghost { --fg: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }

/* ---------- plans ---------- */
.plans__ctrl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.plans__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: stretch; }
.plan { grid-column: span 4; display: flex; flex-direction: column; padding: 36px 34px 34px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 22%, transparent); }
.plan--plus { background: var(--sky); color: var(--ink); box-shadow: var(--e3); }
.plan__head .h3 { margin-top: 18px; font-size: 28px; }
.plan__ico { width: 40px; height: 36px; color: var(--sky); }
.plan--plus .plan__ico { color: var(--ink); }
.plan__for { margin-top: 6px; font-size: 15px; opacity: .82; }
.plan__price { margin-top: var(--s6); font: 700 22px/1 var(--f-ui); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price [data-plan] { font-size: 64px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan__from, .plan__per { font: 500 15px/1 var(--f-ui); opacity: .82; }
.plan__note { margin-top: 10px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.plan__list { display: grid; gap: 12px; margin: var(--s6) 0 var(--s7); padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.plan__list li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.plan__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--sky); }
.plan--plus .plan__list svg { color: var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plans__why { grid-column: span 4; padding: 36px 8px 0 18px; }
.plans__why ul { display: grid; gap: 26px; margin-top: var(--s5); }
.plans__why li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; font-size: 16px; line-height: 1.5; color: color-mix(in srgb, var(--stone) 90%, transparent); }
.plans__why strong { color: var(--white); font-weight: 600; }
.plans__why svg { width: 24px; height: 24px; color: var(--sky); margin-top: 1px; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid color-mix(in srgb, var(--stone) 18%, transparent); }
.pay__k { font-size: 14px; color: color-mix(in srgb, var(--stone) 82%, transparent); }
.pay__k:last-child { margin-left: auto; }
.pay__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay__list li { padding: 8px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--stone) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 18%, transparent); font: 600 13px/1 var(--f-ui); }

/* ---------- gift ---------- */
.gift__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.gift__copy { grid-column: 1 / span 6; }
.gift__copy .label { margin-bottom: var(--s4); }
.gift__copy .lede { margin-top: var(--s5); }
.gift__form { display: grid; gap: 22px; margin-top: var(--s7); max-width: 560px; }
.gift__books { display: flex; gap: 12px; }
.gbk { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 26%, transparent); text-align: left; transition: box-shadow var(--t-ui), background-color var(--t-ui); }
.gbk .cover { width: 34px; flex: none; border-radius: 2px 3px 3px 2px; }
.gbk__t { font: 600 13.5px/1.25 var(--f-ui); color: var(--stone); max-width: 12ch; }
.gbk__t[lang="ar"] { font: 700 16px/1.3 var(--f-ar); }
.gbk:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 60%, transparent); }
.gbk[aria-checked="true"] { background: color-mix(in srgb, var(--sky) 14%, transparent); box-shadow: inset 0 0 0 2px var(--sky); }
.gift__send { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.gift__alt { font-size: 14px; color: color-mix(in srgb, var(--stone) 80%, transparent); }

.gift__stage { grid-column: 8 / span 5; position: relative; display: grid; place-items: center; min-height: 640px; perspective: 1400px; }
.titlepage {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(100%, 440px); aspect-ratio: 3 / 4; padding: 56px 48px 44px; border-radius: 4px 10px 10px 4px;
  background: var(--stone-50); color: var(--ink); box-shadow: var(--e3), inset 10px 0 18px -14px rgb(0 0 0 / .3);
  transform: rotate(-2.5deg); transform-origin: 50% 60%;
}
.titlepage__mark { width: 30px; height: 32px; color: var(--blue); }
.titlepage__book { margin-top: 26px; font: 500 34px/1.12 var(--f-book); letter-spacing: -.01em; }
.titlepage__book[lang="ar"] { font: 700 38px/1.4 var(--f-ar); }
.titlepage__by { margin-top: 8px; font: 600 12.5px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.titlepage__by[lang="ar"] { font: 400 19px/1.3 var(--f-ar); letter-spacing: 0; }
.titlepage__rule { width: 120px; height: 14px; margin: 28px 0 24px; color: var(--blue); }
.titlepage__rule svg { width: 100%; height: 100%; }
.titlepage__for { font: italic 400 19px/1.3 var(--f-book); color: var(--ink-2); }
.titlepage__for span { font-style: normal; font-weight: 600; font-family: var(--f-ui); color: var(--ink); font-size: 16px; }
.titlepage__ded { margin-top: 16px; font: italic 400 26px/1.42 var(--f-book); color: var(--ink); max-width: 15em; overflow-wrap: anywhere; min-height: 2.84em; }
.titlepage__ded.is-ar { font: 400 34px/1.6 var(--f-hand); font-style: normal; }
.titlepage__ded.is-empty { color: var(--ink-2); }
.titlepage__when { margin-top: auto; font: 600 11.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.titlepage .caret { display: inline-block; width: 1.5px; height: .95em; margin-inline-start: 2px; vertical-align: -2px; background: var(--red); animation: caret 1s steps(1) infinite; }
.gift__sent { position: absolute; inset: auto 0 18px; text-align: center; font: 600 17px/1.5 var(--f-ui); color: var(--stone); }
.gift__sent button { margin-top: 12px; }

/* ---------- footer ---------- */
.foot { padding-top: 0; padding-bottom: var(--stack); overflow: clip; }
.foot__frieze { --frieze-c: var(--blue); --frieze-s: color-mix(in srgb, var(--sky) 22%, transparent); display: flex; justify-content: center; padding: var(--pad-y) 0; border-top: 1px solid color-mix(in srgb, var(--stone) 10%, transparent); }
.foot__frieze svg { width: min(940px, 72vw); height: auto; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-bottom: var(--s8); }
.foot__brand { grid-column: 1 / span 5; }
.foot__logo { width: 168px; height: 42px; color: var(--stone); }
.foot__tag { margin-top: 18px; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--stone) 85%, transparent); }
.foot__tag [lang="ar"] { font-size: 20px; }
.foot__daily { margin-top: var(--s6); display: grid; gap: 12px; max-width: 460px; }
.foot__row { display: flex; gap: 10px; }
.foot__row .input { flex: 1; }
.foot__row .btn { height: 52px; }
.input--dark { color: var(--stone); }
.foot__msg { min-height: 1.4em; font-size: 14px; color: var(--sky); }
.foot__nav { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.foot__nav a { display: block; padding: 6px 0; font-size: 15px; color: color-mix(in srgb, var(--stone) 88%, transparent); text-decoration: none; transition: color var(--t-micro); }
.foot__nav a:hover { color: var(--white); }
.foot__h { margin-bottom: 10px; font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--sky); }
.foot__base { display: flex; justify-content: space-between; padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, var(--stone) 14%, transparent); font-size: 13.5px; color: color-mix(in srgb, var(--stone) 78%, transparent); }
.foot__base a { text-decoration: none; }
.foot__base a:hover { color: var(--white); }
.foot__base [lang="ar"] { font-size: 16px; }

/* ---------- toast + flight ---------- */
.toast { position: fixed; z-index: 95; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: 440px; padding: 12px 10px 12px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--stone); box-shadow: var(--e3); font-size: 15px; line-height: 1.4; }
.toast__ico { width: 24px; height: 22px; color: var(--sky); flex: none; }
.toast p strong { color: var(--white); }
.toast .icon-btn { width: 36px; height: 36px; }
.toast .icon-btn svg { width: 18px; height: 18px; }
.flight-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 50%; }
.flyer .cover { box-shadow: var(--e3); }
.flyer__bird { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.flyer__bird svg { width: 78%; height: auto; aspect-ratio: 164/118; color: var(--red); filter: drop-shadow(0 10px 14px rgb(0 41 56 / .3)); }
.hdr__lib.is-hit .hdr__lib-ico { animation: hit 600ms var(--ease-out); }
@keyframes hit { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(.95); } }

/* ---------- motion initial states (only when GSAP is running) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.motion [data-lines] .ln > span { opacity: 0; transform: translateY(.42em); }
.motion [data-words] .w { opacity: .12; }

@media (prefers-reduced-motion: reduce) {
  /* gentle fades only: transition-property defaults to all, so without the list every element would animate its size and position */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: 160ms !important; transition-property: opacity, color, background-color, border-color, outline-color, box-shadow, text-decoration-color, fill, stroke !important; }
  .search__ph::after { animation: none; }
}

/* ---------- checkout sheet ---------- */
.sheet { width: min(560px, calc(100vw - 32px)); max-width: none; height: 100svh; max-height: none; margin: 0 0 0 auto; padding: 16px; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgb(0 41 56 / .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet__in { position: relative; display: flex; flex-direction: column; height: 100%; padding: 36px 36px 28px; border-radius: var(--r-lg); background: var(--stone); box-shadow: var(--e3); overflow: auto; }
.sheet__x { position: absolute; top: 14px; right: 14px; }
.sheet__item { display: flex; align-items: center; gap: 18px; padding: 16px; margin-right: 36px; border-radius: var(--r-md); background: var(--stone-50); box-shadow: var(--e1); }
.sheet__cv { width: 64px; flex: none; }
.sheet__ico { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: var(--r-md); background: var(--sky); color: var(--ink); }
.sheet__ico svg { width: 30px; height: 28px; }
.sheet__k { font: 600 var(--fs-label)/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.sheet__name { margin-top: 6px; font: 700 19px/1.25 var(--f-ui); letter-spacing: -.01em; }
.sheet__name [lang="ar"] { font: 700 21px/1.3 var(--f-ar); }
.sheet__sub { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.sheet__form { display: flex; flex-direction: column; flex: 1; margin-top: var(--s6); }
.sheet__t { font: 700 30px/1.1 var(--f-ui); letter-spacing: -.03em; margin-bottom: var(--s5); }
.sheet__step { display: grid; gap: 10px; }
.sheet__l { display: block; padding: 0; font: 600 var(--fs-label)/1.4 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.sheet__l bdi { text-transform: none; letter-spacing: 0; color: var(--ink); }
.phone { display: flex; height: 56px; border-radius: var(--r-md); background: var(--stone-50); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); transition: box-shadow var(--t-ui); }
.phone:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.phone select { appearance: none; border: 0; background: transparent; padding: 0 14px 0 16px; font: 600 15px/1 var(--f-ui); color: var(--ink); border-right: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); cursor: pointer; }
.phone input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 17px; letter-spacing: .02em; outline: none; }
.sheet__hint { font-size: 13.5px; color: var(--ink-2); }
.sheet__pay { margin-top: var(--s5); }
.sheet__pay .sheet__l { margin-bottom: 10px; }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paygrid button { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); text-align: left; background: var(--stone-50); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 12%, transparent); transition: box-shadow var(--t-ui), background-color var(--t-ui); }
.paygrid strong { font: 700 15px/1.2 var(--f-ui); }
.paygrid span { font-size: 12.5px; color: var(--ink-2); }
.paygrid button:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, transparent); }
.paygrid button[aria-checked="true"] { background: var(--mist); box-shadow: inset 0 0 0 2px var(--ink); }
.otp { display: flex; gap: 10px; }
.otp input { width: 60px; height: 68px; border: 0; border-radius: var(--r-md); text-align: center; font: 700 28px/1 var(--f-ui); background: var(--stone-50); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); transition: box-shadow var(--t-ui), transform var(--t-micro); }
.otp input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.sheet__err { display: flex; align-items: center; gap: 8px; margin-top: var(--s4); font-size: 14px; color: var(--ink); }
.sheet__err::before { content: '!'; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red-act); color: var(--white); font-weight: 700; font-size: 13px; }
.sheet__go { margin-top: auto; width: 100%; height: 58px; font-size: 16px; }
.sheet__demo { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.sheet__done { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; font: 600 20px/1.4 var(--f-ui); }
.sheet__tick { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--sky); }
.sheet__tick svg { width: 34px; height: 34px; }
.hdr__tools [data-signin] svg { width: 18px; height: 18px; }

/* contrast on the blue band (axe): white text only */
.band--blue .lede, .band--blue .chips--dark .chip { color: var(--white); }
.band--blue .chips--dark .chip { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--white) 55%, transparent); }
.band--blue .chips--dark .chip:hover { color: var(--ink); }
.au__n, .au__y { opacity: 1; }
.au a:hover .au__note, .au a:focus-visible .au__note { opacity: 1; }
.cover--philo.cover--ar .cover__mark { right: auto; left: 10cqw; }
.cover--poetry .cover__tt { right: 14cqw; bottom: 20cqw; }
.cover--poetry .cover__title { font-size: 11.2cqw; }


/* ===================================================================== */
/* ---------- pages: top of page, breadcrumbs, page titles ---------- */
/* every page starts the same distance under the header: header height + --pad-y */
main > .band:first-child:not(.hs) { padding-top: calc(80px + var(--pad-y) * .6); }
.crumbs { margin-bottom: var(--s7); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13.5px/1.3 var(--f-ui); color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs--dark ol { color: color-mix(in srgb, var(--stone) 78%, transparent); }
.crumbs--dark a:hover, .crumbs--dark [aria-current] { color: var(--white); }
.h1 { font: 700 clamp(44px, 4.8vw, 76px)/1.02 var(--f-ui); letter-spacing: -.04em; }
.h1 .ln { display: block; }
.h1 .ln > span { display: inline-block; }
.h1__ar { font: 700 .62em/1 var(--f-ar); letter-spacing: 0; color: var(--ink-2); margin-left: .25em; }
.h1 q { quotes: '“' '”'; }
.link--on-ink { color: var(--sky); }

/* ---------- book grids ---------- */
.grid-books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s7) var(--gutter); }
.grid-books .bk { width: auto; }
.grid-books--store { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.noresult { display: grid; justify-items: center; gap: 12px; padding: var(--s9) var(--s5); text-align: center; }
.noresult p { max-width: 46ch; color: var(--ink-2); }
.noresult__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: var(--s4); }
.noresult__shelf { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 92px; padding: 0 10px 8px; margin-bottom: var(--s4); }
.noresult__shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 2px; background: var(--ink); }
.noresult__shelf i { display: block; width: 18px; border-radius: 2px 2px 0 0; background: var(--blue); }
.noresult__shelf i:nth-child(1) { height: 70px; background: var(--red); }
.noresult__shelf i:nth-child(2) { height: 80px; width: 24px; }
.noresult__shelf i:nth-child(3) { height: 64px; background: var(--sky); }
.noresult__shelf i:nth-child(4) { height: 74px; width: 22px; background: var(--ink); transform-origin: 100% 100%; transform: rotate(-12deg); margin-left: 10px; }

/* ---------- store ---------- */
.store__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.store__title { grid-column: 1 / span 7; }
.store__lede { margin-top: var(--s4); max-width: 52ch; font-size: var(--fs-bl); line-height: 1.55; color: var(--ink-2); }
.ask--store { grid-column: 8 / span 5; display: block; margin: 0; }
.ask--store .ask__field { height: 58px; padding-right: 8px; }
.ask--store input::placeholder { color: var(--ink-2); opacity: 1; font-weight: 400; }
.shelftabs, .libtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s8); }
.shelftab { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: var(--r-pill); font: 600 15px/1 var(--f-ui); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); transition: background-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui); }
.shelftab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.shelftab[aria-pressed="true"], .shelftab[aria-selected="true"] { background: var(--ink); color: var(--stone); box-shadow: inset 0 0 0 1.5px var(--ink); }
.shelftab__n { font: 600 12.5px/1 var(--f-ui); opacity: .72; font-variant-numeric: tabular-nums; }
.store__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--s6); align-items: start; }
.filters { grid-column: 1 / span 3; position: sticky; top: 92px; max-height: calc(100svh - 112px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-width: thin; }
.results { grid-column: 4 / span 9; }
/* the filter head and the results bar share one line */
.filters__head, .results__bar { min-height: 56px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.filters__t { font: 700 18px/1.2 var(--f-ui); }
.fgroup { padding: var(--s5) 0; border: 0; }
.fgroup + .fgroup { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.fgroup__l { float: left; width: 100%; padding: 0; margin-bottom: var(--s3); font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.fopt { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 7px 0; font: 500 15px/1.3 var(--f-ui); cursor: pointer; }
.fopt input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.fopt__box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 38%, transparent); transition: background-color var(--t-micro), box-shadow var(--t-micro); }
.fopt__box svg { width: 14px; height: 14px; color: var(--stone); opacity: 0; transform: scale(.5); transition: opacity var(--t-micro), transform var(--t-ui) var(--ease-out); }
.fopt:hover .fopt__box { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fopt input:checked + .fopt__box { background: var(--ink); box-shadow: none; }
.fopt input:checked + .fopt__box svg { opacity: 1; transform: none; }
.fopt input:focus-visible + .fopt__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.fopt__ar { font: 400 16px/1 var(--f-ar); color: var(--ink-2); }
.fopt__n { font: 600 12.5px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fopt.is-zero { color: var(--ink-2); }
.fopt.is-zero .fopt__box { opacity: .45; }
.fgroup > div { clear: both; }
.fgroup__more { margin-top: var(--s3); }
.filters__plus { display: flex; gap: 10px; padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.filters__plus svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 8px; margin-bottom: var(--s7); border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.results__count { font: 500 15px/1 var(--f-ui); color: var(--ink-2); }
.results__count strong { color: var(--ink); font-weight: 700; }
.results__active { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 13px; border-radius: var(--r-pill); background: var(--ink); color: var(--stone); font: 600 13px/1 var(--f-ui); transition: background-color var(--t-micro); }
.achip:hover { background: var(--deep); }
.achip svg { width: 14px; height: 14px; }
.sortby { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font: 600 13px/1 var(--f-ui); color: var(--ink-2); }
.select--light select { height: 40px; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.select--light select:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.select--light svg { color: var(--ink); }

/* ---------- book page ---------- */
.book__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.book__cv { grid-column: 1 / span 5; position: sticky; top: 100px; }
.book__stage { position: relative; display: grid; place-items: center; padding: var(--s8) var(--s7); border-radius: var(--r-lg); background: var(--mist); overflow: hidden; }
.book__stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--sky) 55%, transparent), transparent 70%); }
.book__stage .cover { position: relative; width: min(100%, 340px); box-shadow: 0 2px 2px rgb(0 0 0 / .08), 0 40px 60px -30px rgb(0 41 56 / .6); }
.book__info { grid-column: 7 / span 6; padding-top: var(--s4); }
.book__t { margin-top: var(--s4); }
.book__ar { display: block; font: 700 clamp(52px, 5.4vw, 84px)/1.25 var(--f-ar); }
.book__en { display: block; margin-top: 14px; font: 700 30px/1.15 var(--f-ui); letter-spacing: -.02em; color: var(--ink-2); }
.book__en--main { margin-top: 0; font-size: clamp(44px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); }
.book__a { margin-top: var(--s5); font-size: 18px; color: var(--ink-2); }
.book__a .link { font-weight: 600; }
.book__a [lang="ar"] { margin-left: 8px; font-size: 21px; }
.book__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gutter); margin-top: var(--s6); padding: var(--s5) 0; border-block: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.book__facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.book__facts svg { flex: none; width: 20px; height: 19px; color: var(--blue); }
.buy { margin-top: var(--s6); }
.buy__row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 16px; }
.buy__plus { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: 15px; color: var(--ink-2); }
.buy__plus svg { flex: none; width: 22px; height: 20px; color: var(--blue); }
.buy__more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.btn--sm svg { width: 16px; height: 16px; }
.btn[data-save][aria-pressed="true"] { --fg: var(--red-act); }
.book__line { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.book__q { font: italic 400 26px/1.45 var(--f-book); color: var(--ink); white-space: pre-line; }
.book__q[lang="ar"] { font: 400 32px/1.8 var(--f-ar); font-style: normal; }
.book__line figcaption { margin-top: var(--s3); }

.read__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.read__copy { grid-column: 1 / span 5; }
.read__copy .label { margin-bottom: var(--s4); }
.read__copy .lede { margin-top: var(--s5); }
.read .reader { grid-column: 7 / span 6; }
.reader--scroll { height: min(72svh, 660px); }
.reader--scroll .reader__view { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; z-index: 2; background: transparent; }
.reader--scroll .reader__text { padding: 36px 48px 220px; transform: none !important; }
.reader--scroll .reader__water { top: 0; }
.reader__text.is-verse p { text-indent: 0 !important; }
.reader__text.is-verse p + p { margin-top: 1em; }
.reader__text.is-verse p:first-child::first-letter, .reader__text.is-note p:first-child::first-letter { font-size: inherit; float: none; padding: 0; font-weight: inherit; }
.reader__note { font: 500 15px/1.5 var(--f-ui) !important; color: var(--rmeta); text-indent: 0 !important; }
.reader__quote { margin-top: 1.2em; font-size: 1.35em; text-indent: 0 !important; }

.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.about__book { grid-column: 1 / span 7; }
.about__txt { margin-top: var(--s5); font: 400 27px/1.5 var(--f-book); color: var(--ink); max-width: 32em; }
.about__k { margin-top: var(--s8); margin-bottom: var(--s4); }
.about__list { display: grid; gap: 14px; }
.about__list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.about__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--blue); }
.writer { grid-column: 9 / span 4; display: grid; gap: 10px; justify-items: start; padding: var(--s6); border-radius: var(--r-lg); background: var(--stone-50); box-shadow: var(--e1); }
.writer__n { margin-top: var(--s3); font: 700 26px/1.2 var(--f-ui); letter-spacing: -.02em; }
.writer__n [lang="ar"] { display: block; margin-top: 4px; font: 700 24px/1.4 var(--f-ar); color: var(--ink-2); }
.writer__y { font: 600 14px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.writer__note { font-size: 16px; line-height: 1.55; }
.writer__also { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.writer .btn { margin-top: var(--s4); }
.more__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: var(--s8); }

/* ---------- plus page ---------- */
.plans--page .sec-head .h1 { margin-top: var(--s4); }
.cmp { border-radius: var(--r-lg); background: var(--stone-50); box-shadow: var(--e1); overflow: hidden; }
.cmp__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gutter); padding: 18px 28px; font-size: 16px; line-height: 1.45; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.cmp__row [role="rowheader"] { font-weight: 600; }
.cmp__row--head { border-top: 0; background: var(--ink); color: var(--stone); font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; }
.cmp .yes { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cmp .yes::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 4.5px); mask: radial-gradient(circle, #000 0 4px, transparent 4.5px); }
.payways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.payway { padding: var(--s6); border-radius: var(--r-lg); background: var(--stone-50); box-shadow: var(--e1); }
.payway p { margin-top: var(--s3); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq__grid > .h2 { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.qa { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.qa summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 600 19px/1.35 var(--f-ui); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform var(--t-ui) var(--ease-out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--blue); }
.qa p { padding-bottom: 24px; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ---------- gift page ---------- */
.gift__books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gbk { gap: 12px; }
.gbk__txt { display: grid; gap: 4px; }
.gbk__p { font: 600 12px/1 var(--f-ui); color: color-mix(in srgb, var(--stone) 72%, transparent); }
.gift__tick { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--sky); color: var(--ink); vertical-align: -6px; }
.gift__tick svg { width: 16px; height: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: st; }
.step { padding-top: var(--s5); border-top: 2px solid var(--ink); }
.step__n { display: block; font: 700 52px/1 var(--f-ui); letter-spacing: -.04em; color: var(--blue); }
.step .h3 { margin-top: var(--s5); }
.step p { margin-top: var(--s3); max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- library page ---------- */
.libpage__head .h1 { margin-bottom: var(--s3); }
.libpage__continue { margin-top: var(--s8); }
.libpage__continue .label { margin-bottom: var(--s4); }
.cont { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.cont__item a { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--stone-50); box-shadow: var(--e1); color: var(--ink); text-decoration: none; transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.cont__item a:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.cont__txt { display: grid; gap: 4px; }
.cont__t { font: 700 16px/1.25 var(--f-ui); }
.cont__a, .cont__p { font-size: 13.5px; color: var(--ink-2); }
.cont__bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.cont__bar span { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.libpanel { margin-top: var(--s7); }

/* ---------- home: the store in short ---------- */
.sv__all { margin-top: var(--s5); }
.sv__all svg { width: 18px; height: 18px; }
.shelves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.shelfcard a { position: relative; display: grid; gap: var(--s5); height: 100%; padding: var(--s5) var(--s5) var(--s6); border-radius: var(--r-lg); background: var(--stone-50); box-shadow: var(--e1); color: var(--ink); text-decoration: none; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.shelfcard a:hover, .shelfcard a:focus-visible { transform: translateY(-6px); box-shadow: var(--e2); }
.shelfcard__fan { position: relative; display: block; height: 210px; border-radius: var(--r-md); background: var(--mist); overflow: hidden; }
.shelfcard__cv { position: absolute; bottom: -18px; width: 44%; transition: transform 600ms var(--ease-out); }
.shelfcard__cv:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.shelfcard__cv:nth-child(2) { left: 28%; bottom: -6px; z-index: 2; }
.shelfcard__cv:nth-child(3) { left: 50%; transform: rotate(9deg); }
.shelfcard a:hover .shelfcard__cv:nth-child(1) { transform: rotate(-14deg) translate(-8px, -6px); }
.shelfcard a:hover .shelfcard__cv:nth-child(2) { transform: translateY(-14px); }
.shelfcard a:hover .shelfcard__cv:nth-child(3) { transform: rotate(14deg) translate(8px, -6px); }
.shelfcard__txt { display: grid; gap: 4px; }
.shelfcard__n { font: 700 22px/1.2 var(--f-ui); letter-spacing: -.02em; }
.shelfcard__ar { font: 700 19px/1.3 var(--f-ar); color: var(--ink-2); }
.shelfcard__m { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.shelfcard__go { position: absolute; right: var(--s5); bottom: var(--s6); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 25%, transparent); transition: background-color var(--t-ui), color var(--t-ui); }
.shelfcard__go svg { width: 18px; height: 18px; }
.shelfcard a:hover .shelfcard__go { background: var(--ink); color: var(--stone); }
.sv__cols { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: var(--s7); }
.chip--link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; text-decoration: none; }
.chip__n { font: 600 12px/1 var(--f-ui); opacity: .66; }
.sv__new { margin-top: var(--s9); }
.sv__newhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.bk--more { display: flex; color: var(--ink); text-decoration: none; }
.bk--more__in { display: grid; place-content: center; justify-items: center; gap: 10px; width: 216px; aspect-ratio: 2 / 3; padding: 20px; border-radius: 3px 7px 7px 3px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); font: 600 16px/1.3 var(--f-ui); text-align: center; transition: background-color var(--t-ui), color var(--t-ui); }
.bk--more__in svg { width: 34px; height: 28px; }
.bk--more__n { font-size: 13px; font-weight: 500; opacity: .75; }
.bk--more:hover .bk--more__in { background: var(--ink); color: var(--stone); }

/* ---------- home: Plus and gift, in short ---------- */
.pt__grid, .gt__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.pt__grid > :first-child { grid-column: 1 / span 5; }
.pt__grid .label, .gt__grid .label { margin-bottom: var(--s4); }
.pt__grid .lede, .gt__grid .lede { margin-top: var(--s5); }
.pt__more { display: inline-block; margin-top: var(--s5); }
.pt__cards { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.mini { display: flex; flex-direction: column; align-items: flex-start; padding: var(--s6); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 22%, transparent); }
.mini--plus { background: var(--sky); color: var(--ink); box-shadow: var(--e3); }
.mini__ico { width: 36px; height: 32px; color: var(--sky); }
.mini--plus .mini__ico { color: var(--ink); }
.mini .h3 { margin-top: var(--s4); }
.mini__price { margin-top: var(--s4); font: 700 30px/1 var(--f-ui); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mini__from, .mini__per { font: 500 14px/1 var(--f-ui); opacity: .8; letter-spacing: 0; }
.mini__txt { margin: var(--s3) 0 var(--s6); font-size: 15px; line-height: 1.5; }
.mini .btn { margin-top: auto; }
.gt__grid > :first-child { grid-column: 1 / span 6; }
.gt__go { margin-top: var(--s6); }
.gt__stage { grid-column: 8 / span 5; display: grid; place-items: center; min-height: 520px; }
.titlepage--mini { width: min(calc(100% - 24px), 380px); transform: rotate(-3deg); }
.titlepage--mini .titlepage__ded { font-size: 30px; }
.titlepage--mini .titlepage__book.is-long { font-size: 27px; }
/* the shore sits on a light card even inside dark sections */
.shore .btn--ghost, [data-dark] .shore .btn--ghost { --fg: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }
.reader[data-theme="night"] .shore .btn--ghost { --fg: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--stone) 40%, transparent); }

/* ---------- round 2 ---------- */
.mega__col { padding-right: var(--s6); }
.mega__all { margin-top: 6px; color: var(--blue) !important; font-weight: 600 !important; }
.mega__all svg { width: 16px; height: 16px; }
.bk__owned { text-decoration: none; }
.bk__owned:hover { text-decoration: underline; text-underline-offset: 3px; }
.fopt--one .fopt__box { border-radius: 50%; }
.fopt--one input:checked + .fopt__box svg { opacity: 0; }
.fopt--one input:checked + .fopt__box { box-shadow: inset 0 0 0 6px var(--ink); background: var(--stone-50); }
.shelfcard__txt { padding-right: 56px; align-content: start; }
.grid-books--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
.buy__pay { margin-top: var(--s4); font-size: 14px; color: var(--ink-2); }
.buy__owned { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: 15px; color: var(--ink-2); }
.buy__owned strong { color: var(--ink); }
.buy__owned svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--sky); }
.btn--ghost.btn--lg svg { width: 18px; height: 18px; }
.soon__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.soon__grid > :first-child { grid-column: 1 / span 5; }
.soon__grid .label { margin-bottom: var(--s4); }
.soon__grid .lede { margin-top: var(--s5); }
.soon__btn { margin-top: var(--s6); }
.soon__line { grid-column: 7 / span 6; display: grid; gap: var(--s4); padding: var(--s7); border-radius: var(--r-lg); background: var(--deep-water); }
.soon__line .book__q { color: var(--stone); }
.plan:not(.plan--plus) .plan__note { color: color-mix(in srgb, var(--stone) 78%, transparent); }
.cmp__row--head { background: transparent; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.cmp__row--head [role="columnheader"]:nth-child(3) { color: var(--blue); }
.cmp__row [role="cell"]:nth-child(3) { font-weight: 600; }
.payways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.payway { display: grid; grid-template-columns: 200px 1fr; gap: var(--gutter); align-items: baseline; padding: var(--s6) 0; border-radius: 0; background: none; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 16%, transparent); }
.payway__n { font: 700 30px/1.1 var(--f-ui); letter-spacing: -.03em; }
.payway p { margin-top: 0; }
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone--dark { background: color-mix(in srgb, var(--stone) 7%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 30%, transparent); }
.phone--dark:focus-within { box-shadow: inset 0 0 0 2px var(--sky); }
.phone--dark select, .phone--dark input { color: var(--stone); }
.phone--dark select { border-right-color: color-mix(in srgb, var(--sky) 25%, transparent); }
.phone--dark select option { color: var(--ink); }
.phone--dark input::placeholder { color: color-mix(in srgb, var(--stone) 52%, transparent); }
.phone--dark input[aria-invalid="true"] { color: var(--stone); }
.phone:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--red); }
.gift__any { display: flex; margin-top: 10px; }
.select--onDeep select { width: 100%; height: 46px; color: var(--stone); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky) 30%, transparent); border-radius: var(--r-md); }
.select--onDeep svg { color: var(--sky); }
.chip__d { margin-left: 6px; font-size: 12px; opacity: .7; }
.gift__date { display: grid; gap: 10px; max-width: 240px; margin-top: 14px; }
.input--date { color-scheme: dark; }
.field__hint { margin-top: 10px; font-size: 13px; color: color-mix(in srgb, var(--stone) 70%, transparent); }
.titlepage__from { margin-top: 10px; font: italic 400 20px/1.3 var(--f-book); color: var(--ink-2); }
.titlepage__from.is-ar { font: 400 26px/1.4 var(--f-hand); font-style: normal; }
.steps { position: relative; }
.step { border-top: 0; padding-top: 0; }
.step__i { width: 44px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ink); color: var(--sky); box-sizing: content-box; }
.steps::before { content: ''; position: absolute; left: 32px; right: calc(33.33% - 32px); top: 32px; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 35%, transparent) 0 8px, transparent 8px 14px); z-index: -1; }
.libpage__sign { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: 15px; color: var(--ink-2); }
.libpage__sign svg { flex: none; width: 20px; height: 20px; color: var(--blue); }

.mini--plus .mini__from, .mini--plus .mini__per { opacity: 1; }

/* ===================================================================== */
/* ---------- responsive: tablet (≤ 1100 / ≤ 900) and phone (≤ 600) ---------- */
/* the drawer and the scroll lock exist at every size but only show when used */
.hdr__burger { display: none; }
.drawer { position: fixed; inset: 72px 0 0 0; z-index: 79; overflow-y: auto; overscroll-behavior: contain; background: var(--stone); color: var(--ink); }
.drawer__in { display: grid; gap: var(--s6); max-width: 720px; margin-inline: auto; padding: var(--s6) var(--pad-x) var(--s8); }
.drawer__main { display: grid; }
.drawer__main a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font: 700 28px/1.15 var(--f-ui); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.drawer__main a[aria-current="page"] { color: var(--blue); }
.drawer__n { font: 600 14px/1 var(--f-ui); color: var(--ink-2); letter-spacing: 0; }
.drawer__h { margin-bottom: -12px; font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.drawer__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font: 500 18px/1.3 var(--f-ui); color: var(--ink); text-decoration: none; }
.drawer__list [lang="ar"] { font: 400 19px/1 var(--f-ar); color: var(--ink-2); }
.drawer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: var(--s5); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.drawer__lang { font: 700 20px/1 var(--f-ar); color: var(--ink); text-decoration: none; padding: 10px 14px; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.hdr.has-drawer { background: var(--stone); color: var(--ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.hdr.has-drawer .btn--ink { --bg: var(--ink); --fg: var(--stone); }
.results__fbtn, .filters__x, .filters__done { display: none; }
.buybar { display: none; }

@media (max-width: 1100px) {
  .hdr__in { gap: 24px; }
  .hdr__lib-txt { display: none; }
  .hs__title { grid-column: 1 / -1; }
  .hs__lede { grid-column: 1 / span 7; padding-bottom: 0; margin-top: var(--s4); }
  .ask__field { grid-column: 1 / -1; }
  .try { grid-column: 1 / -1; margin-top: var(--s4); }
  .today__line { grid-column: 1 / span 7; }
  .today__book { grid-column: 8 / span 5; }
  .taste__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au a { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 110px; }
  .au__y { display: none; }
  .pt__grid > :first-child, .gt__grid > :first-child { grid-column: 1 / -1; }
  .pt__cards { grid-column: 1 / -1; margin-top: var(--s7); }
  .gt__stage { grid-column: 1 / -1; min-height: 0; margin-top: var(--s7); }
  .grid-books--store { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-books, .grid-books--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plans__grid { row-gap: var(--gutter); }
  .plan { grid-column: span 6; }
  .plans__why { grid-column: 1 / -1; padding: var(--s5) 0 0; }
  .plans__why ul { grid-template-columns: 1fr 1fr; }
  .payway { grid-template-columns: 1fr; gap: var(--s3); }
  .mega__col, .mega__feat { grid-column: span 6; }
  .mega__feat { margin-top: var(--s5); }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .hdr__in { height: 72px; }
  .hdr.is-solid .hdr__in { height: 64px; }
  .hdr__nav, .hdr__lang, .hdr__sign { display: none; }
  .hdr__tools { margin-left: auto; }
  .hdr__burger { display: inline-grid; }
  .hdr__logo svg { width: 124px; height: 31px; }
  main > .band:first-child:not(.hs) { padding-top: calc(72px + var(--pad-y) * .6); }
  .sec-head > :first-child, .sec-head > :last-child { grid-column: 1 / -1; }
  .sec-head > :last-child { margin-top: var(--s5); }
  .h1 { font-size: clamp(36px, 8vw, 60px); }

  /* hero: the shelf scrolls sideways at natural spine widths */
  .hs { height: auto; min-height: 100svh; padding-top: calc(72px + var(--pad-y) * .6); }
  .hs__title { font-size: clamp(34px, 8.4vw, 64px); }
  .hs__title .ln { white-space: normal; }
  .hs__lede { grid-column: 1 / -1; font-size: 16px; }
  .try { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); }
  .try::-webkit-scrollbar { display: none; }
  .try .chip { flex: none; }
  .ask__kbd, .ask__go { display: none; }
  .ask__field { padding-right: 8px; height: 58px; }
  .ask__ph { right: 56px; font-size: 16px; }
  .shelf { max-height: none; flex: none; }
  .shelf__status { flex-direction: column; gap: 8px; margin-bottom: var(--s5); }
  .shelf__row { height: 300px; flex: none; overflow-x: auto; overflow-y: visible; scrollbar-width: none; padding: 48px var(--pad-x) 0; margin-inline: calc(var(--pad-x) * -1); background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 92%, var(--stone)), var(--ink)) left bottom / 100% 12px no-repeat local; padding-bottom: 12px; }
  .shelf__row::-webkit-scrollbar { display: none; }
  .shelf__row::after { display: none; }
  .sp { height: calc(var(--h) * 230px); }
  .shelf__card { display: none; }
  .hs__cue { display: none; }

  .today__grid { display: flex; flex-direction: column; gap: var(--s7); }
  .today[data-daily] { --pool: 96px; }
  .today__stage { min-height: 440px; }
  .today__ar { text-align: right; }
  .authors .au a { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 6px; }
  .au__ar { grid-column: 2; text-align: left; font-size: 24px; }
  .au__c { grid-column: 3; grid-row: 1 / span 2; }
  .au__note { display: none !important; }
  .foot__brand, .foot__nav { grid-column: 1 / -1; }
  .foot__nav { margin-top: var(--s7); }

  /* store: the filters become a sheet */
  .store__title, .ask--store { grid-column: 1 / -1; }
  .ask--store { margin-top: var(--s5); }
  .shelftabs, .libtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); }
  .shelftabs::-webkit-scrollbar, .libtabs::-webkit-scrollbar { display: none; }
  .shelftab { flex: none; }
  .results { grid-column: 1 / -1; }
  .results__fbtn { display: inline-flex; }
  .results__fn { font-weight: 700; }
  .filters { position: fixed; z-index: 90; inset: 0 auto 0 0; top: 0; width: min(420px, 92vw); max-height: none; padding: var(--s5) var(--pad-x) var(--s6); background: var(--stone); box-shadow: var(--e3); transform: translateX(-104%); transition: transform 420ms var(--ease-out); visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__x { display: inline-grid; }
  .filters__done { display: block; position: sticky; bottom: calc(var(--s5) * -1); margin: var(--s4) calc(var(--pad-x) * -1) 0; padding: var(--s4) var(--pad-x); background: var(--stone); box-shadow: 0 -1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
  .filters__done .btn { width: 100%; }
  .results__bar { min-height: 0; }
  .sortby { margin-left: 0; }

  /* book */
  .book__cv { grid-column: 1 / -1; position: static; }
  .book__stage { padding: var(--s7) var(--s5); }
  .book__stage .cover { width: min(62%, 300px); }
  .book__info { grid-column: 1 / -1; padding-top: var(--s6); }
  .read__copy, .read .reader { grid-column: 1 / -1; }
  .read .reader { margin-top: var(--s7); }
  .reader--scroll { height: min(78svh, 620px); }
  .about__book, .writer { grid-column: 1 / -1; }
  .writer { margin-top: var(--s7); }
  .soon__grid > :first-child, .soon__line { grid-column: 1 / -1; }
  .soon__line { margin-top: var(--s6); }
  .more__head { flex-direction: column; align-items: flex-start; }
  .grid-books, .grid-books--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* plus, gift, library */
  .plans__ctrl { justify-content: flex-start; }
  .faq__grid > .h2, .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: var(--s6); }
  .gift__copy, .gift__stage { grid-column: 1 / -1; }
  .gift__stage { min-height: 0; margin-top: var(--s7); }
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .steps::before { display: none; }
  .cont { grid-template-columns: 1fr; }
  .mega { display: none; }
}

@media (max-width: 600px) {
  .hdr__lib { padding: 0 10px; }
  .grid-books, .grid-books--5, .grid-books--store { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: var(--s6); }
  .bk__acts .icon-btn { width: 36px; height: 36px; }
  .bk__plus { display: none; }
  .bk__t { font-size: 15px; }
  .taste__grid { grid-template-columns: 1fr; }
  .line { min-height: 0; }
  .shelves { grid-template-columns: 1fr; }
  .shelfcard__fan { height: 180px; }
  .today__ar { font-size: 32px; }
  .today__stage { min-height: 400px; }
  .today__cover { width: 200px; }
  .today__cta .btn { width: 100%; }
  .today[data-daily] .today__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .today[data-daily] .today__info { margin-top: 0; }
  .today[data-daily] .today__stage { min-height: 340px; }
  .today[data-daily] .today__cover { width: 180px; }
  .authors__list--compact .au a { grid-template-columns: 28px minmax(0, 1fr); }
  .authors__list--compact .au__names { flex-direction: column; row-gap: 2px; }
  .authors__list--compact .au__ar { margin-left: 0; text-align: left; }
  .authors__list--compact .au__c { grid-column: 2; justify-content: flex-start; }
  .au__bk { max-width: none; text-align: left; }
  /* the store link covers what's new; the phone page stays shorter */
  html:is([lang="en"], [lang="ar"]) .sv__new { display: none; }
  /* touch targets: standalone text links and the idea chips reach 44 px */
  html:is([lang="en"], [lang="ar"]) .today__more a, html:is([lang="en"], [lang="ar"]) .pr__cta .link, html:is([lang="en"], [lang="ar"]) .pt__more { display: inline-flex; align-items: center; min-height: 44px; }
  html:is([lang="en"], [lang="ar"]) .foot__nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  html:is([lang="en"], [lang="ar"]) .try .chip { height: 44px; }
  .today__en { font-size: 25px; }
  .today__en.is-long { font-size: 22px; }
  .pt__cards { grid-template-columns: 1fr; }
  .plan { grid-column: 1 / -1; }
  .plans__why ul { grid-template-columns: 1fr; }
  .cmp__row { grid-template-columns: 1fr 1fr; padding: 14px 18px; }
  .cmp__row [role="rowheader"], .cmp__row [role="columnheader"]:first-child { grid-column: 1 / -1; }
  .cmp__row--head [role="columnheader"]:first-child { display: none; }
  .payways { grid-template-columns: 1fr; }
  .gift__books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field__pair { grid-template-columns: 1fr; }
  .titlepage { padding: 40px 28px 32px; }
  .titlepage__ded { font-size: 22px; }
  .titlepage__ded.is-ar { font-size: 28px; }
  .book__facts { grid-template-columns: 1fr; }
  .buy__row .btn { flex: 1 1 100%; }
  .about__txt { font-size: 22px; }
  .reader--scroll .reader__text { padding: 28px 24px 200px; }
  .reader__bar { flex-wrap: wrap; padding: 10px 14px 10px 18px; }
  .shore { left: 14px; right: 14px; bottom: 14px; padding: 20px; }
  .foot__nav { grid-template-columns: 1fr 1fr; row-gap: var(--s6); }
  .foot__row { flex-direction: column; }
  .foot__base { flex-direction: column; gap: 8px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .sheet { width: 100vw; padding: 0; }
  .sheet__in { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: 40px; height: calc(100% - 40px); padding: 28px 22px 22px; }
  .paygrid { grid-template-columns: 1fr; }
  .otp input { width: 56px; height: 62px; }
  .noresult { padding: var(--s8) 0; }
  /* the buy bar */
  .buybar { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--r-md); background: var(--stone-50); box-shadow: var(--e3), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); transform: translateY(140%); transition: transform 420ms var(--ease-out); }
  .buybar.is-on { transform: none; }
  .buybar__t { display: grid; gap: 2px; min-width: 0; }
  .buybar__n { font: 700 14px/1.2 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__p { font-size: 12.5px; color: var(--ink-2); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .today[data-daily] .today__grid { display: grid; gap: 0 var(--gutter); }
  .today[data-daily] .today__stage { min-height: 400px; }
}
@media (max-width: 600px) {
  /* the headline flows as one balanced sentence on phones */
  .hs__title { text-wrap: balance; }
  .hs__title .ln, .hs__title .ln > span { display: inline; }
}

/* ==========================================================================
   Arabic pages (home/ar): Readex Pro for the interface, Amiri stays the book voice,
   no tracking on Arabic, taller lines, and the layout mirrored right to left.
   ========================================================================== */
html[lang="ar"] { --f-ui: 'Readex Pro', 'Montserrat', system-ui, sans-serif; font-family: var(--f-ui); }
html[lang="ar"] body { font-family: var(--f-ui); }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
/* Latin interface text takes Montserrat; the book voice (reader flow, excerpts, quotes, title pages) keeps var(--f-book) */
[dir="rtl"] [lang="en"] { --f-ui: 'Montserrat', system-ui, sans-serif; }
[dir="rtl"] [lang="en"] [lang="ar"] { --f-ui: 'Readex Pro', 'Montserrat', system-ui, sans-serif; }
[dir="rtl"] [lang="en"]:where(:not(
  :is(.rd__flow, .rd__cardt cite, .rdn-gl__t, .rdn-dlg__q, .rdn-q, .rdn-hitx, .reader__text, .today__en, .today__gloss, .line__q,
      .titlepage, .book__q, .about__txt, .gsent__thanks, .gc__quote, .open3__t, .open3__ded, .plate__n, .libinvite__q),
  :is(.rd__flow, .rd__cardt cite, .rdn-gl__t, .rdn-dlg__q, .rdn-q, .rdn-hitx, .reader__text, .today__en, .today__gloss, .line__q,
      .titlepage, .book__q, .about__txt, .gsent__thanks, .gc__quote, .open3__t, .open3__ded, .plate__n, .libinvite__q) *
)) { font-family: 'Montserrat', system-ui, sans-serif; }
[dir="rtl"] .rd[data-font="sans"] .rd__flow[lang="en"] { --rd-face: var(--f-ui); }
[dir="rtl"] .label, [dir="rtl"] .eyebrow, [dir="rtl"] .field__l, [dir="rtl"] .mega__h, [dir="rtl"] .mega__k,
[dir="rtl"] .foot__h, [dir="rtl"] .sheet__k, [dir="rtl"] .shore__k, [dir="rtl"] .hs__cue a, [dir="rtl"] .titlepage__when { font-size: calc(var(--fs-label) + 2px); line-height: 1.5; }
[dir="rtl"] .hs__title { line-height: 1.3; margin-left: 0; font-weight: 600; }
[dir="rtl"] .h1, [dir="rtl"] .h2 { line-height: 1.32; font-weight: 600; }
[dir="rtl"] .h3, [dir="rtl"] .shore__t, [dir="rtl"] .sheet__name, [dir="rtl"] .au__en { line-height: 1.45; }
[dir="rtl"] .ln { padding-block: .04em; }
[dir="rtl"] .lede, [dir="rtl"] p { line-height: 1.75; }
[dir="rtl"] .hs__title em { font-style: normal; color: var(--blue); }
[dir="rtl"] .label__ar { font-size: 24px; }

/* direction */
/* Latin lines (dir="ltr") inside an Arabic layout still sit on the right edge */
[dir="rtl"] :is(.book__en, .shelfcard__ar)[dir="ltr"] { text-align: right; }
[dir="rtl"] .ref[dir="ltr"] { justify-content: flex-end; }
[dir="rtl"] .acc-ref .ref[dir="ltr"] { justify-content: space-between; }
/* code boxes keep the digits in LTR order, but the row sits on the right like its label */
[dir="rtl"] .otp[dir="ltr"] { justify-content: flex-end; }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .select svg { right: auto; left: 16px; }
[dir="rtl"] .select select { padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .hdr__nav { margin-right: 0; margin-left: auto; }
[dir="rtl"] .hdr__link::after, [dir="rtl"] .hdr__navbtn::after { transform-origin: right; }
[dir="rtl"] .hdr__navbtn::after { right: 14px; left: 34px; }
[dir="rtl"] .hdr__badge { right: auto; left: -11px; }
[dir="rtl"] .ask__field { padding: 0 56px 0 7px; }
[dir="rtl"] .ask__ico { left: auto; right: 22px; }
[dir="rtl"] .ask__ph { left: 200px; right: 56px; text-align: right; }
[dir="rtl"] .ask__ph::after { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .ask__kbd { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .ask__clear { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .ask--store .ask__field { padding-right: 56px; padding-left: 8px; }
[dir="rtl"] .sp.lean { transform-origin: 0 100%; transform: translateY(var(--y, 0)) rotate(7deg); margin-left: 0; margin-right: var(--lean-x, 24px); }
[dir="rtl"] .shelf__card { left: auto; }
[dir="rtl"] .bk__cv::after { right: auto; left: -6px; border-radius: 3px 0 0 3px; transform-origin: right; }
[dir="rtl"] .bk:hover .bk__cv, [dir="rtl"] .bk:focus-within .bk__cv { transform: translateY(-8px) rotate(1.2deg); }
[dir="rtl"] .bk__plus { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .bk__acts { margin-right: 0; margin-left: -8px; }
[dir="rtl"] .line { text-align: right; }
[dir="rtl"] .taste__result-head .link--btn { margin-left: 0; margin-right: auto; }
[dir="rtl"] .rail__progress span, [dir="rtl"] .sample__meter span, [dir="rtl"] .cont__bar span { transform-origin: right; }
[dir="rtl"] .au a::after { transform-origin: right; }
[dir="rtl"] .au a:hover .au__en { transform: translateX(-10px); }
[dir="rtl"] .au a:hover .au__c svg { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .au__ar { text-align: left; }
[dir="rtl"] .sample__progress span { text-align: left; }
[dir="rtl"] .reader__bar { padding: 12px 28px 12px 16px; }
[dir="rtl"] .pay__k:last-child { margin-left: 0; margin-right: auto; }
[dir="rtl"] .gbk { padding: 8px 8px 8px 14px; }
[dir="rtl"] .toast { left: auto; right: 24px; padding: 12px 18px 12px 10px; }
[dir="rtl"] .sheet__x { right: auto; left: 14px; }
[dir="rtl"] .sheet__item { margin-right: 0; margin-left: 36px; }
[dir="rtl"] .paygrid button { text-align: right; }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .h1__ar { margin-left: 0; margin-right: .25em; }
[dir="rtl"] .results__active { margin-right: 0; margin-left: auto; }
[dir="rtl"] .sortby { margin-left: 0; margin-right: auto; }
[dir="rtl"] .book__a [lang] { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .gift__tick { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .shelfcard__go { right: auto; left: var(--s5); }
[dir="rtl"] .shelfcard__txt { padding-right: 0; padding-left: 56px; }
[dir="rtl"] .mega__col { padding-right: 0; padding-left: var(--s6); }
[dir="rtl"] .chip__d { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .filters { padding-right: 0; padding-left: 8px; }
[dir="rtl"] .titlepage--mini { transform: rotate(3deg); }
[dir="rtl"] .titlepage__for, [dir="rtl"] .titlepage__when { font-family: var(--f-ui); }
[dir="rtl"] .titlepage__book[lang="ar"] { font: 700 38px/1.4 var(--f-ar); }
/* arrows point the way you read */
[dir="rtl"] svg:has(> use[href="#i-arrow"]), [dir="rtl"] svg:has(> use[href="#i-arrow-l"]) { transform: scaleX(-1); }
[dir="rtl"] .hs__cue a svg:has(> use) { transform: rotate(90deg); }
[dir="rtl"] .today__turn:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .reader__text p:first-child::first-letter { float: none; font-size: inherit; padding: 0; margin: 0; }

@media (max-width: 1100px) {
  [dir="rtl"] .hdr__tools { margin-left: 0; margin-right: auto; }
}
@media (max-width: 900px) {
  [dir="rtl"] .pt__cards { grid-template-columns: 1fr; }
  [dir="rtl"] .ask__field { padding-left: 8px; }
  [dir="rtl"] .ask__ph { left: 56px; right: 56px; }
  [dir="rtl"] .au__ar { text-align: right; }
  [dir="rtl"] .filters { inset: 0 0 0 auto; transform: translateX(104%); padding: var(--s5) var(--pad-x) var(--s6); }
  [dir="rtl"] .filters.is-open { transform: none; }
  [dir="rtl"] .sortby { margin-right: 0; }
}
@media (max-width: 600px) {
  [dir="rtl"] .toast { left: 12px; right: 12px; }
  [dir="rtl"] .buybar { padding: 10px 18px 10px 10px; }
}
[dir="rtl"] .gt__stage { overflow-x: clip; }

/* ---------- English pass (batch A). First scoped to English; since the Arabic pass (29 Oct) these apply to both languages,
   through :root:is([lang="en"], [lang="ar"]) so the specificity is unchanged. Still English only: the "is-painted" unhide
   (the scripts mark only English pages as painted) and the no-break rule for Arabic names (on Arabic pages they must wrap). ---------- */
/* book page: the flat cover holds the stage until the 3D book is drawn, then the two cross-fade */
:root:is([lang="en"], [lang="ar"]) .book__stage.is-3d > .cover { visibility: visible; transition: opacity 600ms var(--ease-out), visibility 0s; }
:root:is([lang="en"], [lang="ar"]) .book__stage.is-live > .cover { opacity: 0 !important; visibility: hidden; transition: opacity 600ms var(--ease-out), visibility 0s 600ms; }
/* a short sample sits on a page its own size; under it, a plain note on what the demo leaves out */
:root:is([lang="en"], [lang="ar"]) .reader--scroll.is-short { height: auto; }
:root:is([lang="en"], [lang="ar"]) .read__demo { grid-column: 7 / span 6; margin-top: var(--s4); font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--stone) 80%, transparent); }
/* no sample yet: the edition's title page, as a proof on the table */
:root:is([lang="en"], [lang="ar"]) .soon__line--proof { padding: var(--s5) 0; background: none; place-items: center; }
:root:is([lang="en"], [lang="ar"]) .titlepage--proof { width: min(100%, 400px); padding: 52px 40px 40px; background: var(--stone-50); }
:root:is([lang="en"], [lang="ar"]) .titlepage--proof .titlepage__ded { font-size: 22px; min-height: 0; white-space: pre-line; }
:root:is([lang="en"], [lang="ar"]) .titlepage--proof .titlepage__ded.is-ar { font: 400 25px/1.75 var(--f-ar); }
:root:is([lang="en"], [lang="ar"]) .titlepage--proof .titlepage__for { font-size: 17px; }
/* gift: what the demo didn't do, under "Sent" */
:root:is([lang="en"], [lang="ar"]) .gift__demo { display: block; margin-top: 4px; font: 400 14px/1.5 var(--f-ui); color: color-mix(in srgb, var(--stone) 80%, transparent); }
/* owned cards: the bookmark is for books you don't have yet, and "Yours · read now" stays on one line */
:root:is([lang="en"], [lang="ar"]) body:not([data-page="home"]) .bk.is-owned .bk__acts { display: none; }
:root:is([lang="en"], [lang="ar"]) body:not([data-page="home"]) .bk__owned { white-space: nowrap; }
/* headings wrap in balanced lines, never leaving one word alone */
:root:is([lang="en"], [lang="ar"]) .h1, :root:is([lang="en"], [lang="ar"]) .h1 .ln > span, :root:is([lang="en"], [lang="ar"]) body:not([data-page="home"]) .h2 .ln > span { text-wrap: balance; }
/* library: printed copies on their way */
:root:is([lang="en"], [lang="ar"]) .libpage__way { margin-top: var(--s8); max-width: 760px; }
:root:is([lang="en"], [lang="ar"]) .libpage__way .label { margin-bottom: var(--s4); }
:root:is([lang="en"], [lang="ar"]) .way { display: grid; gap: 12px; }
:root:is([lang="en"], [lang="ar"]) .way__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--stone-50); box-shadow: var(--e1); }
:root:is([lang="en"], [lang="ar"]) .way__cvs { display: flex; }
:root:is([lang="en"], [lang="ar"]) .way__cv { display: block; width: 44px; border-radius: 3px; overflow: hidden; box-shadow: var(--e1); }
:root:is([lang="en"], [lang="ar"]) .way__cv + .way__cv { margin-inline-start: -16px; }
:root:is([lang="en"], [lang="ar"]) .way__txt { display: grid; gap: 4px; }
:root:is([lang="en"], [lang="ar"]) .way__t { font: 700 16px/1.25 var(--f-ui); }
:root:is([lang="en"], [lang="ar"]) .way__k { font-weight: 500; color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .way__s { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .way__st { font-weight: 600; color: var(--ink); }
:root:is([lang="en"], [lang="ar"]) .way__promise { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: 14px; color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .way__promise svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
@media (min-width: 901px) {
  /* gift: the title page stays in view while you write */
  :root:is([lang="en"], [lang="ar"]) .gift__stage { align-self: start; position: sticky; top: 104px; min-height: 0; padding-block: 12px; }
  /* short screens (1280 × 720): the page gets smaller so all of it fits in the first screen */
  :root:is([lang="en"], [lang="ar"]) .gift__stage .titlepage { width: min(100%, 440px, calc((100svh - 260px) * .75)); }
  :root:is([lang="en"], [lang="ar"]) .gift__stage .titlepage { padding: min(56px, calc((100svh - 260px) * .08)) min(48px, calc((100svh - 260px) * .07)) min(44px, calc((100svh - 260px) * .065)); }
  :root:is([lang="en"], [lang="ar"]) .gift__stage .titlepage__book { font-size: min(34px, calc((100svh - 260px) * .058)); }
  :root:is([lang="en"], [lang="ar"]) .gift__stage .titlepage__ded { font-size: min(26px, calc((100svh - 260px) * .044)); }
  :root:is([lang="en"], [lang="ar"]) .gift__stage .titlepage__ded.is-ar { font-size: min(34px, calc((100svh - 260px) * .058)); }
}
@media (max-width: 900px) {
  :root:is([lang="en"], [lang="ar"]) .read__demo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root:is([lang="en"], [lang="ar"]) .way__item { grid-template-columns: auto minmax(0, 1fr); }
  :root:is([lang="en"], [lang="ar"]) .way__go { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  :root:is([lang="en"], [lang="ar"]) .book__stage.is-live > .cover { transition-duration: 200ms, 0s; transition-delay: 0s, 200ms; }
}

/* ---------- English pass, round 2 (batch A) ---------- */
/* no layout shift: store, book and library pages show once their script has filled them in (2.5 s at most, in case it never runs) */
@keyframes mk-unhide { to { visibility: visible; } }
:root[lang="en"] body:is([data-page="store"], [data-page="book"], [data-page="library"]) main { min-height: 100svh; }
:root[lang="en"].js:not(.is-painted) body:is([data-page="store"], [data-page="book"], [data-page="library"]) main { visibility: hidden; animation: mk-unhide 0s 2.5s forwards; }
/* book page: "Readers of this book opened next" sits in the deep, so the cards read on dark */
:root:is([lang="en"], [lang="ar"]) .more[data-dark] :is(.bk__a, .bk__min, .bk__plus) { color: color-mix(in srgb, var(--stone) 80%, transparent); }
:root:is([lang="en"], [lang="ar"]) .more[data-dark] .bk__row { border-top-color: color-mix(in srgb, var(--stone) 18%, transparent); }
:root:is([lang="en"], [lang="ar"]) .more[data-dark] .bk__owned { color: var(--stone); }
:root:is([lang="en"], [lang="ar"]) .more[data-dark] .bk__owned svg { color: var(--sky); }
:root:is([lang="en"], [lang="ar"]) .rv__concept { margin-bottom: 6px; }
/* the reader's meter and the library's progress use the water line (as on orders); the percentage starts at the bar's edge */
:root:is([lang="en"], [lang="ar"]) .sample__meter--wl { height: 8px; overflow: visible; background: none; border-radius: 0; }
:root:is([lang="en"], [lang="ar"]) .sample__meter--wl .wline__track { color: color-mix(in srgb, var(--stone) 26%, transparent); }
:root:is([lang="en"], [lang="ar"]) .sample__meter--wl .wline__fill { color: var(--sky); animation: none; }
:root:is([lang="en"], [lang="ar"]) .sample__progress span { min-width: 0; text-align: left; }
:root:is([lang="en"], [lang="ar"]) .cont__wl { margin-top: 6px; }
:root:is([lang="en"], [lang="ar"]) .bookway { margin-top: var(--s6); max-width: none; }
/* Arabic names never break in the middle */
:root[lang="en"] :is(.book__a, .writer__n, .bk__t, .titlepage__by) [lang="ar"] { white-space: nowrap; }
/* card footers line up whether they hold a price and a bookmark or "Yours" */
:root:is([lang="en"], [lang="ar"]) body:not([data-page="home"]) .bk__row { min-height: 53px; }
/* plus: stone → mist → blue → ink, going deeper as you scroll */
:root:is([lang="en"], [lang="ar"]) .plans--page .seg--light { background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); }
:root:is([lang="en"], [lang="ar"]) .plans--page .seg--light button { color: var(--ink); }
:root:is([lang="en"], [lang="ar"]) .plans--page .seg--light button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
:root:is([lang="en"], [lang="ar"]) .plans--page .seg--light button[aria-checked="true"] { background: var(--ink); color: var(--stone); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plan:not(.plan--plus) { background: var(--stone-50); box-shadow: var(--e1); color: var(--ink); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plan:not(.plan--plus) :is(.plan__ico, .plan__list svg) { color: var(--blue); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plan:not(.plan--plus) .plan__note { color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plans__why li { color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plans__why strong { color: var(--ink); }
:root:is([lang="en"], [lang="ar"]) .plans--page .plans__why svg { color: var(--blue); }
:root:is([lang="en"], [lang="ar"]) .band--blue .payway { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 32%, transparent); }
:root:is([lang="en"], [lang="ar"]) .band--blue .payway p { color: var(--white); }
:root:is([lang="en"], [lang="ar"]) .faq[data-dark] .faq__list { border-bottom-color: color-mix(in srgb, var(--stone) 20%, transparent); }
:root:is([lang="en"], [lang="ar"]) .faq[data-dark] .qa { border-top-color: color-mix(in srgb, var(--stone) 20%, transparent); }
:root:is([lang="en"], [lang="ar"]) .faq[data-dark] .qa summary:hover { color: var(--sky); }
:root:is([lang="en"], [lang="ar"]) .faq[data-dark] .qa p { color: color-mix(in srgb, var(--stone) 86%, transparent); }
:root:is([lang="en"], [lang="ar"]) .faq__go { grid-column: 6 / span 7; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--s7); }
:root:is([lang="en"], [lang="ar"]) .faq__go-t { flex-basis: 100%; font: 700 24px/1.2 var(--f-ui); letter-spacing: -.015em; }
/* gift: how it reaches them stays in the deep */
:root:is([lang="en"], [lang="ar"]) .howgift[data-dark] { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--stone) 10%, transparent); }
:root:is([lang="en"], [lang="ar"]) .howgift[data-dark] .step p { color: color-mix(in srgb, var(--stone) 86%, transparent); }
:root:is([lang="en"], [lang="ar"]) .howgift[data-dark] .step__i { background: var(--deep-water); color: var(--sky); }
:root:is([lang="en"], [lang="ar"]) .howgift[data-dark] .steps::before { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--stone) 35%, transparent) 0 8px, transparent 8px 14px); }
:root:is([lang="en"], [lang="ar"]) .gift__demo { margin: 0 0 6px; }
:root:is([lang="en"], [lang="ar"]) .gbk { min-width: 0; }
:root:is([lang="en"], [lang="ar"]) .gbk__t { overflow-wrap: anywhere; }
/* gift on phones: the live title page sits under the book picker */
:root:is([lang="en"], [lang="ar"]) .gift__stage--inline { min-height: 0; margin: 4px 0 6px; padding: 0; }
:root:is([lang="en"], [lang="ar"]) .gift__stage--inline .titlepage { width: min(100%, 340px); }
:root:is([lang="en"], [lang="ar"]) .gift__stage--inline .gift__sent { position: static; margin-top: var(--s5); }
/* library: an empty shelf invites today's book */
:root:is([lang="en"], [lang="ar"]) .libinvite { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--s7); align-items: center; max-width: 860px; padding: var(--s7) 0; }
:root:is([lang="en"], [lang="ar"]) .libinvite__cv { display: block; width: 170px; border-radius: 3px; overflow: hidden; box-shadow: var(--e2); }
:root:is([lang="en"], [lang="ar"]) .libinvite__txt { display: grid; justify-items: start; gap: 12px; }
:root:is([lang="en"], [lang="ar"]) .libinvite__txt .label { margin-top: var(--s3); }
:root:is([lang="en"], [lang="ar"]) .libinvite__q { font: italic 400 24px/1.45 var(--f-book); color: var(--ink); }
:root:is([lang="en"], [lang="ar"]) .libinvite__q[lang="ar"] { font: 400 28px/1.8 var(--f-ar); }
:root:is([lang="en"], [lang="ar"]) .libinvite__by { font-size: 14px; color: var(--ink-2); }
:root:is([lang="en"], [lang="ar"]) .libinvite .noresult__acts { justify-content: flex-start; margin-top: var(--s3); }
@media (max-width: 900px) {
  :root:is([lang="en"], [lang="ar"]) .faq__go { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* touch: at least 44 px to hit, the same look */
  :root:is([lang="en"], [lang="ar"]) :is(.swatches button, .size-ctrl__b, .bk__heart, .rv__help) { position: relative; }
  :root:is([lang="en"], [lang="ar"]) :is(.swatches button, .size-ctrl__b, .bk__heart, .rv__help)::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  :root:is([lang="en"], [lang="ar"]) .libinvite { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s5) 0; }
  :root:is([lang="en"], [lang="ar"]) .libinvite__cv { width: 132px; }
  :root:is([lang="en"], [lang="ar"]) .libinvite__q { font-size: 21px; }
}
/* a proof without an epigraph is a shorter page, not an empty one */
:root:is([lang="en"], [lang="ar"]) .titlepage--proof:not(:has(.titlepage__ded)) { aspect-ratio: auto; min-height: 380px; }
/* fieldsets size to their column, not to their widest content (gift books at 320–360) */
:root:is([lang="en"], [lang="ar"]) .gift__form { grid-template-columns: minmax(0, 1fr); }
:root:is([lang="en"], [lang="ar"]) .gift__form fieldset { min-inline-size: 0; min-width: 0; }
:root:is([lang="en"], [lang="ar"]) .gift__form .phone input { width: 0; }
