/*
 * TouchScreens Oman — Guides index (/guides) and Guide article (/guides/{slug}). Owner: guides page agent.
 * Values are the inline styles of Guides.dc.html and Guide Article.dc.html. Breakpoints 900 / 640 (desktop-first).
 */

/* ============ Shared: cover treatment (no stock photos) ============ */
.o-gcover {
  position: relative; overflow: hidden; container-type: size;
  background: linear-gradient(160deg, #fbf5ec, #ebdfcd);
}
.o-gcover--card { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #fbf5ec, #efe4d4); }
.o-gcover--related { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #fbf5ec, #efe4d4); }
.o-gcover--feature { position: absolute; inset: 0; }
.o-gcover--hero { aspect-ratio: 21 / 9; border-radius: 30px; border: 1px solid var(--line); }
.o-gcover--hero .o-gcover__tile { width: min(23cqw, 56cqh); }
.o-gcover__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(194, 106, 26, .07) 1px, transparent 1px), linear-gradient(-45deg, rgba(194, 106, 26, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 80%);
}
.o-gcover--card .o-gcover__pattern, .o-gcover--related .o-gcover__pattern { background-size: 28px 28px; }
.o-gcover__wm {
  position: absolute; right: -2cqw; bottom: -14cqh; font-family: var(--ruqaa); font-size: 62cqh; line-height: 1;
  color: rgba(180, 95, 20, .085); letter-spacing: 0; white-space: nowrap; pointer-events: none; user-select: none;
}
.o-gcover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* products: 2–3 real catalogue photos, fanned on white tiles */
.o-gcover__shelf { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 3cqh; }
.o-gcover__tile {
  position: relative; flex: none; width: min(27cqw, 64cqh); aspect-ratio: 35 / 36; margin-inline: -1.2cqw;
  border-radius: clamp(8px, 3.4cqh, 18px); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(40, 28, 16, .06), 0 2cqh 5cqh rgba(70, 45, 20, .16);
}
.o-gcover__tile img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.o-gcover__tile:nth-child(1) { transform: rotate(-6deg) translateY(4cqh); }
.o-gcover__tile:nth-child(2) { z-index: 2; transform: translateY(-2cqh) scale(1.08); }
.o-gcover__tile:nth-child(3) { transform: rotate(6deg) translateY(4cqh); }
.o-gcover__shelf--2 .o-gcover__tile:nth-child(1) { transform: rotate(-5deg) translateY(2cqh); }
.o-gcover__shelf--2 .o-gcover__tile:nth-child(2) { transform: rotate(4deg) translateY(-1cqh); }
[dir="rtl"] .o-gcover__shelf { flex-direction: row-reverse; } /* same picture in both languages */

/* sheet: typographic checklist of the guide's own questions */
.o-gcover__sheet {
  position: absolute; top: 14cqh; inset-inline-start: 50%; width: min(64cqw, 118cqh); height: 100cqh;
  translate: -50% 0; rotate: -2.5deg; padding: 7cqh 6cqh 0; background: #fff; border-radius: clamp(8px, 3cqh, 16px);
  box-shadow: 0 0 0 1px rgba(40, 28, 16, .06), 0 3cqh 7cqh rgba(70, 45, 20, .14);
  display: flex; flex-direction: column; gap: 3.6cqh; text-align: start;
}
[dir="rtl"] .o-gcover__sheet { translate: 50% 0; rotate: 2.5deg; }
.o-gcover__sheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.6cqh; background: linear-gradient(90deg, var(--oman-red) 33.3%, var(--oman-white) 0 66.6%, var(--oman-green) 0); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.o-gcover__sheet-k { font-size: clamp(7px, 4.4cqh, 13px); font-weight: 800; letter-spacing: var(--track-eyebrow-sm); text-transform: uppercase; color: var(--copper); }
.o-gcover__line { display: grid; grid-template-columns: 8cqh 1fr; gap: 2.6cqh; align-items: start; font-size: clamp(7px, 5.4cqh, 17px); line-height: 1.3; font-weight: 700; color: var(--ink); }
.o-gcover__line svg { width: 8cqh; height: 8cqh; padding: 1.4cqh; border-radius: 50%; background: rgba(27, 138, 58, .12); color: var(--oman-green); }
.o-gcover__rule { display: block; height: 2cqh; width: 100%; border-radius: 99px; background: var(--sand); }
.o-gcover__rule--short { width: 62%; }

/* author chip (organisation mark, no person) */
.o-gauthor { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.45; }
.o-gauthor__av { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--sand); border: 1px solid var(--line-10); object-fit: cover; }
.o-gauthor__txt { display: flex; flex-direction: column; text-align: start; }
.o-gauthor__txt strong { color: var(--ink); font-weight: 700; }
.o-gauthor__txt span { color: var(--muted-2); }

@keyframes o-g-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes o-g-art-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============ Guides index ============ */
.o-ghero { position: relative; padding: 160px var(--gutter) 50px; overflow: hidden; }
.o-ghero__pattern { -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.o-ghero__wm {
  position: absolute; right: -1%; top: 100px; font-family: var(--ruqaa); font-size: clamp(150px, 20vw, 320px); line-height: 1;
  color: rgba(180, 95, 20, .06); pointer-events: none; user-select: none; letter-spacing: 0; white-space: nowrap;
}
.o-ghero__inner { position: relative; }
.o-ghero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.o-ghero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--copper); }
[dir="rtl"] .o-ghero__eyebrow { letter-spacing: 0; }
.o-ghero__h1 { margin: 12px 0 0; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: var(--track-tight); font-weight: 800; }
.o-ghero__lede { margin-top: 16px; max-width: 560px; color: var(--lede); font-size: 16.5px; line-height: 1.7; }

