/* Rivo skin: الشعلة البرتقالية — app-coloured masthead, top bars and blue menu band, white cards on light grey,
   orange/blue category pills, numbered trending cards. */
:root {
  --q-bg: #f3f4f6; --q-bg-soft: #eceef1; --q-bg-tint: #e4e6ea; --q-paper: #ffffff;
  --q-line: #e3e5e8; --q-line-soft: #eceef1;
  --q-ink: #111111; --q-ink-1: #1f1f1f; --q-ink-2: #4b4b4b; --q-muted: #6f6f6f;
  --q-accent: #f2540d; --q-accent-hover: #c94308; --q-accent-soft: #fff0e8;
  --q-kicker: #f2540d;
  --q-brand: #f2540d; --q-brand-hover: #c94308;
  --q-radius: 2px; --q-radius-sm: 2px; --q-radius-lg: 2px;
}
:root[data-theme="dark"] {
  --q-bg: #121317; --q-bg-soft: #181a1f; --q-bg-tint: #1f2228; --q-paper: #1a1c21;
  --q-line: #2b2e35; --q-line-soft: #23262c;
  --q-ink: #f3f3f3; --q-ink-1: #e4e4e4; --q-ink-2: #b9b9b9; --q-muted: #8e8e8e;
  --q-accent: #ff7a3d; --q-accent-hover: #ff9a6a; --q-accent-soft: #33200f;
  --q-kicker: #ff7a3d;
}
/* Two-row header: wordmark row, then the sections in a full-width blue band. */
.q-nav { background: #ffffff; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.q-nav .q-icon-btn { color: #1a1b21; }
.q-brand .q-wordmark { color: #1d4ed8; }
@media (min-width: 961px) {
  .q-nav-inner {
    height: auto; padding-top: 16px; row-gap: 0;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: ". brand actions" "nav nav nav";
  }
  .q-brand { grid-area: brand; justify-self: center; }
  .q-nav-actions { grid-area: actions; justify-self: end; }
  .q-brand .q-wordmark { font-size: 60px; }
  .q-nav-menu {
    grid-area: nav; margin-top: 16px;
    background: #1d4ed8; box-shadow: 0 0 0 100vmax #1d4ed8; clip-path: inset(0 -100vmax);
  }
  .q-nav-menu a { color: #fff; font-weight: 700; padding: 13px 16px; border-radius: 0; }
  .q-nav-menu a:hover { color: #fff; background: rgba(255,255,255,.12); }
  .q-nav-menu li:first-child > a { background: #1e3a8a; }
  .q-nav-menu .current-menu-item > a::after, .q-nav-menu .current-cat > a::after { background: #fff; }
  .q-search-form { top: 100%; }
}

/* Top bars, header and menu band in the mobile app's colours (rivo_news_app/lib/theme.dart):
   brand #1D4ED8, brandStrong #1E3A8A, live #EF4444, amber #F59E0B; dark canvas #0B1220, surface #111A2E. */
.q-ticker { background: #1e3a8a; border-bottom-color: rgba(255,255,255,.08); }
.q-live-ticker { background: #1d4ed8; color: #eef2ff; border-bottom-color: rgba(255,255,255,.08); }
.q-live-ticker-label { background: #ef4444; }
.q-finance-ticker { background: #1e3a8a; color: #e0e7ff; }
.q-finance-ticker-label { background: #f59e0b; color: #1a1b21; }
:root[data-theme="dark"] .q-ticker { background: #0b1220; border-bottom-color: #24304a; }
:root[data-theme="dark"] .q-live-ticker { background: #111a2e; border-bottom-color: #24304a; }
:root[data-theme="dark"] .q-finance-ticker { background: #0b1220; border-bottom-color: #24304a; }
:root[data-theme="dark"] .q-nav { background: #0b1220; }
:root[data-theme="dark"] .q-nav .q-icon-btn { color: #e3e5ee; }
:root[data-theme="dark"] .q-brand .q-wordmark { color: #60a5fa; }
@media (min-width: 961px) {
  :root[data-theme="dark"] .q-nav-menu { background: #1e3a8a; box-shadow: 0 0 0 100vmax #1e3a8a; }
  :root[data-theme="dark"] .q-nav-menu li:first-child > a { background: #1d4ed8; }
}
/* Section heads: small bold title over a short #f2540d bar. */
.q-section-head { border-bottom: 1px solid var(--q-line); padding-bottom: 0; }
.q-section-head h2 { font-size: 17px;  padding-bottom: 8px; margin-bottom: -1px; border-bottom: 3px solid #f2540d; }
.q-section-head h2::before { display: none; }
/* Trending list numbered on the picture. */
.q-hot-list { counter-reset: hot; }
.q-hot-line { counter-increment: hot; position: relative; }
.q-hot-line::before {
  content: counter(hot); position: absolute; top: 14px; inset-inline-start: 0; z-index: 1;
  min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: #f2540d; color: #fff;
}
.q-hot-line { background: var(--q-paper); padding: 0; margin-bottom: 10px; border-bottom: 0; gap: 12px; }
.q-hot-panel .q-hot-line { border-bottom: 0; }
.q-hot-line::before { top: auto; bottom: 0; }
.q-hot-line-thumb { width: 96px; height: 76px; border-radius: 0; }
.q-hot-line-title { font-size: 14px; line-height: 1.55; }
.q-hot-tab.is-active, .q-hot-tab[aria-selected="true"] { background: #f2540d; border-color: #f2540d; color: #fff; }
/* Cards: white, no frame, pills for the section. */
.q-card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.q-card:hover { transform: none; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.q-card .q-cat, .q-hero-list .q-card .q-cat { align-self: flex-start; background: #f2540d; color: #fff !important; padding: 2px 8px; letter-spacing: 0; font-size: 11.5px; }
.q-card:nth-child(3n+2) .q-cat { background: #1a73e8; }
.q-gallery-caption .q-cat { background: #f2540d; border-color: #f2540d; color: #fff !important; border-radius: 2px; }
.q-footer, :root[data-theme="dark"] .q-footer { background: #111; border-top: 4px solid #f2540d; }
.q-radio, :root[data-theme="dark"] .q-radio { background: linear-gradient(135deg, #08080f 0%, #4a1d06 100%); }
::selection { background: #f2540d; color: #fff; }

/* ---- Layout: trending | main story | editor's picks ---- */
@media (min-width: 1025px) {
  .home main.q-content {
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    grid-template-areas:
      "hot   gal   hero"
      "radio radio radio"
      "bul   bul   side"
      "main  main  side"
      "app   app   app";
  }
  .home .q-gallery { aspect-ratio: 4/3; }
  .home .q-hero { grid-template-columns: 1fr; gap: 12px; }
  .home .q-hero-lead { min-height: 250px; }
  .home .q-hero-lead h2 { font-size: 19px; }
  .home .q-hero-list { display: contents; }
  .home .q-hero-list .q-card:nth-child(n+2) { display: none; }
  .home .q-hero-list .q-card { position: relative; display: flex; min-height: 230px; padding: 0; border: 0; background: #111; overflow: hidden; }
  .home .q-hero-list .q-card .q-media { position: absolute; inset: 0; }
  .home .q-hero-list .q-card .q-media > a, .home .q-hero-list .q-card .q-thumb { display: block; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .home .q-hero-list .q-card .q-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.25) 60%, transparent 85%); }
  .home .q-hero-list .q-card .q-body { position: relative; z-index: 1; margin-top: auto; padding: 14px; }
  .home .q-hero-list .q-card h3, .home .q-hero-list .q-card h3 a { color: #fff; font-size: 17px; }
  .home .q-hero-list .q-card .q-meta { color: rgba(255,255,255,.8); }
  .home .q-main .q-grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .home main.q-content:not(:has(> .q-hero)) { grid-template-areas: "hot gal gal" "radio radio radio" "bul bul side" "main main side" "app app app"; }
  .home main.q-content:has(> .q-hero):not(:has(> .q-hot-topics)) { grid-template-areas: "gal gal hero" "radio radio radio" "bul bul side" "main main side" "app app app"; }
  .home main.q-content:not(:has(> .q-hero)):not(:has(> .q-hot-topics)) { grid-template-areas: "gal gal gal" "radio radio radio" "bul bul side" "main main side" "app app app"; }
  .home main.q-content:not(:has(> .q-hero)) .q-gallery, .home main.q-content:not(:has(> .q-hot-topics)) .q-gallery { aspect-ratio: 16/9; }
}
.q-sidebar > .widget, .q-sidebar > .q-widget { border: 0; padding: 14px 16px; }
.q-sidebar .widget-title, .q-sidebar .q-widget-title { font-size: 16px; letter-spacing: 0; color: var(--q-ink); border-bottom: 2px solid #f2540d; display: inline-block; }
