/* Static admission guide — Figma 511:7753 (المفاضلة والقبول الجامعي). */

.layout-admission {
  --adm-ink: #054239;
  --adm-shadow: #002623;
  --adm-gold: #b9a779;
  --adm-muted: #8e958f;
  --adm-meta-label: #8e958f;
  --adm-body: #3a4744;
  --adm-page: #fbfbfb;
  --adm-gutter: clamp(1.25rem, 5vw, 7.5rem);
  --v2-gold: var(--adm-gold);
  --v2-shadow: var(--adm-shadow);
  --v2-ease: cubic-bezier(.2, .75, .25, 1);
  background: var(--adm-page);
  color: var(--adm-ink);
  min-height: 100vh;
  font-family: "Qomra", sans-serif;
  position: relative;
}
/* Same page pattern as the home page (.v2-page::before). */
.layout-admission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url(/assets/v2/page-pattern.png);
  background-repeat: repeat;
  background-size: 40rem auto;
  opacity: 1;
}
/* Keep page content above the pattern without trapping the fixed header
   in a low stacking context (that made it sit under hero/copy on scroll).
   Do NOT include .adm-compact-chrome / .layout-compact — those must stay fixed. */
.layout-admission > .adm-hero-band,
.layout-admission > .adm-wrap,
.layout-admission > .site-footer,
.layout-admission > footer {
  position: relative;
  z-index: 1;
}
.layout-admission > .site-header,
.layout-admission > .adm-compact-chrome {
  z-index: 200;
}

.layout-admission .site-header-hero {
  height: min(38rem, 70vh);
  min-height: 22rem;
}

.adm-hero-band {
  position: relative;
}

/* Compact chrome: crest left → ministry → burger right (same as home).
   Fixed so it stays on screen while scrolling. */
/* Styles live in header.css (site-wide). Admission-only spacing: */
.adm-compact-chrome .adm-compact-bar {
  padding-inline: var(--adm-gutter);
}
.adm-compact-chrome.is-scrolled [data-nav-panel] {
  margin-inline: var(--adm-gutter);
}
@media (min-width: 1680px) {
  .layout-admission .adm-compact-chrome {
    display: none !important;
  }
}
@media (max-width: 1679px) {
  .layout-admission > .site-header {
    display: none !important;
  }
  .layout-admission .adm-hero-copy {
    padding-top: 7.5rem;
  }
}
.adm-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 6rem var(--adm-gutter) 3rem;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
  pointer-events: none;
}
.adm-hero-copy > * { pointer-events: auto; }
.adm-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.adm-hero-copy p {
  margin: 0;
  max-width: 61rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  font-weight: 500;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  background: var(--adm-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(185, 167, 121, 0.25);
  transition: background-color .18s ease, transform .16s ease;
}
.adm-btn:hover {
  background: #a89264;
  color: #fff;
  transform: translateY(-0.1rem);
}
.adm-btn--wide {
  width: 100%;
  margin-top: 1.5rem;
}
.adm-btn--decree {
  background: var(--adm-gold);
  box-shadow: 0 8px 8px rgba(185, 167, 121, 0.25);
}
.adm-btn--decree:hover {
  background: #a89264;
}
.adm-btn img {
  width: 1rem;
  height: 1rem;
}

.adm-wrap {
  /* Physical columns match Figma: dark sidebar left, article right.
     dir=rtl on the page would otherwise swap them. Children stay RTL. */
  direction: ltr;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 120rem;
  margin: -3.5rem auto 0;
  padding: 0 var(--adm-gutter) 4rem;
  display: grid;
  grid-template-columns: minmax(17rem, 33.75rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  box-sizing: border-box;
}
.adm-side,
.adm-main {
  direction: rtl;
}
@media (max-width: 64rem) {
  .adm-wrap {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
}

.adm-side {
  position: sticky;
  /* Sit below the floating scrolled header (header.css ~7.9375rem). */
  top: calc(7.9375rem + 3rem);
  background: linear-gradient(135deg, #002623 25%, #001715 75%);
  color: #fff;
  border-radius: 0.8125rem;
  padding: 2.5rem 2.5rem 1.75rem;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
@media (max-width: 64rem) {
  .adm-side { position: static; }
}
.adm-side-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: auto;
  max-height: 78%;
  margin: 0;
  object-fit: contain;
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  filter: brightness(3.2) contrast(1.25);
}
.adm-side-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.adm-side-head h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
}
.adm-side-rule {
  width: 0.375rem;
  height: 3.25rem;
  background: var(--adm-gold);
  border-radius: 5px;
  flex: 0 0 auto;
}
.adm-side-intro {
  position: relative;
  z-index: 1;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #eae6df;
  font-weight: 500;
}
.adm-facts {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.adm-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
  background: url("/assets/v2/admission/row-divider.svg") bottom center / 100% auto no-repeat;
}
.adm-facts li:last-child {
  padding-bottom: 0;
  background: none;
}
.adm-fact-k {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--adm-gold);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: start;
}
.adm-fact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(185, 167, 121, 0.15);
  flex: 0 0 auto;
}
.adm-fact-ico img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.adm-fact-v {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  text-align: start;
}
.adm-side-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: #fff;
  opacity: 0.6;
  font-weight: 500;
}

