@font-face {
    font-family: "Readex Pro";
    src: url("/fonts/readex-pro-arabic-v27.woff2?v=readex-arabic-v27") format("woff2");
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: #19324f;
    background: #eef3f8;
    font-family: "Readex Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #bd8b34; outline-offset: 2px; }
[hidden] { display: none !important; }
.guide-shell { width: min(1000px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; right: 16px; z-index: 10; padding: 8px 14px; background: #fff; }
.skip-link:focus { top: 8px; }
.guide-header { background: #fff; border-bottom: 1px solid #d6e4ef; }
.guide-header__inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.guide-brand img { width: 34px; height: 34px; object-fit: contain; }
.guide-home { padding: 6px 11px; color: #12345e; border: 1px solid #b8cee1; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.guide-home:hover { background: #edf5fb; }
.guide-intro { margin-block: 18px 12px; padding: 17px 22px; background: #12345e; color: #fff; border-radius: 13px; }
.guide-intro h1 { margin: 0; font-size: 25px; line-height: 1.35; }
.guide-intro p { margin: 4px 0 0; color: #e8f1fb; }
.guide-notice, .guide-empty { padding: 14px 16px; background: #fff; border: 1px solid #d4e2ee; border-radius: 10px; }
.guide-tools { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #d4e2ee; border-radius: 10px; }
.guide-tools label { font-weight: 800; white-space: nowrap; }
.guide-tools input { width: min(100%, 420px); min-height: 36px; padding: 6px 10px; border: 1px solid #b8cee1; border-radius: 6px; background: #fbfdff; color: #19324f; font: inherit; }
.guide-tools input::placeholder { color: #6b7d90; }
.guide-roles { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; border-bottom: 1px solid #c6d8e8; }
.guide-roles button { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 14px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; background: transparent; color: #486784; font: inherit; font-weight: 800; cursor: pointer; }
.guide-roles button:hover { background: #e5f0f9; color: #12345e; }
.guide-roles button[aria-selected="true"] { background: #fff; color: #12345e; border-color: #c6d8e8; border-bottom-color: #fff; }
.guide-roles span { min-width: 19px; padding: 0 5px; border-radius: 10px; background: #dcebf8; color: #12345e; font-size: 11px; text-align: center; direction: ltr; unicode-bidi: isolate; }
.guide-section { margin-bottom: 12px; padding: 14px 16px; background: #fff; border: 1px solid #d4e2ee; border-radius: 10px; }
.guide-section__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #e3ebf2; }
.guide-section__heading h2 { margin: 0; color: #12345e; font-size: 16px; }
.guide-section__heading > span { color: #6b7d90; font-size: 12px; white-space: nowrap; }
.guide-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.guide-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 9px 12px; background: #f8fbfe; border: 1px solid #e3ebf2; border-radius: 8px; }
.guide-item__copy { min-width: 0; }
.guide-item h3 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.65; }
.guide-item > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 5px 10px; color: #fff; background: #1766a3; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.guide-item > a:hover { background: #12345e; }
.guide-item > a span { direction: ltr; }
.guide-footer { padding: 16px 0; color: #6b7d90; font-size: 11px; text-align: center; }

@media (max-width: 620px) {
    .guide-shell { width: calc(100% - 20px); }
    .guide-header__inner { min-height: 56px; }
    .guide-brand { font-size: 11px; }
    .guide-brand img { width: 29px; height: 29px; }
    .guide-home { padding: 5px 8px; font-size: 11px; }
    .guide-intro { margin-top: 10px; padding: 13px 15px; }
    .guide-intro h1 { font-size: 21px; }
    .guide-tools { display: block; }
    .guide-tools label { display: block; margin-bottom: 5px; }
    .guide-tools input { width: 100%; }
    .guide-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border-bottom: 0; }
    .guide-roles button { justify-content: center; min-width: 0; margin-bottom: 0; padding-inline: 7px; border: 1px solid #c6d8e8; border-radius: 6px; white-space: nowrap; }
    .guide-roles button[aria-selected="true"] { border-color: #1766a3; background: #eaf3fb; }
    .guide-section { padding: 11px; }
    .guide-item { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
