@font-face {
  font-family: LocalArabic;
  src: local("Tahoma");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #173d36;
  --muted: #596b60;
  --green: #16564c;
  --forest: #16564c;
  --cream: #f2f3f0;
  --paper: #fff;
  --line: #dce0d5;
  --gold: #b49a63;
  --red: #a13838;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px/1.65 Arial,
    LocalArabic,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.3;
  letter-spacing: -1.7px;
  font-weight: 500;
}
h2 {
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.wrap {
  max-width: 1280px;
  margin: auto;
  padding-inline: 48px;
}
.topline {
  background: var(--green);
  color: #e9eee4;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 0;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 420px;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}
.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
}
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.lang {
  background: none;
  border: 0;
  padding: 10px;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fffefa;
  border-radius: 5px;
  padding: 12px 22px;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.btn.secondary {
  background: transparent;
  color: var(--green);
  border-color: #b7c5b9;
}
.btn.light {
  background: #f7f2e5;
  color: var(--green);
  border-color: #f7f2e5;
}
.btn.small {
  padding: 7px 13px;
  min-height: 38px;
  font-size: 12px;
}
.btn.danger {
  background: #fff;
  border-color: #d8aaaa;
  color: var(--red);
}
.link {
  border: 0;
  border-bottom: 1px solid #97ada0;
  background: none;
  padding: 3px 0;
  color: var(--green);
  font-size: 13px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2.6px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow:before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.entry-head {
  padding-top: 74px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
}
.entry-head h1 {
  margin-bottom: 0;
}
.entry-head p {
  max-width: 355px;
  margin: 0;
  padding-bottom: 6px;
  line-height: 1.9;
}
.selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}
.choice {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.choice-art,
.soon-art {
  aspect-ratio: 2.4;
  flex-shrink: 0;
}
.choice-art {
  background: var(--green);
  position: relative;
  overflow: hidden;
}
.choice-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #173d3650, transparent);
}
.art-label {
  position: absolute;
  inset-inline-start: 28px;
  bottom: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
}
.choice-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.number {
  font: 12px monospace;
  color: #596b60;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e8eee4;
  color: #426650;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.badge.live:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4b8055;
}
.badge.draft {
  background: #f5ecd9;
  color: #85602c;
}
.badge.members {
  background: #e7edf3;
  color: #445e79;
}
.choice h2 {
  font-size: 24px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.choice-bottom {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.choice-bottom small {
  color: var(--muted);
}
.soon-art {
  background: #e6e8df;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.soon-art:before,
.soon-art:after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid #ccd3c5;
  border-radius: 50%;
  transform: translate(35px, 80px);
}
.soon-art:after {
  width: 450px;
  height: 450px;
}
.soon-symbol {
  width: 85px;
  height: 85px;
  border: 1px solid #c5cebd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #88977d;
  font-size: 27px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-block: 26px;
  gap: 30px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.iconbox {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6c836e;
}
.footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  margin-top: 30px;
  font-size: 11px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.nav {
  display: flex;
  gap: 30px;
  min-height: 55px;
  align-items: center;
  overflow: auto;
  border-top: 1px solid #eceee6;
  font-size: 13px;
  white-space: nowrap;
}
.nav a {
  padding-block: 15px;
}
.nav a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  font-weight: bold;
}
.backlink {
  font-size: 11px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-top: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--green);
  min-height: 460px;
}
.hero-copy {
  padding: 55px 40px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.7px;
}
.hero .eyebrow {
  color: #e8d0ab;
}
.hero p {
  color: #d1dcd1;
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-art {
  position: relative;
  min-height: 0;
  aspect-ratio: 1;
  align-self: center;
  overflow: hidden;
}
.hero-art img {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #164e4530);
}
.hero-caption {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid #ffffff40;
  background: #163d3660;
  color: white;
  font-size: 11px;
}
.section {
  padding-block: 42px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  min-width: 0;
}
.card img.cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}
.card p {
  font-size: 13px;
  white-space: pre-line;
}
.card h3 {
  margin-bottom: 12px;
}
.card .iconbox {
  margin-bottom: 24px;
}
.empty {
  border: 1px dashed #bfcaba;
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  background: #eeefe7;
  color: var(--muted);
  font-size: 14px;
}
.empty .symbol {
  font-size: 30px;
  color: #82977f;
  margin-bottom: 12px;
}
.member-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e5eadd;
  border-radius: 8px;
  padding: 34px 38px;
  gap: 30px;
}
.member-strip h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.member-strip p {
  margin: 0;
  font-size: 13px;
}
.page-heading {
  padding-top: 50px;
  padding-bottom: 18px;
}
.page-heading h1 {
  font-size: 40px;
  margin-bottom: 12px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.article {
  max-width: 820px;
  margin: auto;
  padding-block: 36px;
}
.article-body {
  white-space: pre-line;
  color: #42594f;
  font-size: 17px;
  line-height: 2;
}
.article img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
}
.content-section {
  margin: 28px 0;
}
.callout {
  padding: 25px;
  background: #e6ecdf;
  border-inline-start: 3px solid var(--gold);
  border-radius: 4px;
}
.board-card {
  overflow-wrap: anywhere;
  text-align: center;
}
.cards.board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .cards.board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .cards.board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.portrait {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  background: #e6ecdf;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #9aaa94;
}
.president {
  max-width: 420px;
  margin: 0 auto 20px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 50px auto;
  max-width: 1000px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.login-aside {
  background: var(--green);
  color: #fff;
  padding: 50px;
  position: relative;
}
.login-aside h2 {
  font-size: 35px;
  margin-top: 35px;
}
.login-aside p {
  color: #cfdbcf;
}
.login-aside img {
  width: 100%;
  border-radius: 100px 100px 8px 8px;
  margin-top: 25px;
  opacity: 0.8;
}
.login-form {
  padding: 45px;
}
.login-form h1 {
  font-size: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--ink);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd3c5;
  background: #fffefa;
  color: var(--ink);
  border-radius: 5px;
  padding: 11px 13px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin-block: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-note {
  font-size: 12px;
  line-height: 1.8;
}
.error {
  background: #fbeae7;
  border: 1px solid #e4b8b1;
  padding: 12px;
  border-radius: 5px;
  color: #963d35;
  font-size: 13px;
  margin-bottom: 16px;
}
.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  padding-block: 35px;
}
.sidebar {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 25px;
}
.sidebar .eyebrow {
  font-size: 9px;
  margin-top: 8px;
}
.sidebar a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 5px;
}
.sidebar a.active {
  background: #dfe8da;
  color: var(--green);
  font-weight: bold;
}
.sidebar .admin-context {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
}
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.admin-title h1 {
  font-size: 32px;
  margin: 0;
}
.admin-title p {
  font-size: 12px;
  margin: 4px 0 0;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #ecefe5;
  padding: 14px 16px;
  text-align: start;
  font-weight: 600;
}
td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td.actions {
  white-space: nowrap;
}
td .btn {
  margin: 2px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.editor {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.editor h3 {
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-top: 18px;
}
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding-block: 18px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  z-index: 2;
}
.section-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 15px;
  background: #f5f5ee;
}
.section-editor .toolbar {
  justify-content: space-between;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.media-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  overflow: hidden;
}
.media-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #e9ecdf;
}
.media-item code {
  font-size: 9px;
  word-break: break-all;
}
.notice {
  padding: 15px 18px;
  background: #f2ead8;
  border: 1px solid #e2d4b6;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 22px;
  color: #76613f;
}
.subtle {
  color: var(--muted);
  font-size: 12px;
}
.advertisement {
  margin-block: 20px;
  text-align: center;
  min-height: 120px;
}
.advertisement:empty {
  display: none;
}
.advertisement.reserved {
  min-height: 160px;
}
.advertisement.reserved:empty {
  display: block;
}
.advertisement small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: var(--muted);
}
.advertisement img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 5px;
}
.ad-mobile img {
  max-width: 360px;
  height: 160px;
}
.ad-desktop img {
  height: 180px;
}
.ad-preview {
  border: 1px solid var(--line);
  padding: 16px;
  margin-block: 16px;
  text-align: center;
}
.ad-preview img {
  width: 100%;
  object-fit: contain;
}
.ad-popup {
  padding: 24px;
}
.ad-popup img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}
.ad-popup .close {
  margin-bottom: 14px;
}
dialog {
  max-width: min(850px, 92vw);
  width: 800px;
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
}
dialog::backdrop {
  background: #16382f99;
  backdrop-filter: blur(3px);
}
dialog .dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
dialog .dialog-head h2 {
  font-size: 23px;
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  inset-inline-end: 25px;
  background: var(--green);
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0002;
  z-index: 20;
  display: none;
  max-width: 90vw;
  font-size: 13px;
}
#toast.show {
  display: block;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 0;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.footer-note {
  max-width: 600px;
}
.fallback {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.nowrap {
  white-space: nowrap;
}
.credential {
  font: 12px monospace;
  direction: ltr;
  user-select: all;
}
.pagination {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  align-items: center;
}
.hidden {
  display: none !important;
}
[dir="rtl"] h1,
[dir="rtl"] h2 {
  letter-spacing: 0;
}
[dir="rtl"] .hero-copy {
  line-height: 1.8;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-size: 13px;
}
[dir="rtl"] .brand small {
  letter-spacing: 0;
}
[dir="rtl"] .choice h2 {
  font-size: 25px;
}
[dir="rtl"] .entry-head h1 {
  font-size: 56px;
}
@font-face {
  font-family: SyndicateArabic;
  src: url("/fonts/arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
body {
  font-family: SyndicateArabic, Arial, sans-serif;
}
[dir="rtl"] .choice h2 {
  font-size: 23px;
  line-height: 1.9;
}
[dir="rtl"] .brand small {
  line-height: 1.8;
}
[dir="rtl"] .hero h1 {
  line-height: 1.65;
}
[dir="rtl"] .topline {
  letter-spacing: 0;
}
[dir="rtl"] .eyebrow {
  font-size: 11px;
}
[dir="rtl"] .form-note {
  line-height: 2;
}
.focal-top img {
  object-position: top;
}
.focal-bottom img {
  object-position: bottom;
}
.focal-left img {
  object-position: left;
}
.focal-right img {
  object-position: right;
}
@media (min-width: 1600px) {
  .wrap {
    max-width: 1400px;
  }
  .entry-head {
    padding-top: 95px;
  }
}
@media (max-width: 950px) {
  .wrap {
    padding-inline: 26px;
  }
  .header-inner {
    gap: 12px;
  }
  .brand {
    max-width: 320px;
  }
  .brand strong {
    font-size: 13px;
  }
  .nav {
    gap: 24px;
  }
  .entry-head {
    gap: 30px;
  }
  .choice-body {
    padding: 24px;
  }
  .choice h2 {
    font-size: 21px;
  }
  .hero-copy {
    padding: 35px 28px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-shell {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 22px;
  }
  .sidebar {
    padding-inline-end: 14px;
  }
  .stats {
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-aside {
    padding: 32px;
  }
  .login-form {
    padding: 30px;
  }
}
@media (max-width: 650px) {
  .wrap {
    padding-inline: 20px;
  }
  .topline {
    font-size: 9px;
  }
  .topline .wrap > span:last-child {
    display: none;
  }
  .header-inner {
    min-height: 80px;
    flex-wrap: wrap;
    padding-block: 14px;
    gap: 12px;
  }
  .brand {
    max-width: calc(100% - 100px);
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand strong {
    font-size: 12px;
  }
  .brand small {
    font-size: 9px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .btn {
    padding: 9px 12px;
    min-height: 38px;
    font-size: 11px;
  }
  .header-actions .lang {
    padding: 8px;
  }
  .header-inner:has(.brand strong.long) .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .entry-head {
    grid-template-columns: 1fr;
    padding-top: 42px;
    gap: 22px;
    margin-bottom: 28px;
  }
  .entry-head h1,
  [dir="rtl"] .entry-head h1 {
    font-size: 40px;
  }
  .entry-head p {
    font-size: 13px;
    max-width: 100%;
  }
  .selection {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 30px;
  }
  .choice-art,
  .soon-art {
    height: auto;
    aspect-ratio: 1.75;
  }
  .choice h2,
  [dir="rtl"] .choice h2 {
    font-size: 23px;
  }
  .choice-body {
    padding: 24px;
  }
  .trust-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 24px;
  }
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    gap: 22px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .hero-copy {
    padding: 35px 27px;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-art {
    min-height: 0;
    aspect-ratio: 1.6;
    grid-row: 2;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-actions .btn {
    padding: 11px 15px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .section {
    padding-block: 28px;
  }
  .section-heading {
    align-items: center;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .member-strip {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .member-strip h2 {
    font-size: 24px;
  }
  .page-heading {
    padding-top: 32px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    margin: 25px auto;
  }
  .login-aside {
    padding: 28px;
  }
  .login-aside h2 {
    font-size: 27px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .login-aside img {
    display: none;
  }
  .login-aside p {
    margin-bottom: 0;
    font-size: 12px;
  }
  .login-form {
    padding: 28px;
  }
  .admin-shell {
    display: block;
    padding-top: 20px;
  }
  .sidebar {
    border: 0;
    padding: 0;
    margin-bottom: 25px;
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar a {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar .eyebrow,
  .sidebar .admin-context {
    display: none;
  }
  .admin-title h1 {
    font-size: 27px;
  }
  .admin-title {
    align-items: start;
    gap: 10px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .stat {
    padding: 15px 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 9px;
  }
  .editor {
    padding: 20px;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article {
    padding-top: 20px;
  }
  .article-body {
    font-size: 15px;
  }
  .form-grid {
    gap: 0;
  }
  dialog {
    padding: 20px;
  }
  .advertisement img {
    height: 100px;
  }
  .empty {
    padding: 28px 20px;
  }
}
/* Shared non-destructive image positioning, with matching editor frames. */
img.cropped-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--desktop-x, 50%) var(--desktop-y, 50%);
  transform: scale(var(--desktop-zoom, 1));
  transform-origin: var(--desktop-x, 50%) var(--desktop-y, 50%);
}
.image-editor {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  min-width: 0;
}
.image-editor legend {
  font-weight: 600;
  padding: 0 8px;
}
.image-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.image-preview-grid section {
  min-width: 0;
}
.image-crop-preview {
  position: relative;
  overflow: hidden;
  background: #e6ecdf;
  display: grid;
  place-items: center;
}
.image-crop-preview img {
  position: absolute;
  inset: 0;
}
.preview-desktop.preview-choice {
  aspect-ratio: 2.4;
}
.preview-mobile.preview-choice {
  aspect-ratio: 1.75;
}
.preview-desktop.preview-hero {
  aspect-ratio: 1;
}
.preview-mobile.preview-hero {
  aspect-ratio: 1.6;
}
.crop-control {
  margin-block: 12px;
}
.crop-control input {
  padding: 0;
  width: 100%;
  accent-color: var(--green);
}
.crop-control output {
  font-size: 12px;
}
@media (max-width: 650px) {
  img.cropped-image {
    object-position: var(--mobile-x, 50%) var(--mobile-y, 50%);
    transform: scale(var(--mobile-zoom, 1));
    transform-origin: var(--mobile-x, 50%) var(--mobile-y, 50%);
  }
  .image-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .image-editor {
    padding: 12px;
  }
}
.preview-desktop img.cropped-image {
  object-position: var(--desktop-x, 50%) var(--desktop-y, 50%);
  transform: scale(var(--desktop-zoom, 1));
  transform-origin: var(--desktop-x, 50%) var(--desktop-y, 50%);
}
.preview-mobile img.cropped-image {
  object-position: var(--mobile-x, 50%) var(--mobile-y, 50%);
  transform: scale(var(--mobile-zoom, 1));
  transform-origin: var(--mobile-x, 50%) var(--mobile-y, 50%);
}

/* Balanced surfaces: forest for navigation/actions, warm neutrals for content. */
body {
  background: var(--cream);
}
.topline {
  background: #fff;
  color: #16564c;
  border-bottom: 1px solid #397368;
}
.header,
.footer {
  background: var(--forest);
  color: #fff;
}
.header {
  border-bottom-color: #397368;
}
.header .brand small,
.header .lang,
.header .backlink,
.footer .link,
.footer a,
.footer-note {
  color: #fff;
}
.header .brand img {
  background: var(--paper);
  border-radius: 8px;
  padding: 4px;
}
.btn {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.btn.secondary {
  background: transparent;
  color: var(--forest);
  border-color: #829b91;
}
.btn.light {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn.danger {
  background: #fff;
  border-color: #d8aaaa;
  color: var(--red);
}
.header .btn {
  background: var(--forest);
  color: #fff;
  border-color: #fff;
}
.header .nav {
  border-top-color: #397368;
}
.header .nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.header .nav a:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer {
  padding-block: 34px;
  border-top-color: #397368;
}
.footer .link {
  border-bottom-color: #b3d1c6;
}
.hero,
.hero-copy,
.login-aside {
  background: #e5e8e4;
  color: var(--forest);
}
.hero p,
.hero .eyebrow,
.login-aside p,
.login-aside .eyebrow {
  color: var(--forest);
}
.entry-head,
.page-heading,
.admin-title,
.member-strip,
.trust-row {
  color: var(--forest);
  border-radius: 10px;
}
.entry-head {
  background: #e5e8e4;
  margin-top: 32px;
  padding: 40px;
  gap: 32px;
}
.page-heading {
  background: #e5e8e4;
  margin-top: 30px;
  margin-bottom: 24px;
  padding: 28px 32px;
}
.admin-title {
  background: #e5e8e4;
  padding: 24px;
  flex-wrap: wrap;
}
.entry-head p,
.page-heading p,
.admin-title p,
.member-strip p,
.page-heading .breadcrumb {
  color: var(--ink);
}
.entry-head .eyebrow,
.page-heading .eyebrow,
.sidebar .eyebrow,
.member-strip .eyebrow {
  color: var(--forest);
}
.trust-row {
  background: #e5e8e4;
  padding: 24px;
  border-color: transparent;
}
.trust-row .iconbox {
  color: var(--forest);
  border-color: #829b91;
  flex-shrink: 0;
}
.sidebar {
  background: #fff;
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px;
}
.sidebar .admin-context {
  color: var(--muted);
  border-top-color: var(--line);
}
.sidebar a.active {
  background: var(--forest);
  color: #fff;
}
.sidebar a:not(.active):hover {
  background: #e5e8e4;
}
.sidebar a {
  overflow-wrap: anywhere;
}
.card,
.editor,
.stat,
.table-wrap,
.media-item,
.choice,
.login-form {
  background: #fff;
  color: var(--ink);
}
input,
textarea,
select {
  background: #fff;
}
#main:has(> .hero) > .section,
.member-content {
  margin-top: 28px;
  padding: 28px;
  border-radius: 10px;
  background: #e5e8e4;
  color: var(--forest);
}
#main:has(> .hero) > .section:nth-of-type(odd) {
  background: #eef0eb;
}
#main:has(> .hero) > .section .section-heading .eyebrow,
#main:has(> .hero) > .section .section-heading > .link {
  color: var(--forest);
}
#main:has(> .hero) > .section .empty,
.member-content .empty {
  color: var(--ink);
}
.member-strip {
  background: #e5e8e4;
  margin-top: 28px;
}
:focus-visible {
  outline-color: var(--forest);
}
.header :focus-visible,
.footer :focus-visible,
.sidebar a.active:focus-visible {
  outline-color: #fff;
}
.sidebar a.active:focus-visible {
  outline-color: var(--forest);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .entry-head {
    padding: 26px 22px;
    margin-top: 22px;
    gap: 20px;
  }
  .page-heading {
    padding: 24px 20px;
    margin-top: 22px;
  }
  .admin-title {
    padding: 20px;
  }
  .sidebar {
    padding: 10px;
  }
  .sidebar a {
    flex-shrink: 0;
  }
  #main:has(> .hero) > .section,
  .member-content {
    padding: 22px 18px;
  }
  .trust-row {
    padding: 22px;
  }
}

/* Full syndicate names remain readable beside their logo at every width. */
.brand:has(.long) {
  min-width: 0;
  max-width: 680px;
  flex: 1 1 auto;
}
.brand:has(.long) > span {
  min-width: 0;
}
.brand:has(.long) img {
  flex-shrink: 0;
}
.brand strong.long {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .brand:has(.long) {
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
  }
}