.adm-main {
  position: relative;
  background: #fff;
  border-radius: 0.875rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 0 14px 40px -28px rgba(0, 38, 35, 0.35);
}

.adm-block { margin-bottom: 2.75rem; }
.adm-block:last-of-type { margin-bottom: 0; }
.adm-h {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  color: var(--adm-ink);
}
.adm-h-rule {
  width: 0.375rem;
  height: 2.5rem;
  background: var(--adm-gold);
  border-radius: 4px;
  flex: 0 0 auto;
}
.adm-main p,
.adm-lead {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  line-height: 2.5;
  color: var(--adm-body);
  font-weight: 400;
}
.adm-subh {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1.75rem 0 0.875rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--adm-ink);
}
.adm-subh-rule {
  width: 0.25rem;
  height: 1.5rem;
  background: var(--adm-ink);
  border-radius: 2px;
  flex: 0 0 auto;
}
.adm-list {
  margin: 0;
  padding: 0 1.25rem 0 0;
  color: var(--adm-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.adm-list li { margin-bottom: 0.5rem; }

.adm-docs {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.adm-docs > .adm-h {
  margin-bottom: 1.5rem;
}
.adm-docs-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--adm-body);
  font-size: 1.5rem;
  line-height: 2.5;
  font-weight: 400;
  text-align: start;
}
.adm-docs-group {
  margin: 0;
}
.adm-docs-group + .adm-docs-group {
  margin-top: 0;
}
/* Nested under المستندات المطلوبة — title + bullets sit inset. */
.adm-docs-group--nested {
  margin-top: 0.5rem;
  padding-inline-start: 2.25rem;
}
.adm-docs-subh {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 2.5;
  color: var(--adm-body);
  text-align: start;
}
.adm-docs-list {
  list-style: disc;
  list-style-position: outside;
  margin: 0;
  padding: 0;
  padding-inline-start: 1.5em;
}
.adm-docs-list li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  color: inherit;
  text-align: start;
}
.adm-docs-list li::before {
  content: none;
}

.adm-reqs {
  /* ثابت بين الدوائر: ارتفاع موحّد لكل عنصر + فراغ ثابت */
  --adm-req-item-h: 8.5rem;
  --adm-req-gap: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
@media (max-width: 48rem) {
  .adm-reqs {
    grid-template-columns: 1fr;
  }
}
.adm-req-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
/* Figma: dashed spine between numbered circles (not past the last).
   Circles sit on the inline-start side (right in Arabic, left in EN/TR). */
.adm-req-col li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4.0625rem;
  right: 2.03125rem;
  left: auto;
  width: 2px;
  height: calc(100% - 4.0625rem + var(--adm-req-gap));
  transform: translateX(50%);
  background: repeating-linear-gradient(
    to bottom,
    #002623 0 4px,
    transparent 4px 8px
  );
  pointer-events: none;
  z-index: 0;
}
.layout-admission[dir="ltr"] .adm-req-col li:not(:last-child)::after {
  right: auto;
  left: 2.03125rem;
  transform: translateX(-50%);
}
.adm-req-col li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8125rem;
  min-height: var(--adm-req-item-h);
  position: relative;
  z-index: 1;
}
.adm-req-col li > div { flex: 1; min-width: 0; }
.adm-req-col .adm-num {
  flex: 0 0 4.0625rem;
  width: 4.0625rem;
  height: 4.0625rem;
  background: var(--adm-shadow);
}
.adm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--adm-ink);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
}
.adm-num--sm {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.25rem;
}
.adm-req-col strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  color: var(--adm-muted);
  font-weight: 700;
}
.adm-req-col p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.68;
  color: #0f1e1b;
  font-weight: 500;
}

