/* =====================================================================
   Naija Sports — Newspaper theme preset
   Loaded only when Settings → Appearance → Homepage theme = Newspaper.
   Scoped with [data-style="newspaper"] so the Classic preset is untouched.
   ===================================================================== */

[data-style="newspaper"] {
  --accent:       #b42318;
  --accent-dark:  #8f1c13;
  --accent-soft:  #f7e9e5;
  --amber:        #b7791f;
  --info:         #2c5f7c;

  --ink:      #16181d;
  --ink-2:    #33373f;
  --muted:    #6a6f78;
  --line:     #d9d2c3;
  --canvas:   #f5f1e8;
  --surface:  #fffdf7;
  --surface-2:#efe9dc;

  --radius-sm: 2px;
  --radius:    3px;
  --radius-lg: 4px;
  --radius-xl: 4px;

  --shadow-xs: 0 1px 0 rgba(22,24,29,.05);
  --shadow-sm: 0 1px 0 rgba(22,24,29,.05);
  --shadow:    0 6px 18px rgba(22,24,29,.08);
  --shadow-lg: 0 16px 36px rgba(22,24,29,.13);

  --font: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-style="newspaper"][data-theme="dark"] {
  --accent:       #d9574a;
  --accent-dark:  #e87a6e;
  --accent-soft:  #33211d;

  --ink:      #f4ede0;
  --ink-2:    #cabfae;
  --muted:    #978d7d;
  --line:     #3a332a;
  --canvas:   #14110d;
  --surface:  #1c1813;
  --surface-2:#221d17;

  --shadow:    0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 36px rgba(0,0,0,.55);
}

