/* Palette, base text, links, and top bar. */
:root {
  --brand: #1f4638;
  --brand-deep: #163327;
  --brand-soft: #e2ece7;
  --alarm: #e8932e;
  --alarm-text: #9a5b00;
  --ink: #16201c;
  --muted: #55635e;
  --ground: #eef2f0;
  --line: #d6dfda;
  --paper: #ffffff;
  --danger: #b3261e;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --measure: 34rem;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

/* English pages: Plex's Latin cut, with the Arabic family behind it for
   the odd Arabic word (the «العربية» switch). */
body:lang(en) {
  font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--alarm);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-block: 0;
  padding-inline: var(--gutter);
}

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ------------------------------------------------------------ top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  display: grid;
  place-items: center;
}

.logo small {
  font-weight: 500;
  font-size: .78rem;
  color: var(--muted);
  display: block;
  line-height: 1.1;
}

/* The language switch: one quiet link at the other end of the bar. */
.lang {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 2px;
}

.lang:hover { color: var(--ink); text-decoration: underline; }

