/* الإنبيق — apothecary of slot mechanics. RTL (ar-JO), hand-written, logical properties. */
:root {
  --night: #1E1024;
  --wood: #2E1A36;
  --wood-2: #3A2244;
  --deep: #160B1B;
  --parch: #F3E9DC;
  --muted: #D9CBDD;
  --potion: #4FE08A;
  --copper: #C8773E;
  --copper-lt: #E39A63;
  --wax: #8E1F3A;
  --display: 'El Messiri', 'Mada', sans-serif;
  --body: 'Mada', 'Segoe UI', system-ui, sans-serif;
  --r: 14px;
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night) radial-gradient(120% 60% at 50% -10%, #2C1336 0%, var(--night) 60%) no-repeat;
  color: var(--parch);
  font: 400 1.19rem/1.85 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--potion); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--potion); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .6em; font-weight: 700; }
h1, h2 { font-family: var(--display); }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.3rem; }
p { margin: 0 0 1em; }
.kicker, .shelf-plaque, .fiche-kicker, .gc-kicker, .toc-h, .promo-eyebrow {
  font: 700 .95rem/1.5 var(--body); color: var(--copper-lt); margin: 0 0 .7rem;
}
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--potion); color: var(--night); padding: .5rem 1rem; z-index: 50; font-weight: 700; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.top { background: rgba(22, 11, 27, .92); border-bottom: 2px solid var(--copper); position: relative; z-index: 20; }
.top-inner { max-width: 1240px; margin: 0 auto; padding: .7rem var(--gut); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--parch); text-decoration: none; font: 700 1.7rem/1.2 var(--display); margin-inline-end: auto; }
.logo-mark { width: 42px; height: 42px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .3rem; }
.menu a { display: block; padding: .45rem .75rem; color: var(--parch); text-decoration: none; font-weight: 500; border-radius: 999px; border: 1px solid transparent; }
.menu a:hover { border-color: var(--copper); }
.menu a[aria-current="page"] { background: var(--wood-2); border-color: var(--copper); color: #fff; }
.menu-btn { display: none; align-items: center; gap: .5rem; background: transparent; color: var(--parch); border: 2px solid var(--copper); border-radius: 999px; padding: .45rem .9rem; font: 700 1rem var(--body); cursor: pointer; min-height: 44px; }
.menu-ico, .menu-ico::before, .menu-ico::after { width: 18px; height: 2px; background: currentColor; display: block; position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-ico::before { top: -6px; } .menu-ico::after { top: 6px; }
@media (max-width: 899px) {
  .js .menu-btn { display: inline-flex; }
  .js .menu { display: none; width: 100%; }
  .js .menu.open { display: block; }
  .js .menu ul { flex-direction: column; padding: .4rem 0 .6rem; }
  .js .menu a { padding: .7rem .9rem; border-radius: 10px; }
}

/* ---------- buttons ---------- */
.cta, .distil {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem;
  background: var(--potion); color: var(--night); font: 700 1.08rem var(--body); text-decoration: none; border: 0; border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(79, 224, 138, .25), 0 10px 30px -10px rgba(79, 224, 138, .7); cursor: pointer;
}
.cta:hover, .distil:hover { background: #7BEBA9; }
.link-copper { color: var(--copper-lt); font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: 1400px; margin: 0 auto; }
.hero-art { position: relative; overflow: hidden; }
.hero-art img { width: 100%; height: clamp(300px, 58vw, 720px); object-fit: cover; object-position: 50% 40%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 16, 36, 0) 45%, var(--night) 100%); }
.vapour { position: absolute; width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 224, 138, .22), rgba(79, 224, 138, 0) 65%); pointer-events: none; z-index: 1; }
.v1 { left: 30%; top: 10%; animation: rise 14s ease-in-out infinite; }
.v2 { right: 4%; top: 30%; animation: rise 18s ease-in-out infinite reverse; }
@keyframes rise { 0%, 100% { transform: translate(0, 10%) scale(.9); opacity: .6; } 50% { transform: translate(4%, -10%) scale(1.1); opacity: 1; } }
.hero-label {
  position: relative; z-index: 2; max-width: 720px; margin: clamp(-220px, -14vw, -90px) var(--gut) 0; padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(46, 26, 54, .96); border: 2px solid var(--copper); border-radius: 6px;
  box-shadow: inset 0 0 0 6px var(--wood), inset 0 0 0 7px rgba(200, 119, 62, .55), 0 30px 60px -20px rgba(0, 0, 0, .8);
}
@media (min-width: 900px) { .hero-label { margin-inline-start: max(var(--gut), calc((100% - 1240px) / 2 + var(--gut))); } }
.lead { font-size: 1.2rem; color: var(--muted); }

