:root{font-family:Arial,"Segoe UI",sans-serif;color:#17233c;background:#f3f6fc}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
.site-header{background:linear-gradient(105deg,#091934 0%,#102d63 54%,#164a91 100%);color:#fff;box-shadow:0 3px 12px #07172f30}
.header-inner{width:100%;max-width:1600px;margin:auto;min-height:58px;padding:6px 23px;display:flex;align-items:center;gap:30px}
/* In RTL, first flex item (brand) appears at the right. */
.brand{display:inline-flex;align-items:center;gap:9px;flex:none;color:#fff;text-decoration:none;white-space:nowrap}
.brand-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(145deg,#2c75b6a0,#123368);border:1px solid #a6d4ff70;color:#dceeff}
.brand-symbol svg{width:29px;height:29px}
.brand-name{font-size:22px;font-weight:800;letter-spacing:-.5px}
.subject-nav{display:flex;align-items:center;justify-content:flex-start;gap:5px;white-space:nowrap}
.subject-link{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;color:#eef5ff;text-decoration:none;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:600;transition:background .18s,border-color .18s}
.subject-link svg{width:19px;height:19px;flex:none}
.subject-link svg.bi{fill:currentColor;stroke:none}
.subject-link svg:not(.bi){fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.subject-link:hover,.subject-link:focus-visible{background:#ffffff22;border-color:#ffffff55;outline:none}
.lang-selector{display:flex;flex:none;margin-right:auto;direction:ltr;gap:3px;padding:3px;border:1px solid #ffffff40;border-radius:9px;background:#0618348c}
.lang-btn{min-width:55px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#e8efff;font:700 13px Arial,"Segoe UI",sans-serif;cursor:pointer}
.lang-btn.is-active{color:#183e79;background:#fff;box-shadow:0 2px 6px #07194230}
.lang-btn:not(.is-active):hover{background:#ffffff20}
.lang-btn:focus-visible{outline:3px solid #facc15;outline-offset:2px}
.preview-body{max-width:1020px;margin:72px auto;padding:0 24px}
.preview-card{background:#fff;padding:38px 42px;border:1px solid #dfe7f4;border-radius:18px;box-shadow:0 9px 30px #192b5010}
.preview-eyebrow{color:#45669b;font-size:13px;font-weight:700}
h1{margin:13px 0;color:#183775;font-size:32px;direction:ltr;text-align:right}
p{max-width:650px;line-height:1.8;color:#475569}
.selection-status{background:#eef3ff;display:inline-block;padding:10px 16px;border-radius:9px;color:#173a83}
@media(max-width:820px){.header-inner{gap:14px;flex-wrap:wrap;padding:8px 12px}.subject-nav{order:3;width:100%;justify-content:center;flex-wrap:wrap}.lang-selector{margin-right:auto}.brand-name{font-size:20px}}
@media(max-width:480px){.header-inner{gap:8px}.subject-link{padding:6px;font-size:12px}.brand-name{font-size:18px}.brand-symbol{width:31px;height:31px}.brand-symbol svg{width:25px;height:25px}.lang-btn{min-width:48px;padding:6px}.preview-body{margin:30px auto;padding:0 14px}.preview-card{padding:23px}}
