:root {
  --ink: #102027;
  --muted: #5d6f77;
  --paper: #ffffff;
  --soft: #f4f7f2;
  --mint: #dbe9de;
  --green: #1f6f4a;
  --deep: #123b50;
  --gold: #c99b45;
  --rose: #f3e6df;
  --line: #dce5df;
  --shadow: 0 18px 42px rgba(12, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  background: #f7faf8;
  color: var(--deep);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 8px 0;
}

.top-strip a,
.top-strip-inner > span:not(.social-links) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid rgba(18, 59, 80, 0.12);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  color: var(--green);
  border-color: rgba(31, 111, 74, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #233b42;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--soft);
}

.nav-cta {
  background: var(--deep);
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 11vw, 160px) clamp(18px, 6vw, 88px) 72px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18, 59, 80, 0.96), rgba(31, 111, 74, 0.88)),
    linear-gradient(45deg, rgba(201, 155, 69, 0.24) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px),
    #123b50;
}

.page-hero {
  padding: 76px clamp(18px, 6vw, 88px) 62px;
  background:
    radial-gradient(circle at 14% 18%, rgba(244, 213, 150, 0.24), transparent 24%),
    linear-gradient(120deg, rgba(18, 59, 80, 0.98), rgba(31, 111, 74, 0.88)),
    #123b50;
  color: white;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 213, 150, 0.24), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(7, 29, 34, 0.12), rgba(7, 29, 34, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: min(420px, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 47%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(244, 213, 150, 0.16) 48% 52%, transparent 53%);
  opacity: 0.42;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-width: 900px;
  margin-inline: auto;
  color: white;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #f4d596;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #1b160d;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.band {
  background: var(--soft);
}

.content-section,
.intro,
.governance,
.documents,
.stats,
.contact {
  padding: 76px clamp(18px, 6vw, 88px);
}

.section-head {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.intro-grid,
.directory,
.stat-grid,
.cards,
.media-layout {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four,
.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-grid article,
.directory article,
.cards article,
.wide-panel,
.stat-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.intro-grid article,
.directory article,
.cards article,
.wide-panel {
  padding: 24px;
}

.feature-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--deep);
  color: white;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card.accent {
  background: var(--green);
}

.feature-card a {
  margin-top: 12px;
  color: #f5d98b;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
}

.tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8df9d;
  font-weight: 800;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3ead9;
  color: #7d5a16;
  font-size: 13px;
  font-weight: 800;
}

.stat-grid article {
  padding: 28px 20px;
  text-align: center;
}

.stat-grid strong {
  display: block;
  color: var(--green);
  font-size: 46px;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-weight: 700;
}

.media-layout {
  grid-template-columns: 1.2fr 1fr;
}

.wide-panel:first-child {
  grid-row: span 2;
  min-height: 260px;
  background: var(--mint);
}

.wide-panel.rose {
  background: var(--rose);
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partners-row span {
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

.governance {
  background: #122a32;
  color: white;
}

.governance .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: var(--gold);
  color: #1b160d;
}

.panel {
  display: none;
  padding: 28px;
  color: var(--ink);
}

.panel.is-active {
  display: block;
}

.panel ul {
  margin: 0;
  padding-right: 22px;
}

.documents {
  background: #122a32;
  color: white;
}

.documents .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.doc-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.doc-search {
  display: grid;
  gap: 8px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.doc-search input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.doc-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--gold);
  color: #1b160d;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-item {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.doc-item.is-hidden {
  display: none;
}

.doc-type {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.doc-item p {
  color: var(--muted);
}

.doc-item a {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.doc-item a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #25424a;
  font-weight: 800;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 6vw, 88px);
  background: #0d2027;
  color: white;
}

.site-footer p {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.documents-page {
  background: #f4f7f2;
}

.dms-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 213, 150, 0.3), transparent 26%),
    linear-gradient(120deg, rgba(18, 59, 80, 0.98), rgba(31, 111, 74, 0.88)),
    #123b50;
  color: white;
  overflow: hidden;
}