.adm-limits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.adm-limit-card {
  /* Equal green strip width on every card (single or dual scores). */
  direction: ltr;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.5rem;
  min-height: 11.5rem;
  background: #fff;
  border-radius: 0.6875rem;
  overflow: hidden;
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.12);
}
.adm-limit-body,
.adm-limit-score {
  direction: rtl;
}
.adm-limit-mark {
  position: absolute;
  left: 1.25rem;
  bottom: 0.5rem;
  width: 8.5rem;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.adm-limit-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.adm-limit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 4rem;
  height: 2.4375rem;
  padding: 0 0.75rem;
  background: var(--adm-gold);
  color: #fff;
  border-radius: 0.5625rem;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.adm-limit-body h3 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--adm-shadow);
  text-align: start;
}
.adm-limit-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-top: auto;
}
.adm-limit-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
  text-align: start;
  align-items: flex-start;
}
.adm-limit-meta div:not(:last-child) {
  border-inline-end: 1px solid var(--adm-gold);
}
.adm-limit-meta div > span {
  font-size: 1rem;
  color: var(--adm-meta-label);
  font-weight: 500;
}
.adm-limit-meta strong {
  font-size: 1rem;
  color: var(--adm-shadow);
  font-weight: 700;
}
.adm-limit-stack {
  display: inline;
}
.adm-limit-stack > span {
  display: inline;
}
.adm-gold-dot {
  color: var(--adm-gold);
  font-weight: 700;
  padding: 0 0.15rem;
}
.adm-limit-score {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--adm-shadow);
  color: #fff;
  padding: 1rem 0.75rem;
}
.adm-limit-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  flex: 1;
  min-width: 0;
}
.adm-limit-score-item em {
  font-style: normal;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.2;
  color: var(--adm-gold);
  margin: 0;
}
.adm-limit-score-item strong {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.adm-limit-card--dual .adm-limit-score-item strong {
  font-size: 1.75rem;
}
.adm-limit-card--dual .adm-limit-score-item:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.22);
  padding-inline-end: 0.5rem;
}
@media (max-width: 40rem) {
  .adm-hero-copy h1 {
    font-size: 1.5rem;
  }
  .adm-hero-copy p {
    font-size: 0.875rem;
    line-height: 1.65;
  }
  .adm-side-head h2 {
    font-size: 1.25rem;
  }
  .adm-facts,
  .adm-fact-k,
  .adm-fact-v {
    font-size: 0.8125rem;
  }
  .adm-btn {
    font-size: 0.875rem;
    min-height: 2.75rem;
  }
  .adm-h {
    font-size: 1.25rem;
  }
  .adm-main > .adm-block > p,
  .adm-lead {
    font-size: 0.875rem;
  }
  .adm-req-col .adm-num {
    font-size: 1.125rem;
  }
  .adm-req-col strong {
    font-size: 1rem;
  }
  .adm-req-col p {
    font-size: 0.8125rem;
  }
  .adm-docs-subh {
    font-size: 1.125rem;
  }
  .adm-docs-list li {
    font-size: 0.8125rem;
  }
  .adm-stages li {
    font-size: 0.875rem;
  }
  .adm-note-n {
    font-size: 1.75rem;
  }
  .adm-note-hero h3,
  .adm-note-card h3 {
    font-size: 1.0625rem;
  }
  .adm-note-hero p,
  .adm-note-card p {
    font-size: 0.8125rem;
  }
  .adm-limit-card {
    grid-template-columns: 1fr;
  }
  .adm-limit-score {
    order: -1;
    flex-direction: row;
    gap: 1rem;
    padding: 0.875rem 1rem;
  }
  .adm-limit-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
  }
  .adm-limit-meta div {
    padding: 0;
    flex: none;
    width: 100%;
  }
  .adm-limit-meta div:not(:last-child) {
    border-inline-end: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(185, 167, 121, 0.35);
  }
  .adm-limit-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .adm-limit-stack > span {
    display: block;
  }
  .adm-limit-join {
    display: none !important;
  }
  .adm-limit-body h3 { font-size: 1.125rem; text-align: start; }
  .adm-limit-score strong,
  .adm-limit-card--dual .adm-limit-score-item strong {
    font-size: 1.375rem;
  }
  .adm-limit-score-item em,
  .adm-limit-meta span {
    font-size: 0.75rem;
  }
}

.adm-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 40rem) {
  .adm-stages {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}
.adm-stages li {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.875rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.3125rem;
  box-shadow: 2px 2px 5.5px rgba(0, 0, 0, 0.25);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--adm-ink);
}

