/* Visual palette observed on pp.gov.sa on 8 November 2026.
   The atlas remains an independent research reference. */
:root {
  --navy: #006d67;
  --navy-deep: #004c48;
  --ink: #34423e;
  --muted: #52655d;
  --copper: #a98445;
  --copper-light: #f6f0e6;
  --line: #dbe5df;
  --line-strong: #b9cec3;
  --surface: #fff;
  --soft: #f5f5f5;
  --soft-blue: #eaf4f1;
  --studio-soft: #f5f5f5;
  --green: #006d67;
  --green-soft: #e9f5f0;
  --amber: #8c6a32;
  --amber-soft: #f8f0e3;
  --shadow: 0 18px 45px rgba(0, 77, 72, .08);
  --atlas-text-secondary: #52655d;
  --atlas-text-label: #745521;
}
body { color: var(--ink); }
a { color: #006d67; }
a:hover { color: #80602c; }
:focus-visible { outline-color: #a98445; }
.top-progress { background: #a98445; }

/* The official mark is a source link; the atlas carries its own identity. */
.site-header,.studio-header { min-height: 84px; border-top: 3px solid #006d67; border-bottom-color: #d7e1da; background: rgba(245,245,245,.98); }
.site-header { padding-block: 8px; }
.studio-header { padding-block: 8px; }
.official-brand-link { display: inline-flex; flex-direction: column; align-items: center; flex: none; gap: 1px; padding: 3px 6px; border: 1px solid #d7e5dc; border-radius: 8px; background: #fff; text-decoration: none; }
.official-brand-link::after { content: "مصدر رسمي ↗"; color: #475c52; font-size: 10px; font-weight: 800; line-height: 1.3; }
.official-brand-link:hover { border-color: #8eb8a2; background: #f7fbf8; }
.official-brand-link img { display: block; width: 74px; height: auto; }
.brand { gap: 11px; }
.brand-context,.atlas-brand-link { position: relative; min-width: 0; min-height: 45px; padding-right: 56px; border-right: 0; }
.brand-context::before,.atlas-brand-link::before { content: ""; position: absolute; right: 0; top: 50%; width: 42px; height: 42px; transform: translateY(-50%); background: url("./assets/atlas-mark.svg") center / contain no-repeat; }
.brand-title { display: block; color: #005e58; font-size: 21px; font-weight: 800; line-height: 1.25; text-decoration: none; }
.brand-title:hover { color: #005e58; }
.brand-subtitle { display: inline-block; max-width: 100%; margin-top: 4px; padding: 2px 7px; border-radius: 9px; color: #634b24; background: #f6eddb; font-size: 11px; font-weight: 800; white-space: normal; }
.header-text-link { color: #52635d; }
.header-text-link:hover { color: #006d67; }
.icon-button { border-color: #cadbd2; color: #006d67; }
.icon-button:hover { border-color: #8db8a8; background: #e8f3ef; }
.studio-brand { gap: 11px; }
.atlas-brand-link { display: block; color: #005e58; text-decoration: none; }
.atlas-brand-link:hover { color: #005e58; }
.atlas-brand-link strong,.atlas-brand-link small { display: block; line-height: 1.35; }
.atlas-brand-link strong { font-size: 21px; }
.atlas-brand-link small { width: fit-content; max-width: 100%; margin-top: 4px; padding: 2px 7px; border-radius: 9px; color: #634b24; background: #f6eddb; font-size: 11px; font-weight: 800; white-space: normal; }
.studio-nav a { color: #5c6964; }
.studio-nav a:hover,.studio-nav a[aria-current="page"] { color: #005e58; background: #e3efea; }
.brand-disclosure { padding: 10px 22px; border-bottom: 1px solid #e3d2ad; border-right: 5px solid #a98445; color: #374d43; background: #fbf5e8; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.65; }
.brand-disclosure a { color: #005e58; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.side-nav { top: 84px; height: calc(100vh - 84px); border-left-color: #d7e1da; background: #fbfcfb; }
.site-shell { min-height: calc(100vh - 84px); }
.side-nav a { color: #5c6964; }
.side-nav a:hover,.side-nav a.active { color: #005e58; background: #e5f0eb; }
.side-label,.nav-num,.side-nav a.active .nav-num { color: #8c6a32; }
.section,.studio-section { scroll-margin-top: 84px; }

/* Core controls and reading colors. */
.primary-button { background: #006d67; border-color: #006d67; color: #fff; }
.primary-button:hover { background: #00534e; border-color: #00534e; box-shadow: 0 8px 20px rgba(0,77,72,.18); }
.secondary-button { border-color: #006d67; color: #006d67; }
.secondary-button:hover { border-color: #006d67; color: #006d67; background: #eaf4f1; }
.outline-action { border-color: #b8cec3; color: #005e58; }
.outline-action:hover { border-color: #78aa98; background: #ecf6f1; }
.search-field:focus-within { border-color: #a98445; box-shadow: 0 0 0 3px rgba(169,132,69,.16); }
input[type="search"]:focus,select:focus { border-color: #29877e; box-shadow: 0 0 0 3px #e3f1ec; }
.section-kicker,.eyebrow,.mini-label,.studio-kicker,.card-label,.explore-num,
.selection-card span,.pilot-step span,.work-lens-card > span:first-child,
.concept-term,.case-map button span,.person-stages button span,
.learning-path span,.proof-step span { color: #8c6a32; }
.source-line a,.source-links a,.source-pills a { color: #006d67; }
.explore-card p,.portfolio-card .portfolio-problem,.work-lens-card p,
.scenario-nav button,.role-tabs button,.role-summary p { color: var(--atlas-text-secondary); }
.source-pills a { background: #e7f2ed; }
.source-pills a:hover { background: #d6eae0; }
.evidence-tag.announced { color: #005e58; background: #e4f1ec; }
.evidence-tag.proposal,.evidence-chip.conditional,.mini-chip.amber { color: #765722; background: #f7efe0; }
.evidence-tag.legal,.evidence-chip.supported,.mini-chip.green { color: #006058; background: #e6f4ed; }
.evidence-tag.unknown,.evidence-chip.unverified { color: #606c68; background: #edf0ed; }
.learning-note { border-right-color: #a98445; background: #faf5eb; }
.atlas-term-note { max-width: 1280px; margin: 0 auto; padding: 15px clamp(19px,5vw,70px); border-right: 4px solid #a98445; background: #fdf9f1; color: #465b51; font-size: 13px; line-height: 1.9; }
.atlas-term-note strong { color: #6b4d1f; }
.atlas-glossary { max-width: 1280px; margin: 0 auto 22px; padding: 13px 20px; border: 1px solid #d8e5db; border-radius: 12px; background: #f8fbf8; color: #465b51; }
.atlas-glossary summary { color: #005e58; font-size: 14px; font-weight: 800; cursor: pointer; }
.atlas-glossary summary:focus-visible { outline: 3px solid #a98445; outline-offset: 4px; }
.atlas-glossary dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 14px 0 0; }
.atlas-glossary dl div { padding: 12px 14px; border: 1px solid #e0ebe2; border-radius: 9px; background: #fff; }
.atlas-glossary dt { color: #6b4d1f; font-size: 13px; font-weight: 800; }
.atlas-glossary dd { margin: 4px 0 0; color: #52655d; font-size: 12px; line-height: 1.8; }
.role-service-bridge { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 8px 14px; border: 1px solid #006d67; border-radius: 9px; background: #fff; color: #005e58; font-size: 13px; font-weight: 800; line-height: 1.6; text-decoration: none; }
.role-service-bridge:hover { border-color: #00534e; background: #e9f5ef; color: #004c48; }
.role-service-bridge:focus-visible { outline: 3px solid #a98445; outline-offset: 3px; }

/* Main atlas: green and gold, with the source's light reading surfaces. */
.hero-copy h1,.studio-hero h1 { color: #004c48; }
.hero-copy h1 em,.studio-hero h1 em { color: #a98445; }
.hero-lead,.studio-hero p,.section-heading p,.studio-section-head p { color: #60716b; }
.independent-badge { border-color: #b8d2c4; color: #005e58; background: #e7f3ed; }
.hero-visual,.hero-panel { border-color: #c9ddd2; background: radial-gradient(circle at 50% 44%, #fff 0, #f2f8f4 50%, #e5f2eb 100%); }
.visual-core::before,.visual-core::after,.person-visual::before,.person-visual::after { border-color: #b6d2c6; }
.visual-core::after,.person-visual::after { border-color: #d9c4a3; }
.visual-center,.person-core,.case-node.n2 { border-color: #a98445; background: #006d67; }
.visual-orbit,.person-chip,.case-node { border-color: #c7ddd0; }
.visual-caption,.visual-topline { border-color: #d9e5df; color: var(--atlas-text-secondary); }
.insight-strip { border-color: #d3dfd6; background: #d3dfd6; }
.insight-strip > div { border-top: 2px solid #a98445; }
.explore-card { border-top: 3px solid #006d67; background: linear-gradient(145deg,#fff,#f2f8f4); }
.explore-card:nth-child(2) { border-top-color: #a98445; background: linear-gradient(145deg,#fff,#fbf7ef); }
.explore-card:nth-child(3) { background: linear-gradient(145deg,#fff,#f2f8f4); }
.explore-card:nth-child(4) { border-top-color: #157c79; }
.explore-card:hover { border-color: #78aa98; }
.mandate-card:hover,.law-card:hover,.service-card:hover,.product-card:hover,.opportunity-card:hover { border-color: #a6c9b8; }
.actor-panel,.role-banner,.verdict-card { border-color: #c8ddd0; background: linear-gradient(115deg,#f2f8f4,#fff); }
.actor-list button:hover,.actor-list button[aria-pressed="true"],.journey-steps button[aria-selected="true"] { border-color: #b5d2c2; }
.journey-steps button[aria-selected="true"] .step-number,.verdict-icon { background: #006d67; border-color: #006d67; }
.segmented button:hover,.audience-tabs button:hover { color: #005e58; background: #e7f2ec; }
.segmented button[aria-pressed="true"],.audience-tabs button[aria-selected="true"] { background: #006d67; border-color: #006d67; }
.law-card .implication,.score-row .axis,.role-banner h3,.library-card strong { color: #005e58; }
.dga-card .year,.metric-card .metric-value { color: #8c6a32; }
.library-card.featured { border-color: #b7d2c3; background: #edf6f0; }
.library-card b { color: #006d67; }

/* The official site uses a gold services band; keep the cards white. */
#services { background: #8c6a32; }
#services .section-heading h2,#services .section-heading p,#services .section-kicker,
#services .learning-note,#services .explore-inline a { color: #fff; }
#services .learning-note { border-right-color: #fff; background: rgba(0,77,72,.16); }
#services .audience-summary { border-color: #e5d9c5; color: #485750; }
#services .audience-tabs button { border-color: #e0cba7; }
#services .audience-tabs button[aria-selected="true"] { border-color: #005e58; }

/* Dedicated study pages. */
.studio-disclaimer { border-right-color: #a98445; background: #faf5eb; color: #5c645e; }
.studio-section.tinted { background: #f5f5f5; }
.proof-step.final,.opportunity-rings { color: #fff; }
.opportunity-rings { background: radial-gradient(circle,#006d67 0 69px,transparent 70px 94px,#c7ddd0 95px 96px,transparent 97px 133px,#c7ddd0 134px 135px,transparent 136px); }
.opportunity-rings span { color: #8c6a32; }
.opportunity-rings small { color: #5f736b; }
.tool-rail,.role-summary,.pilot-panel { border-color: #cbded2; background: #f3f8f4; }
.choice-list button:hover,.choice-list button[aria-pressed="true"],.scenario-nav button[aria-pressed="true"],.scenario-nav button:hover,
.person-stages button[aria-pressed="true"],.person-stages button:hover { border-color: #a6c9b7; color: #005e58; background: #eaf4ef; }
.tool-stage .verdict-box,.answer-feedback { border-color: #006d67; background: #edf7f1; }
.tool-stage .limit-box { border-color: #a98445; background: #faf5eb; }
.answer-list button:hover:not(:disabled),.portfolio-card:hover,.portfolio-card[aria-pressed="true"],
.case-options button:hover,.case-map button:hover { border-color: #8bb9a1; background: #f1f8f3; }
.answer-list button.correct { border-color: #6baa8e; color: #005e58; background: #e5f4ea; }
.source-pills a,.learning-path a:hover,.concept-card:hover { color: #005e58; }
.portfolio-card .portfolio-title,.value-streams .stream-title { color: #005e58; }
.map-dot { box-shadow: 0 4px 12px rgba(0,77,72,.17); }
.map-shell { border-color: #cbded2; }
.opportunity-map { border-color: #97bdae; background: linear-gradient(to left,transparent calc(50% - .5px),#dce8df 50%,transparent calc(50% + .5px)),linear-gradient(to top,transparent calc(50% - .5px),#dce8df 50%,transparent calc(50% + .5px)),linear-gradient(135deg,#f5faf6,#fff); }
.role-tabs button:hover,.role-tabs button[aria-pressed="true"] { border-color: #006d67; background: #006d67; color: #fff; }
.case-breadcrumb span { background: #e7f2ec; }
.case-breadcrumb span:last-child { background: #006d67; color: #fff; }

/* Source-inspired gold footer; labels remain legible. */
.site-footer,.studio-footer { max-width: none; border-top: 4px solid #a98445; background: #8c6a32; color: #fff; }
.site-footer strong,.studio-footer strong,.site-footer a,.studio-footer a { color: #fff; }
.site-footer a:hover,.studio-footer a:hover { color: #fff; text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .side-nav { top: 72px; height: auto; background: #f8faf8; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .section { scroll-margin-top: 123px; }
  .studio-header { min-height: 72px; }
  .studio-section { scroll-margin-top: 116px; }
  .official-brand-link img { width: 64px; }
}
@media (max-width: 650px) {
  .site-header { padding-inline: 11px; }
  .brand { gap: 6px; }
  .brand-context,.atlas-brand-link { min-height: 37px; padding-right: 40px; }
  .brand-context,.atlas-brand-link { max-width: calc(100vw - 112px); }
  .brand-context::before,.atlas-brand-link::before { width: 31px; height: 31px; }
  .brand-title,.atlas-brand-link strong { font-size: 15px; }
  .brand-subtitle,.atlas-brand-link small { font-size: 10px; }
  .official-brand-link img { width: 49px; }
  .brand-disclosure { padding: 8px 13px; font-size: 12px; }
  .atlas-glossary { margin-inline: 18px; }
  .atlas-glossary dl { grid-template-columns: 1fr; }
  .header-actions .header-text-link { display: none; }
  .studio-header { padding-inline: 15px; }
  .studio-brand { gap: 8px; }
  .atlas-brand-link { padding-right: 40px; }
  .studio-nav { border-top: 1px solid #e0e7e1; }
}
@media (max-width: 390px) {
  .header-actions .primary-button.compact { display: none; }
  .official-brand-link img { width: 45px; }
}
