:root {
  --brand-primary: #201813;
  --brand-secondary: #55483e;
  --brand-accent: #d3b12a;
  --brand-paper: #f5f2ec;
  --brand-ink: #17120f;
  --brand-muted: #8a7a6b;
  --brand-card: color-mix(in srgb, var(--brand-paper) 88%, var(--brand-secondary));
  --display-font: "Brand Display", Georgia, serif;
  --body-font: "Brand Body", Arial, sans-serif;
  --page: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --rule: rgba(23, 18, 15, 0.14);
  --dark-rule: rgba(245, 242, 236, 0.22);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--brand-paper);
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
.loading-screen,
.error-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--brand-muted);
}
.error-screen strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-ink);
  font-size: 1.25rem;
}
.error-screen span {
  display: block;
}

.guide-header {
  position: fixed;
  z-index: 100;
  top: 0;
  inset-inline: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  color: #122a4a;
  background: #ffffff;
  border-bottom: 1px solid #e4eaf2;
  pointer-events: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.guide-header > * {
  pointer-events: auto;
}
.guide-header.is-solid {
  color: var(--brand-ink);
  background: #ffffff;
  border-bottom-color: #e4eaf2;
  backdrop-filter: blur(16px);
}
.guide-app.is-light-cover .guide-header {
  color: #122a4a;
}
.guide-app.is-light-cover .guide-header .guide-brand-copy span {
  color: rgba(18, 42, 74, 0.58);
}
.guide-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none !important;
}
.guide-header.is-solid .guide-progress {
  background: var(--rule);
}
.guide-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  background: var(--brand-accent);
}
.guide-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}
.owner-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  background: #2664ac;
  border-radius: 50%;
}
.owner-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-brand-mark {
  width: 40px;
  height: 40px;
  padding: 5px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.guide-brand-mark.is-light {
  padding: 0;
  background: transparent;
}
.guide-brand-mark.is-dark {
  display: none;
}
.guide-header.is-solid .guide-brand-mark.is-light {
  display: none;
}
.guide-header.is-solid .guide-brand-mark.is-dark {
  display: block;
}
.guide-brand-mark.is-empty {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--brand-primary);
  font-family: var(--display-font);
  font-size: 1.1rem;
}
.guide-brand-copy {
  min-width: 0;
}
.guide-brand-copy strong,
.guide-brand-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.guide-brand-copy strong {
  max-width: 240px;
  font-size: 0.75rem;
}
.guide-brand-copy span {
  margin-top: 0.22rem;
  opacity: 0.62;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  direction: ltr;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.menu-trigger {
  width: 40px;
  height: 40px;
  padding: 0;
}
.guide-header.is-solid .header-button {
  background: rgba(255, 255, 255, 0.55);
}
.header-button b {
  font-size: 1rem;
  font-weight: 400;
}
.menu-icon {
  position: relative;
  width: 15px;
  height: 12px;
  display: block;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.menu-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 5px;
  border-top: 1px solid currentColor;
}

.guide-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  overflow: auto;
  padding: clamp(7rem, 12vw, 10rem) var(--gutter) 5rem;
  background: var(--brand-primary);
  color: var(--brand-paper);
}
.guide-menu.open {
  display: block;
}
.menu-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--page), 100%);
  margin: 0 auto 3rem;
  color: var(--brand-accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  direction: ltr;
}
.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 5rem;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.menu-list li {
  border-bottom: 1px solid var(--dark-rule);
}
.menu-list a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  text-decoration: none;
}
.menu-index {
  color: var(--brand-accent);
  font-size: 0.7rem;
  direction: ltr;
}
.menu-title {
  direction: rtl;
  text-align: right;
}
.menu-title strong,
.menu-title small {
  display: block;
}
.menu-title strong {
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}
.menu-title small {
  margin-top: 0.25rem;
  color: rgba(245, 242, 236, 0.56);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  direction: ltr;
  text-align: right;
}
.menu-arrow {
  color: var(--brand-accent);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.menu-list a:hover .menu-arrow {
  transform: translate(-5px, -5px);
}

.guide-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 76px;
}
.surface-paper {
  background: var(--brand-paper);
  color: var(--brand-paper-ink, var(--brand-ink));
}
.surface-soft {
  background: var(--brand-secondary);
  color: var(--brand-secondary-ink, var(--brand-paper));
}
.surface-dark {
  background: var(--brand-primary);
  color: var(--brand-primary-ink, var(--brand-paper));
}
.hero-section {
  min-height: 100svh;
}
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero-section::before {
  width: min(78vw, 1000px);
  aspect-ratio: 1;
  inset-inline-end: -22%;
  bottom: -58%;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(245, 242, 236, 0.035),
    0 0 0 140px rgba(245, 242, 236, 0.018);
}
.hero-section::after {
  inset-inline-start: 0;
  top: 38%;
  width: 1px;
  height: 46%;
  background: rgba(245, 242, 236, 0.22);
}
.hero-shell {
  width: min(var(--page), calc(100% - var(--gutter) - var(--gutter)));
  min-height: 100svh;
  margin: auto;
  padding: calc(76px + clamp(1rem, 3vw, 3rem)) 0 clamp(1.25rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-meta,
.hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--brand-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  direction: ltr;
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 9rem);
  padding-block: clamp(2rem, 7vw, 7rem);
}
.hero-mark-wrap {
  order: 2;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.hero-mark-wrap.has-logo {
  min-height: 0;
}
.hero-mark-wrap img {
  width: min(420px, 85%);
  max-height: 270px;
  object-fit: contain;
}
.hero-mark-wrap:not(.has-logo) {
  width: 280px;
  height: 280px;
  margin-inline: auto;
  border: 1px solid rgba(245, 242, 236, 0.25);
  border-radius: 50%;
}
.hero-initial {
  font-family: var(--display-font);
  font-size: 9rem;
  line-height: 1;
  color: var(--brand-accent);
}
.hero-copy {
  order: 1;
  direction: rtl;
  text-align: right;
  padding-right: 10%;
}
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  color: var(--brand-accent);
  font-size: 0.7rem;
  font-weight: 800;
}
.hero-kicker span:last-child {
  direction: ltr;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.hero-title-ar {
  display: block;
  font-size: clamp(2rem, 7vw, 7.5rem);
  line-height: 1.5;

}
.hero-title-en {
  display: block;
  margin-top: 1.1rem;
  color: rgba(245, 242, 236, 0.68);
  font-family: var(--body-font);
  font-size: clamp(1.2rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: right;
  /* direction: ltr; */
}
.hero-description {
  max-width: 580px;
  margin-top: 2.4rem;
  color: rgba(245, 242, 236, 0.7);
  font-size: 1rem;
  line-height: 1.9;
}
.hero-description .copy-en {
  margin-top: 0.8rem;
  color: rgba(245, 242, 236, 0.45);
  direction: ltr;
  text-align: right;
}
.hero-footer {
  color: rgba(245, 242, 236, 0.52);
}

.chapter-shell {
  width: min(var(--page), calc(100% - var(--gutter) - var(--gutter)));
  margin: auto;
  padding-block: clamp(6rem, 11vw, 12rem);
}
.chapter-heading {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
  direction: ltr;
}
.chapter-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding-top: 0.55rem;
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.chapter-number i {
  display: block;
  width: 34px;
  border-top: 1px solid currentColor;
}
.chapter-title {
  max-width: 1020px;
  justify-self: end;
  direction: rtl;
  text-align: right;
  line-height: 1.25;

}
.chapter-title h2 span {
    font-weight: bold;
    line-height: 1.5;
    font-size: clamp(2rem, 7vw, 7.5rem);
}
.chapter-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  color: var(--brand-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.chapter-kicker small {
  direction: ltr;
  text-transform: uppercase;
}
.chapter-title h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 6.6vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.93;
}
.chapter-title h2 span {
  display: block;
}
.chapter-title h2 small {
  display: block;
  margin-top: 1rem;
  color: var(--brand-muted);
  font-family: var(--body-font);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  direction: ltr;
  text-align: right;
}
.surface-dark .chapter-title h2 small {
  color: color-mix(in srgb, var(--brand-primary-ink, var(--brand-paper)) 62%, transparent);
}

.bilingual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "en ar";
  gap: clamp(2rem, 8vw, 9rem);
  width: min(1060px, 100%);
  margin-inline-start: auto;
  direction: ltr;
}
.bilingual-layout .copy-ar {
  grid-area: ar;
}
.bilingual-layout .copy-en {
  grid-area: en;
}
.section-intro {
  width: min(980px, 100%);
  margin: 0 0 clamp(3rem, 7vw, 6rem) auto;
}
.section-copy {
  direction: rtl;
  text-align: right;
}
.section-copy .copy-ar {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.9;
}
.section-copy .copy-en {
  margin: 1.2rem 0 0;
  padding-inline-end: 1rem;
  border-inline-end: 1px solid var(--brand-accent);
  color: var(--brand-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  direction: ltr;
  text-align: right;
}
.copy-panel {
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  direction: rtl;
  text-align: right;
}
.copy-panel::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: -1px;
  width: 52px;
  border-top: 2px solid var(--brand-accent);
}
.copy-panel .language-label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--brand-accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  direction: ltr;
  text-align: left;
}
.copy-panel p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 2;
}
.copy-panel.copy-en {
  direction: ltr;
  text-align: left;
}
.copy-panel.copy-en .language-label,
.copy-panel.copy-en p {
  direction: ltr;
  text-align: left;
}
.copy-panel.copy-en p {
  color: var(--brand-muted);
  font-size: 0.98rem;
  line-height: 1.9;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(4rem, 8vw, 7rem);
  /* background: var(--rule); */
}
.fact-card {
  position: relative;
  min-height: 220px;
  padding: 1.5rem;
  background: var(--brand-card, var(--brand-paper));
  color: var(--brand-ink);
  direction: rtl;
  text-align: right;
  border-radius: 2cap;
  border: 1px solid var(--rule);
  margin: 0.5rem;
}
.surface-soft .fact-card {
  background: var(--brand-card, var(--brand-paper));
}
.fact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}
.fact-index {
  display: block;
  color: var(--brand-accent);
  font-size: 0.64rem;
  direction: ltr;
}
.fact-icon {
  display: block;
  width: 42px;
  height: 42px;
  background: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  border-radius: 50%;
  -webkit-mask: var(--icon-url) center/23px 23px no-repeat;
  mask: var(--icon-url) center/23px 23px no-repeat;
}
.fact-card p {
  margin: 2.3rem 0 0.8rem;
  font-size: 0.7rem;
  font-weight: 800;
}
.fact-card p small {
  margin-inline-start: 0.3rem;
  color: var(--brand-muted);
  font-size: 0.6rem;
  direction: ltr;
}
.fact-card strong {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
}
.fact-description {
  margin: 1rem 0 0;
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.75;
}
.fact-en {
  display: block;
  margin-top: 0.55rem;
  color: var(--brand-muted);
  font-size: 0.72rem;
  direction: ltr;
  text-align: right;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.principle-card {
  min-height: 390px;
  padding: 1.6rem;
  background: var(--brand-card, var(--brand-paper));
  color: var(--brand-ink);
  border: 1px solid var(--rule);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
}
.surface-soft .principle-card {
  background: var(--brand-card, var(--brand-paper));
}
.principle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brand-accent);
  font-size: 0.7rem;
  direction: ltr;
}
.principle-top i,
.principle-icon {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.principle-icon {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  -webkit-mask: var(--icon-url) center/26px 26px no-repeat;
  mask: var(--icon-url) center/26px 26px no-repeat;
}
.principle-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}
.principle-en {
  margin: 0.6rem 0 0;
  color: var(--brand-muted);
  font-size: 0.78rem;
  direction: ltr;
  text-align: right;
}
.principle-ar-body {
  margin: 2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.9;
}
.principle-en-body {
  margin: 0.5rem 0 0;
  color: var(--brand-muted);
  font-size: 0.74rem;
  line-height: 1.7;
  direction: ltr;
  text-align: right;
}