.o-gsearch {
  display: flex; align-items: center; gap: 10px; width: min(100%, 380px);
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-14);
  padding: 6px; padding-inline-start: 18px; transition: border-color .2s, box-shadow .2s;
}
.o-gsearch:focus-within { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(233, 138, 44, .18); }
.o-gsearch__icon { color: var(--copper); font-size: 14px; }
.o-gsearch__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 14px var(--font); color: var(--ink); padding: 9px 0; -webkit-appearance: none; appearance: none; }
.o-gsearch__input::placeholder { color: var(--muted-4); opacity: 1; }
.o-gsearch__input:focus-visible { outline: 0; }
.o-gsearch__input::-webkit-search-cancel-button { cursor: pointer; }

.o-gfeat {
  margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  border-radius: 30px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.o-gfeat:hover { color: var(--ink); box-shadow: 0 30px 70px rgba(70, 45, 20, .12); transform: translateY(-3px); }
.o-gfeat__media { position: relative; min-height: 340px; }
.o-gfeat__badge {
  position: absolute; top: 18px; inset-inline-start: 18px; z-index: 3;
  font-size: 11.5px; font-weight: 800; padding: 6px 12px; border-radius: var(--r-pill); background: var(--oman-red); color: #fff;
}
.o-gfeat__body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.o-gfeat__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.o-gfeat__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: var(--track-tight); font-weight: 800; }
.o-gfeat__sum { color: var(--lede); line-height: 1.7; font-size: 16px; }
.o-gfeat .o-gauthor { margin-top: 6px; }
.o-gfeat__read { margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--copper); display: inline-flex; align-items: center; gap: 6px; }
.o-gfeat:hover .o-gfeat__read { color: var(--copper-hover); }
[dir="rtl"] .o-gfeat__kicker { letter-spacing: 0; }

.o-glist { padding: 10px var(--gutter) 90px; }
.o-glist__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 32px; align-items: start; }
.o-gchips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.o-gchip {
  border: 1px solid var(--line-14); background: var(--surface); color: var(--ink); border-radius: var(--r-pill);
  padding: 9px 15px; font: 700 13px/1.35 var(--font); transition: background-color .2s, color .2s, border-color .2s;
}
.o-gchip:hover { color: var(--ink); border-color: var(--accent-line-strong); }
.o-gchip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.o-gchip__n { opacity: .6; }
[dir="rtl"] .o-gchip { line-height: normal; } /* design: Noto Kufi's natural line-height (45px chip) */

