:root {
  --brand: #208aef;
  --brand-soft: #e8f2fe;
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #10203a;
  --muted: #55657e;
  --line: #e2e8f2;
  --shadow: 0 10px 30px rgba(9, 25, 51, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #61aefc;
    --brand-soft: #16283d;
    --bg: #0d1420;
    --card: #141d2c;
    --text: #e8eef8;
    --muted: #9fb0c8;
    --line: #243247;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Hebrew",
    "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  display: inline-block;
}

.langs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.langs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.wrap {
  max-width: 860px;
  margin: 28px auto 8px;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.35;
}

h2 {
  margin: 28px 0 8px;
  font-size: 19px;
  color: var(--brand);
}

h3 {
  margin: 18px 0 6px;
  font-size: 16px;
}

p,
li {
  color: var(--muted);
  margin: 0 0 10px;
}

ul,
ol {
  margin: 0 0 10px;
  padding-inline-start: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.meta {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.85;
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}

.note p:last-child,
.note ul:last-child,
.note ol:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.steps li {
  position: relative;
  padding-inline-start: 40px;
  margin-bottom: 12px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.btn {
  display: inline-block;
  margin: 6px 0;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 15px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
  color: var(--muted);
}

th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

footer.site {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 44px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .card {
    padding: 22px 18px;
  }
  h1 {
    font-size: 23px;
  }
}