.logo-system {
  display: block;
}

.logo-feature{
    width: 100%;
}

.logo-feature,
.logo-variant {
  margin: 0;
}
.logo-canvas {
  position: relative;
  min-height: 370px;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--rule);
  border-radius: 22px;
}
.logo-feature .logo-canvas {
  min-height: clamp(380px, 42vw, 560px);
}
.logo-canvas img {
  max-width: 80%;
  max-height: 230px;
  object-fit: contain;
}
.canvas-label {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1.2rem;
  color: var(--brand-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  direction: ltr;
}
.logo-feature-caption,
.logo-variant-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  direction: rtl;
  text-align: right;
}
.logo-feature-caption strong,
.logo-variant-caption strong,
.media-caption strong {
  display: block;
  font-size: 0.9rem;
}
.logo-feature-caption span,
.logo-variant-caption span,
.media-caption > span {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand-muted);
  font-size: 0.7rem;
  direction: ltr;
  text-align: right;
}
.logo-feature-caption em {
  color: var(--brand-accent);
  font-size: 0.7rem;
  font-style: normal;
  direction: ltr;
}
.logo-feature-caption p,
.logo-variant-caption p {
  margin: 0.7rem 0 0;
  color: var(--brand-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}
.logo-feature-caption small,
.logo-variant-caption small {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand-muted);
  font-size: 0.65rem;
  line-height: 1.6;
  direction: ltr;
  text-align: right;
}
.logo-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.logo-variant .logo-canvas {
  min-height: 260px;
  height: 260px;
}