.o-gcards { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.o-gcard {
  border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.o-gcard:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 54px rgba(70, 45, 20, .1); }
@media (prefers-reduced-motion: no-preference) {
  .o-gcard { animation: o-g-in .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
}
.o-gcard__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.o-gcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; }
.o-gcard__kicker { color: var(--copper); letter-spacing: .12em; text-transform: uppercase; }
.o-gcard__min { color: var(--muted-4); font-weight: 600; white-space: nowrap; }
[dir="rtl"] .o-gcard__kicker { letter-spacing: 0; }
.o-gcard__title { font-size: 18.5px; line-height: 1.4; font-weight: 800; }
.o-gcard:hover .o-gcard__title { color: var(--copper-hover); }
.o-gcard__sum { font-size: 14px; color: var(--muted-2); line-height: 1.6; }
.o-gcard__date { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted-4); }

.o-gempty { margin-top: 22px; border-radius: 22px; border: 1px dashed rgba(194, 106, 26, .4); background: var(--surface); padding: 32px; text-align: center; color: var(--lede); }
.o-gmore { margin-top: 28px; display: flex; justify-content: center; }
.o-gmore__btn { border: 1px solid var(--line-18); background: var(--surface); border-radius: var(--r-pill); padding: 13px 26px; font: 700 14px var(--font); color: var(--ink); transition: border-color .2s; }
.o-gmore__btn:hover { border-color: var(--cta); }

.o-grail { position: sticky; top: calc(var(--o-bar-bottom, var(--o-header-h)) + 16px); display: flex; flex-direction: column; gap: 14px; }
.o-grail__card { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.o-grail__card--sand { background: var(--sand); border: 0; padding: 20px; }
.o-grail__h { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); line-height: 1.4; }
[dir="rtl"] .o-grail__h { letter-spacing: 0; }
.o-gstart { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.o-gstart li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.o-gstart__n { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--copper); }
.o-gstart a { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.45; }
.o-gstart a:hover { color: var(--copper-hover); }

.o-gask { border-radius: 24px; padding: 22px; gap: 0; }
.o-gask .o-redpanel__wm { right: -10px; bottom: -40px; font-size: 130px; color: rgba(255, 228, 210, .07); }
.o-gask .o-redpanel__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
[dir="rtl"] .o-gask .o-redpanel__eyebrow { letter-spacing: 0; }
.o-gask .o-redpanel__title { margin-top: 8px; font-size: 20px; line-height: 1.3; }
.o-gask .o-redpanel__body { margin-top: 8px; font-size: 13.5px; }
.o-gask__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 2px; }
.o-gask__wa { padding: 12px 18px; font-size: 13.5px; font-weight: 800; }

.o-gtags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.o-gtag { font-size: 12.5px; padding: 6px 11px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-10); color: var(--text-ui); transition: border-color .2s, background-color .2s, color .2s; }
.o-gtag:hover { color: var(--ink); border-color: var(--accent-line-strong); }
.o-gtag.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ============ Guide article ============ */
@media (prefers-reduced-motion: no-preference) {
  html:has(.o-p-guide) { scroll-behavior: smooth; }
}
.o-gprogress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.o-gprogress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--oman-red), var(--cta)); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .o-gprogress span { background: linear-gradient(-90deg, var(--oman-red), var(--cta)); transform-origin: right center; }

.o-ghead { position: relative; padding: 160px var(--gutter) 40px; overflow: hidden; }
.o-ghead__pattern { -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.o-ghead__inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .o-ghead__inner { animation: o-g-art-in .7s var(--ease) both; }
}
.o-ghead__crumbs li:last-child { display: none; } /* the article title is the H1 right below; the trail ends at its category, as designed */
.o-ghead__crumbs li:nth-last-child(2) a { color: var(--ink); font-weight: 600; }
.o-ghead__cat {
  margin-top: 20px; display: inline-flex; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--copper);
  padding: 7px 14px; border-radius: var(--r-pill); background: rgba(233, 138, 44, .12); transition: background-color .2s;
}
.o-ghead__cat:hover { background: rgba(233, 138, 44, .2); }
[dir="rtl"] .o-ghead__cat { letter-spacing: 0; }
.o-ghead__h1 { margin-top: 18px; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
[dir="rtl"] .o-ghead__h1 { letter-spacing: 0; }
.o-ghead__dek { margin: 18px auto 0; max-width: 680px; color: var(--lede); font-size: 18px; line-height: 1.7; }
.o-ghead__meta { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; font-size: 13.5px; color: var(--lede); }
.o-ghead__meta .o-gauthor { gap: 10px; font-size: 13.5px; line-height: 1.35; }
.o-ghead__meta .o-gauthor__av { width: 40px; height: 40px; }
.o-ghead__meta .o-gauthor__txt span { color: var(--lede); }
.o-ghead__cover { position: relative; max-width: 1200px; margin: 36px auto 0; }

.o-gbody { padding: 30px var(--gutter) 80px; }
.o-gbody__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 48px; align-items: start; }

