:root {
  color-scheme: light;
  --ink: #173a5e;
  --muted: #5d7182;
  --accent: #cf5d29;
  --link: #087ebd;
  --gold: #f4b73f;
  --card: rgba(255, 255, 255, .96);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #e9f8ff; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 222, 125, .85), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(255, 149, 34, .22), transparent 25rem),
    linear-gradient(160deg, #49b8ee 0%, #dff6ff 48%, #fff8e9 100%);
  color: var(--ink);
  font: 16px/1.72 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans CJK SC", "Noto Sans Arabic", sans-serif;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px max(20px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid rgba(23, 58, 94, .12);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 28px rgba(23, 58, 94, .08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(207, 93, 41, .2);
  border-radius: 50%;
  background: #fff1c7;
  font-size: 23px;
}

.language-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 58, 94, .18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 58, 94, .08);
}

select {
  max-width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

main { max-width: 920px; margin: 0 auto; padding: 42px 24px 80px; }

.card {
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(23, 58, 94, .2);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 { margin: 0 0 18px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.14; }
h2 { margin: 36px 0 10px; color: var(--accent); font-size: 1.34rem; line-height: 1.35; }
p, ul, ol { margin-top: 10px; margin-bottom: 16px; }
ul, ol { padding-inline-start: 1.45rem; }
li + li { margin-top: 8px; }
a { color: var(--link); text-underline-offset: 3px; }

.meta, footer { color: var(--muted); }
.note { padding: 14px 18px; border-radius: 14px; background: #fff4d8; }

.button {
  display: inline-block;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ff9522;
  box-shadow: 0 5px 0 #b76018;
  color: #17222f;
  font-weight: 800;
  text-decoration: none;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

footer { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(23, 58, 94, .14); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

html[dir="rtl"] body { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[dir="rtl"] .brand, html[dir="rtl"] .language-control { direction: rtl; }

@media (max-width: 620px) {
  .site-header { align-items: stretch; flex-direction: column; gap: 10px; }
  .language-control { align-self: flex-start; }
  select { max-width: calc(100vw - 100px); }
  main { padding: 24px 14px 50px; }
  .card { border-radius: 22px; }
}
