/* ==========================================================================
   Sanad Office — Guides / articles
   Built on the same design tokens as the main site (see site.css :root).
   ========================================================================== */

/* ---------- page shell ---------- */
.g-main { background: var(--cream); }

/* the article pages use a static nav; keep the CTA clean */
.nav-cta, .nav-logo, .lang-pills a { text-decoration: none !important; }
.g-meta bdi, .g-body bdi { unicode-bidi: isolate; }

.g-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
    padding: 118px 20px 54px;
    position: relative;
    overflow: hidden;
}
.g-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(200,145,58,.18), transparent 70%);
    pointer-events: none;
}
.g-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }

.g-crumb {
    font-size: .74rem; font-weight: 700; letter-spacing: .04em;
    color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.g-crumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.g-crumb a:hover { color: var(--gold2); }
.g-crumb .sep { padding: 0 8px; color: rgba(255,255,255,.28); }

.g-cat {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(200,145,58,.14); border: 1.5px solid rgba(200,145,58,.4);
    color: var(--gold3); padding: 5px 15px; border-radius: 50px;
    font-size: .66rem; font-weight: 900; letter-spacing: .18em;
    text-transform: uppercase; margin-bottom: 16px;
}

.g-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    font-weight: 900; color: #fff; line-height: 1.25; margin: 0 0 14px;
}
.g-standfirst {
    font-size: clamp(.98rem, 1.6vw, 1.1rem); line-height: 1.75;
    color: rgba(255,255,255,.66); max-width: 68ch; margin: 0;
}

