:root {
    --navy: #0d1b2e;
    --navy-2: #132741;
    --gold: #c9a227;
    --gold-2: #e5c04b;
    --gold-grad: linear-gradient(135deg, #efd06a 0%, #c9a227 100%);
    --sand: #f6f4f0;
    --ink: #1c2530;
    --ink-2: #5b6470;
    --line: #e6e2da;
    --white: #ffffff;
    --teal: #2e7d6b;
    --sky: #3f7fbf;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.9;
    font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Cairo', 'Tajawal', sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: linear-gradient(180deg, #0e1e33 0%, var(--navy) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 35%, var(--gold-2) 65%, transparent 100%);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.brand small { font-size: 12px; color: #9fb0c5; font-weight: 500; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: #d7dee8; font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--gold-2); text-decoration: none; }

/* Hero */
.hero {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(229,192,75,.20), transparent 62%),
        radial-gradient(700px 380px at 8% 115%, rgba(46,125,107,.22), transparent 60%),
        linear-gradient(165deg, #0d1b2e 0%, #132741 55%, #10233c 100%);
    color: var(--white);
    padding: 48px 0 56px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.hero h1 span {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { color: #c6d2e0; font-size: 18px; margin-bottom: 16px; }
.hero .date-chip {
    display: inline-block;
    background: var(--gold-grad);
    color: var(--navy);
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(201,162,39,.35);
}
.hero img { border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }

/* Sections */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { color: var(--gold); font-weight: 800; font-size: 13.5px; letter-spacing: .04em; }
.section-title { font-size: 26px; font-weight: 800; margin: 4px 0 20px; position: relative; padding-bottom: 12px; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--gold-grad);
}

/* Snapshot */
.snapshot-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .snapshot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .snapshot-grid { grid-template-columns: repeat(3, 1fr); } }
.snap-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(13,27,46,.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.snap-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,27,46,.10); }
.snapshot-grid .snap-card:nth-child(3n+2) { border-top-color: var(--teal); }
.snapshot-grid .snap-card:nth-child(3n) { border-top-color: var(--sky); }
.snap-card .lbl { color: var(--ink-2); font-size: 13.5px; }
.snap-card .val { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 22px; margin-top: 2px; direction: ltr; text-align: right; }
.snap-card .val .unit { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.snap-card .tag { display: inline-block; font-size: 11px; background: #fdf6e0; color: #8a6d14; border-radius: 6px; padding: 0 8px; margin-top: 6px; }
.source-note { color: var(--ink-2); font-size: 13px; margin-top: 16px; line-height: 2; }

/* Brief */
.brief-list { list-style: none; counter-reset: b; }
.brief-list li {
    counter-increment: b;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.brief-list li::before {
    content: counter(b);
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--navy);
    box-shadow: 0 3px 8px rgba(201,162,39,.35);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.brief-list h3 { font-size: 17px; font-weight: 700; }
.brief-list p { color: var(--ink-2); font-size: 14.5px; }

/* Article cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
    color: var(--ink);
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,27,46,.12); }
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .3s ease; }
a.card:hover img { transform: scale(1.045); }
.card .body { padding: 16px 18px 20px; }
.card .k { color: var(--gold); font-size: 13px; font-weight: 700; }
.card h3 { font-size: 19px; font-weight: 800; margin: 4px 0 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; }

/* Article page */
.article-hero {
    background:
        radial-gradient(800px 360px at 85% -20%, rgba(229,192,75,.18), transparent 60%),
        linear-gradient(160deg, #0d1b2e 0%, #132741 100%);
    color: var(--white);
    padding: 44px 0;
}
.article-hero h1 { font-size: 30px; font-weight: 800; max-width: 760px; }
.article-hero .meta { color: #9fb0c5; font-size: 14px; margin-top: 10px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.article-body > img { border-radius: 16px; margin-bottom: 8px; }
.article-body .caption { color: var(--ink-2); font-size: 12.5px; margin-bottom: 28px; }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul { margin: 0 20px 16px 0; }
.article-body li { margin-bottom: 8px; }
.key-sentence {
    border-right: 4px solid var(--gold);
    background: linear-gradient(180deg, #fdf8e7 0%, #fbf3d9 100%);
    border-radius: 10px;
    padding: 16px 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 24px 0;
}
.box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
}
.box h4 { font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.box p, .box li { font-size: 14.5px; color: var(--ink-2); }
.back-link { display: inline-block; margin-top: 8px; font-weight: 700; }

/* Tools */
.tool {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}
.tool h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tool .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.tool label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.tool input[type="number"], .tool input[type="text"] {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    transition: border-color .15s ease, box-shadow .15s ease;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    direction: ltr;
    text-align: right;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button {
    border: 0;
    background: var(--white);
    padding: 9px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink-2);
}
.seg button.active { background: var(--gold-grad); color: var(--navy); }
.result {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--teal);
    margin-top: 16px;
}
.result small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.tool .note { color: var(--ink-2); font-size: 13px; margin-top: 10px; }

/* Footer */
.site-footer {
    background:
        radial-gradient(700px 300px at 12% -30%, rgba(229,192,75,.10), transparent 60%),
        var(--navy);
    color: #9fb0c5;
    padding: 40px 0 32px;
    margin-top: 24px;
    border-top: 3px solid var(--gold);
}
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { font-size: 22px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: #c6d2e0; display: block; margin-bottom: 6px; font-size: 14px; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .legal { border-top: 1px solid #22364f; margin-top: 28px; padding-top: 18px; font-size: 12.5px; line-height: 2; }

.tool input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
/* Gulf edition hero keeps the complete editorial illustration visible. */
.hero img { aspect-ratio:16/9; height:auto; object-fit:contain; }
