:root {
  color-scheme: light;
  --ink: #16120d;
  --ink-soft: #43392f;
  --gold: #b88a36;
  --gold-soft: #e3c98f;
  --ivory: #faf7ef;
  --paper: #ffffff;
  --line: #e7ded0;
  --green: #436654;
  --muted: #74695f;
  --shadow: 0 20px 60px rgba(22, 18, 13, 0.12);
  --radius: 8px;
  font-family: "Tajawal", "IBM Plex Sans Arabic", "Cairo", "Segoe UI",
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, 0.94);
  border-bottom: 1px solid rgba(231, 222, 208, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(184, 138, 54, 0.8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold-soft);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 10px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #2a2219;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-outline {
  border-color: rgba(22, 18, 13, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: center;
  color: #fff;
  background-image: linear-gradient(
      90deg,
      rgba(22, 18, 13, 0.24),
      rgba(22, 18, 13, 0.76)
    ),
    url("/assets/hero-majlis.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(250, 247, 239, 0), var(--ivory));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding-block: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main {
  flex: 1;
}

.section {
  padding-block: 72px;
}

.section.paper {
  background: var(--paper);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-kicker {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.3;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-lead {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.notice,
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(22, 18, 13, 0.06);
}

.card {
  padding: 22px;
}

.card h2,
.card h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.card-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 9px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 999px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.88rem;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 30px;
  align-items: center;
}

.statement {
  padding: 32px;
  border-right: 4px solid var(--gold);
  background: rgba(184, 138, 54, 0.08);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
}

.list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 10px;
}

.list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.page-hero {
  padding-block: 64px 42px;
  background: var(--ink);
  color: #fff;
}

.page-hero .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.breadcrumb a {
  color: #fff;
}

.notice {
  padding: 24px;
  border-color: rgba(67, 102, 84, 0.24);
  background: #fbfdf9;
}

.private-notice {
  border-right: 4px solid var(--green);
}

.governance-alert {
  border-right: 4px solid var(--gold);
  background: #fff8e8;
}

.governance-band {
  align-items: stretch;
}

.committee-card h4 {
  margin: 18px 0 8px;
  color: var(--green);
  font-size: 0.98rem;
}

.table-wrap {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(22, 18, 13, 0.06);
  overflow-x: auto;
}

.governance-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.governance-table th,
.governance-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

.governance-table th {
  background: #f6efe2;
  color: var(--ink);
  font-weight: 900;
}

.governance-table td {
  color: var(--muted);
}

.governance-table tr:last-child td {
  border-bottom: 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: decision;
}

.steps-list li {
  counter-increment: decision;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(22, 18, 13, 0.06);
  color: var(--muted);
}

.steps-list li::before {
  content: counter(decision);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 16px;
  right: 18px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.timeline p {
  min-height: 38px;
  margin: 0;
  padding: 6px 0 16px;
  color: var(--muted);
}

.tree-image-frame {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
}

.tree-image-frame img {
  width: 100%;
  min-width: min(920px, 100%);
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.form-panel {
  padding: 24px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(184, 138, 54, 0.36);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 8px;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(67, 102, 84, 0.26);
  border-radius: var(--radius);
  background: #f3faf5;
  color: var(--green);
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  padding-block: 44px;
  background: #100d09;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 26px;
}

.footer h2,
.footer h3 {
  margin-bottom: 12px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.74);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1020px) {
  .nav {
    align-items: flex-start;
    padding-block: 14px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    white-space: normal;
  }

  .nav-actions {
    margin-right: auto;
  }

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

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

  .feature-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: 74vh;
    background-position: 42% center;
  }

  .hero-content {
    padding-block: 54px 70px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding-block: 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
  }

  .governance-table,
  .governance-table thead,
  .governance-table tbody,
  .governance-table tr,
  .governance-table td {
    display: block;
    min-width: 0;
  }

  .governance-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .governance-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .governance-table tr:last-child {
    border-bottom: 0;
  }

  .governance-table td {
    padding: 10px 0;
    border-bottom: 0;
  }

  .governance-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 900;
  }

  .button-row,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