.g-meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .76rem; color: rgba(255,255,255,.5);
}
.g-meta b { color: rgba(255,255,255,.82); font-weight: 700; }
.g-meta .ok { color: #6ee7b7; }

/* ---------- body ---------- */
.g-body-wrap { max-width: 880px; margin: 0 auto; padding: 46px 20px 20px; }

.g-toc {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 16px; padding: 22px 26px; margin-bottom: 38px;
}
.g-toc-t {
    font-size: .68rem; font-weight: 900; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.g-toc ol { margin: 0; padding-inline-start: 20px; }
.g-toc li { margin: 7px 0; font-size: .92rem; }
.g-toc a { color: var(--text2); text-decoration: none; }
.g-toc a:hover { color: var(--gold); text-decoration: underline; }

.g-body { font-size: 1.02rem; line-height: 1.95; color: var(--text2); }
.g-body > h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900;
    color: var(--navy); line-height: 1.35;
    margin: 52px 0 16px; scroll-margin-top: 100px;
    padding-top: 8px;
}
.g-body > h2:first-child { margin-top: 0; }
.g-body > h3 {
    font-size: 1.08rem; font-weight: 800; color: var(--navy);
    margin: 32px 0 10px; scroll-margin-top: 100px;
}
.g-body p { margin: 0 0 18px; }
.g-body a { color: #9a6f24; text-decoration: underline; text-underline-offset: 3px; }
.g-body a:hover { color: var(--gold); }
.g-body strong { color: var(--navy); font-weight: 800; }

.g-body ul, .g-body ol { margin: 0 0 20px; padding-inline-start: 22px; }
.g-body li { margin: 9px 0; }
.g-body ul li::marker { color: var(--gold); }
.g-body ol li::marker { color: var(--gold); font-weight: 800; }

.g-lead {
    font-size: 1.1rem; line-height: 1.8; color: var(--text);
    font-weight: 600; margin-bottom: 26px;
}

/* ---------- tables ---------- */
.g-tbl-wrap { overflow-x: auto; margin: 0 0 26px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; }
.g-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.g-tbl th {
    background: var(--cream2); color: var(--navy); font-weight: 800;
    text-align: start; padding: 12px 15px; font-size: .8rem;
    letter-spacing: .02em; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.g-tbl td { padding: 12px 15px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.g-tbl tr:last-child td { border-bottom: 0; }
.g-tbl tbody tr:hover { background: #fdfaf4; }

/* ---------- callouts ---------- */
.g-call {
    border-radius: 14px; padding: 20px 24px; margin: 0 0 26px;
    border: 1.5px solid var(--border); background: #fff;
    border-inline-start: 4px solid var(--gold);
}
.g-call-t {
    font-weight: 900; color: var(--navy); font-size: .95rem;
    margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.g-call p:last-child { margin-bottom: 0; }
.g-call.warn { background: #fff9ec; border-inline-start-color: #d99a1e; }
.g-call.check { background: #f0fdf6; border-inline-start-color: var(--green); }
.g-call.check .g-call-t { color: #046c4e; }
.g-call.note { background: #f4f8fd; border-inline-start-color: #3b72c4; }
.g-call.note .g-call-t { color: #1e4b8f; }

/* ---------- key figure strip ---------- */
.g-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; margin: 0 0 30px;
}
.g-fact {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 14px; padding: 18px 20px;
}
.g-fact .n { font-size: 1.5rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.g-fact .l { font-size: .76rem; color: var(--text3); font-weight: 700; margin-top: 4px; line-height: 1.45; }

/* ---------- sources ---------- */
.g-sources {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 16px; padding: 24px 28px; margin: 44px 0 0;
}
.g-sources h2 {
    font-size: .68rem !important; font-weight: 900; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin: 0 0 14px !important;
}
.g-sources ol { margin: 0; padding-inline-start: 20px; font-size: .85rem; line-height: 1.7; }
.g-sources li { margin: 8px 0; color: var(--text3); }
.g-sources a { color: var(--text2); text-decoration: none; word-break: break-word; }
.g-sources a:hover { color: var(--gold); text-decoration: underline; }
.g-sources .tag {
    display: inline-block; font-size: .6rem; font-weight: 900; letter-spacing: .1em;
    padding: 1px 7px; border-radius: 20px; margin-inline-end: 7px; vertical-align: 1px;
}
.g-sources .tag.off { background: #e7f6ee; color: #046c4e; }
.g-sources .tag.sec { background: var(--cream2); color: #8a6a2a; }

/* ---------- CTA ---------- */
.g-cta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
    border-radius: 20px; padding: 38px 34px; margin: 44px 0 0;
    text-align: center; position: relative; overflow: hidden;
}
.g-cta::after {
    content: ""; position: absolute; inset: -40% -20% auto auto;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(200,145,58,.2), transparent 70%);
}
.g-cta > * { position: relative; z-index: 1; }
.g-cta h2 { color: #fff !important; font-size: 1.35rem !important; margin: 0 0 10px !important; font-weight: 900; }
.g-cta p { color: rgba(255,255,255,.62); max-width: 52ch; margin: 0 auto 22px; font-size: .95rem; line-height: 1.7; }

/* ---------- related ---------- */
.g-related { max-width: 880px; margin: 0 auto; padding: 48px 20px 70px; }
.g-related-t {
    font-size: .68rem; font-weight: 900; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.g-card {
    background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
    padding: 22px 24px; text-decoration: none; display: block;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.g-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 32px rgba(11,28,46,.09); }
.g-card .c { font-size: .63rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.g-card .t { font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 8px 0 6px; }
.g-card .d { font-size: .84rem; color: var(--text3); line-height: 1.6; }

/* ---------- index page ---------- */
.g-index { max-width: 1100px; margin: 0 auto; padding: 46px 20px 70px; }
.g-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.g-filter a {
    background: #fff; border: 1.5px solid var(--border); color: var(--text2);
    padding: 8px 18px; border-radius: 50px; font-size: .8rem; font-weight: 700;
    text-decoration: none; transition: all .2s;
}
.g-filter a:hover, .g-filter a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- disclaimer ---------- */
.g-disc {
    margin: 30px 0 0; font-size: .8rem; line-height: 1.7;
    color: var(--text3); border-top: 1px solid var(--border); padding-top: 18px;
}

/* ---------- RTL / LTR ---------- */
html[dir="ltr"] .g-standfirst,
html[dir="ltr"] .g-body { text-align: left; }
html[dir="rtl"] .g-body { text-align: right; }
.g-body table, .g-tbl { text-align: start; }

@media (max-width: 640px) {
    .g-hero { padding: 100px 18px 40px; }
    .g-body-wrap { padding: 34px 18px 12px; }
    .g-toc { padding: 18px 20px; }
    .g-sources, .g-cta { padding: 24px 20px; }
    .g-body { font-size: .98rem; }
}
