:root { --navy: #0d103d; --gold: #f9af00; --gold-dark: #956100; --ink: #11131b; --muted: #5f6878; --line: #dcd9cf; --paper: #fff; --bg: #f3f1ea; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15.5px/1.7 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #1424a8; }
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100% - 860px) / 2)); background: var(--navy); }
.toolbar a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.toolbar button { padding: 9px 16px; color: var(--navy); background: var(--gold); border: 0; border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.doc { width: min(860px, calc(100% - 32px)); margin: 24px auto 64px; padding: clamp(24px, 5vw, 56px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.doc-head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.doc-head img { object-fit: contain; }
.doc-head small { color: var(--gold-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.doc-head h1 { margin: 2px 0 0; color: var(--navy); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.15; }
.notice { padding: 12px 14px; background: #fff6dc; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; font-size: .88rem; }
h2 { margin: 26px 0 8px; color: var(--navy); font-size: 1.05rem; }
p, li { color: #2c3140; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: .88rem; }
th, td { padding: 8px 10px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: #f4f3ee; color: var(--navy); }
table.kv th { width: 22%; background: #faf9f5; font-weight: 700; }
td.c { text-align: center; width: 38px; }
.sow tbody th { background: #faf9f5; width: 20%; }
.hint { color: var(--muted); font-size: .82rem; margin: 0 0 4px; }
.blank { display: inline-block; min-height: 1.3em; padding: 0 4px; border-bottom: 1px dotted #8a8f9c; outline: none; vertical-align: bottom; }
.blank:focus { background: #fff6dc; }
.opt { white-space: nowrap; margin-inline-end: 10px; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.signs > div { min-height: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
hr { margin: 36px 0 10px; border: 0; border-top: 1px solid var(--line); }
.doc-foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
@media (max-width: 640px) { .signs { grid-template-columns: 1fr; } table { font-size: .8rem; } th, td { padding: 6px; } .sow { display: block; overflow-x: auto; } }
@media print {
  body { background: #fff; font-size: 11pt; }
  .toolbar { display: none; }
  .doc { width: auto; margin: 0; padding: 0; border: 0; }
  .notice { break-inside: avoid; }
  h2 { break-after: avoid; }
  tr, .signs { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .blank:empty { min-width: 18ch !important; }
}
.doc-lang { display: flex; gap: 4px; margin-inline-start: auto; }
.doc-lang a { padding: 5px 9px; border-radius: 999px; color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 800; }
.doc-lang a[aria-current] { background: #fff; color: var(--navy); }
.notice.translated { background: #eef0f7; border-color: #1424a8; }
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", Tahoma, sans-serif; font-size: 16px; line-height: 1.85; }
[dir="rtl"] .notice { border-left: 0; border-right: 3px solid var(--gold); border-radius: 10px 0 0 10px; }
[dir="rtl"] .doc-head small { letter-spacing: 0; }
@media print { .notice.translated { display: block; } }
.toolbar a, .toolbar button { white-space: nowrap; }
@media (max-width: 640px) {
  .toolbar { gap: 8px; padding-inline: 12px; }
  .toolbar > a { font-size: .82rem; }
  .toolbar button { padding: 8px 11px; font-size: .8rem; }
  .doc-lang a { padding: 4px 7px; }
  table { display: block; overflow-x: auto; }
  table.kv th { width: auto; min-width: 90px; }
}
.blank { max-width: 100%; }
.doc-slogan { display: block; margin-top: 4px; color: var(--gold-dark); font-weight: 800; font-size: .85rem; }
.doc-phone { color: #fff !important; font-size: .82rem !important; opacity: .9; }
@media (max-width: 640px) { .doc-phone { display: none; } }

h1, h2 { text-wrap: balance; } p, li { text-wrap: pretty; } td { font-variant-numeric: tabular-nums; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .toolbar, [dir="rtl"] th { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-weight: 600; }
.doc-head { justify-content: space-between; }
.doc-logo { width: 236px; height: auto; flex: 0 0 auto; }
.doc-foot { display: flow-root; }
.doc-qr { float: inline-end; margin-inline-start: 12px; width: 64px; height: 64px; }
@media (max-width: 640px) { .doc-logo { width: 160px; } }
[dir="rtl"] body { font-family: var(--font-ar, "IBM Plex Sans Arabic"), Tahoma, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .toolbar, [dir="rtl"] th { font-family: var(--font-ar-display, "Readex Pro"), sans-serif; }