.palette-intro,
.type-intro {
  width: min(840px, 100%);
  text-align: right;
}
.palette-copy,
.type-copy {
  direction: rtl;
  text-align: right;
}
.palette-copy .copy-ar,
.type-copy .copy-ar {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.9;
}
.palette-copy .copy-en,
.type-copy .copy-en {
  margin: 1.2rem 0 0;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--brand-accent);
  color: var(--brand-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  direction: ltr;
  text-align: right;
}
.palette-ratio {
  display: flex;
  height: 74px;
  margin-top: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border: solid 1px var(--brand-muted);
  border-radius: 18px;
}
.palette-ratio span {
  min-width: 18px;
  background: var(--swatch);
}
.colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.palette-group {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.palette-group-heading {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  direction: rtl;
  text-align: right;
}
.palette-group-heading > span {
  color: var(--brand-accent);
  font-size: 0.65rem;
  direction: ltr;
}
.palette-group-heading h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}
.palette-group-heading small {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand-muted);
  font-family: var(--body-font);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  direction: ltr;
}
.palette-group-secondary {
  margin-top: clamp(4rem, 8vw, 7rem);
}
.color-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--swatch);
  color: var(--swatch-ink);
}
.color-card.is-secondary {
  background: var(--brand-paper);
  color: var(--brand-ink);
  border-color: var(--rule);
}
.color-card.is-secondary .color-field {
  height: 135px;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--swatch) 42%, var(--brand-paper));
}
.color-card.is-secondary .color-info {
  color: var(--brand-ink);
  background: var(--brand-paper);
  border-top-color: var(--rule);
}
.color-card.is-secondary .color-info p {
  color: var(--brand-muted);
}
.color-card.is-secondary .copy-color {
  color: var(--brand-ink);
  border-color: var(--rule);
}
.color-card.is-secondary .color-info dl {
  border-top-color: var(--rule);
}
.color-field {
  height: 190px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--swatch-ink);
  background: var(--swatch);
  font-size: 0.65rem;
  font-weight: 800;
  direction: ltr;
}
.color-info {
  padding: 1.15rem;
  background: var(--swatch);
  border-top: 1px solid color-mix(in srgb, var(--swatch-ink) 24%, transparent);
  direction: rtl;
  text-align: right;
}
.color-info h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1.2;
}
.color-info p {
  margin: 0.35rem 0 0;
  opacity: 0.72;
  font-size: 0.7rem;
  direction: ltr;
  text-align: right;
}
.copy-color {
  width: 100%;
  margin-top: 1rem;
  padding: 0.55rem;
  color: var(--swatch-ink);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--swatch-ink) 35%, transparent);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  direction: ltr;
  text-align: left;
  cursor: pointer;
}
.copy-color.copied {
  color: var(--brand-primary);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
.color-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--swatch-ink) 20%, transparent);
  direction: ltr;
}
.color-info dl div {
  min-width: 0;
}
.color-info dt {
  opacity: 0.6;
  font-size: 0.58rem;
  font-weight: 800;
}
.color-info dd {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  white-space: nowrap;
}

.type-specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.specimen {
  min-height: 390px;
  padding: 1.6rem;
  background: var(--brand-card, var(--brand-paper));
  color: var(--brand-ink);
  border: 1px solid var(--rule);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.surface-soft .specimen {
  background: var(--brand-card, var(--brand-paper));
}
.specimen-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: var(--brand-accent);
  font-size: 0.7rem;
  font-weight: 800;
  direction: rtl;
}
.specimen-label > div {
  display: grid;
  gap: 0.25rem;
}
.specimen-label small {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  direction: ltr;
}
.specimen-label strong {
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 800;
  direction: ltr;
  text-align: left;
}
.specimen-font-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--brand-muted);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  direction: ltr;
}
.specimen p {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2.2rem, 5vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  direction: rtl;
  text-align: right;
}
.specimen-en p {
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  direction: ltr;
  text-align: left;
}
.type-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.type-role {
  min-height: 170px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: color-mix(in srgb, var(--brand-paper) 82%, var(--brand-accent));
  border: 1px solid var(--rule);
  border-radius: 18px;
  direction: rtl;
  text-align: right;
}
.type-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--brand-muted);
}
.type-role-head span {
  font-size: 0.72rem;
  font-weight: 800;
}
.type-role-head small {
  direction: ltr;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}
