/*
Theme Name:   News Next Level Child
Description:  Lightweight European-editorial child theme for Neve. Safe to deactivate: the site returns to plain Neve.
Template:     neve
Version:      1.0.0
Text Domain:  newsnextlevel-child
*/

:root {
  --nnl-navy: #14213d;
  --nnl-red: #c8102e;
  --nnl-paper: #faf8f4;
  --nnl-ink: #222222;
  --nnl-rule: #e2ddd3;
  --nnl-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --nnl-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--nnl-paper);
  color: var(--nnl-ink);
  font-family: var(--nnl-sans);
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3, h4, .entry-title, .nv-page-title-wrap h1 {
  font-family: var(--nnl-serif);
  color: var(--nnl-navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--nnl-red); text-underline-offset: 3px; }
a:hover { color: var(--nnl-navy); }

/* Header: thin top rule, quiet navigation */
.header--row, .hfg_header { border-top: 4px solid var(--nnl-navy); border-bottom: 1px solid var(--nnl-rule); background: #fff; }
.nav-ul > li > a { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 600; }

/* Article readability */
.nv-single-post-wrap .entry-content, .nv-single-post-wrap .nv-post-thumbnail-wrap { max-width: 720px; margin-left: auto; margin-right: auto; }
.entry-content img { height: auto; border-radius: 2px; }

/* Cards on archives and homepage grids */
article.layout-grid .non-grid-content, .nv-post-thumbnail-wrap { border-radius: 2px; }
.cover-post, .nv-blog-grid article { border-bottom: 1px solid var(--nnl-rule); }

/* Footer */
.site-footer, .hfg_footer { background: var(--nnl-navy); color: #e8e8e8; }
.site-footer a, .hfg_footer a { color: #fff; }

/* ---- Ad slots: height is reserved so the page never jumps (protects CLS) ---- */
.nnl-ad { display: block; margin: 2rem auto; text-align: center; clear: both; }
.nnl-ad::before { content: "Advertisement"; display: block; font: 600 0.65rem/1 var(--nnl-sans); text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 6px; }
.nnl-ad--header, .nnl-ad--incontent { min-height: 280px; }
.nnl-ad--sidebar { min-height: 600px; position: sticky; top: 90px; }
.nnl-ad--sticky-mobile { display: none; }
@media (min-width: 768px) { .nnl-ad--header { min-height: 90px; } }
@media (max-width: 767px) {
  .nnl-ad--sidebar { display: none; }
  .nnl-ad--sticky-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 0; min-height: 50px; margin: 0; background: #fff; border-top: 1px solid var(--nnl-rule); z-index: 50; }
  body.nnl-ads-on { padding-bottom: 60px; }
}

/* ---- Placeholder blocks (hidden until enabled in functions.php) ---- */
.nnl-box { border: 1px solid var(--nnl-rule); background: #fff; padding: 1.25rem 1.5rem; margin: 2rem 0; border-radius: 2px; }
.nnl-box h3 { margin-top: 0; }

/* ---- News homepage ---- */
.nnl-home { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.nnl-kicker { display: block; font: 700 0.7rem/1 var(--nnl-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--nnl-red); margin-bottom: 0.4rem; }
.nnl-card time, .nnl-hero__list time { display: block; font-size: 0.8rem; color: #6b6b6b; margin-top: 0.35rem; }
.nnl-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--nnl-rule); }
.nnl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nnl-card__title { font-size: 1.15rem; margin: 0; }
.nnl-card__title a { color: var(--nnl-navy); text-decoration: none; }
.nnl-card__title a:hover { color: var(--nnl-red); }
.nnl-card__body { padding-top: 0.75rem; }

.nnl-hero { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--nnl-rule); }
.nnl-card--lead .nnl-card__title { font-size: 1.9rem; }
.nnl-hero__list { list-style: none; margin: 0; padding: 0; }
.nnl-hero__label { font: 700 0.75rem/1 var(--nnl-sans); text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 0.6rem; border-bottom: 2px solid var(--nnl-navy); margin-bottom: 0.4rem; }
.nnl-hero__list li:not(.nnl-hero__label) { padding: 0.8rem 0; border-bottom: 1px solid var(--nnl-rule); }
.nnl-hero__list a { font-family: var(--nnl-serif); font-weight: 700; color: var(--nnl-navy); text-decoration: none; line-height: 1.3; }
.nnl-hero__list a:hover { color: var(--nnl-red); }

.nnl-topic { padding-top: 2rem; }
.nnl-topic__head { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--nnl-navy); padding-top: 0.6rem; margin-bottom: 1.2rem; }
.nnl-topic__head h2 { margin: 0; font-size: 1.4rem; }
.nnl-topic__head a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.nnl-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

@media (min-width: 700px) { .nnl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .nnl-hero { grid-template-columns: 2fr 1fr; } .nnl-card--lead .nnl-card__title { font-size: 2.2rem; } }

/* ---- Footer (Neve's own footer is hidden; ours is added in functions.php) ---- */
footer.site-footer, .site-footer.hfg_footer, #site-footer { display: none; }
.nnl-footer { background: var(--nnl-navy); color: #d9dde6; padding: 2.5rem 16px 1.5rem; font-size: 0.95rem; line-height: 1.6; }
.nnl-footer a { color: #fff; text-decoration: none; }
.nnl-footer a:hover { text-decoration: underline; }
.nnl-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.nnl-footer h2 { font: 700 0.75rem/1 var(--nnl-sans); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin: 0 0 0.8rem; }
.nnl-footer ul { list-style: none; margin: 0; padding: 0; }
.nnl-footer li { margin-bottom: 0.4rem; }
.nnl-footer__brand { font: 700 1.2rem/1.2 var(--nnl-serif); color: #fff; margin: 0 0 0.5rem; }
.nnl-footer__copy { max-width: 1200px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; color: #aab1c2; }
@media (min-width: 800px) { .nnl-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---- Article extras ---- */
.nnl-author { border-left: 4px solid var(--nnl-red); margin-top: 2.5rem; }
.nnl-author p { margin: 0 0 0.4rem; }
.nnl-author__name { font: 700 1rem/1.3 var(--nnl-serif); color: var(--nnl-navy); }
.nnl-author__dates { font-size: 0.85rem; color: #6b6b6b; }
.nnl-note { font-size: 0.9rem; background: #f1ede4; padding: 0.8rem 1rem; border-radius: 2px; }
.nnl-related { margin-top: 2rem; border-top: 2px solid var(--nnl-navy); padding-top: 0.8rem; }
.nnl-related h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.nnl-related ul { margin: 0; padding-left: 1.1rem; }

/* ---- Tap targets: links at least ~44px tall on touch screens ---- */
.nnl-footer li a, .nnl-related li a, .nnl-topic__head a { display: inline-block; padding: 0.6rem 0; }
.nnl-hero__list a { display: inline-block; padding: 0.2rem 0; }
.nnl-related li { margin-bottom: 0.2rem; }

/* ---- Category page heading ---- */
.nnl-archive-head { grid-column: 1 / -1; width: 100%; padding: 1rem 0 1.5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--nnl-navy); }
.nnl-archive-head .nnl-archive-title { margin: 0 0 0.5rem; font: 700 2.2rem/1.2 var(--nnl-serif); color: var(--nnl-navy); letter-spacing: -0.01em; }
.nnl-archive-head__intro { max-width: 700px; color: #444; }
.nnl-archive-head__intro p { margin: 0; }

/* ---- Archive cards: keep excerpts to about 3 lines (some posts store full Elementor markup as the excerpt) ---- */
.excerpt-wrap { max-height: 5.2em; overflow: hidden; font-size: 0.95rem; line-height: 1.6; color: #444; }
.excerpt-wrap .elementor, .excerpt-wrap h1, .excerpt-wrap h2, .excerpt-wrap h3, .excerpt-wrap style { display: none; }


/* ---- Home v2: moving headline ticker + rotating top stories (admin preview until NNL_HOME_V2 is true). To undo: delete this block. ---- */
.nnl-ticker{display:flex;align-items:center;background:var(--nnl-navy,#14213d);color:#fff;border-radius:8px;margin:0 0 12px;overflow:hidden;min-height:42px}
.nnl-ticker__tag{flex:none;align-self:stretch;display:flex;align-items:center;background:var(--nnl-red,#c8102e);color:#fff;font-weight:700;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;padding:0 14px}
.nnl-ticker__track{flex:1;min-width:0;overflow:hidden}
.nnl-ticker__run{display:inline-flex;white-space:nowrap;animation:nnl-tick 50s linear infinite}
.nnl-ticker:hover .nnl-ticker__run,.nnl-ticker:focus-within .nnl-ticker__run{animation-play-state:paused}
.nnl-ticker__run a{position:relative;color:#fff;text-decoration:none;font-size:.9rem;padding:10px 30px 10px 24px}
.nnl-ticker__run a::after{content:"";position:absolute;right:10px;top:50%;width:5px;height:5px;margin-top:-2px;border-radius:50%;background:var(--nnl-red,#c8102e)}
.nnl-ticker__run a:hover,.nnl-ticker__run a:focus{text-decoration:underline}
@keyframes nnl-tick{to{transform:translateX(-50%)}}
.nnl-slider{position:relative;aspect-ratio:16/7;min-height:250px;overflow:hidden;border-radius:12px;background:var(--nnl-navy,#14213d);margin:0 0 22px}
.nnl-slide{position:absolute;inset:0;display:block;color:#fff;text-decoration:none;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility .7s}
.nnl-slide.is-active{opacity:1;visibility:visible}
.nnl-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1);transition:transform 9s ease-out}
.nnl-slide.is-active img{transform:scale(1.07)}
.nnl-slide__text{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:6px;padding:56px 20px 58px;background:linear-gradient(to top,rgba(10,16,35,.9),rgba(10,16,35,0))}
.nnl-slide__tag{align-self:flex-start;background:var(--nnl-red,#c8102e);color:#fff;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:4px}
.nnl-slide__title{font-family:Charter,'Bitstream Charter','Sitka Text',Cambria,Georgia,serif;font-size:clamp(1.25rem,3vw,2rem);line-height:1.2;font-weight:700;max-width:46rem}
.nnl-slide__meta{font-size:.8rem;opacity:.9}
.nnl-slider__ctl{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px}
.nnl-slider__dots{display:flex;align-items:center;gap:6px}
.nnl-slider__ctl button{min-width:40px;height:40px;border:0;border-radius:999px;background:rgba(255,255,255,.2);color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
.nnl-slider__ctl button:hover,.nnl-slider__ctl button:focus-visible{background:rgba(255,255,255,.4)}
.nnl-slider__ctl .nnl-slider__pause{font-size:.75rem;padding:0 12px}
.nnl-slider__ctl .nnl-dot{min-width:0;width:11px;height:11px;padding:0;background:rgba(255,255,255,.45)}
.nnl-slider__ctl .nnl-dot.is-active{background:#fff}
@media (max-width:640px){.nnl-slider{aspect-ratio:4/3}.nnl-slide__text{padding:40px 14px 62px}.nnl-slide__title{font-size:1.2rem}.nnl-ticker__tag{padding:0 10px}}
@media (prefers-reduced-motion:reduce){.nnl-ticker__run{animation:none}.nnl-ticker__track{overflow-x:auto}.nnl-slide,.nnl-slide img{transition:none}.nnl-slide.is-active img{transform:none}}
