/*
Theme Name: NVP26
Theme URI: https://nevispages.com/
Author: NevisPages
Author URI: https://nevispages.com/
Description: Modern news & business portal theme for NevisPages.com. Clean editorial layout, logo-derived palette, mega menus, dark mode, reading aids, and ad-ready sidebars. Built from the approved prototype.
Version: 0.8.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nvp26
Tags: news, magazine, blog, two-columns, custom-menu, featured-images, dark-mode, full-width-template
*/

/* ==========================================================================
   NevisPages.com — Modernized Theme Prototype
   Shared design system: tokens, typography, header, footer, cards, ads
   ========================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Brand — derived from the NevisPages logo (purple globe + orange ring) */
  --brand:        #7d2a8f;   /* logo purple */
  --brand-dark:   #5e1f6e;
  --brand-deep:   #1a1326;   /* deep plum masthead/footer ink */
  --accent:       #ef5a1f;   /* logo orange ring — breaking/live/CTA */
  --accent-soft:  #fff1ea;

  /* Neutrals */
  --ink:          #14202b;
  --body:         #3a4750;
  --muted:        #6b7785;
  --line:         #e4e8ec;
  --line-soft:    #eef1f4;
  --bg:           #ffffff;
  --bg-soft:      #f5f7f8;
  --bg-tint:      #eef3f4;
  --surface:      #ffffff;   /* cards/menus/popovers — flips in dark mode */
  --nav-bg:       rgba(255,255,255,.82);
  --read:         #2c3741;   /* article body text */

  /* Category accents */
  --c-news:       #7d2a8f;
  --c-sports:     #1f9d57;
  --c-ent:        #d81b7a;
  --c-videos:     #d8341f;
  --c-featured:   #e08600;
  --c-culturama:  #e0571f;
  --c-notices:    #3a57c4;

  /* Gradients & glow (futuristic accents) */
  --grad:         linear-gradient(118deg, #7d2a8f 0%, #b4318f 42%, #ef5a1f 100%);
  --grad-soft:    linear-gradient(118deg, rgba(125,42,143,.12), rgba(239,90,31,.12));
  --grad-deep:    linear-gradient(135deg, #241634 0%, #1a1326 55%, #2a1320 100%);
  --glow-brand:   0 0 0 1px rgba(125,42,143,.25), 0 10px 30px -8px rgba(125,42,143,.45);
  --glow-accent:  0 8px 26px -6px rgba(239,90,31,.55);

  /* System */
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 2px rgba(20,32,43,.05), 0 8px 24px rgba(20,32,43,.06);
  --shadow-hover: 0 4px 10px rgba(26,19,38,.08), 0 24px 50px -12px rgba(26,19,38,.22);
  --container:    1220px;
  --gap:          28px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.utility {
  background: var(--grad-deep);
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.utility .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.utility a { color: rgba(255,255,255,.78); transition: color .15s; }
.utility a:hover { color: #fff; }
.utility-left { display: flex; align-items: center; gap: 18px; }
.utility-date { color: rgba(255,255,255,.55); }
.utility-right { display: flex; align-items: center; gap: 16px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad); background-size: 160% 160%; color: #fff; font-weight: 600;
  padding: 4px 11px; border-radius: 99px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--glow-accent); animation: gradshift 6s ease infinite;
}
@keyframes gradshift { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.social-row { display: flex; gap: 13px; }
.social-row a { font-weight: 600; }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 84px; width: auto; display: block; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 6px 14px rgba(125,42,143,.28)); }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 10px 22px rgba(239,90,31,.4)); }
.brand-word { display: none; }
.brand-mark {
  font-family: var(--serif); font-weight: 900; font-size: 30px; letter-spacing: -0.02em;
  color: var(--brand-deep); line-height: 1;
}
.brand-mark span { color: var(--brand); }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

.masthead-ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 728px; max-width: 100%; height: 90px;
}

.masthead-actions { display: flex; align-items: center; gap: 14px; }
.search-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--ink); transition: .18s;
}
.search-btn:hover, .menu-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-btn { display: none; }
.btn-primary {
  background: var(--grad); background-size: 140% 140%; color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: none; transition: .25s ease;
  box-shadow: 0 6px 18px -8px rgba(125,42,143,.6);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: var(--glow-accent); transform: translateY(-1px); }

