:root {
  --g: #0e2a22;
  --g2: #1a4035;
  --g3: #255248;
  --gold: #c8a24a;
  --gold2: #e8c879;
  --ink: #131f1b;
  --muted: #5c6862;
  --paper: #f5f1e8;
  --line: rgba(14,42,34,.12);
  --max: 1080px;
  --r: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "IBM Plex Sans Arabic", "Tajawal", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }

/* ── PAGE SHELL ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.page-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

.page-header h1 {
  max-width: 780px; margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 60px); line-height: 1.2;
  color: var(--g); letter-spacing: -.04em;
}

.page-header p {
  max-width: 680px; margin: 16px 0 0;
  font-size: 19px; color: var(--muted);
}

/* ── SECTION LABELS ── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: 0; }

.s-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--gold);
}

.s-label::after { content: ""; flex: 1; height: 1px; background: rgba(200,162,74,.35); min-width: 40px; }

/* ── ARTICLE BODY MOCK ── */
.prose { max-width: 740px; font-size: 18px; color: #253029; }
.prose p + p { margin-top: 22px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 1 ▸ Service Bridge (improved from original)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bridge {
  position: relative; margin: 48px 0;
  background: var(--g);
  overflow: hidden;
}

.bridge::before {
  content: "";
  position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bridge::after {
  content: "";
  position: absolute; inset-block-end: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bridge__bg-text {
  position: absolute; inset-block-start: -12px; inset-inline-end: -8px;
  font-size: 160px; font-weight: 900; color: rgba(255,255,255,.03); line-height: 1;
  pointer-events: none; user-select: none; direction: ltr;
}

.bridge__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 36px; align-items: center;
  padding: clamp(32px, 5vw, 56px);
  position: relative; z-index: 1;
}

.bridge__bar {
  width: 4px; height: 100%; min-height: 80px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin-inline-end: 28px; flex-shrink: 0; align-self: stretch;
}

.bridge__content { display: flex; align-items: flex-start; }

.bridge__kicker { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; }

.bridge h2 { color: #fff; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.4; }

.bridge p { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 16px; max-width: 600px; }

.bridge__btns { display: flex; flex-direction: column; gap: 10px; min-width: 195px; flex-shrink: 0; }

.btn-outline {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 800; font-size: 15px;
  transition: .2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(200,162,74,.1); transform: translateX(-3px); }

.btn-gold {
  background: var(--gold); color: var(--g); border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold2); color: var(--g); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 2 ▸ Knowledge Index (improved)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.k-index { margin: 48px 0; }

.k-index__head { margin-bottom: 32px; }

.k-index h2 {
  font-size: clamp(26px, 4vw, 42px); color: var(--g); letter-spacing: -.03em; line-height: 1.3;
}

.k-index__sub { margin-top: 8px; color: var(--muted); font-size: 16px; }

.k-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: .2s;
}

.k-row:first-child { border-top: 1px solid var(--line); }

.k-row:hover { padding-inline: 14px; background: rgba(14,42,34,.04); }

.k-num { color: var(--gold); font-size: 22px; font-weight: 900; }

.k-meta { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }

.dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.k-row h3 { color: var(--g); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }

.k-cta { color: var(--g); font-size: 13px; font-weight: 900; white-space: nowrap; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 3 ▸ Margin Annotation Link
   (like a newspaper side note)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.margin-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  gap: 48px; align-items: start;
  margin: 0;
}

.margin-layout .prose { grid-column: 1; }

.margin-note {
  position: sticky; top: 32px; grid-column: 2;
  padding: 22px 20px 22px 20px;
  border-inline-start: 3px solid var(--gold);
  background: var(--paper);
}

.margin-note__tag {
  font-size: 11px; font-weight: 900; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px;
}

.margin-note a {
  display: block; margin-top: 14px;
  color: var(--g); font-weight: 900; font-size: 17px; line-height: 1.45;
}

.margin-note a:hover { color: #000; }

.margin-note__desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

.margin-note__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13px; font-weight: 900;
  color: var(--g); border-bottom: 1.5px solid var(--gold); padding-bottom: 1px;
}

.margin-note__cta:hover { color: #000; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 4 ▸ Journey Path Strip
   (shows where this page sits in a flow)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.journey {
  margin: 48px 0; padding: 32px 36px;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  background: var(--g2);
  color: #fff;
}

.journey::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 4px; height: 100%; background: linear-gradient(180deg, var(--gold), var(--g2));
}

.journey__label { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: rgba(255,255,255,.8); margin-bottom: 20px; }

.journey__steps {
  display: flex; gap: 0; align-items: center;
  overflow-x: auto; padding-bottom: 4px;
}

.j-step {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
}

.j-step__node {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-width: 130px; padding: 0 10px;
}

.j-step__icon {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: var(--g); background: #fff;
  margin-bottom: 8px;
}

.j-step--active .j-step__icon {
  background: var(--gold); color: var(--g); border-color: var(--gold);
}

.j-step__name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); line-height: 1.4; }
.j-step--active .j-step__name { color: #fff; font-weight: 900; }

.j-step__link { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 4px; }

.j-connector { width: 40px; height: 1px; background: var(--line); flex-shrink: 0; }

.j-connector--done { background: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 5 ▸ Pull-quote Crosslink
   (editorial large-type with embedded link)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pullquote-link {
  margin: 52px 0; padding: 0;
  position: relative;
  display: grid; grid-template-columns: 8px 1fr; gap: 28px;
}

.pullquote-link__bar {
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%); 
  min-height: 100%;
}

.pullquote-link__body {}

.pullquote-link blockquote {
  font-size: clamp(24px, 4vw, 42px); line-height: 1.35; font-weight: 800;
  color: var(--g); letter-spacing: -.025em; margin-bottom: 20px;
}

.pullquote-link__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--line);
}