.type-role strong {
  display: block;
  color: var(--brand-ink);
  font-family: var(--display-font);
  font-weight: 800;
  line-height: 1.1;
}
.type-role-samples {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-height: 74px;
}
.type-role-en {
  display: block;
  color: var(--brand-muted);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  direction: ltr;
  text-align: left;
}
.type-role-display strong { font-size: clamp(1.35rem, 2.4vw, 2.35rem); letter-spacing: -0.05em; }
.type-role-subtitle strong { font-size: clamp(1.05rem, 1.7vw, 1.5rem); letter-spacing: -0.03em; }
.type-role-body strong { font-family: var(--body-font); font-size: 0.95rem; font-weight: 500; line-height: 1.8; }
.type-role-caption strong { font-family: var(--body-font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; }
.type-role-custom strong { font-size: 1.1rem; }
.type-role-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  color: var(--brand-muted);
  font: 600 0.56rem/1.4 ui-monospace, monospace;
  direction: ltr;
}
.specimen-ar p {
    font-size: clamp(2rem, 5vw, 5.7rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.04em;
    text-align: right;
    white-space: pre-line;
  }
.type-table-wrap {
  margin-top: 1rem;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.type-scale {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
}
.type-scale th,
.type-scale td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  text-align: right;
}
.type-scale tr:last-child td {
  border-bottom: 0;
}
.type-scale th {
  color: var(--brand-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.type-scale td {
  font-size: 0.86rem;
}
.type-scale td:first-child strong,
.type-scale td:first-child small {
  display: block;
}
.type-scale td:first-child small {
  margin-top: 0.3rem;
  color: var(--brand-muted);
  font-size: 0.68rem;
  direction: ltr;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.rules-grid-media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.5rem);
}
.rule-card {
  min-height: 280px;
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 22px;
  direction: rtl;
  text-align: right;
}
.rules-grid-media .rule-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}
.rule-head span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.rule-head b {
  color: var(--brand-accent);
  font-size: 0.65rem;
}
.rule-card.is-do .rule-head span {
  color: #397557;
}
.rule-card.is-dont .rule-head span {
  color: #a44343;
}
.rule-media {
  position: relative;
  min-height: 190px;
  margin-top: 1.25rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-paper) 72%, var(--brand-muted));
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.rules-grid-media .rule-media {
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin-top: 1rem;
}
.rule-media img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 1rem;
}
.rules-grid-media .rule-media img {
  height: 100%;
  max-height: none;
}
.rule-status {
  position: absolute;
  inset-inline-start: 0.7rem;
  inset-block-start: 0.7rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: color-mix(in srgb, var(--brand-ink) 84%, transparent);
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  direction: rtl;
}
.rule-card.is-do .rule-status {
  background: #397557;
}
.rule-card.is-dont .rule-status {
  background: #a44343;
}
.rule-card h3 {
  margin: 3.8rem 0 0.5rem;
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1.05;
}
.rule-card.has-media h3 {
  margin-top: 1.35rem;
}
.rules-grid-media .rule-card h3 {
  font-size: large;
  margin-top: 1.1rem;
}
.rule-en {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.78rem;
  direction: ltr;
  text-align: right;
}
.rule-card > p:not(.rule-en) {
  margin: 1.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.9;
}
.rule-body-en {
  margin: 0.4rem 0 0 !important;
  color: var(--brand-muted);
  font-size: 0.75rem;
  line-height: 1.7;
  direction: ltr;
  text-align: right;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.media-grid-wide {
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.media-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.media-grid-wide .media-card {
  display: block;
}
.media-canvas {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.media-grid-wide .media-canvas {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(1rem, 4vw, 4rem);
}
.media-canvas img {
  max-width: 88%;
  max-height: 180px;
  object-fit: contain;
}
.media-grid-wide .media-canvas img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-grid-wide .media-caption {
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
}
.media-placeholder {
  color: var(--brand-accent);
  font-family: var(--display-font);
  font-size: 5rem;
}
.media-caption {
  padding: 1rem;
  border-top: 1px solid var(--rule);
  direction: rtl;
  text-align: right;
}
.media-caption p {
  margin: 0.8rem 0 0;
  color: var(--brand-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}
.media-caption .media-body-en {
  margin-top: 0.35rem;
  direction: ltr;
  text-align: right;
  font-size: 0.68rem;
  color: var(--brand-muted);
}
.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 2rem;
  color: var(--brand-muted);
  border: 1px dashed var(--rule);
  border-radius: 20px;
  text-align: center;
}
.empty-state span {
  margin-bottom: 0.7rem;
  color: var(--brand-accent);
  font-size: 2rem;
}
.empty-state strong {
  font-size: 0.85rem;
}

.closing-section {
  min-height: 82svh;
  display: grid;
  place-items: center;
}
.closing-shell {
  width: min(900px, calc(100% - var(--gutter) - var(--gutter)));
  padding-block: 7rem;
  text-align: center;
}
.closing-kicker {
  display: block;
  color: var(--brand-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  direction: ltr;
}
.closing-logo {
  max-width: 250px;
  max-height: 140px;
  margin: 4rem auto 3rem;
  object-fit: contain;
}
.closing-shell h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.5;
}
.closing-shell h2 span,
.closing-shell h2 small {
  display: block;
}
.closing-shell h2 small {
  margin-top: 1rem;
  color: rgba(245, 242, 236, 0.58);
  font-family: var(--body-font);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0;
  direction: ltr;
}
.closing-line {
  width: 80px;
  margin: 3rem auto;
  border-top: 1px solid var(--brand-accent);
}
.closing-shell > p {
  margin: 0;
  color: rgba(245, 242, 236, 0.62);
  font-size: 0.9rem;
  line-height: 1.8;
}
.closing-copy {
  max-width: 760px;
  margin-inline: auto;
  color: rgba(245, 242, 236, 0.62);
  line-height: 1.8;
}
.closing-copy .copy-ar {
  margin: 0;
  font-size: 0.95rem;
}
.closing-copy .copy-en {
  margin: 0.55rem 0 0;
  color: rgba(245, 242, 236, 0.52);
  font-size: 0.82rem;
  direction: ltr;
}
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: #122a4a;
  border-top: 1px solid var(--dark-rule);
  color: rgba(245, 242, 236, 0.52);
  font-size: 0.62rem;
  direction: rtl;
}
.footer-owner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}
.footer-owner .owner-brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  padding: 4px;
}
.footer-owner strong,
.footer-owner small {
  display: block;
}
.footer-owner strong {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  direction: ltr;
  text-align: right;
}
.footer-owner small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  direction: ltr;
}
.footer-socials a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-socials a:hover {
  color: #fff;
}
.footer-meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  direction: ltr;
}
.footer-description {
  max-width: 42rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: right;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-mark-wrap {
    order: 1;
  }
  .hero-copy {
    order: 2;
  }
  .hero-copy h1 {
    max-width: 800px;
  }
  .logo-system {
    grid-template-columns: 1fr;
  }
  .logo-variants {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .type-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .principle-card {
    min-height: 280px;
  }
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .guide-brand-copy span,
  .back-link {
    display: none;
  }
  .header-button {
    width: 40px;
    padding: 0;
  }
  .header-button span {
    font-size: 0;
  }
  .menu-trigger span {
    display: none;
  }
  .menu-list {
    grid-template-columns: 1fr;
  }
  .menu-topline {
    font-size: 0.55rem;
  }
  .hero-shell {
    width: calc(100% - 2rem);
  }
  .hero-stage {
    padding-block: 3rem;
  }
  .hero-mark-wrap:not(.has-logo) {
    width: 190px;
    height: 190px;
    min-height: 190px;
  }
  .hero-initial {
    font-size: 6rem;
  }
  .hero-title-ar {
    font-size: clamp(3.6rem, 16vw, 6rem);
  }
  .chapter-shell {
    width: calc(100% - 2rem);
  }
  .chapter-heading {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
  }
  .chapter-title h2 {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }
  .bilingual-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "ar" "en";
  }
  .facts-grid,
  .type-specimens,
  .type-role-grid {
    grid-template-columns: 1fr;
  }
  .facts-grid {
    gap: 0;
  }
  .fact-card {
    min-height: 180px;
  }
  .principles-grid,
  .logo-variants,
  .colors-grid,
  .rules-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .logo-canvas {
    min-height: 270px;
  }
  .logo-variant .logo-canvas {
    height: 270px;
  }
  .color-field {
    height: 150px;
  }
  .specimen {
    min-height: 270px;
  }
  .specimen p,
  .specimen-en p {
    font-size: clamp(2.3rem, 13vw, 4.5rem);
  }
  .guide-footer {
    display: block;
    text-align: center;
  }
  .guide-footer span {
    display: block;
  }
  .footer-brand {
    margin-bottom: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  .guide-header,
  .guide-menu,
  .guide-footer {
    display: none !important;
  }
  .guide-section {
    break-inside: avoid;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Theme direction presets controlled from the Studio. */
.guide-app[data-direction="editorial"] {
  --direction-radius-lg: 26px;
  --direction-radius-sm: 14px;
  --direction-border: 1px;
  --direction-shadow: none;
  --direction-heading-weight: 800;
  --direction-label-spacing: 0.14em;
  --direction-section-space: clamp(5rem, 10vw, 10rem);
}
.guide-app[data-direction="minimal"] {
  --direction-radius-lg: 10px;
  --direction-radius-sm: 7px;
  --direction-border: 1px;
  --direction-shadow: none;
  --direction-heading-weight: 650;
  --direction-label-spacing: 0.08em;
  --direction-section-space: clamp(3rem, 6vw, 5rem);
}
.guide-app[data-direction="bold"] {
  --direction-radius-lg: 30px;
  --direction-radius-sm: 12px;
  --direction-border: 2px;
  --direction-shadow: 0 28px 80px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  --direction-heading-weight: 900;
  --direction-label-spacing: 0.2em;
  --direction-section-space: clamp(4rem, 7vw, 7rem);
}
.guide-app .chapter-heading {
  margin-bottom: var(--direction-section-space, clamp(5rem, 10vw, 10rem));
}
.guide-app .chapter-title h2 {
  font-weight: var(--direction-heading-weight, 800);
}
.guide-app .chapter-kicker,
.guide-app .hero-kicker,
.guide-app .canvas-label {
  letter-spacing: var(--direction-label-spacing, 0.14em);
}
.guide-app .principle-card,
.guide-app .fact-card,
.guide-app .rule-card,
.guide-app .media-card,
.guide-app .specimen {
  border-width: var(--direction-border, 1px);
  border-radius: var(--direction-radius-lg, 22px);
  box-shadow: var(--direction-shadow, none);
}
.guide-app[data-direction="editorial"] .chapter-title h2 {
  font-weight: 800;
  letter-spacing: -0.055em;
}
.guide-app[data-direction="editorial"] .chapter-heading {
  margin-bottom: clamp(5rem, 10vw, 10rem);
}
.guide-app[data-direction="editorial"] .principle-card,
.guide-app[data-direction="editorial"] .rule-card,
.guide-app[data-direction="editorial"] .media-card {
  border-radius: var(--direction-radius-lg);
}
.guide-app[data-direction="editorial"] .facts-grid,
.guide-app[data-direction="editorial"] .principles-grid {
  align-items: start;
}
.guide-app[data-direction="editorial"] .fact-card,
.guide-app[data-direction="editorial"] .principle-card,
.guide-app[data-direction="editorial"] .rule-card {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  box-shadow: none;
}
.guide-app[data-direction="editorial"] .facts-grid .fact-card,
.guide-app[data-direction="editorial"] .principles-grid .principle-card {
  transform: none;
}
.guide-app[data-direction="minimal"] .chapter-title h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
}
.guide-app[data-direction="minimal"] .chapter-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.guide-app[data-direction="minimal"] .chapter-shell {
  width: min(980px, calc(100% - 2 * var(--gutter)));
}
.guide-app[data-direction="minimal"] .hero-section::before,
.guide-app[data-direction="minimal"] .hero-section::after {
  opacity: 0;
}
.guide-app[data-direction="minimal"] .chapter-title h2,
.guide-app[data-direction="minimal"] .principle-copy h3,
.guide-app[data-direction="minimal"] .rule-card h3 {
  font-family: var(--body-font);
}
.guide-app[data-direction="minimal"] .chapter-kicker,
.guide-app[data-direction="minimal"] .hero-kicker {
  color: var(--brand-muted);
}
.guide-app[data-direction="minimal"] .chapter-title h2 small {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
}
.guide-app[data-direction="minimal"] .principle-card,
.guide-app[data-direction="minimal"] .rule-card,
.guide-app[data-direction="minimal"] .media-card,
.guide-app[data-direction="minimal"] .logo-canvas {
  border-radius: var(--direction-radius-lg);
  box-shadow: none;
}
.guide-app[data-direction="minimal"] .facts-grid,
.guide-app[data-direction="minimal"] .principles-grid,
.guide-app[data-direction="minimal"] .rules-grid,
.guide-app[data-direction="minimal"] .media-grid {
  gap: 0.55rem;
}
.guide-app[data-direction="bold"] .chapter-title h2 {
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.075em;
}
.guide-app[data-direction="bold"] .chapter-heading {
  margin-bottom: clamp(4rem, 7vw, 7rem);
}
.guide-app[data-direction="bold"] .chapter-shell {
  width: min(1400px, calc(100% - 2 * var(--gutter)));
}
.guide-app[data-direction="bold"] .guide-section.chapter {
  border-top: 4px solid var(--brand-accent);
}
.guide-app[data-direction="bold"] .chapter-kicker,
.guide-app[data-direction="bold"] .hero-kicker {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  color: var(--brand-primary-ink, var(--brand-paper));
  background: var(--brand-primary);
  border-radius: 999px;
}
.guide-app[data-direction="bold"] .chapter-title h2 small {
  color: var(--brand-accent);
  font-weight: 700;
}
.guide-app[data-direction="bold"] .fact-card,
.guide-app[data-direction="bold"] .rule-card {
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--brand-paper));
}
.guide-app[data-direction="bold"] .chapter-number span {
  font-size: 1rem;
  font-weight: 900;
}
.guide-app[data-direction="bold"] .principle-card,
.guide-app[data-direction="bold"] .rule-card,
.guide-app[data-direction="bold"] .media-card {
  border-width: var(--direction-border);
  border-radius: var(--direction-radius-lg);
}
.guide-app[data-direction="bold"] .principle-card {
  background: var(--brand-primary);
  border-color: var(--brand-accent);
  color: var(--brand-primary-ink, var(--brand-paper));
}
.guide-app[data-direction="bold"] .principle-card .principle-en,
.guide-app[data-direction="bold"] .principle-card .principle-en-body {
  color: color-mix(in srgb, var(--brand-primary-ink, var(--brand-paper)) 64%, transparent);
}
.guide-app[data-direction="bold"] .chapter-kicker {
  color: var(--brand-primary);
}
.guide-app[data-direction="bold"] .principle-copy h3,
.guide-app[data-direction="bold"] .rule-card h3 {
  font-weight: 900;
  letter-spacing: -0.06em;
}