/* notice + hanging tags */
.notice-band { max-width: 1240px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0 var(--gut); display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .notice-band { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.notice { background: var(--wood); border-inline-start: 5px solid var(--copper); padding: 1.3rem 1.5rem; border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
.notice p:last-child { margin: 0; }
.notice-h { font-family: var(--body); font-weight: 700; font-size: 1.2rem; color: var(--copper-lt); }
.tags-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tag-hl {
  position: relative; background: var(--parch); color: var(--night); padding: 1.6rem 1rem 1rem; border-radius: 10px 10px 4px 4px;
  clip-path: polygon(14% 0, 86% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
}
.tag-hl:nth-child(2) { transform: rotate(1.2deg); } .tag-hl:nth-child(3) { transform: rotate(-1deg); }
.tag-hl::before { content: ""; position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 2px var(--copper); }
.tag-label { display: block; font-size: .95rem; font-weight: 700; color: #6A3A1B; }
.tag-hl strong { display: block; font-size: 1.35rem; line-height: 1.2; margin: .2rem 0; }
.tag-note { display: block; font-size: 1rem; line-height: 1.6; color: #3D2547; }

/* ---------- shelves ---------- */
.cabinet { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.shelf {
  position: relative; padding: clamp(2rem, 5vw, 3.5rem) var(--gut) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(30, 16, 36, .78), rgba(30, 16, 36, .9)), url(../img/shelf-texture-1600.webp) center / cover, var(--wood);
  border-top: 1px solid rgba(200, 119, 62, .35);
  display: grid; gap: 1.5rem; max-width: 1400px; margin: 0 auto;
}
@media (min-width: 900px) {
  .shelf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; }
  .shelf:nth-child(2) .ledge { order: -1; }
  .fiches { grid-column: 1 / -1; }
}
.shelf-head { background: rgba(46, 26, 54, .95); border: 1px solid rgba(200, 119, 62, .5); border-radius: var(--r); padding: 1.3rem 1.5rem; max-width: 620px; }
.shelf-head p:last-child { margin: 0; }
.ledge {
  position: relative; display: flex; gap: clamp(1rem, 4vw, 3rem); justify-content: center; padding: 1rem 1rem 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.ledge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, #5A3266 0%, #3A1F45 55%, #24122C 100%); border-top: 3px solid var(--copper); box-shadow: 0 14px 24px -8px rgba(0, 0, 0, .8);
}
.bottle {
  position: relative; z-index: 1; scroll-snap-align: center; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: none; border: 0; color: var(--parch); cursor: pointer; padding: .4rem .4rem 30px; font: inherit; border-radius: 12px;
}
.bottle-md { width: clamp(96px, 13vw, 150px); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tint) 45%, transparent)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), filter .3s; }
.bottle:hover .bottle-md, .bottle[aria-expanded="true"] .bottle-md { transform: translateY(-8px); filter: drop-shadow(0 0 26px var(--tint)); }
.bottle-label { font-weight: 700; line-height: 1.5; padding: .25rem .8rem; border-radius: 999px; border: 1.5px solid var(--copper); background: var(--deep); }
.bottle[aria-expanded="true"] .bottle-label { background: var(--potion); color: var(--night); border-color: var(--potion); }
.bottle .bub { animation: bubble 3.5s ease-in infinite; }
.bottle .b2 { animation-delay: 1.4s; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .6; } 100% { transform: translateY(-60px); opacity: 0; } }
.fiches { display: grid; gap: 1rem; }
@media (min-width: 900px) { .fiches { grid-template-columns: 1fr 1fr; } .js .fiches { grid-template-columns: 1fr; } }
.fiche {
  display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; align-items: start; background: var(--wood); border-radius: var(--r);
  border-top: 4px solid var(--tint); padding: 1.4rem 1.5rem; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9);
}
.js .fiche:not([hidden]) { animation: slideUp .45s ease-out; }
.fiche[hidden] { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bottle-sm { width: 70px; }
.fiche h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; margin-bottom: .4rem; }
.fiche-facts { display: grid; gap: .8rem; margin: 0 0 1rem; }
@media (min-width: 700px) { .fiche-facts { grid-template-columns: 1fr 1fr; } }
.fiche-facts div { background: var(--night); border-radius: 10px; padding: .7rem .9rem; }
.fiche-facts dt { font-size: .92rem; font-weight: 700; color: var(--copper-lt); }
.fiche-facts dd { margin: .2rem 0 0; font-size: 1.05rem; line-height: 1.65; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.pour { background: transparent; color: var(--potion); border: 2px solid var(--potion); border-radius: 999px; padding: .5rem 1.1rem; font: 700 1rem var(--body); cursor: pointer; min-height: 44px; }
.pour:hover { background: rgba(79, 224, 138, .12); }
@media (max-width: 520px) { .fiche { grid-template-columns: 1fr; } .fiche-bottle { display: none; } }

/* ---------- workbench / mixer ---------- */
.bench {
  max-width: 1400px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut);
  background: linear-gradient(180deg, #2A1532, #1A0D20); border-top: 3px solid var(--copper); border-bottom: 3px solid var(--copper);
  display: grid; gap: 2rem;
}
@media (min-width: 960px) { .bench { grid-template-columns: 1fr 1fr; align-items: center; } .all-mixes { grid-column: 1 / -1; } }
.bench-art { position: relative; }
.bench-art > img { border-radius: var(--r); border: 2px solid rgba(200, 119, 62, .6); width: 100%; }
.result-flask { position: absolute; inset-inline-end: -6px; bottom: -24px; width: clamp(90px, 18vw, 150px); filter: drop-shadow(0 0 22px rgba(79, 224, 138, .55)); }
.bench-panel { background: rgba(46, 26, 54, .9); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid rgba(200, 119, 62, .45); }
.js [data-needs-js][hidden] { display: none; }
html:not(.js) [data-needs-js] { display: none; }
.funnels { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: end; margin: 1.2rem 0; }
.funnel span { display: block; font-size: .9rem; font-weight: 700; color: var(--copper-lt); margin-bottom: .35rem; }
.funnel select {
  width: 100%; min-height: 48px; padding-block: .5rem; padding-inline: .8rem 2rem; font: 500 1.05rem var(--body); color: var(--parch); background: var(--night);
  border: 2px solid var(--copper); border-radius: 10px 10px 40px 40px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--copper-lt) 50%), linear-gradient(135deg, var(--copper-lt) 50%, transparent 50%);
  background-position: 12px 50%, 18px 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.plus { font: 700 1.8rem var(--display); color: var(--copper-lt); padding-bottom: .4rem; }