/* AI search / assistant pill */
.ai-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px;
  border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--brand-deep);
  background: var(--bg); position: relative; transition: .22s ease;
  border: 1.5px solid transparent;
  background-image: linear-gradient(var(--surface),var(--surface)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.ai-pill .spark { font-size: 15px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-pill:hover { box-shadow: var(--glow-brand); transform: translateY(-1px); }
.ai-pill .muted { color: var(--muted); font-weight: 500; }

/* ==========================================================================
   PRIMARY NAV
   ========================================================================== */
.primary-nav { background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.primary-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: 0; transition: opacity .25s; }
.primary-nav.scrolled { box-shadow: 0 8px 30px -12px rgba(26,19,38,.25); }
.primary-nav.scrolled::after { opacity: 1; }
.primary-nav .container { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; flex: 1; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 16px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em;
  border-bottom: 3px solid transparent; transition: .15s;
}
.nav-list > li > a:hover { color: var(--brand); }
.nav-list > li.active > a { color: var(--brand); border-bottom-color: var(--brand); }
.nav-list > li.has-children > a::after { content: '▾'; font-size: 10px; color: var(--muted); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 60;
}
.nav-list > li.has-children:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--body); border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-cta { margin-left: auto; }

/* ---- MEGA MENU (matches current theme: sub-links + latest posts) ---- */
.nav-list > li.has-mega { position: static; }
.nav-list > li.has-mega > a::after { content: '▾'; font-size: 10px; color: var(--muted); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 34px 70px -24px rgba(26,19,38,.4);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); }
.nav-list > li.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: 28px 24px 32px; display: grid; grid-template-columns: 234px 1fr; gap: 38px; }
.mega-label { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; display: block; }
.mega-col { border-right: 1px solid var(--line); padding-right: 30px; }
.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: .15s; }
.mega-links a:hover { background: var(--grad-soft); color: var(--brand); }
.mega-links .arrow { color: var(--brand); opacity: 0; transform: translateX(-5px); transition: .15s; }
.mega-links a:hover .arrow { opacity: 1; transform: translateX(0); }
.mega-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mega-head .mega-label { margin-bottom: 0; }
.mega-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-card { display: flex; flex-direction: column; gap: 9px; }
.m-thumb { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--bg-tint); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.m-card:hover .m-thumb img { transform: scale(1.06); }
.m-thumb .cat-tag { position: absolute; top: 9px; left: 9px; }
.m-card h4 { font-size: 14.5px; line-height: 1.26; font-weight: 600; color: var(--ink); }
.m-card:hover h4 { color: var(--brand); }
.m-card .m-meta { font-size: 12px; color: var(--muted); }

/* ---- Enhanced mega (3-zone: links · spotlight · rail) ---- */
.mega-inner.mega-3 { grid-template-columns: 208px minmax(0,1fr) 250px; gap: 32px; }
.mega-links a .count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 99px; padding: 2px 9px; transition: .15s; }
.mega-links a:hover .count { background: #fff; color: var(--brand); }

.mega-spotlight { display: grid; grid-template-columns: 1.12fr 1fr; gap: 22px; }
.m-lead { display: flex; flex-direction: column; gap: 10px; }
.m-lead .m-thumb { aspect-ratio: 16/10; }
.m-lead h4 { font-size: 17px; line-height: 1.2; }
.m-lead p { font-size: 13px; color: var(--body); line-height: 1.5; margin: 0; }
.m-side { display: flex; flex-direction: column; gap: 14px; }
.m-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.m-row .m-thumb { aspect-ratio: 1/1; border-radius: 8px; }
.m-row h4 { font-size: 13.5px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.m-row:hover h4 { color: var(--brand); }
.m-row .m-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.mega-rail { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 18px; }
.mega-ai { background: var(--grad-soft); border: 1px solid rgba(125,42,143,.18); border-radius: 12px; padding: 14px; }
.mega-ai .ai-h { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; color: var(--brand-deep); margin-bottom: 11px; }
.mega-ai .ai-h .spark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; box-shadow: var(--glow-accent); }
.mega-ai .ai-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--muted); transition: .15s; }
.mega-ai .ai-q:hover { border-color: var(--brand); box-shadow: var(--glow-brand); }
.mega-ai .ai-q .go { color: var(--brand); font-weight: 800; }
.mega-tags .mega-label { margin-bottom: 11px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-tag { font-size: 12px; font-weight: 600; color: var(--body); background: var(--bg-soft); border-radius: 99px; padding: 5px 11px; transition: .15s; }
.chip-tag:hover { background: var(--grad-soft); color: var(--brand); }
.mega-cta { display: flex; align-items: center; gap: 10px; background: var(--grad-deep); color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--glow-brand); transition: transform .2s; }
.mega-cta:hover { transform: translateY(-1px); }
.mega-cta .ic { font-size: 16px; }
.mega-cta small { display: block; font-weight: 500; color: rgba(255,255,255,.65); font-size: 11px; }