.o-gside {
  position: sticky; top: calc(var(--o-bar-bottom, var(--o-header-h)) + 16px); display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - var(--o-bar-bottom, var(--o-header-h)) - 32px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-14) transparent; padding-bottom: 4px;
}
.o-gside > * { flex-shrink: 0; } /* a rail taller than the viewport scrolls; no card is squashed */
/* A long TOC scrolls inside itself so Share and the project-brief card stay in view on laptop heights;
   only when even a short TOC can't fit does the whole rail scroll. */
.o-gside > .o-gtoc {
  flex-shrink: 1; min-height: 150px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-14) transparent;
}
.o-gside__h { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted-3); }
.o-gside__h--share { margin-top: 8px; }
[dir="rtl"] .o-gside__h { letter-spacing: 0; }
.o-gtoc { display: flex; flex-direction: column; border-inline-start: 2px solid var(--line-10); }
.o-gtoc a {
  padding: 8px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent;
  color: var(--muted-2); font-weight: 500; font-size: 13.5px; line-height: 1.4; transition: color .2s, border-color .2s;
}
.o-gtoc a:hover { color: var(--ink); }
.o-gtoc a.is-active { border-inline-start-color: var(--cta); color: var(--ink); font-weight: 800; }

.o-gshare { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-10); overflow: hidden; }
.o-gshare__i {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; background: none; width: 100%;
  color: var(--ink); font: 700 13px var(--font); text-align: start; transition: background-color .2s;
}
.o-gshare__i + .o-gshare__i { border-top: 1px solid var(--line); }
.o-gshare__i:hover { background: var(--bg); color: var(--ink); }
.o-gshare__ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 14px; }
.o-gshare__ic--wa { background: var(--wa); color: var(--wa-ink); }
.o-gshare__ic--in { background: #0a66c2; color: #fff; font-size: 11px; font-weight: 800; font-family: Manrope, system-ui, sans-serif; }
.o-gshare__ic--copy { background: var(--sand); color: var(--copper); }

.o-gbrief { margin-top: 10px; border-radius: 24px; padding: 22px; gap: 0; flex: none; }
.o-gbrief .o-redpanel__wm { right: -10px; bottom: -40px; font-size: 120px; color: rgba(255, 228, 210, .07); }
.o-gbrief .o-redpanel__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
[dir="rtl"] .o-gbrief .o-redpanel__eyebrow { letter-spacing: 0; }
.o-gbrief .o-redpanel__title { margin-top: 8px; font-size: 19px; line-height: 1.3; }
.o-gbrief .o-redpanel__body { margin-top: 14px; align-items: flex-start; }
.o-gbrief__cta { padding: 12px 16px; font-size: 13px; font-weight: 800; gap: 6px; }
.o-redpanel__body a.o-gbrief__cta { color: var(--cta-ink); text-decoration: none; }

.o-gart { min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.85; color: var(--text); }
.o-gkey { position: relative; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--accent-line); padding: 24px 26px; }
.o-gkey__flag { position: absolute; top: 0; left: 0; right: 0; }
.o-gkey__h { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--copper); }
[dir="rtl"] .o-gkey__h { letter-spacing: 0; }
.o-gkey__ul { margin: 12px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 1.6; }

.o-gart__h2 { margin-top: 52px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; color: var(--ink); text-wrap: balance; }
[dir="rtl"] .o-gart__h2 { letter-spacing: 0; }
.o-gart__p { margin-top: 18px; }
.o-gart__ul { margin: 16px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }

.o-gcallout { margin-top: 26px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; border-radius: 20px; background: var(--sand); padding: 20px; }
.o-gcallout__star { width: 26px; height: 26px; margin: 4px 0 0 4px; color: var(--copper); }
.o-gcallout__t { font-weight: 800; color: var(--ink); font-size: 15.5px; }
.o-gcallout__p { margin-top: 4px; font-size: 15px; line-height: 1.7; }

