/* Procedure guide pages (/<slug>/) and 404 — on top of style.css: X-ray hero, facts strip, article + sticky card */
.g-page .hdr-pill { background: rgba(255, 255, 255, .86); }
.g-page .nav a { padding: 9px 13px; }
.g-hero { position: relative; overflow: hidden; padding: clamp(120px, 14vw, 160px) 0 clamp(40px, 6vw, 70px); }
.g-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: 13.5px; color: var(--muted); }
.g-crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; color: var(--accent); }
.g-crumbs a:hover { color: var(--accent-d); }
.g-hero h1 { font-size: clamp(32px, 4.3vw, 56px); }
.g-hero h1 em { font-style: normal; }
.g-lead { margin-top: 20px; max-width: 640px; font-size: 17.5px; color: var(--muted); }
.g-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.g-media { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
.g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-media.g-xr { background: #000; box-shadow: 0 0 0 1px rgba(156, 203, 255, .16), var(--shadow), inset 0 0 120px rgba(70, 140, 255, .12); }
.g-media.g-xr img { object-fit: contain; padding: 6%; }
.g-media.g-xr::after { content: ""; position: absolute; inset: 0; background: #4A9BFF; mix-blend-mode: color; opacity: .75; pointer-events: none; }
.g-media .corner { width: 24px; height: 24px; opacity: 1; transform: none; border-color: rgba(156, 203, 255, .6); }
.g-media .c1 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; } .g-media .c2 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.g-media .c3 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; } .g-media .c4 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.g-beam { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 22px 5px rgba(255, 90, 44, .5); animation: gbeam 4.2s var(--ease-io) infinite alternate; pointer-events: none; }
@keyframes gbeam { from { top: 6%; } to { top: 94%; } }
.g-hud { position: absolute; bottom: 20px; inset-inline-start: 50px; font-size: 11px; letter-spacing: .2em; color: var(--xray); direction: ltr; }

.g-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.g-facts div { background: var(--white); padding: 18px 20px; }
.g-facts dt { font: 700 12.5px/1.4 var(--f-head); color: var(--accent-d); }
.g-facts dd { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }

.g-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 5vw, 70px); align-items: start; padding-block: clamp(50px, 7vw, 90px); }
.g-doc > section { padding-block: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.g-doc > section:first-child { padding-top: 0; }
.g-doc h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; font: 800 clamp(22px, 2.3vw, 30px)/1.45 var(--f-head); color: var(--ink); }
.g-doc h2 b { font-size: 13px; color: var(--accent); }
.g-doc p { color: var(--text); }
.g-doc p + p, .g-doc p + ul, .g-doc ul + p, .g-doc ol + p, .g-doc p + ol { margin-top: 14px; }
.g-doc ul, .g-doc ol { display: grid; gap: 10px; }
.g-doc ul li { position: relative; padding-inline-start: 24px; }
.g-doc ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.g-doc ol { counter-reset: n; }
.g-doc ol li { position: relative; padding-inline-start: 44px; counter-increment: n; }
.g-doc ol li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: .15em; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/1 var(--f-lat); }
.g-doc b { color: var(--ink); }
.g-alert { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: #FFF1EC; color: #7A2A12; font-size: 15px; line-height: 1.75; box-shadow: inset 0 0 0 1px rgba(255, 90, 44, .25); }
.g-alert svg { flex: none; margin-top: .35em; color: var(--accent); transform: rotate(45deg); }
.g-note { margin-top: 30px; padding: 16px 18px; border-radius: 16px; background: var(--white); font-size: 13.5px; color: var(--muted) !important; }

.g-case { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin-block: 30px; padding: 18px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, .78); box-shadow: var(--shadow); }
.g-case figure { position: relative; overflow: hidden; border-radius: 18px; background: var(--night); min-height: 200px; }
.g-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-case > div { display: flex; flex-direction: column; gap: 10px; padding-block: 6px; }
.g-case-tag { font-size: 11.5px; color: var(--accent-2); }
.g-case h3 { font: 800 20px/1.5 var(--f-head); color: #fff; }
.g-case p { color: rgba(255, 255, 255, .78) !important; font-size: 15px; }
.g-case .link-arrow { color: #fff; margin-top: 4px; }
.g-case small { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

.g-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.g-card { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.g-id { display: flex; align-items: center; gap: 14px; }
.g-id img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--accent); }
.g-id b { display: block; font: 800 16px/1.4 var(--f-head); color: var(--ink); }
.g-id small { display: block; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.g-card ul { display: grid; gap: 10px; font-size: 14px; line-height: 1.7; }
.g-card li { display: flex; gap: 10px; }
.g-card li svg { flex: none; margin-top: .3em; color: var(--accent); }
.g-card .link-arrow { justify-self: center; font-size: 14px; }
.g-toc { display: grid; padding: 18px 22px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.g-toc b { margin-bottom: 8px; font: 700 13px/1.4 var(--f-head); color: var(--accent-d); }
.g-toc a { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); transition: color .3s, padding .3s; }
.g-toc a:hover { color: var(--accent-d); padding-inline-start: 6px; }
.g-h2 { font-size: clamp(28px, 3.4vw, 44px); }
.g-more { background: var(--paper); }
.g-ftr { grid-template-columns: 1.4fr 1fr 1fr; }

.g-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.g-404 .eyebrow, .g-404 .g-cta { justify-content: center; }
.g-404 .g-lead { margin-inline: auto; }
.g-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.g-404-links a:hover { color: var(--accent-d); }

@media (max-width: 980px) {
  .g-hero-in, .g-body { grid-template-columns: minmax(0, 1fr); }
  .g-media { aspect-ratio: 16 / 11; max-height: 420px; }
  .g-side { position: static; }
  .g-facts dl { grid-template-columns: 1fr 1fr; }
  .g-ftr { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .g-hero { padding-top: 104px; }
  .g-cta .btn { flex: 1 1 100%; }
  .g-case { grid-template-columns: minmax(0, 1fr); }
  .g-case figure { min-height: 0; aspect-ratio: 16 / 10; }
  .g-facts div { padding: 14px 16px; }
  .g-ftr { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .g-beam { animation: none; display: none; } }
.g-page span[dir="ltr"], .g-page a[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }

/* Guide cards on the home page, the guide pages and 404 (from alasaad style.css) + 4-column footer */
.guides { background: var(--paper); }
.gd-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.gd-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gd-card::after { content: ""; position: absolute; inset-inline: 0; top: -2px; height: 2px; background: var(--accent); box-shadow: 0 0 16px 3px rgba(255, 90, 44, .45); opacity: 0; }
.gd-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.gd-card:hover::after { opacity: 1; animation: gdscan 1.1s var(--ease-io); }
@keyframes gdscan { from { top: -2px; } to { top: 100%; } }
.gd-ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 24px; transition: background .4s; }
.gd-card:hover .gd-ic { background: var(--accent); }
.gd-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd-t b { font: 700 16.5px/1.45 var(--f-head); color: var(--ink); }
.gd-t small { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.gd-go { margin-inline-start: auto; font-size: 20px; color: var(--accent); transition: translate .4s var(--ease); }
.gd-card:hover .gd-go { translate: -4px 0; }
html[dir="ltr"] .gd-card:hover .gd-go { translate: 4px 0; }
.ftr-top.ftr-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 980px) { .gd-grid { grid-template-columns: 1fr 1fr; } .ftr-top.ftr-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gd-grid { grid-template-columns: minmax(0, 1fr); } .gd-card { padding: 16px 18px; } .ftr-top.ftr-4 { grid-template-columns: 1fr; } }
/* drsabah: no portrait — the «ص» brand mark stands in the side card; English overview page */
.g-id .brand-mark { flex: none; width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
.g-en .g-doc ul li::before { inset-inline-start: 2px; }
.g-en .g-svc { display: grid; gap: 12px; }