/* ---------------- masthead, nav, chrome ---------------- */
[data-style="newspaper"] .masthead {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
[data-style="newspaper"] .masthead .wrap { padding-block: 16px; }
[data-style="newspaper"] .brand-name { font-size: 2rem; letter-spacing: -.01em; }
[data-style="newspaper"] .mainnav { border-bottom: 2px solid var(--ink); }
[data-style="newspaper"] .nav-list > li > a,
[data-style="newspaper"] .nav-list > li > button {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
}
[data-style="newspaper"] .topbar { background: var(--ink); }

/* ---------------- cards and panels ---------------- */
[data-style="newspaper"] .card {
  border-radius: var(--radius); box-shadow: none; border-color: var(--line);
}
[data-style="newspaper"] .card:hover {
  transform: none; border-color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
[data-style="newspaper"] .card-title a:hover,
[data-style="newspaper"] .row-title a:hover,
[data-style="newspaper"] .rank-item h4 a:hover { color: var(--accent); }
[data-style="newspaper"] .cat-label { border-radius: 2px; letter-spacing: .1em; }
[data-style="newspaper"] .card-flag { border-radius: 2px; }
[data-style="newspaper"] .btn { border-radius: 2px; }
[data-style="newspaper"] .badge { border-radius: 2px; }

[data-style="newspaper"] .panel {
  border-radius: var(--radius); box-shadow: none; border-top: 3px solid var(--ink);
}
[data-style="newspaper"] .panel-head { background: transparent; }
[data-style="newspaper"] .panel-head h2,
[data-style="newspaper"] .panel-head h3 {
  text-transform: uppercase; letter-spacing: .06em; font-size: .92rem;
}
[data-style="newspaper"] .section-head {
  border-bottom-width: 3px; border-bottom-color: var(--ink); padding-bottom: 10px;
}
[data-style="newspaper"] .section-head h2 {
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em;
}
[data-style="newspaper"] .section-head::after { height: 3px; }
[data-style="newspaper"] .site-footer { border-top: 3px solid var(--accent); }

/* ---------------- lead: slider + headlines rail ---------------- */
.np-lead {
  display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  gap: 26px; margin-bottom: 46px;
}
@media (max-width: 980px) { .np-lead { grid-template-columns: 1fr; } }

.np-breaking { margin-bottom: 22px; }
.np-breaking a {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); padding: 12px 16px;
}
.np-breaking-tag {
  font-family: var(--font-body); font-weight: 800; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: var(--accent); padding: 3px 9px;
}
.np-breaking strong {
  flex: 1; min-width: 220px; font-family: var(--font);
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.np-breaking-time { font-size: .78rem; color: var(--muted); }

.np-slider {
  position: relative; overflow: hidden; height: 460px;
  border-radius: var(--radius); background: #0f1115;
}
@media (max-width: 980px) { .np-slider { height: auto; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .np-slider { aspect-ratio: 4 / 3; } }

.np-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
}
.np-slide.is-active { opacity: 1; visibility: visible; }
.np-slide-media { position: absolute; inset: 0; display: block; }
.np-slide-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.np-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,16,.95) 4%, rgba(10,12,16,.55) 46%, rgba(10,12,16,.06) 78%);
}
.np-slide-body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 26px 28px 32px; color: #fff;
}
.np-kicker {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 2px;
  font-family: var(--font-body); font-weight: 800; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.np-slide-title {
  margin: 0 0 10px; color: #fff; line-height: 1.15; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
}
.np-slide-title a { color: #fff; }
.np-slide-title a:hover { color: #f0d9d4; }
.np-slide-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-body); font-size: .76rem; color: rgba(255,255,255,.72);
}
.np-slide-meta a { color: #fff; font-weight: 600; }
.np-slide-meta .dot { opacity: .5; }

.np-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); border-radius: 2px;
  background: rgba(10,12,16,.45); color: #fff;
  transition: background .18s, border-color .18s;
}
.np-arrow:hover { background: var(--accent); border-color: var(--accent); }
.np-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.np-prev { left: 14px; }
.np-prev svg { transform: rotate(180deg); }
.np-next { right: 14px; }
.np-dots {
  position: absolute; z-index: 3; right: 16px; bottom: 14px;
  display: flex; gap: 6px;
}
.np-dot {
  width: 9px; height: 9px; padding: 0; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65); background: transparent;
  transition: background .18s;
}
.np-dot.is-active { background: #fff; border-color: #fff; }
@media (max-width: 560px) {
  .np-arrow { display: none; }
  .np-dots { left: 16px; right: auto; }
  .np-slide-body { padding: 18px 18px 24px; }
}

.np-briefs {
  display: flex; flex-direction: column; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink);
}
.np-briefs-head {
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--font-body); font-weight: 800; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.np-brief { padding: 13px 0; border-bottom: 1px solid var(--line); }
.np-brief:first-of-type { padding-top: 2px; }
.np-brief:last-child { border-bottom: 0; padding-bottom: 0; }
.np-brief-cat {
  display: inline-block; margin-bottom: 5px;
  font-family: var(--font-body); font-weight: 800; font-size: .64rem;
  letter-spacing: .11em; text-transform: uppercase; color: var(--accent);
}
.np-brief h3 { margin: 0 0 6px; font-size: 1.04rem; line-height: 1.32; }
.np-brief h3 a { color: var(--ink); }
.np-brief h3 a:hover { color: var(--accent); }
.np-brief-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-family: var(--font-body); font-size: .72rem; color: var(--muted);
}

/* ---------------- latest river + rail ---------------- */
[data-style="newspaper"] .np-columns { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
@media (max-width: 1080px) { [data-style="newspaper"] .np-columns { grid-template-columns: minmax(0, 1fr); } }

.np-river { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.np-river > .row-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.np-river .row-item:first-child,
.np-river .row-item:nth-child(2) { padding-top: 0; }
.np-river .row-thumb { width: 92px; aspect-ratio: 1 / 1; border-radius: 2px; }
.np-river .row-title { font-size: 1rem; }
.np-river .row-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 720px) {
  .np-river { grid-template-columns: 1fr; }
  .np-river .row-item:nth-child(2) { padding-top: 14px; }
}

/* ---------------- category bands ---------------- */
.np-cat-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px; align-items: start;
}
.np-cat-grid--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .np-cat-grid { grid-template-columns: 1fr; } }
.np-cat-list .row-item { padding: 13px 0; }
.np-cat-list .row-item:first-child { padding-top: 0; }
.np-cat-list .row-title { font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .np-slide { transition: none; }
}