/* Shared layout rules: equal columns and consistent English alignment. */
.guide-app .facts-grid,
.guide-app .principles-grid,
.guide-app .rules-grid,
.guide-app .media-grid {
  align-items: stretch;
}
.guide-app .fact-card,
.guide-app .principle-card,
.guide-app .rule-card,
.guide-app .media-card {
  height: 100%;
}
.guide-app .copy-en,
.guide-app .hero-title-en,
.guide-app .hero-kicker span:last-child,
.guide-app .chapter-title h2 small,
.guide-app .chapter-kicker small,
.guide-app .section-copy .copy-en,
.guide-app .palette-copy .copy-en,
.guide-app .type-copy .copy-en,
.guide-app .fact-en,
.guide-app .rule-en,
.guide-app .rule-body-en,
.guide-app .media-body-en,
.guide-app .media-caption > span,
.guide-app .logo-feature-caption span,
.guide-app .logo-variant-caption span,
.guide-app .logo-feature-caption small,
.guide-app .logo-variant-caption small,
.guide-app .color-info p,
.guide-app .specimen-en p,
.guide-app .type-role-en {
  direction: ltr;
  text-align: left;
}
.guide-app .fact-card p small {
  display: block;
  margin: 0.3rem 0 0;
  direction: ltr;
  text-align: left;
}

