/* Tripoli Scope, after the 2023 design (dark header, black menu, image cards with gradients, coloured badges). */
:root {
    --ts-ink: #121212;
    --ts-mute: #8a8a8a;
    --ts-line: #e6e6e6;
    --ts-bg: #ffffff;
    --ts-soft: #f5f5f5;
    --ts-dark: #1c1c1c;
    --ts-gold: #f2b705;
    --ts-wrap: 1200px;
}

html, body {
    margin: 0;
    background: var(--ts-bg);
    color: var(--ts-ink);
    font-family: 'ge_ss_twomedium', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }
.c { text-align: center; }

.ts-wrap { max-width: var(--ts-wrap); margin: 0 auto; padding: 0 16px; }
.ts-sec { padding-top: 32px; padding-bottom: 8px; }

/* Header and menu */
.ts-header { background: linear-gradient(165deg, #090909 9%, #141414 50%, #242424 100%); color: #fff; }
.ts-header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.ts-logo img { display: block; width: 120px; height: auto; }
.ts-today { text-align: left; }
.ts-today-day { font-size: 15px; }
.ts-today-sub { font-size: 13px; color: #b1b2b2; margin-top: 4px; }

.ts-nav { background: #111; color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.ts-nav-in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.ts-links { display: flex; align-items: center; gap: 26px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ts-links::-webkit-scrollbar { display: none; }
.ts-links a { white-space: nowrap; font-size: 15px; padding: 18px 0; border-bottom: 3px solid transparent; }
.ts-links a:hover, .ts-links a.active { border-bottom-color: var(--ts-gold); }
.ts-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ts-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
.ts-search { display: flex; align-items: center; background: #222; border-radius: 4px; overflow: hidden; }
.ts-search input { background: transparent; border: 0; color: #fff; padding: 9px 12px; width: 190px; font-family: inherit; font-size: 14px; outline: none; }
.ts-search button { background: transparent; border: 0; color: #ddd; padding: 8px 12px; cursor: pointer; }
.ts-search.big { background: var(--ts-soft); border: 1px solid var(--ts-line); max-width: 560px; }
.ts-search.big input { color: var(--ts-ink); width: 100%; font-size: 16px; padding: 12px 14px; }
.ts-search.big button { background: var(--ts-ink); color: #fff; padding: 12px 22px; }

/* Lead strip */
.ts-strip { position: relative; background: #000; }
.ts-strip-in { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; padding: 4px 0; }
.ts-strip-in::-webkit-scrollbar { display: none; }
.ts-hero { position: relative; flex: 0 0 25%; min-width: 260px; aspect-ratio: 2 / 3; max-height: 460px; background: #222 center/cover no-repeat; scroll-snap-align: start; overflow: hidden; }
.ts-hero::before, .ts-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .9)); transition: background .2s; }
.ts-hero:hover::before, .ts-card:hover::before { background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .92)); }
.ts-hero-box { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px; color: #fff; }
.ts-hero-t { font-size: 19px; line-height: 1.6; font-weight: 700; margin-top: 10px; }
.ts-hero:hover .ts-hero-t, .ts-card:hover .ts-card-t { text-decoration: underline; }
.ts-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 26px; cursor: pointer; }
.ts-arrow.prev { right: 0; border-radius: 4px 0 0 4px; }
.ts-arrow.next { left: 0; border-radius: 0 4px 4px 0; }
.ts-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #ddd; }
.ts-badge { display: inline-block; color: #fff; font-size: 12px; padding: 4px 12px; line-height: 1.5; font-weight: 700; }
.ts-badge-corner { position: absolute; top: 0; right: 0; z-index: 2; }

/* News list beside the main story */
.ts-top { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.ts-list-panel { border: 1px solid #ddd; box-shadow: 0 0 13px rgba(0, 0, 0, .12); display: flex; flex-direction: column; min-height: 420px; max-height: 700px; }
.ts-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ddd; padding: 0 10px; overflow-x: auto; }
.ts-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 10px; font-size: 15px; cursor: pointer; color: var(--ts-ink); white-space: nowrap; }
.ts-tab.active { font-weight: 700; border-bottom-color: var(--ts-ink); }
.ts-list { overflow-y: auto; padding: 6px 12px; flex: 1; }
.ts-li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.ts-li:last-child { border-bottom: 0; }
.ts-li-img { flex: 0 0 110px; height: 74px; background: #eee center/cover no-repeat; }
.ts-li-d { font-size: 12px; color: #b5b5b5; }
.ts-li-t { font-size: 15px; line-height: 1.6; margin-top: 3px; }
.ts-li:hover .ts-li-t { text-decoration: underline; }

.ts-card { position: relative; display: block; background: #333 center/cover no-repeat; overflow: hidden; min-height: 210px; }
.ts-card-box { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #fff; z-index: 1; }
.ts-card-t { font-size: 16px; line-height: 1.6; font-weight: 700; }
.ts-card-t.big { font-size: 24px; line-height: 1.5; }
.ts-card-d { font-size: 13px; margin-top: 8px; color: #ddd; }
.ts-card-big { min-height: 436px; }
.ts-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

/* Category sections */
.ts-sec-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid #ebebeb; padding-bottom: 12px; margin-bottom: 20px; }
.ts-sec-head.dark { border-color: #333; }
.ts-sec-t { font-size: 22px; margin: 0; font-weight: 800; position: relative; }
.ts-sec-t::after { content: ''; position: absolute; right: 0; bottom: -13px; width: 60px; height: 3px; background: var(--ts-gold); }
.ts-more { font-size: 14px; color: var(--ts-mute); }
.ts-more:hover { color: var(--ts-ink); }
.ts-catrow { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.ts-cat-lead { min-height: 380px; }
.ts-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.ts-row:last-child { border-bottom: 0; }
.ts-row-img { height: 140px; background: #eee center/cover no-repeat; }
.ts-row-t { font-size: 18px; line-height: 1.6; font-weight: 700; }
.ts-row:hover .ts-row-t { text-decoration: underline; }
.ts-row-x { font-size: 14px; line-height: 1.8; color: #959595; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-row-d { font-size: 13px; color: var(--ts-mute); margin-top: 8px; }

/* Dark archive strip */
.ts-dark { background: #222; color: #fff; padding: 32px 0 6px; margin-top: 40px; }
.ts-dark-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.ts-dark-card { min-height: 300px; }

/* Grid pages */
.ts-page-head { margin-bottom: 24px; }
.ts-page-t { font-size: 30px; margin: 0; font-weight: 800; }
.ts-page-sub { color: var(--ts-mute); margin-top: 6px; }
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ts-gcard { display: block; }
.ts-gcard-img { position: relative; height: 206px; background: #eee center/cover no-repeat; }
.ts-gcard-img::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .2s; }
.ts-gcard:hover .ts-gcard-img::after { background: rgba(162, 94, 205, .35); }
.ts-gcard-body { padding-top: 14px; }
.ts-gcard-t { font-size: 17px; line-height: 1.6; font-weight: 700; }
.ts-gcard:hover .ts-gcard-t { text-decoration: underline; }
.ts-gcard-x { font-size: 14px; line-height: 1.8; color: #959595; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ts-gcard-d { font-size: 13px; color: var(--ts-mute); margin-top: 10px; }
.ts-years { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-years a { padding: 8px 16px; border: 1px solid var(--ts-line); font-size: 15px; }
.ts-years a.active, .ts-years a:hover { background: var(--ts-ink); color: #fff; border-color: var(--ts-ink); }
.ts-btn { background: var(--ts-ink); color: #fff; border: 0; padding: 13px 34px; font-size: 15px; cursor: pointer; }
.ts-btn:hover { background: #333; }
.ts-empty { color: var(--ts-mute); padding: 30px 0; text-align: center; }
.ts-missing { padding: 60px 0; text-align: center; }
.ts-missing a, .ts-contact a { color: #1a6fb5; text-decoration: underline; }
.ts-contact { font-size: 17px; line-height: 2; max-width: 760px; }

/* Article */
.ts-article-wrap { display: grid; grid-template-columns: 7fr 3fr; gap: 40px; }
.ts-art-head { position: relative; background: #222 center/cover no-repeat; min-height: 160px; }
.ts-art-head.has-img { min-height: 480px; }
.ts-art-box { position: absolute; right: 0; bottom: 0; width: 78%; background: #fff; padding: 18px 22px 16px; }
.ts-art-head:not(.has-img) .ts-art-box { position: static; width: 100%; }
.ts-art-t { font-size: 26px; line-height: 1.55; margin: 10px 0 8px; font-weight: 800; }
.ts-art-d { font-size: 13px; color: var(--ts-mute); }
.ts-share { display: flex; gap: 14px; align-items: center; font-size: 14px; padding: 18px 0; border-bottom: 1px solid #ddd; color: var(--ts-mute); }
.ts-share a { color: var(--ts-ink); }
.ts-share a:hover { text-decoration: underline; }
.ts-art-body { font-size: 18px; line-height: 2.05; padding: 28px 0 40px; overflow-wrap: anywhere; }
.ts-art-body p { margin: 0 0 18px; }
.ts-art-body img { display: block; margin: 18px auto; max-width: 100%; height: auto; }
.ts-art-body a { color: #1a6fb5; }
.ts-art-body iframe { max-width: 100%; }
.ts-aside-t { font-size: 17px; font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid var(--ts-ink); margin-bottom: 6px; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ts-tags a { background: var(--ts-soft); padding: 6px 12px; font-size: 13px; }
.ts-tags a:hover { background: var(--ts-ink); color: #fff; }

/* Footer */
.ts-footer { background: #222; color: #b1b2b2; padding: 70px 0 30px; margin-top: 50px; }
.ts-footer-in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; }
.ts-ftit { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 22px; }
.ts-ftxt { font-size: 14px; line-height: 1.9; }
.ts-fnews { display: block; margin-bottom: 18px; }
.ts-fnews-t { font-size: 14px; line-height: 1.8; }
.ts-fnews:hover .ts-fnews-t { color: #fff; text-decoration: underline; }
.ts-fnews-d { font-size: 12px; color: #fff; margin-top: 4px; }
.ts-flogo { text-align: center; }
.ts-flinks { margin-top: 18px; font-size: 14px; }
.ts-flinks a:hover { color: #fff; }
.ts-social { display: flex; gap: 12px; margin-top: 24px; }
.ts-social a { width: 46px; height: 46px; line-height: 46px; text-align: center; background: #fff; color: #232323; font-size: 18px; font-weight: 700; transition: .2s; }
.ts-social a.fb:hover { background: #3b5998; color: #fff; }
.ts-social a.tw:hover { background: #000; color: #fff; }
.ts-copy { text-align: center; font-size: 13px; margin-top: 40px; }

/* Loading dots */
.ts-loading { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.ts-loading span { width: 10px; height: 10px; border-radius: 50%; background: #bbb; animation: tsdot 1s infinite ease-in-out; }
.ts-loading span:nth-child(2) { animation-delay: .15s; }
.ts-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes tsdot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

@media (max-width: 1024px) {
    .ts-hero { flex-basis: 33.333%; }
    .ts-grid { grid-template-columns: repeat(2, 1fr); }
    .ts-dark-in { grid-template-columns: repeat(2, 1fr); }
    .ts-article-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ts-header-in { padding-top: 14px; padding-bottom: 14px; }
    .ts-logo img { width: 84px; }
    .ts-burger { display: block; }
    .ts-links { display: none; position: absolute; top: 56px; right: 0; left: 0; background: #111; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
    .ts-links.open { display: flex; }
    .ts-links a { padding: 14px 0; border-bottom: 1px solid #222; }
    .ts-search { flex: 1; }
    .ts-search input { width: 100%; }
    .ts-hero { flex-basis: 70%; }
    .ts-top, .ts-catrow { grid-template-columns: 1fr; }
    .ts-list-panel { order: 2; max-height: 520px; }
    .ts-card-big { min-height: 320px; }
    .ts-card-t.big { font-size: 20px; }
    .ts-grid3 { grid-template-columns: 1fr; }
    .ts-row { grid-template-columns: 120px 1fr; gap: 14px; }
    .ts-row-img { height: 90px; }
    .ts-row-t { font-size: 15px; }
    .ts-art-head.has-img { min-height: 300px; }
    .ts-art-box { position: static; width: 100%; }
    .ts-art-t { font-size: 21px; }
    .ts-art-body { font-size: 17px; }
    .ts-footer-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
    .ts-grid, .ts-dark-in { grid-template-columns: 1fr; }
    .ts-hero { flex-basis: 85%; }
}