/* ==========================================================================
   GENERIC PIECES
   ========================================================================== */
.kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* AI summary card (article pages) */
.ai-summary {
  position: relative; border-radius: var(--radius); padding: 1.5px; margin: 4px 0 30px;
  background: var(--grad); box-shadow: var(--glow-brand);
}
.ai-summary-inner { background: var(--surface); border-radius: calc(var(--radius) - 1px); padding: 22px 24px; }
.ai-summary-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ai-summary-head .spark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: var(--grad); font-size: 15px; box-shadow: var(--glow-accent);
}
.ai-summary-head strong { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
.ai-summary-head .badge { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; }
.ai-summary ul { display: flex; flex-direction: column; gap: 10px; }
.ai-summary li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.5; color: var(--body); }
.ai-summary li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); }
.cat-tag {
  display: inline-flex; align-items: center; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 4px 9px; border-radius: 3px;
}
.cat-news{background:var(--c-news)} .cat-sports{background:var(--c-sports)}
.cat-ent{background:var(--c-ent)} .cat-videos{background:var(--c-videos)}
.cat-featured{background:var(--c-featured)} .cat-culturama{background:var(--c-culturama)}
.cat-notices{background:var(--c-notices)} .cat-local{background:var(--c-news)}

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.section-title {
  font-size: 24px; font-weight: 700; color: var(--ink); position: relative; padding-left: 16px;
}
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--grad); }
.section-title.s-sports::before{background:var(--c-sports)} .section-title.s-ent::before{background:var(--c-ent)}
.section-title.s-videos::before{background:var(--c-videos)} .section-title.s-featured::before{background:var(--c-featured)}
.see-all { font-size: 13.5px; font-weight: 600; color: var(--brand); display: inline-flex; gap: 5px; align-items: center; }
.see-all:hover { gap: 9px; transition: gap .15s; }

.meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---- Cards ---- */
.card { background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.card-media { position: relative; overflow: hidden; background: var(--bg-tint); aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .cat-tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 16px 2px 4px; }
.card-title { font-size: 18px; font-weight: 600; line-height: 1.22; color: var(--ink); transition: color .15s; }
.card:hover .card-title { color: var(--brand); }
.card-excerpt { font-size: 14.5px; color: var(--body); margin: 8px 0 12px; }
.card.compact .card-media { aspect-ratio: 16/10; }
.card.compact .card-title { font-size: 16px; }

/* Elevated cards (grids) — futuristic app-like surfaces */
.grid-3 > .card, .grid-4 > .card, .archive-grid > .card, .split-feature > .lead {
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: var(--radius);
  padding-bottom: 18px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.grid-3 > .card .card-body, .grid-4 > .card .card-body,
.archive-grid > .card .card-body, .split-feature > .lead .card-body { padding: 16px 18px 0; }
.grid-3 > .card:hover, .grid-4 > .card:hover, .archive-grid > .card:hover, .split-feature > .lead:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(125,42,143,.28);
}

/* horizontal list item */
.list-item { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: none; }
.list-item .thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-tint); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item h4 { font-size: 15.5px; line-height: 1.25; font-weight: 600; }
.list-item:hover h4 { color: var(--brand); }

/* number list (most read) */
.rank-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--line); line-height: 1; }
.rank-item h4 { font-size: 15px; line-height: 1.28; font-weight: 600; }
.rank-item:hover h4 { color: var(--brand); }

/* ==========================================================================
   AD SLOTS
   ========================================================================== */
.ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f3f5f6, #f3f5f6 12px, #eef1f3 12px, #eef1f3 24px);
  border: 1px dashed #cfd6dc; border-radius: var(--radius-sm); color: #9aa6b1;
  text-align: center; gap: 4px;
}
.ad .ad-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #aab4bd; }
.ad .ad-size { font-size: 12.5px; font-weight: 600; color: #b6bfc7; }
.ad-leaderboard { height: 90px; width: 728px; max-width: 100%; margin: 0 auto; }
.ad-billboard { height: 250px; width: 970px; max-width: 100%; margin: 0 auto; }
.ad-rect { height: 250px; width: 300px; max-width: 100%; margin: 0 auto; }
.ad-halfpage { height: 600px; width: 300px; max-width: 100%; margin: 0 auto; }
.ad-inline { height: 120px; width: 100%; margin: 8px 0; }
.ad-strip { padding: 18px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   LAYOUT GRIDS
   ========================================================================== */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget { }
.widget-title {
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink);
}

section.block { padding: 44px 0; }
section.block.tint { background: var(--bg-soft); }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--grad-deep); color: rgba(255,255,255,.72); margin-top: 56px; border-top: 3px solid transparent; border-image: var(--grad) 1; }
.footer-top { padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand-logo { height: 64px; width: auto; margin-bottom: 4px; }
.footer-brand .brand-mark { color: #fff; font-size: 26px; }
.footer-brand .brand-mark span { color: #f4922e; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 16px 0 20px; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.72); transition: .15s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; transition: .18s;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; border-radius: var(--radius-sm); font-size: 14px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--line); }

.article-header { max-width: 820px; margin: 0 auto; text-align: center; padding: 8px 0 30px; }
.article-header .tags { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.article-title { font-size: 44px; font-weight: 700; line-height: 1.08; color: var(--ink); }
.article-sub { font-size: 19px; color: var(--body); margin-top: 18px; font-weight: 400; line-height: 1.5; }
.article-byline { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.byline-av { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tint); overflow: hidden; }
.byline-txt { text-align: left; font-size: 13.5px; }
.byline-txt strong { color: var(--ink); display: block; font-size: 14.5px; }

.article-hero { max-width: 1000px; margin: 0 auto 14px; border-radius: var(--radius); overflow: hidden; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; cursor: zoom-in; }
.cal-full { margin: 0 0 22px; }
.cal-full img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line-soft); cursor: zoom-in; }
.cal-full figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* Image lightbox */
.np-lightbox { position: fixed; inset: 0; background: rgba(10,7,16,.92); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.np-lightbox.open { opacity: 1; visibility: visible; }
.np-lightbox img { max-width: min(1100px, 95vw); max-height: 92vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.np-lightbox .np-lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; border: none; font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s; }
.np-lightbox .np-lb-close:hover { background: rgba(255,255,255,.28); }
.article-caption { max-width: 1000px; margin: 0 auto 36px; font-size: 13px; color: var(--muted); padding: 4px 2px; }

.article-layout { display: grid; grid-template-columns: 64px minmax(0, 720px) 300px; gap: 40px; justify-content: center; align-items: start; }
.share-rail { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.share-rail span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 4px; }
.share-rail a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink); transition: .18s;
}
.share-rail a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }

.article-body { font-size: 18px; line-height: 1.78; color: var(--read); }
.article-body p { margin: 0 0 24px; }
.article-body h2 { font-size: 27px; margin: 38px 0 16px; }
.article-body h3 { font-size: 21px; margin: 30px 0 12px; }
.article-body ul.bullets { margin: 0 0 24px; padding-left: 0; }
.article-body ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.article-body ul.bullets li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.article-body blockquote {
  border-left: 4px solid var(--brand); margin: 32px 0; padding: 6px 0 6px 26px;
  font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); font-style: italic;
}
.article-body a.inline { color: var(--brand); border-bottom: 1px solid var(--brand); }
.article-body strong { color: var(--ink); }

.article-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list a { font-size: 13px; font-weight: 500; color: var(--body); background: var(--bg-soft); padding: 6px 12px; border-radius: 99px; }
.tag-list a:hover { background: var(--bg-tint); color: var(--brand); }

/* ==========================================================================
   CATEGORY / ARCHIVE
   ========================================================================== */