@media (max-width: 520px) { .funnels { grid-template-columns: 1fr; } .plus { text-align: center; padding: 0; } }
.mix-out { margin-top: 1.4rem; background: var(--night); border-radius: var(--r); padding: 1.1rem 1.3rem; border-inline-start: 5px solid var(--mixc, var(--copper)); min-height: 5rem; }
.mix-out h3 { margin-bottom: .3rem; }
.mix-out .mix-name, .mix .mix-name { display: block; font: 700 1.05rem var(--body); color: var(--potion); margin-top: .2rem; }
.mix-out p:last-child { margin: 0; }
.mix-wait { color: var(--muted); }
.mix-demo { background: rgba(79, 224, 138, .08); border-radius: 10px; padding: .7rem .9rem; }
.mix-demo strong { color: var(--potion); }
.all-mixes summary, .faq summary {
  cursor: pointer; list-style: none; position: relative; padding-block: .9rem; padding-inline: 1.2rem 3rem; font-weight: 700; font-size: 1.1rem;
  background: var(--wood); border: 1.5px solid var(--copper); border-radius: 12px;
}
.all-mixes summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.all-mixes summary::after, .faq summary::after { content: "+"; position: absolute; inset-inline-end: 1.1rem; top: 50%; transform: translateY(-50%); font: 700 1.5rem var(--display); color: var(--copper-lt); }
.all-mixes[open] summary::after, .faq details[open] summary::after { content: "–"; }
.mix-grid { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 760px) { .mix-grid { grid-template-columns: 1fr 1fr; } }
.mix { background: var(--wood); border-radius: 12px; padding: 1.1rem 1.3rem; }
.mix h3 { font-size: 1.12rem; }
.mix p { font-size: 1.02rem; }
.mix p:last-child { margin: 0; }
.mix:target { outline: 2px solid var(--potion); }

