@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/alexandria-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/alexandria-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alexandria-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alexandria-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:800;src:url(fonts/alexandria-arabic-800-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Alexandria';font-style:normal;font-display:swap;font-weight:800;src:url(fonts/alexandria-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --ink:#0E3B49; --red:#D92D3A; --red-d:#B3202C; --shore:#F5F8F8; --mist:#DCE7EA; --white:#fff;
  --text:#1F2E33; --text-2:#3A4A50; --muted:#5A6A70;
  --crit:#D92D3A; --crit-bg:#FBE4E6; --high:#B45F06; --high-bg:#FBEEDD; --med:#2C6A80; --med-bg:#E1EEF2; --low:#5F6F75; --low-bg:#ECEFF0;
  --r:16px; --wrap:1240px;
  --f-head:'Alexandria',system-ui,sans-serif; --f-body:'IBM Plex Sans Arabic',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--shore);color:var(--text);font:400 16px/1.7 var(--f-body)}
/* keep the footer at the bottom on short pages */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
#main{flex:1 0 auto;width:100%}
.site-footer{flex-shrink:0}
a{color:var(--ink)} a:hover{color:var(--red)}
h1,h2,h3{font-family:var(--f-head);color:var(--ink);line-height:1.35;margin:0}
img,svg{display:block}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;inset-inline-start:12px;top:-60px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px;z-index:50}
.skip:focus{top:12px}
.muted{color:var(--muted)}
:focus-visible{outline:3px solid #2C6A80;outline-offset:2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:12px;border:1px solid transparent;font:600 15px var(--f-head);text-decoration:none;cursor:pointer;white-space:nowrap}
.btn-tg{background:var(--red);color:#fff}
.btn-tg:hover{background:var(--red-d);color:#fff}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#0A2D38;color:#fff}
.btn-ghost{background:var(--white);border-color:var(--mist);color:var(--ink)}
.btn-ghost:hover{border-color:#9EC0CA;color:var(--ink)}
.btn-block{width:100%}

/* header */
.site-header{background:var(--white);border-bottom:1px solid var(--mist);position:sticky;top:0;z-index:20}
.hdr{display:flex;align-items:center;gap:20px;min-height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-name{font:800 22px/1 var(--f-head);color:var(--ink);white-space:nowrap}
.ls-short{display:none}
.brand-name span{color:var(--red)}
.nav{display:flex;gap:4px;margin-inline-start:12px}
.nav a{padding:8px 12px;border-radius:10px;text-decoration:none;color:var(--text-2);font-weight:500}
.nav a[aria-current=page]{color:var(--ink);font-weight:600;background:var(--shore)}
.hdr-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}
.lang-switch{font:600 14px var(--f-head);text-decoration:none;border:1px solid var(--mist);padding:9px 12px;border-radius:10px;min-height:44px;display:inline-flex;align-items:center}
.menu-btn{display:none;background:none;border:1px solid var(--mist);border-radius:10px;width:44px;height:44px;align-items:center;justify-content:center;color:var(--ink);cursor:pointer}

/* hero */
.hero{padding:8px 0 4px;display:flex;flex-direction:column;gap:2px}
.hero h1{font-size:clamp(28px,4vw,44px);font-weight:800;margin:10px 0 8px}
.lead{font-size:18px;color:var(--text-2);max-width:720px;margin:0 0 18px}
.live-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:15px}
.live-badge{display:inline-flex;align-items:center;gap:8px;background:var(--crit-bg);color:var(--red-d);font:600 14px var(--f-head);padding:5px 14px;border-radius:999px}
.live-dot{width:9px;height:9px;border-radius:50%;background:var(--red);animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}
.area-chips,.filters{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 16px;border-radius:999px;border:1px solid var(--mist);background:var(--white);color:var(--text);font:500 15px var(--f-body);text-decoration:none;cursor:pointer}
.chip:hover{border-color:#9EC0CA;color:var(--ink)}
.chip.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.chip .dot{width:9px;height:9px;border-radius:50%}
.chip-critical .dot{background:var(--crit)} .chip-high .dot{background:var(--high)} .chip-medium .dot{background:var(--med)} .chip-low .dot{background:var(--low)}

/* layout */
.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:32px;padding-top:28px;padding-bottom:56px;align-items:start}
.feed-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.side{display:flex;flex-direction:column;gap:20px;position:sticky;top:88px}
.page{padding-top:24px;padding-bottom:64px}
.page h1{font-size:clamp(26px,3.4vw,38px);font-weight:800;margin:8px 0 12px}

/* cards */
.feed{display:flex;flex-direction:column;gap:14px}
.card{background:var(--white);border:1px solid var(--mist);border-inline-start:5px solid var(--low);border-radius:var(--r);padding:18px 22px;display:flex;flex-direction:column;gap:8px}
.card.sev-critical{border-inline-start-color:var(--crit)} .card.sev-high{border-inline-start-color:var(--high)} .card.sev-medium{border-inline-start-color:var(--med)}
.card.is-new{animation:flash 2.4s ease-out}
@keyframes flash{0%{background:#FFF4F5}100%{background:var(--white)}}
.card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.card-meta a{color:var(--muted);text-decoration:none} .card-meta a:hover{color:var(--ink);text-decoration:underline}
.badge{color:#fff;font-weight:600;font-size:13px;padding:2px 11px;border-radius:999px;background:var(--low)}
.b-critical{background:var(--crit)} .b-high{background:var(--high)} .b-medium{background:var(--med)}
.card-title{font-size:20px;font-weight:700;line-height:1.5}
.card-title a{color:var(--ink);text-decoration:none} .card-title a:hover{color:var(--red)}
.card-sum{margin:0;color:var(--text-2);font-size:15.5px}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.facts{display:flex;gap:6px;flex-wrap:wrap}
.fact{font-size:13px;font-weight:600;padding:2px 10px;border-radius:8px;background:var(--shore);color:var(--text-2)}
.fact-k{background:var(--crit-bg);color:var(--red-d)} .fact-u{background:var(--high-bg);color:#8F4A03}
.card-src{font-size:13px;color:var(--muted)}
.feed[data-sev=Critical] .card:not([data-sev=Critical]),
.feed[data-sev=High] .card:not([data-sev=High]),
.feed[data-sev=Medium] .card:not([data-sev=Medium]),
.feed[data-sev=Low] .card:not([data-sev=Low]){display:none}
.feed-more{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.empty{background:var(--white);border:1px dashed var(--mist);border-radius:var(--r);padding:28px;text-align:center;color:var(--muted)}
.new-toast{position:fixed;top:80px;left:50%;transform:translateX(-50%);z-index:30;background:var(--ink);color:#fff;border:0;border-radius:999px;padding:10px 20px;font:600 15px var(--f-head);cursor:pointer;box-shadow:0 6px 20px rgba(14,59,73,.25)}

/* side panels */
.panel{background:var(--white);border:1px solid var(--mist);border-radius:20px;padding:22px}
.panel-h{font-size:17px;font-weight:600;margin-bottom:14px}
.panel-tg{background:var(--ink);border-color:var(--ink);color:var(--shore);display:flex;flex-direction:column;gap:12px}
.panel-tg h2{color:#fff;font-size:21px}
.panel-tg p{margin:0;color:var(--mist)}
.counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.count{border-radius:12px;padding:12px 14px;display:flex;flex-direction:column}
.count strong{font:800 26px/1.2 var(--f-head)} .count span{font-size:14px;color:var(--muted)}
.c-critical{background:var(--crit-bg)} .c-critical strong{color:var(--red-d)}
.c-high{background:var(--high-bg)} .c-high strong{color:#8F4A03}
.c-medium{background:var(--med-bg)} .c-medium strong{color:var(--med)}
.c-low{background:var(--low-bg)} .c-low strong{color:var(--low)}
.area-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.area-list a{display:block;padding:10px 4px;border-bottom:1px solid var(--shore);text-decoration:none}
.area-list a[aria-current=page]{color:var(--red);font-weight:600}
.area-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.area-card h2{font-size:20px} .area-card ul{padding-inline-start:18px;margin:8px 0 0}

/* ads */
.ad{position:relative;min-height:120px}
.ad-label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}

/* single item */
.story h1{font-size:clamp(26px,3.6vw,38px);font-weight:800;line-height:1.4}
.story-facts{display:flex;flex-wrap:wrap;gap:10px 28px;margin:4px 0;padding:14px 18px;background:var(--white);border:1px solid var(--mist);border-radius:14px}
.story-facts dt{font-size:13px;color:var(--muted)} .story-facts dd{margin:0;font-weight:600}
.story-body{font-size:19px;line-height:1.9;margin:0}
.story-src{color:var(--text-2);margin:0}
.note-u{display:inline-block;background:var(--high-bg);color:#8F4A03;font-weight:600;border-radius:8px;padding:4px 12px;margin:0}
.share{display:flex;gap:8px;flex-wrap:wrap}
.ai-note{font-size:13px;color:var(--muted);margin:0}
.related h2{font-size:22px;margin:12px 0}
.related .card-title{font-size:18px}

/* breadcrumbs, lists, prose */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;font-size:14px;color:var(--muted)}
.crumbs li+li::before{content:'/';margin-inline-end:6px;color:var(--mist)}
.crumbs a{color:var(--muted)}
.day-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.day-list li{background:var(--white);border:1px solid var(--mist);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column}
.t-crit{color:var(--red-d);font-weight:600}
.pager{display:flex;justify-content:space-between;gap:12px}
.prose{max-width:820px}
.prose h2{font-size:22px;margin:28px 0 8px}
.prose p,.prose li{font-size:17px}
.contact-big{font:700 22px var(--f-head)}
.src-list{columns:2;padding-inline-start:18px}
.search{display:flex;gap:10px;margin:8px 0 18px;flex-wrap:wrap}
.search input{flex:1 1 260px;min-height:46px;padding:10px 14px;border:1px solid var(--mist);border-radius:12px;font:inherit;background:var(--white)}

/* footer */
.site-footer{background:var(--ink);color:var(--mist);margin-top:24px}
.foot{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:32px;padding-top:48px;padding-bottom:36px}
.foot-brand{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.foot-brand p{margin:0;max-width:380px}
.brand-inv .brand-name{color:#fff} .brand-inv .brand-name span{color:#FF5A63}
.foot-col{display:flex;flex-direction:column;gap:6px}
.foot-col h2{color:#fff;font-size:16px;margin-bottom:6px}
.foot-col a{color:var(--mist);text-decoration:none;padding:3px 0} .foot-col a:hover{color:#fff;text-decoration:underline}
.foot-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #2B5A68;padding-top:18px;padding-bottom:24px;font-size:14px;color:#9EC0CA}

/* sticky Telegram bar on phones */
.tg-bar{position:fixed;inset-inline:12px;bottom:12px;z-index:25;display:none;align-items:center;gap:8px;background:var(--white);border:1px solid var(--mist);border-radius:16px;padding:8px;box-shadow:0 8px 24px rgba(14,59,73,.18)}
.tg-bar .btn{flex:1}
.tg-bar-x{width:44px;height:44px;border:0;background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}

/* admin */
.tbl{width:100%;border-collapse:collapse;background:var(--white);font-size:14px;margin-bottom:28px}
.tbl th,.tbl td{border-bottom:1px solid var(--mist);padding:8px;text-align:start;vertical-align:top}
.tbl tr.off{opacity:.5}

@media (max-width:980px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .side{position:static}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:760px){
  .nav{display:none;position:absolute;top:100%;inset-inline:0;flex-direction:column;background:var(--white);border-bottom:1px solid var(--mist);padding:8px 16px 16px;margin:0}
  .nav.open{display:flex}
  .nav a{padding:12px}
  .menu-btn{display:inline-flex}
  .hdr-actions .btn-tg span{display:none}
  .hdr-actions .btn-tg{padding:10px 12px}
  .brand-name{font-size:19px}
  .brand .logo{width:34px;height:34px}
  .hdr{gap:10px}
  .tg-bar:not([hidden]){display:flex}
  body{padding-bottom:76px}
  .card{padding:16px}
  .card-title{font-size:18px}
  .src-list{columns:1}
  .ls-long{display:none} .ls-short{display:inline}
  .area-chips,.filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-20px;padding-inline:20px;padding-bottom:2px}
  .area-chips::-webkit-scrollbar,.filters::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto}
  .hero{padding-top:0}
  .layout{padding-top:20px}
}
@media (max-width:420px){ .foot{grid-template-columns:minmax(0,1fr)} .lang-switch{padding:9px 8px} }

/* site notice, pinned, direct ads */
.notice{background:var(--med-bg);color:#1D4E60;font-weight:500;padding:10px 0;border-bottom:1px solid var(--mist)}
.notice-alert{background:var(--crit-bg);color:var(--red-d)}
.pinned{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:20px;background:#EAF1F3;border:1px solid var(--mist)}
.pinned-h{display:flex;align-items:center;gap:6px;font-size:16px;color:var(--ink)}
.pinned .card-title{font-size:18px}
.ad-direct .ad-box{display:flex;flex-direction:column;gap:10px;background:var(--white);border:1px solid var(--mist);border-radius:var(--r);padding:12px;text-decoration:none;color:var(--text)}
.ad-direct img{width:100%;height:auto;border-radius:10px}
.ad-text{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ad-text strong{font-family:var(--f-head);color:var(--ink);font-size:17px}

/* admin */
.admin-tabs{display:flex;gap:4px;overflow-x:auto;padding-bottom:0}
.admin-tabs a{padding:10px 14px;text-decoration:none;color:var(--text-2);border-bottom:3px solid transparent;white-space:nowrap;font-weight:500}
.admin-tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--red);font-weight:600}
.admin .page h1{font-size:28px}
.admin h2{font-size:20px;margin:24px 0 10px}
.admin-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.flash{background:#E3F2EA;color:#1E5E3A;border:1px solid #BFE0CC;border-radius:12px;padding:12px 16px;font-weight:500}
.tbl-wrap{overflow-x:auto;border-radius:12px}
.tbl td.acts{white-space:nowrap}
.tbl td.acts > *{margin:2px}
.tbl-wrap .tbl{min-width:760px}
.admin-bar .acts,.panel .acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
form.inline{display:inline}
.admin .btn{min-height:38px;padding:6px 12px;font-size:14px}
.btn.danger{color:var(--red-d)}
.tag{display:inline-block;font-size:12px;font-weight:600;padding:1px 8px;border-radius:6px;background:var(--shore);color:var(--text-2);margin-inline-end:4px}
.tag-pin{background:#EAF1F3;color:var(--ink)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px 18px;align-items:start;margin-bottom:16px}
.form-grid .wide{grid-column:1/-1}
.fld{display:flex;flex-direction:column;gap:4px}
.fld label{font-size:14px;font-weight:600;color:var(--text-2)}
.fld input,.fld select,.fld textarea,.admin select,.admin .search input{min-height:42px;padding:8px 12px;border:1px solid var(--mist);border-radius:10px;font:inherit;background:var(--white);color:var(--text);width:100%}
.admin .search select{width:auto}
.fld textarea{min-height:auto;resize:vertical}
.fld.chk{flex-direction:row;align-items:center;gap:8px}
.fld.chk input{width:20px;min-height:20px;height:20px}
.checks{display:flex;gap:10px 24px;flex-wrap:wrap;align-items:center}
details.wide summary{cursor:pointer;font-weight:600;color:var(--ink);padding:6px 0}
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:12px 0 20px}
.kpi{background:var(--white);border:1px solid var(--mist);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column}
.kpi strong{font:800 26px/1.2 var(--f-head);color:var(--ink)} .kpi span{font-size:14px;color:var(--muted)}
.kpi.k-crit strong{color:var(--red-d)} .kpi.k-warn strong{color:#8F4A03}
.admin-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;margin-bottom:12px}
.bars{display:flex;flex-direction:column;gap:6px}
.bar-row{display:grid;grid-template-columns:48px 1fr 64px;gap:8px;align-items:center;font-size:13px}
.bar-l.wide-l{white-space:nowrap} .bars .bar-row:has(.wide-l){grid-template-columns:130px 1fr 40px}
.bar{position:relative;height:14px;background:var(--shore);border-radius:7px;overflow:hidden}
.bar-all,.bar-crit{position:absolute;inset-block:0;inset-inline-start:0;border-radius:7px}
.bar-all{background:#9EC0CA} .bar-crit{background:var(--red)}
.chips-static{display:flex;gap:6px;flex-wrap:wrap}
.raw-text{font-size:14px;color:var(--text-2)}
.log{background:#0E2A33;color:#CFE3E8;border-radius:12px;padding:14px;font-size:12px;line-height:1.6;overflow-x:auto;white-space:pre-wrap;max-height:360px}
.settings .panel{margin-bottom:16px}

/* Desktop "app shell" on live pages: header, headline, filters and side column stay put; only the news list scrolls. */
.side-links{display:none}
@media (min-width:981px){
  body.shell{height:100vh;height:100dvh;overflow:hidden;padding-bottom:0}
  body.shell .site-header{position:static;flex:none}
  body.shell .notice{flex:none}
  body.shell #main.layout{flex:1 1 auto;min-height:0;padding-top:20px;padding-bottom:0;align-items:stretch;grid-template-rows:minmax(0,1fr)}
  body.shell .feed-col{min-height:0;gap:14px}
  body.shell .hero{flex:none}
  body.shell .hero h1{font-size:clamp(26px,2.6vw,38px);margin:6px 0 4px}
  body.shell .lead{font-size:16px;margin-bottom:12px}
  body.shell .filters{flex:none}
  body.shell .feed-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;
    padding-inline-end:6px;padding-bottom:24px;scrollbar-width:thin;scrollbar-color:#B9CDD3 transparent}
  body.shell .side{position:static;min-height:0;overflow-y:auto;padding-bottom:24px;scrollbar-width:thin;scrollbar-color:#B9CDD3 transparent}
  body.shell .site-footer,body.shell .tg-bar{display:none}
  body.shell .side-links{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;padding:4px 4px 0}
  body.shell .side-links a{color:var(--muted);text-decoration:none} body.shell .side-links a:hover{color:var(--ink);text-decoration:underline}
  body.shell .side-links span{color:var(--muted);flex-basis:100%}
  body.shell .new-toast{top:auto;bottom:24px}
}
.feed-scroll{display:flex;flex-direction:column;gap:14px}