.page-banner {
  position: relative; overflow: hidden; color: #fff; padding: 52px 0;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(125,42,143,.55) 0%, transparent 55%),
    radial-gradient(50% 130% at 92% 10%, rgba(239,90,31,.45) 0%, transparent 55%),
    var(--grad-deep);
}
.page-banner::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 42px; }
.page-banner p { color: rgba(255,255,255,.74); margin-top: 10px; max-width: 640px; font-size: 16px; }
.subnav { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 40; box-shadow: 0 6px 14px -12px rgba(26,19,38,.4); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; }
.subnav a { white-space: nowrap; padding: 16px 16px; font-size: 14px; font-weight: 600; color: var(--body); border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--brand); }
.subnav a.active { color: var(--brand); border-bottom-color: var(--brand); }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink); padding: 0 8px;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==========================================================================
   JOBS / NOTICES LISTING
   ========================================================================== */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--body); background: var(--bg); transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-inline { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; min-width: 240px; }
.search-inline input { border: none; outline: none; font-size: 14px; flex: 1; background: transparent; color: var(--ink); }

.notice { display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: .18s; margin-bottom: 14px; }
.notice:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.notice-logo { width: 130px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; }
.notice-logo img { width: 100%; height: 100%; object-fit: cover; }
.notice-type { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.type-job { background: #e8f4ec; color: var(--c-sports); }
.type-press { background: #eef0fb; color: var(--c-notices); }
.type-notice { background: #fff3e0; color: var(--c-featured); }
.notice h3 { font-size: 19px; margin: 10px 0 8px; line-height: 1.22; }
.notice:hover h3 { color: var(--brand); }
.notice .meta { font-size: 13px; }
.notice-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.notice-deadline { font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
  .sidebar > * { flex: 1 1 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .share-rail { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-list, .masthead-ad, .utility-left .utility-extra { display: none; }
  .brand-logo { height: 64px; }
  .ai-pill .ai-text { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 32px; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .notice { grid-template-columns: 1fr; }
  .notice-logo { width: 100%; height: 160px; }
}
@media (max-width: 560px) {
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .article-title { font-size: 27px; }
  .section-title { font-size: 20px; }
}

/* ==========================================================================
   HERO (homepage)
   ========================================================================== */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.hero-lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.hero-lead img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-lead .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,19,38,.94) 0%, rgba(45,20,40,.5) 42%, rgba(125,42,143,.12) 100%); }
.hero-lead .overlay::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.hero-lead .hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px; color: #fff; }
.hero-lead h2 { color: #fff; font-size: 36px; line-height: 1.08; max-width: 90%; }
.hero-lead .hero-content .meta { color: rgba(255,255,255,.8); margin-top: 14px; }
.hero-lead .hero-content .meta .dot { background: rgba(255,255,255,.6); }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .card-media { aspect-ratio: 16/9; border-radius: var(--radius); }
.hero-side .card { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; }
.hero-side .card .card-media { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.hero-side .card-body { padding: 0; }
.hero-side .card-title { font-size: 16px; }

/* trending ticker */
.ticker { background: var(--ink); color: #fff; }
.ticker .container { display: flex; align-items: center; gap: 18px; height: 46px; overflow: hidden; }
.ticker-label { background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; white-space: nowrap; box-shadow: var(--glow-accent); }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 34px; animation: nvp26-ticker 45s linear infinite; will-change: transform; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-size: 14px; color: rgba(255,255,255,.85); }
.ticker-track a:hover { color: #fff; }
@keyframes nvp26-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-viewport { overflow-x: auto; } }

/* feature grid (category section default) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.split-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.split-feature .lead .card-media { aspect-ratio: 16/10; }
.split-feature .lead .card-title { font-size: 26px; margin-top: 14px; }
.split-feature .stack { display: flex; flex-direction: column; }

/* ==========================================================================
   DARK MODE
   ========================================================================== */
[data-theme="dark"] {
  --ink:        #f2edf6;
  --body:       #c5bcd4;
  --muted:      #9b90b0;
  --read:       #d3ccdf;
  --bg:         #130e1b;
  --bg-soft:    #1b1526;
  --bg-tint:    #271f37;
  --surface:    #1a1426;
  --line:       #2f2742;
  --line-soft:  #241d33;
  --nav-bg:     rgba(19,14,27,.82);
  --shadow:       0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-hover: 0 4px 10px rgba(0,0,0,.5), 0 24px 50px -12px rgba(0,0,0,.6);
}
[data-theme="dark"] .ad { background: repeating-linear-gradient(45deg,#1d1730,#1d1730 12px,#241d34 12px,#241d34 24px); border-color:#352c4a; color:#6f6585; }
[data-theme="dark"] .masthead .brand-logo { filter: drop-shadow(0 6px 14px rgba(239,90,31,.35)); }
[data-theme="dark"] .chip.active, [data-theme="dark"] .notice-type.type-job { color:#fff; }
[data-theme="dark"] .type-job{ background:rgba(31,157,87,.18);} 
[data-theme="dark"] .type-press{ background:rgba(58,87,196,.22);} 
[data-theme="dark"] .type-notice{ background:rgba(224,134,0,.2);} 
html { transition: background-color .3s ease; }
body, .masthead, .card, .mega, .notice { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }

/* ---- Theme toggle (injected into utility bar) ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 13px; cursor: pointer; transition: .18s;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); color:#fff; }

/* ---- Reading progress bar (article) ---- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; box-shadow: var(--glow-accent); transition: width .08s linear; }

/* ---- Listen / TTS button (article) ---- */
.listen-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--brand-deep); background: var(--surface);
  border: 1.5px solid transparent; background-image: linear-gradient(var(--surface),var(--surface)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box; transition: .2s;
}
.listen-btn:hover { box-shadow: var(--glow-brand); transform: translateY(-1px); }
.listen-btn .ic { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 15px; }
.listen-btn.playing { background-image: var(--grad), var(--grad); color:#fff; }
.listen-btn.playing .ic { color:#fff; -webkit-text-fill-color:#fff; }

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; border: none; font-size: 20px; cursor: pointer; z-index: 150;
  box-shadow: var(--glow-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: var(--glow-accent); transform: translateY(-2px); }

/* ---- Mega: NEW pulse badge ---- */
.pulse-new {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 4px; margin-left: 8px;
}
.pulse-new::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }

/* ---- Mega: sponsor slot in rail ---- */
.mega-sponsor { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.mega-sponsor .ad-label { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display:block; margin-bottom: 8px; }
.mega-sponsor .spon { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 15px; }
.mega-sponsor .spon small { display:block; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Mobile drawer ---- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(10,7,16,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 99; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 320px; max-width: 86vw; background: var(--surface);
  z-index: 100; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 46px; }
.drawer-close { background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; line-height: 1; }
.drawer-links { padding: 10px 12px; display: flex; flex-direction: column; }
.drawer-links a { padding: 14px 14px; font-size: 16px; font-weight: 600; color: var(--ink); border-radius: 8px; display:flex; justify-content:space-between; align-items:center; }
.drawer-links a:hover { background: var(--grad-soft); color: var(--brand); }
.drawer-cta { margin: 14px 20px 26px; }

/* Mega tap-open (touch devices) */
.nav-list > li.has-mega.tap-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   MAGAZINE VARIANT (index-magazine.html)
   ========================================================================== */
.mag-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); padding: 32px 24px 12px; }
.mag-cover { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 552px; display: block; }
.mag-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mag-cover:hover img { transform: scale(1.04); }
.mag-cover .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,19,38,.95) 0%, rgba(26,19,38,.4) 46%, rgba(125,42,143,.1) 100%); }
.mag-cover .overlay::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.mag-cover-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 42px; color: #fff; }
.mag-headline { color: #fff; font-size: 46px; line-height: 1.04; letter-spacing: -.02em; max-width: 780px; margin-top: 16px; }
.mag-dek { color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.5; margin: 16px 0 12px; max-width: 640px; }
.mag-cover-txt .meta { color: rgba(255,255,255,.78); }
.mag-cover-txt .meta .dot { background: rgba(255,255,255,.6); }

.mag-cover-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.mag-sec { position: relative; border-radius: var(--radius); overflow: hidden; display: block; min-height: 258px; }
.mag-sec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mag-sec:hover img { transform: scale(1.05); }
.mag-sec .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,19,38,.92), rgba(26,19,38,.12)); }
.mag-sec > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.mag-sec h3 { color: #fff; font-size: 21px; line-height: 1.16; margin-top: 10px; }

.mag-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 46px; align-items: start; }
.mag-lead { display: block; }
.mag-lead .m-img { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }
.mag-lead .m-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mag-lead:hover .m-img img { transform: scale(1.04); }
.mag-lead h2 { font-size: 34px; line-height: 1.1; margin: 20px 0 12px; }
.mag-lead:hover h2 { color: var(--brand); }
.mag-lead p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 12px; }
.mag-rail .mega-label { margin-bottom: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }

.mag-band { position: relative; margin: 54px 0; min-height: 470px; display: flex; align-items: center; overflow: hidden; }
.mag-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-band .overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(26,19,38,.94) 0%, rgba(26,19,38,.55) 56%, rgba(125,42,143,.25) 100%); }
.mag-band .container { position: relative; z-index: 1; }
.mag-band-txt { color: #fff; max-width: 680px; }
.mag-band-txt .kicker { background: none; color: #f4922e; -webkit-text-fill-color: #f4922e; }
.mag-band-txt h2 { color: #fff; font-size: 42px; line-height: 1.07; margin: 14px 0 16px; }
.mag-band-txt p { color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }

.mag-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.mag-duo > .card { border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: var(--radius); padding-bottom: 20px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.mag-duo > .card .card-media { aspect-ratio: 16/9; }
.mag-duo > .card .card-body { padding: 18px 20px 0; }
.mag-duo > .card .card-title { font-size: 25px; }
.mag-duo > .card .card-excerpt { font-size: 15px; }
.mag-duo > .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(125,42,143,.28); }

@media (max-width: 980px) {
  .mag-hero, .mag-split, .mag-duo { grid-template-columns: 1fr; }
  .mag-cover { min-height: 440px; }
  .mag-headline { font-size: 32px; }
  .mag-band-txt h2 { font-size: 30px; }
  .mag-lead h2 { font-size: 28px; }
}

/* Empty-thumbnail placeholder (theme) */
.thumb-blank { display:block; width:100%; height:100%; background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft)); }
.m-thumb .thumb-blank, .card-media .thumb-blank, .thumb .thumb-blank, .notice-logo .thumb-blank { position:absolute; inset:0; }

/* WordPress core pagination → pill style */
.pagination .nav-links { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:44px; }
.pagination .page-numbers { min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:var(--radius-sm); font-size:14px; font-weight:600; color:var(--ink); padding:0 10px; }
.pagination .page-numbers:hover { border-color:var(--brand); color:var(--brand); }
.pagination .page-numbers.current { background:var(--grad); color:#fff; border-color:transparent; }


/* ---- Live ad wrapper (NVP26 Ads plugin fills these; empty = nothing) ---- */
.ad-live { display: flex; justify-content: center; align-items: center; margin: 18px auto; }
.ad-live img { height: auto; max-width: 100%; display: block; border-radius: var(--radius-sm); }
.ad-live iframe, .ad-live ins, .ad-live > * { max-width: 100%; }
.masthead .ad-live { margin: 0; }


/* Article listen row (date + Listen button) */
.article-listen-row { max-width: 1000px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-date { font-size: 13.5px; color: var(--muted); }
.article-listen { display: flex; }
.article-listen .listen-btn { margin-top: 0; }


/* Most Read item (thumbnail + date) */
.read-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.read-item:last-child { border-bottom: none; }
.read-thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-tint); }
.read-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.read-item:hover .read-thumb img { transform: scale(1.06); }
.read-item h4 { font-size: 14px; line-height: 1.28; font-weight: 600; color: var(--ink); }
.read-item:hover h4 { color: var(--brand); }
.read-date { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }


/* Photo captions inside article content (shown only when a caption is entered) */
.article-body figure { margin: 26px 0; }
.article-body figure img { border-radius: var(--radius-sm); }
.article-body figcaption,
.article-body .wp-caption-text {
  font-size: 13px; line-height: 1.5; color: var(--muted); font-style: italic;
  text-align: center; margin-top: 8px; padding: 0 4px;
}
.article-body .wp-caption { max-width: 100%; }
.article-body .wp-caption img { width: 100%; height: auto; }

/* Mega stories loading state */
.mega-stories.is-loading { opacity: .45; transition: opacity .15s ease; }


/* ==========================================================================
   ADVANCED SEARCH OVERLAY
   ========================================================================== */
.np-search { position: fixed; inset: 0; z-index: 300; display: none; }
.np-search.open { display: block; }
.np-search::before { content: ''; position: absolute; inset: 0; background: rgba(10,7,16,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.np-search-panel { position: relative; max-width: 720px; width: calc(100% - 32px); margin: 8vh auto 0; background: var(--surface); border-radius: 16px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); overflow: hidden; animation: npPop .18s ease; }
@keyframes npPop { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
.np-search-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); position: relative; }
.np-search-bar::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.np-search-spark { margin-left: 10px; font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.np-search-input { flex: 1; border: none; outline: none; font-size: 18px; padding: 16px 4px; background: transparent; color: var(--ink); font-family: var(--sans); }
.np-search-input::placeholder { color: var(--muted); }
.np-search-close { width: 40px; height: 40px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.np-search-close:hover { background: var(--bg-soft); color: var(--ink); }
.np-search-chips { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
.np-search-chip { font-size: 12.5px; font-weight: 600; color: var(--body); background: var(--bg-soft); border: none; border-radius: 99px; padding: 6px 13px; cursor: pointer; transition: .15s; }
.np-search-chip:hover { color: var(--brand); }
.np-search-chip.active { background: var(--grad); color: #fff; }
.np-search-shimmer { height: 3px; background: var(--grad); background-size: 200% 100%; animation: npShim 1.1s linear infinite; }
@keyframes npShim { from { background-position: 0 0; } to { background-position: 200% 0; } }
.np-search-results { max-height: 52vh; overflow-y: auto; }
.np-sr { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.np-sr:hover, .np-sr.sel { background: var(--bg-soft); }
.np-sr .thumb { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--bg-tint); display: block; }
.np-sr h4 { font-size: 15px; line-height: 1.28; color: var(--ink); font-weight: 600; }
.np-sr .m { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; gap: 8px; align-items: center; }
.np-sr mark { background: var(--accent-soft); color: var(--accent); padding: 0 2px; border-radius: 3px; }
.np-search-state { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.np-search-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.np-search-foot b { color: var(--ink); }
@media (max-width: 560px) { .np-search-panel { margin-top: 0; border-radius: 0; min-height: 100vh; } .np-search-results { max-height: none; } }


/* ==========================================================================
   CONTACT / FERRY / CULTURAMA PAGES
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form-wrap .section-title { margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea { font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--glow-brand); }
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-status { font-size: 14px; }
.contact-status.ok { color: var(--c-sports); }
.contact-status.err { color: var(--accent); }
.contact-status.sending { color: var(--muted); }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow); }
.info-card .info-ic { font-size: 22px; }
.info-card h3 { font-size: 16px; margin: 8px 0 6px; }
.info-card p { font-size: 14px; margin: 0; }
.info-card p a { color: var(--brand); }
.info-card .muted { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.5; }
.contact-social a { color: var(--brand); font-weight: 600; }

.ferry-note { background: var(--accent-soft); border: 1px solid rgba(239,90,31,.25); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; color: var(--body); margin-bottom: 24px; }
.ferry-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; }
.ferry-table th { text-align: left; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.ferry-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink); }
.ferry-table tbody tr:hover { background: var(--bg-soft); }
.ferry-table td:first-child { font-weight: 700; }
.ferry-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.ferry-day-btn { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--body); font-family: var(--sans); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.ferry-day-btn:hover { border-color: var(--brand); color: var(--brand); }
.ferry-day-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.ferry-day { display: none; }
.ferry-day.active { display: block; }
.ferry-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ferry-dir { font-size: 15px; letter-spacing: .01em; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
@media (max-width: 720px) { .ferry-cols { grid-template-columns: 1fr; gap: 8px; } }
.ferry-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }

.culturama-tile { display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 20px; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.culturama-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(125,42,143,.28); }
.culturama-tile .ct-ic { font-size: 26px; }
.culturama-tile h3 { font-size: 18px; margin: 10px 0 6px; }
.culturama-tile:hover h3 { color: var(--brand); }
.culturama-tile p { font-size: 13.5px; color: var(--body); margin: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .cf-row { grid-template-columns: 1fr; }
  .ferry-cards { grid-template-columns: 1fr; }
}