/* ---------- why + promo ---------- */
.why { max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gut); display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .why { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; } }
.promo { position: relative; display: grid; gap: 0; justify-items: center; margin: 2rem 0; }
@media (min-width: 640px) { .promo { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: center; justify-items: stretch; } }
.why .promo { margin: 0; }
.promo-niche {
  width: min(280px, 72vw); aspect-ratio: 3 / 4; border-radius: 140px 140px 16px 16px; overflow: hidden; border: 3px solid var(--copper);
  background: var(--wood); box-shadow: inset 0 0 40px rgba(0, 0, 0, .7), 0 0 50px -10px rgba(79, 224, 138, .5);
}
.promo-img { width: 100%; height: 100%; object-fit: cover; }
.promo-tag {
  position: relative; background: var(--parch); color: var(--night); padding: 1.6rem 1.4rem 1.2rem; border-radius: 6px 22px 6px 22px;
  margin-top: 1.5rem; max-width: 420px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9); transform: rotate(1.2deg);
}
@media (min-width: 640px) { .promo-tag { margin: 0; margin-inline-start: 1.8rem; } }
.wire { position: absolute; inset-inline-start: 50%; top: -1.6rem; width: 2px; height: 1.6rem; background: var(--copper); }
@media (min-width: 640px) { .wire { inset-inline-start: -1.8rem; top: 2.2rem; width: 1.8rem; height: 2px; } }
.seal { position: absolute; width: 64px; height: 64px; inset-inline-end: -14px; top: -20px; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.promo-eyebrow { color: #7A3E14; }
.promo-title { font: 700 clamp(1.5rem, 2.3vw, 1.85rem)/1.4 var(--display); color: var(--night); margin: 0 0 .6rem; padding-inline-end: 2.6rem; }
.promo-tag p { font-size: 1.05rem; line-height: 1.7; }
.plaque {
  display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.4rem; background: var(--copper); color: var(--night); font-weight: 700;
  text-decoration: none; border-radius: 6px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.plaque:hover { background: var(--copper-lt); }
.promo-tag .fine { margin: .9rem 0 0; font-size: .9rem; color: #4A2E54; font-weight: 500; }
.promo .plaque:focus-visible { outline-color: var(--night); }

/* ---------- poison labels ---------- */
.poison { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) clamp(3rem, 6vw, 4.5rem); }
.poison-intro { max-width: 62ch; color: var(--muted); }
.labels { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.label {
  position: relative; background: var(--wood); border: 2px solid var(--copper); padding: 2.6rem 1.1rem 1.1rem;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.label::before { content: "تحذير"; position: absolute; top: 0; inset-inline: 0; padding: .3rem 1rem; background: var(--copper); color: var(--night); font-weight: 700; font-size: .92rem; }
.label .glyph { width: 34px; height: 34px; color: var(--potion); margin: .4rem 0 .6rem; }
.label p { margin: 0; font-size: 1.05rem; line-height: 1.7; }

/* ---------- registre ---------- */
.registre { max-width: 860px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); padding: 2rem var(--gut); border-top: 2px solid var(--copper); border-bottom: 2px solid var(--copper); background: rgba(46, 26, 54, .6); }
.registre p:last-child { margin: 0; }

/* ---------- grimoires ---------- */
.low-shelf { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) clamp(3rem, 6vw, 4.5rem); }
.grimoires { list-style: none; margin: 1.5rem 0 0; padding: 0 0 26px; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); position: relative; }
.grimoires::after { content: ""; position: absolute; inset-inline: -1rem; bottom: 0; height: 20px; background: linear-gradient(180deg, #5A3266, #24122C); border-top: 3px solid var(--copper); border-radius: 4px; }
.grimoire-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--parch); background: var(--wood);
  border: 2px solid rgba(200, 119, 62, .7); border-radius: 46% 46% 16px 16px / 16% 16% 16px 16px; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.grimoire-card a:hover { transform: translateY(-6px); box-shadow: 0 0 40px -6px rgba(79, 224, 138, .55); }
.gc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gc-kicker { padding: 1.1rem 1.3rem 0; margin: 0; }
.gc-title { font: 700 1.45rem/1.45 var(--display); padding: .4rem 1.3rem .5rem; }
.gc-desc { padding: 0 1.3rem; font-size: 1rem; color: var(--muted); flex: 1; }
.gc-go { margin: 1rem 1.3rem 1.3rem; font-weight: 700; color: var(--potion); }

/* ---------- closing + faq ---------- */
.closing { max-width: 860px; margin: 0 auto; padding: 0 var(--gut) clamp(3rem, 6vw, 4.5rem); }
.closing-text { background: var(--wood); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); }
.drops, .recipe { counter-reset: d; list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .9rem; }
.drops li, .recipe li { counter-increment: d; position: relative; padding-inline-start: 3.2rem; }
.drops li::before, .recipe li::before {
  content: counter(d); position: absolute; inset-inline-start: 0; top: .15rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--potion); color: var(--night); font-weight: 700; border-radius: 50% 50% 0 50%; transform: rotate(45deg);
}
.recipe li { background: var(--night); border-radius: 12px; padding-block: .9rem; padding-inline: 3.6rem 1rem; }
.recipe li::before { inset-inline-start: .8rem; top: 1rem; }
.recipe strong { display: block; color: var(--copper-lt); }
.counter { max-width: 860px; margin: 0 auto; padding: 0 var(--gut) clamp(3rem, 6vw, 5rem); }
.faq { display: grid; gap: .7rem; }
.faq details p { padding: 1rem 1.2rem 0; margin: 0; }

/* ---------- lists inside text ---------- */
.vials { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.vials li { position: relative; padding-inline-start: 1.8rem; }
.vials li::before { content: ""; position: absolute; inset-inline-start: .2rem; top: .6em; width: 11px; height: 14px; border-radius: 3px 3px 7px 7px; background: var(--potion); box-shadow: 0 -4px 0 -2px var(--copper); }
.familiar { display: flex; gap: 1rem; align-items: flex-start; background: rgba(79, 224, 138, .07); border: 1px solid rgba(79, 224, 138, .35); border-radius: var(--r); padding: 1rem 1.2rem; margin: 0 0 1.2rem; }
.familiar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; border: 2px solid var(--copper); }
.familiar-title { font-weight: 700; color: var(--potion); margin: 0 0 .3rem; }
.familiar p:last-child { margin: 0; }
.dosage { border-inline-start: 5px solid var(--copper); background: var(--deep); border-start-end-radius: var(--r); border-end-end-radius: var(--r); padding: 1rem 1.3rem; margin: 0 0 1.2rem; font-variant-numeric: tabular-nums; }
.dosage-title { font-weight: 700; color: var(--copper-lt); margin-bottom: .3rem; }
.dosage p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border-radius: 12px; border: 1px solid rgba(200, 119, 62, .5); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 1rem; }
caption { text-align: start; padding: .8rem 1rem; font-weight: 700; color: var(--copper-lt); background: var(--deep); }
th, td { padding: .7rem 1rem; text-align: start; vertical-align: top; border-top: 1px solid rgba(243, 233, 220, .12); }
thead th { background: var(--wood-2); color: var(--parch); font-size: .98rem; }
tbody th { color: var(--potion); }