.pullquote-link__source { font-size: 14px; color: var(--muted); font-weight: 700; }

.pullquote-link__goto {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; background: var(--g); color: #fff;
  font-weight: 900; font-size: 15px; transition: .2s;
}

.pullquote-link__goto:hover { background: var(--g2); transform: translateX(-2px); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 6 ▸ Contextual Inline Links (improved)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ctx-link {
  color: var(--g); font-weight: 800;
  background: linear-gradient(transparent 68%, rgba(200,162,74,.35) 0);
  padding-inline: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: .18s;
}
.ctx-link:hover {
  background: linear-gradient(transparent 52%, rgba(200,162,74,.65) 0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 7 ▸ Topic Constellation
   (a typographic cluster – no cards, no list)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.constellation {
  margin: 48px 0; padding: 44px;
  background: var(--paper); position: relative; overflow: hidden;
}

.constellation__label {
  font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--gold); margin-bottom: 28px;
}

.constellation__grid {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
}

.topic {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 0 3px; border-bottom: 2px solid transparent;
  font-weight: 900; line-height: 1; transition: .2s; white-space: nowrap;
  color: var(--g);
}

.topic:hover { border-bottom-color: var(--gold); color: #000; }

.topic--xl { font-size: clamp(28px, 3.5vw, 40px); }
.topic--lg { font-size: clamp(22px, 2.8vw, 32px); color: var(--g2); }
.topic--md { font-size: clamp(18px, 2vw, 24px); color: var(--g3); }
.topic--sm { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); }

.topic__num { font-size: .55em; color: var(--gold); font-weight: 900; vertical-align: super; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 8 ▸ Reading Detour Band
   (splits the article reading with a 'detour' offer)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.detour {
  margin: 52px 0; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); overflow: hidden;
}

.detour__left {
  padding: 36px 32px; border-inline-end: 1px solid var(--line);
  background: var(--paper);
}

.detour__right {
  padding: 36px 32px; background: var(--g);
}

.detour__tag {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 900; letter-spacing: .1em;
  margin-bottom: 14px;
}

.detour__tag--paper { background: rgba(200,162,74,.22); color: var(--gold); }
.detour__tag--dark  { background: rgba(255,255,255,.1); color: var(--gold2); }

.detour__left h3 { font-size: clamp(18px, 2.4vw, 26px); color: var(--g); line-height: 1.4; margin-bottom: 10px; }
.detour__right h3 { font-size: clamp(18px, 2.4vw, 26px); color: #fff; line-height: 1.4; margin-bottom: 10px; }

.detour__left p { font-size: 15px; color: var(--muted); }
.detour__right p { font-size: 15px; color: rgba(255,255,255,.68); }

.detour__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-weight: 900; font-size: 15px; transition: .2s;
}

.detour__left .detour__link { color: var(--g); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.detour__left .detour__link:hover { color: #000; }
.detour__right .detour__link { color: var(--gold); border-bottom: 1.5px solid rgba(200,162,74,.4); padding-bottom: 2px; }
.detour__right .detour__link:hover { color: var(--gold2); border-bottom-color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 9 ▸ Accordion Knowledge Expander
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.accord { margin: 48px 0; }

.accord__intro { margin-bottom: 24px; }
.accord__intro h2 { font-size: clamp(22px, 3vw, 34px); color: var(--g); letter-spacing: -.03em; }
.accord__intro p { color: var(--muted); font-size: 16px; margin-top: 8px; }

details.ac-item {
  border-bottom: 1px solid var(--line);
}
details.ac-item:first-of-type { border-top: 1px solid var(--line); }

summary.ac-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
summary.ac-trigger::-webkit-details-marker { display: none; }

.ac-trigger__text { display: flex; align-items: center; gap: 18px; }
.ac-trigger__num { font-size: 20px; font-weight: 900; color: var(--gold); width: 40px; }
.ac-trigger__title { font-size: clamp(16px, 2vw, 20px); font-weight: 800; color: var(--g); }

.ac-trigger__icon {
  width: 28px; height: 28px; border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--g); transition: .2s;
}

details[open] .ac-trigger__icon { transform: rotate(45deg); background: var(--g); color: var(--gold); border-color: var(--g); }

.ac-body {
  padding: 0 0 28px 58px;
}

.ac-body p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }

.ac-links { display: flex; flex-wrap: wrap; gap: 10px; }

.ac-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 800; color: var(--g); transition: .2s;
}
.ac-tag:hover { border-color: var(--gold); background: var(--paper); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 10 ▸ Footnote Reference Rail
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footnote-rail {
  margin-top: 64px; padding-top: 32px;
  border-top: 2px solid var(--g);
}

.footnote-rail--green {
  background: rgba(37,82,72,.08);
  border-top-color: var(--g3);
}

.footnote-rail--green .fn-rail__label {
  color: var(--g3);
}

.fn-rail__label {
  font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px;
}

.fn-list { list-style: none; display: grid; gap: 0; }

.fn-item {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.fn-num {
  color: var(--gold); font-weight: 900; font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.fn-title { color: var(--g); font-weight: 700; }
.fn-title:hover { color: #000; text-decoration: underline; text-decoration-color: var(--gold); }

.fn-type { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 11 ▸ Ticker / Related Topics Bar
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ticker-bar {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 48px 0; overflow: hidden;
}

.ticker-bar--green {
  border-top-color: var(--g3);
  border-bottom-color: var(--g3);
  background: rgba(37,82,72,.18);
}

.ticker-bar--green .ticker-bar__head {
  flex-shrink: 0; background: var(--g3); color: #fff;
}

.ticker-bar--green .ticker-bar__track {
  background: rgba(255,255,255,.06);
}

.ticker-bar--green .t-item {
  color: #0f2d22;
}

.ticker-bar--green .t-item:hover {
  background: rgba(14,42,34,.08);
  color: #000;
}

.ticker-bar__head {
  flex-shrink: 0; background: var(--g); color: var(--gold);
  font-size: 12px; font-weight: 900; letter-spacing: .08em;
  display: flex; align-items: center; padding: 0 22px;
  white-space: nowrap;
}

.ticker-bar__track {
  overflow: hidden; flex: 1;
}

.ticker-bar__items {
  display: flex; flex-wrap: nowrap; gap: 0;
  animation: ticker 24s linear infinite;
  min-width: max-content;
  will-change: transform;
}

.ticker-bar__items:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  font-weight: 800; font-size: 15px; color: var(--g);
  white-space: nowrap; transition: .18s;
  border-inline-end: 1px solid var(--line);
}

.t-item:hover { background: var(--paper); color: #000; }

.t-sep { color: var(--gold); font-size: 18px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PATTERN 12 ▸ Next / Prev Service Strip
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.next-strip {
  margin: 48px 0; display: grid; grid-template-columns: 1fr 1px 1fr;
  border: 1px solid var(--line);
}

.next-strip__div { background: var(--line); }

.ns-item {
  display: flex; flex-direction: column; padding: 28px 32px;
  transition: .2s;
}

.ns-item:hover { background: var(--paper); }

.ns-item__dir { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }

.ns-item__title { font-size: clamp(17px, 2vw, 22px); font-weight: 900; color: var(--g); line-height: 1.4; }

.ns-item__arrow { margin-top: auto; padding-top: 14px; color: var(--gold); font-size: 22px; font-weight: 900; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 820px) {
  .bridge__inner, .detour { grid-template-columns: 1fr; }
  .detour__left { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .margin-layout { grid-template-columns: 1fr; }
  .margin-note { position: static; grid-column: 1; }
  .next-strip { grid-template-columns: 1fr; }
  .next-strip__div { width: 100%; height: 1px; }
  .k-row { grid-template-columns: 50px 1fr; }
  .k-cta { grid-column: 2; }
  .journey__steps { gap: 0; }
}