/* RSTV News 24 — BBC-ish layout */
:root{
  --paper:#ffffff;
  --ink:#111;
  --muted: rgba(0,0,0,.62);
  --rule: rgba(0,0,0,.12);
  --soft: rgba(0,0,0,.06);
  --shadow: 0 12px 30px rgba(0,0,0,.10);

  --red:#b4002a;
  --red2:#d11a3a;
  --max:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  background:#f6f6f6;
}

a{color:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:0 16px;}

.site-header{background:var(--paper); border-bottom:1px solid var(--rule);}

.masthead{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.6px;
}
.brand__rstv{font-size:18px}
.brand__news{font-size:18px}
.brand__24{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  transform: translateY(-2px);
}

.masthead__right{
  display:flex;
  align-items:center;
  gap:12px;
}

.livebug{
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(180,0,42,.10);
  border:1px solid rgba(180,0,42,.22);
  padding:8px 10px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.4px;
}
.livebug__dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--red);
}
.search{display:flex; align-items:center; gap:8px;}
.search__input{
  width:min(360px, 55vw);
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--rule);
  background:var(--paper);
  outline:none;
}
.search__input:focus{border-color: rgba(180,0,42,.45); box-shadow: 0 0 0 3px rgba(180,0,42,.12);}
.search__btn{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--rule);
  background:var(--paper);
  font-weight:700;
}

/* Red nav */
.topnav{background:var(--red); border-top:1px solid rgba(255,255,255,.10); border-bottom:1px solid rgba(0,0,0,.10);}
.topnav__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
  height:52px;
  display:flex;
  align-items:center;
  gap:26px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.topnav__inner::-webkit-scrollbar{display:none;}
.topnav a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:18px;
  height:100%;
  display:flex;
  align-items:center;
  position:relative;
  opacity:.95;
  white-space:nowrap;
}
.topnav a:hover{opacity:1}
.topnav a::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:8px;
  height:3px;
  background:transparent;
  border-radius:2px;
}
.topnav a.is-active::after{background:#fff}

/* Breaking bar */
.breaking{background:#111; color:#fff;}
.breaking .wrap{display:flex; align-items:center; gap:10px; padding:10px 16px;}
.breaking__strap{
  background:var(--red2);
  color:#fff;
  font-weight:900;
  letter-spacing:.6px;
  padding:6px 10px;
  border-radius:6px;
}
.breaking__text{color:#fff; text-decoration:none; font-weight:800;}
.breaking__text:hover{text-decoration:underline}

.page{padding-top:18px; padding-bottom:40px;}

.lead-grid{
  display:grid;
  grid-template-columns: 1.6fr .8fr;
  gap:18px;
}

.lead{
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
}
.lead__media{display:block; background:#ddd;}
.lead__img{width:100%; height:100%; object-fit:cover; display:block;}
.lead__body{padding:16px 16px 18px;}
.meta{display:flex; align-items:center; gap:10px; margin-bottom:10px;}
.pill{
  background:rgba(180,0,42,.10);
  border:1px solid rgba(180,0,42,.20);
  color:var(--red);
  font-weight:900;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
}
.meta__time{color:var(--muted); font-weight:700; font-size:13px;}
.lead__title{margin:8px 0 10px; font-size:34px; line-height:1.05;}
.lead__summary{margin:0 0 14px; color:var(--muted); font-size:15px; line-height:1.45;}
.lead__actions{display:flex; gap:10px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  border-radius:10px;
  padding:10px 12px;
  background:var(--ink);
  color:var(--paper);
  font-weight:800;
  border:1px solid rgba(0,0,0,.12);
}
.btn--ghost{background:transparent; color:var(--ink); border:1px solid var(--rule);}
.btn:hover{opacity:.92}

.rail{display:flex; flex-direction:column; gap:12px;}
.panel{
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:16px;
  overflow:hidden;
}
.panel__head{
  padding:12px 12px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  border-bottom:1px solid var(--soft);
}
.panel__head h2{margin:0; font-size:16px;}
.panel__link{font-size:13px; color:var(--muted); text-decoration:none;}
.panel__link:hover{text-decoration:underline}
.panel__body{padding:12px;}
.muted{color:var(--muted)}
.small{font-size:13px;}
.divider{height:1px; background:var(--soft); margin:10px 0;}
.nowtitle{font-weight:900; font-size:16px; margin-bottom:6px;}

.wxRow{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.wxBig{font-weight:900; font-size:34px;}
.wxDays{display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; margin-top:10px;}
.wxDay{border:1px solid var(--soft); border-radius:12px; padding:8px;}
.wxDay__name{font-weight:900; font-size:12px;}
.wxDay__temp{font-weight:900; font-size:14px;}
.wxDay__sub{font-size:12px; color:var(--muted);}

.section-head{display:flex; align-items:baseline; justify-content:space-between; margin:22px 0 10px;}
.section-head.small{margin:0 0 10px;}
.section-head h2{margin:0; font-size:20px;}

.latest__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}

.latest__list{background:var(--paper); border:1px solid var(--rule); border-radius:16px; overflow:hidden;}
.latestItem{
  display:flex;
  gap:12px;
  padding:12px;
  border-bottom:1px solid var(--soft);
  text-decoration:none;
}
.latestItem:last-child{border-bottom:none;}
.latestTime{width:52px; flex:0 0 52px; font-weight:900; color:var(--muted);}
.latestTitle{font-weight:900;}
.latestMeta{font-size:12px; color:var(--muted); margin-top:4px;}

.cards{display:grid; grid-template-columns: repeat(2, 1fr); gap:12px;}
.card{
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
}
.card__img{width:100%; height:140px; object-fit:cover; background:#ddd; display:block;}
.card__body{padding:12px;}
.card__title{margin:0 0 8px; font-weight:900; font-size:16px; line-height:1.15;}
.card__meta{font-size:12px; color:var(--muted);}

.rstvBlocks{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
.listItem{display:block; padding:10px 0; border-bottom:1px solid var(--soft); text-decoration:none;}
.listItem:last-child{border-bottom:none;}
.listItem__title{font-weight:900;}
.listItem__sub{font-size:12px; color:var(--muted); margin-top:4px;}

.footer{margin-top:30px; padding-top:20px; border-top:1px solid var(--rule);}

@media (max-width: 980px){
  .lead-grid{grid-template-columns:1fr;}
  .lead{grid-template-columns:1fr; min-height:auto;}
  .lead__img{height:260px;}
  .latest__grid{grid-template-columns:1fr;}
  .cards{grid-template-columns:1fr;}
  .rstvBlocks{grid-template-columns:1fr;}
  .search__input{width:min(320px, 50vw);}
}