.o-gtable { margin: 26px 0 0; }
.o-gtable__scroll { border-radius: 20px; border: 1px solid var(--line-10); background: var(--surface); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.o-gtable__scroll:focus-visible { outline-offset: 3px; }
.o-gtable table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.o-gtable thead th { background: var(--bg); padding: 12px 16px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); text-align: start; vertical-align: bottom; }
[dir="rtl"] .o-gtable thead th { letter-spacing: 0; }
.o-gtable tbody th, .o-gtable tbody td { padding: 13px 16px; border-top: 1px solid var(--line-07); text-align: start; vertical-align: top; }
.o-gtable tbody th { font-weight: 400; color: inherit; }
.o-gtable__cap { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted-3); }

.o-gprod { margin-top: 26px; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; border-radius: 20px; background: var(--surface); border: 1px solid rgba(194, 106, 26, .35); padding: 14px; transition: border-color .25s, box-shadow .25s; }
.o-gprod:hover { border-color: rgba(194, 106, 26, .55); box-shadow: 0 14px 34px rgba(70, 45, 20, .08); }
.o-gprod__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-06); }
.o-gprod__media img, .o-gprod__media .o-hatch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.o-gprod__txt { line-height: 1.4; min-width: 0; }
.o-gprod__k { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--copper); }
[dir="rtl"] .o-gprod__k { letter-spacing: 0; }
.o-gprod__name { display: block; margin-top: 4px; font-weight: 800; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.o-gprod__name:hover { color: var(--copper-hover); }
/* Arabic page: Latin-only names keep dir="ltr" but sit right-aligned with the rest of the RTL row (design). */
html[dir="rtl"] .o-gprod__name { text-align: right; }
.o-gprod__sub bdi { unicode-bidi: isolate; }
.o-gprod__sub { margin-top: 4px; font-size: 13px; color: var(--muted-2); }
.o-gprod__cta { padding: 11px 16px; font-size: 13px; font-weight: 800; }

.o-gfaq { margin-top: 10px; }
.o-gfaq .o-faq__q { padding: 16px 0; font-size: 16px; line-height: 1.85; font-weight: 700; color: var(--ink); }
.o-gfaq .o-faq__a { margin-bottom: 16px; font-size: 15.5px; line-height: 1.75; color: var(--text); }

.o-gabout { margin-top: 44px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 20px; line-height: 1.55; }
.o-gabout__av { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-12); background: var(--sand); }
.o-gabout__h { font-weight: 800; font-size: 16px; color: var(--ink); }
.o-gabout__p { font-size: 14px; color: var(--lede); margin-top: 2px; }

.o-gsources { margin-top: 14px; font-size: 13px; color: var(--muted-3); line-height: 1.7; }
.o-gsources__h { font-weight: 700; }
.o-gsources a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-18); text-underline-offset: 3px; overflow-wrap: anywhere; }
.o-gsources a:hover { color: var(--copper-hover); text-decoration-color: currentColor; }

.o-grel { padding: 70px var(--gutter) 90px; background: var(--sand); border-top: 1px solid var(--line); }
.o-grel__inner { max-width: 1200px; margin: 0 auto; }
.o-grel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.o-grel__h { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; font-weight: 800; line-height: 1.15; }
[dir="rtl"] .o-grel__h { letter-spacing: 0; }
.o-grel__all { font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.o-grel__grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.o-grel__card { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .25s; }
.o-grel__card:hover { border-color: var(--accent-line-strong); color: var(--ink); }
.o-grel__body { display: block; padding: 18px; }
.o-grel__k { font-size: 11.5px; font-weight: 800; color: var(--copper); text-transform: uppercase; }
.o-grel__t { margin-top: 6px; font-weight: 800; font-size: 17px; line-height: 1.4; }

/* ============ ≤ 900: stack ============ */
@media (max-width: 900px) {
  .o-glist__grid { grid-template-columns: minmax(0, 1fr); }
  .o-grail { position: static; }
  .o-gbody__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .o-gside { position: static; order: 2; max-height: none; overflow: visible; }
  .o-gside > .o-gtoc { min-height: 0; overflow: visible; }
  .o-gprod { grid-template-columns: 90px 1fr; }
  .o-gprod__cta { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .o-gkey { padding: 22px 20px; }
  .o-grel__head { flex-wrap: wrap; }
}