.dms-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -170px;
  transform: translateX(-50%);
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  opacity: 0.5;
}

.dms-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.dms-hero h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 6vw, 72px);
}

.dms-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.dms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dms-shell {
  padding: 42px clamp(18px, 6vw, 88px) 86px;
}

.dms-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dms-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.dms-summary strong {
  display: block;
  color: var(--green);
  font-size: 38px;
  line-height: 1;
}

.dms-summary span {
  color: var(--muted);
  font-weight: 800;
}

.dms-years {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 74, 0.08), rgba(201, 155, 69, 0.12)),
    white;
}

.dms-years-copy h2,
.dms-years-copy p {
  margin: 0;
}

.dms-years-copy h2 {
  font-size: 26px;
}

.dms-years-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
}

.dms-year-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dms-year {
  display: grid;
  min-width: 128px;
  padding: 14px 18px;
  border: 1px solid rgba(18, 59, 80, 0.18);
  border-radius: 8px;
  background: white;
  text-align: center;
  box-shadow: 0 12px 26px rgba(12, 42, 35, 0.08);
}

.dms-year span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dms-year strong {
  color: var(--deep);
  font-size: 28px;
  line-height: 1.1;
}

.dms-year.is-active {
  border-color: var(--green);
  background: var(--green);
}

.dms-year.is-active span,
.dms-year.is-active strong {
  color: white;
}

.dms-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dms-toolbar {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.dms-year-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 111, 74, 0.16);
  border-radius: 8px;
  background: var(--soft);
}

.dms-year-heading span {
  color: var(--green);
  font-weight: 900;
}

.dms-year-heading strong {
  color: var(--deep);
  font-size: 20px;
}

.dms-search-box {
  display: grid;
  gap: 8px;
  max-width: 720px;
  font-weight: 800;
}

.dms-search-box input {
  min-height: 54px;
  border-width: 2px;
  background: white;
}

.dms-search-box input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.12);
}

.dms-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dms-filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dms-filter:hover,
.dms-filter.is-active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.dms-status-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dms-status-filter > span {
  margin-inline-end: 4px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

.dms-state-filter {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.dms-state-filter:hover,
.dms-state-filter.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: white;
}

.dms-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dms-category-strip article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dms-category-strip strong,
.dms-category-strip span {
  display: block;
}

.dms-category-strip strong {
  color: var(--deep);
  font-size: 22px;
}

.dms-category-strip span {
  color: var(--muted);
  font-weight: 800;
}

.dms-content-list {
  padding: 26px 24px 32px;
}

.dms-category {
  margin-bottom: 34px;
}

.dms-category.is-hidden,
.dms-doc.is-hidden {
  display: none;
}

.dms-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.dms-category-head h2 {
  margin: 0;
  font-size: 28px;
}

.dms-category-head span {
  min-width: max-content;
  color: var(--gold);
  font-weight: 800;
}

.dms-doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dms-doc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--green);
  border-radius: 8px;
  background: white;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dms-doc[data-status="pending"] {
  border-inline-start-color: var(--gold);
  background: #fffdf9;
}

.dms-doc:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 74, 0.34);
  box-shadow: 0 12px 28px rgba(12, 42, 35, 0.09);
}

.dms-doc-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dms-doc-main > div {
  width: 100%;
  min-width: 0;
}

.dms-doc--with-preview {
  grid-template-columns: minmax(170px, 0.75fr) minmax(220px, 1.25fr);
  grid-template-areas:
    "main preview"
    "actions preview";
  align-items: stretch;
}

.dms-doc--with-preview .dms-doc-main {
  grid-area: main;
}

.dms-doc--with-preview .dms-doc-actions {
  grid-area: actions;
  align-self: end;
}

.dms-site-preview {
  grid-area: preview;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dms-site-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.2s ease;
}

.dms-site-preview:hover img {
  transform: scale(1.02);
}

.dms-doc-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 74, 0.92), rgba(18, 59, 80, 0.92));
}

.dms-doc h3 {
  margin: 0;
  font-size: 18px;
}

.dms-doc p {
  display: none;
}