/* Cover systems: each direction has its own opening composition. */
.guide-app[data-direction="editorial"] .is-cover .hero-stage {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(3rem, 10vw, 11rem);
}
.guide-app[data-direction="editorial"] .is-cover .hero-copy {
  max-width: 760px;
}
.guide-app[data-direction="editorial"] .is-cover .hero-title-ar {
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 1.02;
}
.guide-app[data-direction="editorial"] .is-cover .hero-mark-wrap.has-logo img {
  width: min(500px, 92%);
  max-height: 320px;
}
.guide-app[data-direction="editorial"] .is-cover .hero-footer {
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary-ink, var(--brand-paper)) 28%, transparent);
}
.guide-app[data-direction="minimal"] .is-cover .hero-shell {
  padding-block: calc(76px + clamp(1.5rem, 5vw, 4rem)) clamp(2rem, 5vw, 5rem);
}
.guide-app[data-direction="minimal"] .is-cover .hero-stage {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}
.guide-app[data-direction="minimal"] .is-cover .hero-copy {
  order: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.guide-app[data-direction="minimal"] .is-cover .hero-mark-wrap {
  order: 0;
}
.guide-app[data-direction="minimal"] .is-cover .hero-title-ar {
  font-family: var(--body-font);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.12;
}
.guide-app[data-direction="minimal"] .is-cover .hero-title-en {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.6rem);
}
.guide-app[data-direction="minimal"] .is-cover .hero-kicker {
  justify-content: center;
}
.guide-app[data-direction="minimal"] .is-cover .hero-footer {
  border-top: 1px solid color-mix(in srgb, var(--brand-primary-ink, var(--brand-paper)) 18%, transparent);
}
.guide-app[data-direction="bold"] .is-cover .hero-stage {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 6vw, 7rem);
}
.guide-app[data-direction="bold"] .is-cover .hero-copy {
  padding-inline-start: clamp(1.25rem, 3vw, 3rem);
  border-inline-start: 6px solid var(--brand-accent);
}
.guide-app[data-direction="bold"] .is-cover .hero-title-ar {
  font-size: clamp(4.5rem, 10vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.09em;
}
.guide-app[data-direction="bold"] .is-cover .hero-title-en {
  color: var(--brand-accent);
  font-size: clamp(1.35rem, 3vw, 3rem);
  font-weight: 700;
}
.guide-app[data-direction="bold"] .is-cover .hero-mark-wrap.has-logo img {
  width: min(560px, 100%);
  max-height: 360px;
}
.guide-app[data-direction="bold"] .is-cover .hero-footer {
  padding: 0.8rem 1rem;
  color: var(--brand-primary-ink, var(--brand-paper));
  background: var(--brand-primary);
}
@media (max-width: 700px) {
  .guide-app[data-direction="editorial"] .is-cover .hero-stage,
  .guide-app[data-direction="bold"] .is-cover .hero-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .guide-app[data-direction="bold"] .is-cover .hero-copy {
    padding-inline-start: 0;
    padding-block-start: 1.25rem;
    border-inline-start: 0;
    border-block-start: 4px solid var(--brand-accent);
  }
}

/* Cover motion: restrained editorial entrance. */
.guide-app.motion-ready .is-cover .hero-meta {
  opacity: 0;
  animation: cover-soft-in 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-mark-wrap {
  opacity: 0;
  animation: cover-mark-in 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-copy {
  opacity: 0;
  animation: cover-soft-in 0.85s 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-kicker {
  opacity: 0;
  animation: cover-soft-in 0.65s 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-title-ar {
  display: block;
  opacity: 0;
  animation: cover-soft-in 0.85s 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-title-en {
  opacity: 0;
  animation: cover-soft-in 0.7s 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-description {
  opacity: 0;
  animation: cover-soft-in 0.7s 0.84s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.guide-app.motion-ready .is-cover .hero-footer {
  opacity: 0;
  animation: cover-soft-in 0.7s 0.96s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.is-cover {
  --cover-progress: 0;
}
.is-cover .hero-shell {
  opacity: calc(1 - var(--cover-progress) * 0.2);
  transform: translateY(calc(var(--cover-progress) * -18px));
  transition: opacity 0.2s linear, transform 0.2s linear;
}
@keyframes cover-soft-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cover-mark-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-cover .hero-shell {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .guide-app.motion-ready .is-cover .hero-meta,
  .guide-app.motion-ready .is-cover .hero-mark-wrap,
  .guide-app.motion-ready .is-cover .hero-copy,
  .guide-app.motion-ready .is-cover .hero-kicker,
  .guide-app.motion-ready .is-cover .hero-title-ar,
  .guide-app.motion-ready .is-cover .hero-title-en,
  .guide-app.motion-ready .is-cover .hero-description,
  .guide-app.motion-ready .is-cover .hero-footer {
    opacity: 1;
    animation: none;
    clip-path: none;
    transform: none;
  }
}

/* General guidelines use a quiet editorial list, not image cards. */
.guidelines-list {
  width: min(1120px, 100%);
  margin-inline-start: auto;
  border-top: 1px solid var(--rule);
}
.chapter-guidelines .chapter-shell,
.chapter-standard-sizes .chapter-shell {
  padding-block: clamp(4rem, 7vw, 7rem);
}
.chapter-guidelines .chapter-heading,
.chapter-standard-sizes .chapter-heading {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.chapter-guidelines .chapter-title h2,
.chapter-standard-sizes .chapter-title h2 {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
}
.guideline-row {
  display: grid;
  grid-template-columns: 3.5rem 3rem minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  padding: clamp(1rem, 1.8vw, 1.5rem) 0;
  border-bottom: 1px solid var(--rule);
  direction: ltr;
}
.guideline-index {
  padding-top: 0.25rem;
  color: var(--brand-muted);
  font: 700 0.68rem/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.guideline-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: #397557;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.guideline-row.is-dont .guideline-mark {
  color: #a44343;
}
.guideline-column {
  min-width: 0;
}
.guideline-column h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.guideline-column p {
  margin: 0.45rem 0 0;
  color: var(--brand-muted);
  font-size: clamp(0.74rem, 0.9vw, 0.88rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.guideline-column-en {
  direction: ltr;
  text-align: left;
}
.guideline-column-ar {
  direction: rtl;
  text-align: right;
}

/* Standard sizes use a measurement index so the system stays editable and compact. */
.standard-sizes-list {
  width: min(1120px, 100%);
  margin-inline-start: auto;
  border-top: 1px solid var(--rule);
}
.standard-size-group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.45rem;
  color: var(--brand-accent);
  direction: rtl;
  text-align: right;
}
.standard-size-group-label strong {
  font-size: 0.85rem;
}
.standard-size-group-label small {
  color: var(--brand-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  direction: ltr;
  text-transform: uppercase;
}
.standard-size-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(180px, 0.55fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  direction: ltr;
}
.standard-size-index {
  color: var(--brand-accent);
  font: 700 0.68rem/1 ui-monospace, monospace;
}
.standard-size-name,
.standard-size-measure {
  min-width: 0;
}
.standard-size-name strong,
.standard-size-name small {
  display: block;
}
.standard-size-name small {
  margin-top: 0.25rem;
  color: var(--brand-muted);
  font-size: 0.62rem;
  direction: ltr;
  text-align: left;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.standard-size-name {
  direction: rtl;
  text-align: right;
}
.standard-size-name strong {
  font-family: var(--display-font);
  font-size: clamp(0.98rem, 1.3vw, 1.25rem);
  line-height: 1.2;
}
.standard-size-measure {
  direction: rtl;
  text-align: right;
}
.standard-size-measure strong {
  display: block;
  color: var(--brand-ink);
  font: 700 clamp(0.82rem, 1.1vw, 1rem)/1.2 ui-monospace, monospace;
  direction: ltr;
  text-align: left;
}

@media (max-width: 700px) {
  .guideline-row {
    grid-template-columns: 2.4rem 2.25rem minmax(0, 1fr);
    gap: 0.65rem;
  }
  .guideline-column-en,
  .guideline-column-ar {
    grid-column: 3;
  }
  .guideline-column-ar {
    margin-top: 0.9rem;
  }
  .standard-size-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
  }
  .standard-size-name,
  .standard-size-measure {
    grid-column: 2;
  }
  .standard-size-measure {
    margin-top: 0.15rem;
  }
}

/* Final presentation pass: stable rhythm, readable measures, and equal cards. */
.guide-app .chapter-title h2,
.guide-app .hero-copy h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.guide-app .chapter-title h2 span {
  line-height: 1.08;
}
.guide-app .chapter-title h2 small {
  max-width: 34ch;
  margin-top: 0.8rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.guide-app .hero-title-ar {
  line-height: 1.08;
  text-wrap: balance;
}
.guide-app .hero-title-en {
  max-width: 34ch;
  text-wrap: pretty;
  line-height: normal;
  text-align: right;
}
.guide-app .bilingual-layout,
.guide-app .facts-grid,
.guide-app .principles-grid,
.guide-app .colors-grid,
.guide-app .type-specimens,
.guide-app .type-role-grid,
.guide-app .rules-grid,
.guide-app .media-grid,
.guide-app .logo-variants {
  align-items: stretch;
}
.guide-app .copy-panel,
.guide-app .fact-card,
.guide-app .principle-card,
.guide-app .color-card,
.guide-app .specimen,
.guide-app .type-role,
.guide-app .rule-card,
.guide-app .media-card,
.guide-app .logo-variant {
  min-width: 0;
}
.guide-app .color-card,
.guide-app .media-card {
  display: flex;
  flex-direction: column;
}
.guide-app .color-info,
.guide-app .media-caption {
  flex: 1;
}
.guide-app .color-info h3,
.guide-app .color-info p,
.guide-app .rule-card h3,
.guide-app .rule-card p,
.guide-app .media-caption strong,
.guide-app .media-caption span,
.guide-app .media-caption p {
  overflow-wrap: anywhere;
}
.guide-app .color-info dd {
  white-space: normal;
  overflow-wrap: anywhere;
}
.guide-app .media-canvas {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.guide-app .media-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-app .media-grid-wide .media-card {
  width: min(60%, 920px);
  margin-inline: auto;
}
.guide-app .logo-feature .logo-canvas img {
  width: min(88%, 720px);
  max-height: min(32vw, 330px);
}
.guide-app .specimen-ar p,
.guide-app .type-role-ar {
  font-family: var(--display-font);
}
.guide-app .specimen-en p,
.guide-app .type-role-en {
  font-family: var(--body-font);
}
.guide-app .type-role-ar,
.guide-app .type-role-en {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.guide-app .menu-title small,
.guide-app .specimen-font-meta span,
.guide-app .type-role-head small {
  direction: ltr;
  text-align: left;
}
.guide-app[data-direction="editorial"] .facts-grid,
.guide-app[data-direction="editorial"] .principles-grid {
  align-items: stretch;
}

@media (max-width: 980px) {
  .guide-app .rules-grid-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-app .media-grid-wide .media-card {
    grid-template-columns: 1fr;
  }
  .guide-app .chapter-title h2 small {
    max-width: 28ch;
  }
}

@media (max-width: 700px) {
  .guide-app .chapter-title h2 span {
    line-height: 1.12;
  }
  .guide-app .hero-title-en {
    max-width: 28ch;
  }
  .guide-app .rules-grid-media {
    grid-template-columns: 1fr;
  }
  .guide-app .logo-feature .logo-canvas img {
    width: min(92%, 520px);
    max-height: 220px;
  }
  .guide-app .media-grid-wide .media-canvas {
    aspect-ratio: 4 / 3;
  }
  .guide-app .media-grid-wide .media-card {
    width: 100%;
  }
}