/* ---------- guides ---------- */
.g-head { position: relative; max-width: 1400px; margin: 0 auto; }
.g-art img { width: 100%; height: clamp(240px, 40vw, 520px); object-fit: cover; }
.g-label {
  position: relative; max-width: 820px; margin: clamp(-160px, -10vw, -60px) var(--gut) 0; padding: clamp(1.3rem, 3vw, 2.2rem);
  background: rgba(46, 26, 54, .97); border: 2px solid var(--copper); border-radius: 6px; box-shadow: inset 0 0 0 6px var(--wood), inset 0 0 0 7px rgba(200, 119, 62, .5);
}
@media (min-width: 900px) { .g-label { margin-inline-start: max(var(--gut), calc((100% - 1240px) / 2 + var(--gut))); } }
.g-bottles { display: flex; gap: .4rem; position: absolute; inset-inline-end: 1.2rem; top: -46px; }
.bottle-xs { width: 46px; filter: drop-shadow(0 0 10px rgba(79, 224, 138, .6)); }
.g-layout { max-width: 1240px; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0 var(--gut) clamp(3rem, 6vw, 5rem); display: grid; gap: 2rem; }
@media (min-width: 1000px) { .g-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } .g-side { position: sticky; top: 1.5rem; } }
.toc { background: var(--wood); border-radius: var(--r); padding: 1.2rem 1.3rem; border-top: 4px solid var(--copper); }
.toc ol { margin: 0; padding-inline-start: 1.4rem; display: grid; gap: .5rem; font-size: 1rem; }
.toc a { color: var(--parch); }
.toc a:hover { color: var(--potion); }
.side-mix { margin-top: 1rem; padding: 1rem 1.2rem; border: 1.5px dashed var(--copper); border-radius: var(--r); font-size: 1rem; }
.side-mix p { margin: 0; }
.g-body { min-width: 0; max-width: 820px; }
.g-body > .notice { margin-bottom: 2rem; }
.g-sec { background: var(--wood); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.g-sec > p:last-child { margin-bottom: 0; }
.g-sec .promo { margin-bottom: 0; }
.others { margin-top: 2rem; }
.others ul { padding-inline-start: 1.4rem; }

/* ---------- simple pages ---------- */
.s-page { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gut) clamp(3rem, 6vw, 5rem); }
.s-head { position: relative; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--copper); }
.s-mascot { float: left; width: clamp(110px, 22vw, 160px); margin: 0 1rem 1rem 0; }
.s-mascot img { border-radius: 50%; border: 3px solid var(--copper); box-shadow: 0 0 40px -6px rgba(79, 224, 138, .6); }
.s-sec { background: var(--wood); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.s-sec > :last-child { margin-bottom: 0; }
.s-404 { text-align: center; }
.empty-flask { width: 120px; margin: 0 auto 1rem; }
.bottle-lg { width: 120px; }
.s-links { margin: 1rem 0 2rem; }
.nf-list { list-style: none; padding: 0; display: grid; gap: .6rem; }

/* ---------- footer ---------- */
.foot { background: var(--deep); border-top: 3px solid var(--copper); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 2.5rem var(--gut); display: grid; gap: 1.8rem; font-size: 1rem; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: 1fr 1.6fr auto; } }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.foot-mark { width: 46px; flex: 0 0 46px; }
.foot-name { font: 700 1.6rem var(--display); color: var(--parch); }
.foot-text p { color: var(--muted); }
.age { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; margin-inline-end: .5rem; border-radius: 50%; border: 2px solid var(--copper); color: var(--parch); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-links a { color: var(--parch); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .vapour { display: none; }
}

/* ---------- RTL / Arabic details ---------- */
bdi { unicode-bidi: isolate; }
.dosage, .tags-hl strong { font-variant-numeric: tabular-nums; }
.menu a { font-size: 1.05rem; }
.shelf-head h2, .bench-panel h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
@media (max-width: 520px) { .familiar { flex-direction: column; } .familiar-img { width: 56px; height: 56px; flex-basis: 56px; } }