.dms-file-meta {
  display: none;
}

.dms-file-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dms-title-link {
  color: var(--deep);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.18s ease;
}

.dms-title-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.dms-title-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(31, 111, 74, 0.22);
  outline-offset: 4px;
}

.dms-doc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dms-date,
.dms-status,
.dms-download {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.dms-date {
  background: var(--soft);
  color: var(--muted);
}

.dms-status.available {
  background: #e3f1e7;
  color: var(--green);
}

.dms-status.pending,
.dms-download.pending {
  background: #f3ead9;
  color: #7d5a16;
}

.dms-download:not(.pending) {
  background: var(--deep);
  color: white;
}

.dms-download:not(.pending):hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(18, 59, 80, 0.16);
}

.dms-preview-trigger {
  border: 1px solid var(--deep);
  background: white !important;
  color: var(--deep) !important;
}

.dms-direct-download {
  background: var(--deep) !important;
  color: white !important;
}

.dms-preview-dialog {
  width: min(1160px, calc(100vw - 48px));
  max-width: none;
  height: min(900px, calc(100vh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 28px 90px rgba(5, 25, 29, 0.34);
}

.dms-preview-dialog::backdrop {
  background: rgba(5, 25, 29, 0.72);
  backdrop-filter: blur(3px);
}

.dms-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  background: white;
}

.dms-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.dms-preview-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.dms-preview-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.dms-preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dms-preview-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--deep);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dms-preview-frame-wrap {
  min-height: 0;
  padding: 12px;
  background: #e9efed;
}

.dms-preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 1px solid rgba(18, 59, 80, 0.14);
  border-radius: 8px;
  background: white;
}

.dms-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: white;
}

.dms-primary-action,
.dms-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.dms-primary-action {
  background: var(--deep);
  color: white;
}

.dms-secondary-action {
  border: 1px solid var(--deep);
  background: white;
  color: var(--deep);
}

.dms-empty {
  display: none;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.dms-empty.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 72vh;
    align-items: flex-end;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(8, 31, 35, 0.86), rgba(8, 31, 35, 0.2));
  }

  .intro-grid,
  .directory,
  .cards.split,
  .cards.three,
  .cards.four,
  .stat-grid,
  .doc-grid,
  .partners-row,
  .dms-summary,
  .dms-years,
  .dms-category-strip,
  .dms-doc-list,
  .media-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .dms-year-list {
    justify-content: stretch;
  }

  .dms-year {
    width: 100%;
  }

  .dms-doc {
    grid-template-columns: 1fr;
  }

  .dms-doc--with-preview {
    grid-template-areas:
      "main"
      "preview"
      "actions";
  }

  .dms-doc-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .dms-preview-dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .dms-preview-frame-wrap iframe {
    min-height: 420px;
  }

  .wide-panel:first-child {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .dms-toolbar,
  .dms-content-list {
    padding-inline: 16px;
  }

  .dms-filter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 8px;
    scrollbar-width: thin;
  }

  .dms-filter {
    flex: 0 0 auto;
  }

  .dms-status-filter > span {
    width: 100%;
  }

  .dms-state-filter {
    flex: 1 1 auto;
  }

  .dms-doc {
    min-height: 0;
    padding: 16px;
  }

  .dms-preview-head {
    padding: 14px;
  }

  .dms-preview-frame-wrap {
    padding: 6px;
  }

  .dms-preview-frame-wrap iframe {
    min-height: 340px;
  }

  .dms-preview-actions {
    padding: 12px 14px;
  }

  .dms-primary-action,
  .dms-secondary-action {
    flex: 1 1 100%;
  }

  .brand small {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .hero-lead {
    font-size: 17px;
  }

  .content-section,
  .intro,
  .governance,
  .documents,
  .stats,
  .contact {
    padding-block: 54px;
  }

  .top-strip-inner {
    justify-content: center;
    text-align: center;
    width: min(100% - 24px, 420px);
  }

  .top-strip a,
  .top-strip-inner > span:not(.social-links) {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    width: 100%;
    justify-content: center;
  }
}