.adm-note-hero {
  position: relative;
  background: var(--adm-shadow);
  color: #fff;
  border-radius: 0.6875rem;
  padding: 2rem 2rem 2.25rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.adm-note-hero .adm-note-n {
  color: rgba(185, 167, 121, 0.45);
}
.adm-note-hero h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.adm-note-hero p {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.7;
}
.adm-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 48rem) {
  .adm-notes { grid-template-columns: 1fr; }
}
.adm-note-card {
  position: relative;
  border: 2px solid rgba(0, 38, 35, 0.12);
  border-radius: 0.6875rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  min-height: 14rem;
}
.adm-note-n {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(185, 167, 121, 0.33);
  margin-bottom: 0.75rem;
}
.adm-note-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--adm-shadow);
}
.adm-note-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--adm-muted);
}

.adm-foot-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

/* Decree viewer modal — shared with home page (decree.js). */
html.decree-open { overflow: hidden; }

.decree-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}
.decree-viewer[hidden] { display: none !important; }

.decree-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 38, 35, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.decree-viewer-panel {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  background: #f7f4ee;
  border: 1px solid var(--v2-gold);
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.decree-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--v2-shadow);
  color: #fff;
}

.decree-viewer-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.decree-viewer-heading p {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.decree-viewer-pages {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.decree-viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 0 0 auto;
}
.decree-viewer-download {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(185, 167, 121, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}
.decree-viewer-download:hover {
  background: var(--v2-gold);
  border-color: var(--v2-gold);
  color: #fff;
}
.decree-viewer-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.decree-viewer-close:hover { background: rgba(255, 255, 255, 0.2); }

.decree-viewer-body {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 167, 121, 0.12), transparent 40%),
    #efeae0;
  padding: 1rem 1rem 1rem;
}

.decree-viewer-stage {
  position: relative;
  min-height: min(70vh, 52rem);
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(5, 66, 57, 0.18);
  overflow: hidden;
  transition: transform .22s var(--v2-ease), opacity .22s var(--v2-ease);
}
.decree-viewer-stage.is-flip {
  animation: decreeFlip .28s var(--v2-ease);
}
@keyframes decreeFlip {
  from { opacity: .55; transform: translateX(0.4rem) scale(0.992); }
  to   { opacity: 1; transform: none; }
}

.decree-viewer-frame {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 52rem);
  border: 0;
  background: #fff;
}

@media (max-width: 767px) {
  .decree-viewer { padding: 0.5rem; }
  .decree-viewer-body {
    padding: 0.65rem;
  }
  .decree-viewer-stage,
  .decree-viewer-frame {
    min-height: min(68vh, 36rem);
  }
  .decree-viewer-bar {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .decree-viewer-download {
    font-size: 0.75rem;
    height: 2rem;
    padding: 0 0.65rem;
  }
}

/* ── LTR (English / Turkish) ───────────────────────────────────────────────
   Text reads left-to-right. Physical layout mirrors Arabic only from 65rem
   up; below that, stacking order matches Arabic (decree sidebar, then main). */
.layout-admission[dir="ltr"] .adm-side,
.layout-admission[dir="ltr"] .adm-main {
  direction: ltr;
}
.layout-admission[dir="ltr"] .adm-btn--decree img {
  transform: scaleX(-1);
}
@media (min-width: 65rem) {
  .layout-admission[dir="ltr"] .adm-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 33.75rem);
  }
  .layout-admission[dir="ltr"] .adm-side {
    order: 2;
  }
  .layout-admission[dir="ltr"] .adm-main {
    order: 1;
  }
  .layout-admission[dir="ltr"] .adm-limit-card {
    grid-template-columns: 14.5rem minmax(0, 1fr);
  }
  .layout-admission[dir="ltr"] .adm-limit-score {
    order: -1;
  }
  .layout-admission[dir="ltr"] .adm-limit-body,
  .layout-admission[dir="ltr"] .adm-limit-score {
    direction: ltr;
  }
  .layout-admission[dir="ltr"] .adm-limit-mark {
    left: auto;
    right: 1.25rem;
  }
}
@media (max-width: 64rem) {
  .layout-admission[dir="ltr"] .adm-side,
  .layout-admission[dir="ltr"] .adm-main {
    order: unset;
  }
  .layout-admission[dir="ltr"] .adm-limit-card {
    grid-template-columns: minmax(0, 1fr) 14.5rem;
  }
  .layout-admission[dir="ltr"] .adm-limit-score {
    order: unset;
  }
  .layout-admission[dir="ltr"] .adm-limit-body,
  .layout-admission[dir="ltr"] .adm-limit-score {
    direction: ltr;
  }
  .layout-admission[dir="ltr"] .adm-limit-mark {
    left: 1.25rem;
    right: auto;
  }
}
@media (max-width: 40rem) {
  .layout-admission[dir="ltr"] .adm-limit-card {
    grid-template-columns: 1fr;
  }
  .layout-admission[dir="ltr"] .adm-limit-score {
    order: -1;
  }
}
