/* NewsDesk — public theme
   Palette: ink #0F1115, panel #171B21, hairline #2A2F38, paper #ECEDEE,
            muted #8B92A0, breaking #E63946, wire #FFB703
   Type: 'Source Serif 4' for headlines/editorial, 'Inter' for UI/meta
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ink:#0F1115;
  --panel:#171B21;
  --panel-2:#1D222A;
  --hairline:#2A2F38;
  --paper:#ECEDEE;
  --muted:#8B92A0;
  --breaking: var(--accent, #E63946);
  --wire:#FFB703;
  --radius: 3px;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:'Inter',system-ui,sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;}

.wrap{max-width:1180px;margin:0 auto;padding:0 20px;}

/* -------- Top bar -------- */
.topbar{
  border-bottom:1px solid var(--hairline);
  background:var(--panel);
  position:sticky; top:0; z-index:40;
}
.topbar__inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px; max-width:1180px;margin:0 auto;
  gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0;}
.brand img{height:38px;width:auto;border-radius:2px;}
.brand__text h1{
  font-family:'Source Serif 4',serif;
  font-weight:700;font-size:22px;margin:0;letter-spacing:.2px;
  white-space:nowrap;
}
.brand__text span{font-size:11.5px;color:var(--muted);display:block;margin-top:-2px;}

.nav{display:flex;align-items:center;gap:26px;}
.nav a{
  font-size:14.5px;font-weight:500;color:#C7CBD3;
  padding:6px 2px;border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.nav a:hover{color:var(--paper);border-color:var(--breaking);}

.menu-toggle{
  display:none;background:none;border:1px solid var(--hairline);
  color:var(--paper);width:40px;height:40px;border-radius:2px;font-size:17px;cursor:pointer;
  align-items:center;justify-content:center;
}

/* -------- Ticker -------- */
.ticker{
  background:var(--breaking); color:#fff; font-size:13px; font-weight:600;
  overflow:hidden; white-space:nowrap; position:relative;
}
.ticker__label{
  position:absolute;left:0;top:0;bottom:0;display:flex;align-items:center;
  padding:0 14px;background:#0F1115; z-index:2; letter-spacing:.4px;
}
.ticker__track{
  display:inline-block; padding:8px 0 8px 130px;
  animation:ticker 32s linear infinite;
}
.ticker__track span{margin-right:48px;}
@keyframes ticker{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .ticker__track{animation:none;} }

/* -------- Hero -------- */
.hero{
  display:grid; grid-template-columns:1.5fr 1fr; gap:1px;
  background:var(--hairline); margin:20px 0 28px; border-radius:var(--radius); overflow:hidden;
}
.hero__main{position:relative; background:var(--panel); min-height:380px;}
.hero__main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
.hero__main .hero__scrim{
  position:relative; z-index:1; height:100%;
  background:linear-gradient(0deg, rgba(10,11,13,.94) 8%, rgba(10,11,13,.35) 55%, rgba(10,11,13,.05) 100%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:28px;
}
.hero__side{display:flex;flex-direction:column;background:var(--hairline);gap:1px;}
.hero__side .card{background:var(--panel);}

.tag{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:700;color:var(--wire);
  margin-bottom:10px; letter-spacing:.3px;
}
.tag i{font-size:10px;}
.hero__main h2{
  font-family:'Source Serif 4',serif;font-weight:700;
  font-size:32px;line-height:1.18;margin:0 0 10px;max-width:640px;
}
.hero__main p.dek{color:#C7CBD3;font-size:15px;max-width:560px;margin:0 0 10px;}
.meta{font-size:12.5px;color:var(--muted);display:flex;gap:14px;align-items:center;}
.meta i{margin-right:5px;}

/* -------- Card grid -------- */
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  margin:34px 0 16px; border-bottom:1px solid var(--hairline); padding-bottom:10px;
}
.section-head h3{font-family:'Source Serif 4',serif;font-size:21px;margin:0;font-weight:600;}
.section-head a{font-size:13px;color:var(--muted);}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:10px;}
.card{
  background:var(--panel); border:1px solid var(--hairline); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; height:100%;
}
.card__img{aspect-ratio:16/10;overflow:hidden;background:var(--panel-2);}
.card__img img{width:100%;height:100%;object-fit:cover;}
.card__body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1;}
.card h4{
  font-family:'Source Serif 4',serif;font-size:17.5px;line-height:1.28;margin:0;font-weight:600;
}
.card p.dek{font-size:13.5px;color:var(--muted);margin:0;flex:1;}

.hero__side .card{flex-direction:row;padding:14px;gap:12px;border-left:0;border-right:0;border-top:0;}
.hero__side .card:last-child{border-bottom:0;}
.hero__side .card__thumb{width:96px;min-width:96px;height:72px;border-radius:2px;overflow:hidden;background:var(--panel-2);}
.hero__side .card__thumb img{width:100%;height:100%;object-fit:cover;}
.hero__side .card h4{font-size:14.5px;}

/* -------- Empty state -------- */
.empty{
  border:1px dashed var(--hairline); border-radius:var(--radius); padding:48px 20px;
  text-align:center; color:var(--muted); margin:30px 0;
}
.empty i{font-size:26px;margin-bottom:10px;color:var(--hairline);}

/* -------- Footer -------- */
footer{border-top:1px solid var(--hairline); margin-top:56px; padding:28px 0; background:var(--panel);}
footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;}
footer p{margin:0;font-size:13px;color:var(--muted);}
footer .social a{
  width:34px;height:34px;border:1px solid var(--hairline);border-radius:2px;
  display:inline-flex;align-items:center;justify-content:center;margin-left:8px;color:var(--muted);
}
footer .social a:hover{color:var(--paper);border-color:var(--breaking);}

/* -------- Article page -------- */
.article{max-width:760px;margin:32px auto;}
.article .tag{font-size:12px;}
.article h1{
  font-family:'Source Serif 4',serif;font-size:34px;line-height:1.2;margin:10px 0 14px;font-weight:700;
}
.article .meta{margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--hairline);}
.article__cover{border-radius:var(--radius);overflow:hidden;margin-bottom:24px;border:1px solid var(--hairline);}
.article__body{font-size:17px;line-height:1.75;color:#DADDE2;}
.article__body p{margin:0 0 20px;}

.embed{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:var(--radius);margin:24px 0;border:1px solid var(--hairline);}
.embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}

.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0;}
.btn{
  display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;
  padding:11px 18px;border-radius:2px;border:1px solid var(--hairline);color:var(--paper);
  transition:transform .12s ease, border-color .12s ease;
}
.btn:hover{border-color:var(--breaking);transform:translateY(-1px);}
.btn--tg{background:#229ED9;border-color:#229ED9;color:#fff;}
.btn--back{color:var(--muted);}

.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin-bottom:18px;}
.back-link:hover{color:var(--paper);}

/* -------- Responsive -------- */
@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr);}
  .hero{grid-template-columns:1fr;}
}
@media (max-width:720px){
  .nav{
    position:fixed; inset:64px 0 0 0; background:var(--ink); flex-direction:column;
    align-items:flex-start; padding:22px 24px; gap:6px; transform:translateX(100%);
    transition:transform .22s ease; z-index:39; border-top:1px solid var(--hairline);
  }
  .nav.is-open{transform:translateX(0);}
  .nav a{width:100%;padding:12px 0;border-bottom:1px solid var(--hairline);}
  .menu-toggle{display:flex;}
  .grid{grid-template-columns:1fr;}
  .article h1{font-size:26px;}
  .hero__main h2{font-size:24px;}
}
