:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #ddd4c4;
  --paper: #fffdf8;
  --header: #1b2822;
  --accent: #2f6b4f;
  --accent-soft: #e7f2eb;
  --warn: #8a4b12;
  --warn-soft: #f8efe4;
  --wall: #f4efe2;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.06);
  --max: 52rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -3rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 5;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--header);
  color: #f6f3ec;
}

.site-header .inner,
main,
.site-footer .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header .inner {
  padding: 1.4rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #b7c9be;
}

h1 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 650;
}

.lede {
  margin: 0.55rem 0 0;
  max-width: 38rem;
  color: #d7e2db;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.lang {
  margin-top: 0.9rem;
}

.lang a[aria-current="page"] {
  background: rgba(246, 243, 236, 0.16);
  border-color: #f6f3ec;
}

.nav a {
  color: #f6f3ec;
  text-decoration: none;
  border: 1px solid rgba(246, 243, 236, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(246, 243, 236, 0.12);
}

main {
  padding: 1.25rem 0 3rem;
}

section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.05rem;
}

.section-intro,
.note,
li {
  color: var(--ink);
}

.section-intro,
.note {
  margin-top: 0;
  color: var(--muted);
}

ol,
ul {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.steps li {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.steps strong {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 28rem;
}

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f7f3ea;
  font-weight: 650;
  white-space: nowrap;
}

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

tbody tr:hover td {
  background: #fbf8f2;
}

tr.is-wall td {
  background: var(--wall);
}

.tag {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--warn);
}

.callout {
  background: var(--warn-soft);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin: 0.8rem 0 0;
}

.callout p {
  margin: 0;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}

.jumps a {
  text-decoration: none;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.9rem;
}

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.55rem;
  }

  section {
    padding: 1rem 0.85rem 1.1rem;
  }

  table {
    min-width: 22rem;
  }
}
