/* ============================================================
   MG News — Frontend CSS
   Typography-first. No images. Blue #1a237e + Gold #f5a623.
   ============================================================ */

:root {
  --blue:       #1a237e;
  --blue-dark:  #0d1757;
  --blue-mid:   #283593;
  --blue-light: #e8eaf6;
  --gold:       #f5a623;
  --gold-dark:  #e09010;
  --red:        #c0392b;
  --white:      #ffffff;
  --off-white:  #fafafa;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --serif:      'Georgia', 'Times New Roman', serif;
  --sans:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --max-w:      1200px;
  --col-gap:    28px;
  --radius:     6px;
  --transition: 0.16s ease;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.breaking-label {
  background: var(--gold);
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}
.breaking-label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: bn-pulse 1s ease-in-out infinite;
}
@keyframes bn-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.breaking-track { flex: 1; overflow: hidden; position: relative; }
.breaking-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  padding-left: 20px;
}
.breaking-inner:hover { animation-play-state: paused; }
.breaking-item { padding: 0 32px; display: inline-flex; align-items: center; gap: 8px; }
.breaking-item::after {
  content: '●';
  color: rgba(255,255,255,.35);
  font-size: 8px;
  margin-left: 24px;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ============================================================
   TOP BAR (date + search + social)
   ============================================================ */
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-date {
  font-size: 12px;
  color: var(--gray-400);
  font-family: var(--sans);
}
.top-bar-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 320px;
}
.top-bar-search input {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 13px;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
}
.top-bar-search input:focus { border-color: var(--blue); }
.top-bar-search button {
  padding: 6px 12px;
  background: var(--blue);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
}
.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}
.social-link:hover { background: var(--blue); color: var(--white); }

/* ============================================================
   HEADER + MASTHEAD
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 18px 0 14px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.masthead { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.masthead-mark {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.masthead-text { line-height: 1.1; }
.masthead-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.04em;
  font-family: var(--sans);
}
.masthead-tagline {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-date-block {
  text-align: right;
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================================================
   NAV
   ============================================================ */
.main-nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}
.nav-link.active { font-weight: 700; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 10px 16px;
  cursor: pointer;
  margin-left: auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero { padding: 28px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--col-gap);
  margin-bottom: 28px;
}

/* Top story */
.top-story {
  border-right: 1px solid var(--gray-200);
  padding-right: var(--col-gap);
}
.top-story-cat {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.top-story-headline {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.top-story-headline:hover { color: var(--blue); }
.top-story-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 14px;
  font-family: var(--serif);
}
.top-story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
}
.top-story-meta a { color: var(--blue); font-weight: 500; }
.top-story-meta a:hover { text-decoration: underline; }
.meta-sep { color: var(--gray-200); }
.read-time { display: flex; align-items: center; gap: 4px; }

/* Featured sidebar articles */
.hero-sidebar { display: flex; flex-direction: column; gap: 0; }
.featured-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.featured-item:last-child { border-bottom: none; }
.featured-item-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 6px;
}
.featured-item-headline {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-800);
  margin-bottom: 5px;
  transition: color var(--transition);
}
a:hover .featured-item-headline { color: var(--blue); }
.featured-item-meta { font-size: 11px; color: var(--gray-400); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--blue);
  padding-top: 10px;
  margin-bottom: 18px;
}
.section-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
}
.section-more {
  font-size: 12px;
  color: var(--gray-400);
  transition: color var(--transition);
}
.section-more:hover { color: var(--blue); }

/* ============================================================
   ARTICLE CARD (used across sections)
   ============================================================ */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
}
.article-card-headline {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-800);
  transition: color var(--transition);
}
a:hover .article-card-headline { color: var(--blue); }
.article-card-excerpt {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}
.article-card-meta {
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   LATEST NEWS (paginated grid)
   ============================================================ */
.latest-section { padding: 28px 0; border-top: 1px solid var(--gray-200); }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.latest-card {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.latest-card-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--sans);
}

/* ============================================================
   TRENDING / MOST READ (ranked list)
   ============================================================ */
.ranked-section { padding: 28px 0; }
.ranked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.ranked-list { display: flex; flex-direction: column; gap: 0; }
.ranked-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ranked-item:last-child { border-bottom: none; }
.ranked-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  min-width: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ranked-item:first-child .ranked-num { color: var(--gold); }
.ranked-item:nth-child(2) .ranked-num { color: var(--gray-400); }
.ranked-content { flex: 1; min-width: 0; }
.ranked-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-800);
  margin-bottom: 4px;
  transition: color var(--transition);
}
a:hover .ranked-headline { color: var(--blue); }
.ranked-meta { font-size: 11px; color: var(--gray-400); }

/* ============================================================
   EDITORS PICKS
   ============================================================ */
.picks-section { padding: 28px 0; background: var(--blue); }
.picks-section .section-header { border-color: var(--gold); }
.picks-section .section-title { color: var(--white); }
.picks-section .section-more { color: rgba(255,255,255,.4); }
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pick-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 18px;
  transition: background var(--transition);
}
.pick-card:hover { background: rgba(255,255,255,.12); }
.pick-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.pick-headline {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 8px;
  transition: color var(--transition);
}
a:hover .pick-headline { color: var(--gold); }
.pick-meta { font-size: 11px; color: rgba(255,255,255,.4); }

/* ============================================================
   CATEGORY BLOCKS
   ============================================================ */
.cat-blocks-section { padding: 28px 0; }
.cat-blocks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.cat-block { }
.cat-block-items { display: flex; flex-direction: column; gap: 0; }
.cat-block-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cat-block-item:last-child { border-bottom: none; }
.cat-block-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-800);
  margin-bottom: 3px;
  transition: color var(--transition);
}
a:hover .cat-block-headline { color: var(--blue); }
.cat-block-meta { font-size: 11px; color: var(--gray-400); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 32px 0 48px;
  align-items: start;
}
.article-main { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-200); }

/* Article header */
.article-cat-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article-headline {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.article-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  line-height: 1.5;
  font-family: var(--serif);
  margin-bottom: 18px;
  border-left: 4px solid var(--blue);
  padding-left: 16px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
}
.byline-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.byline-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.byline-name a:hover { color: var(--blue); }
.byline-detail { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.byline-reading { margin-left: auto; font-size: 12px; color: var(--gray-400); text-align: right; }

/* Article body */
.article-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.82;
  color: var(--gray-800);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 1.8em 0 .6em;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1.5em 0 .5em;
}
.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 2em 0;
  padding: 14px 20px;
  background: var(--gray-50);
  font-style: italic;
  color: var(--gray-700);
  font-size: 19px;
}
.article-body ul, .article-body ol {
  margin: 1em 0 1.4em 1.6em;
  list-style: revert;
}
.article-body li { margin-bottom: .4em; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body a:hover { color: var(--blue-dark); }
.article-body strong { font-weight: 700; color: var(--gray-900); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: var(--sans);
  font-size: 15px;
}
.article-body table th {
  background: var(--blue);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.article-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tr:nth-child(even) td { background: var(--gray-50); }
.article-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  margin: 1.5em 0;
  line-height: 1.6;
}
.article-body code:not(pre code) {
  background: var(--gray-100);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .85em;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray-600);
  font-family: var(--sans);
  transition: all var(--transition);
}
.tag-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* Like + Share bar */
.engagement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 24px 0;
  flex-wrap: wrap;
}
.like-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 24px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  font-family: var(--sans);
}
.like-btn:hover, .like-btn.liked {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}
.like-btn svg { width: 18px; height: 18px; }
.share-btns { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
  font-family: var(--sans);
}
.share-btn:hover { opacity: .88; }
.share-btn.fb      { background: #1877f2; color: #fff; }
.share-btn.tw      { background: #000;    color: #fff; }
.share-btn.wa      { background: #25d366; color: #fff; }
.share-btn.tg      { background: #0088cc; color: #fff; }
.share-btn.li      { background: #0a66c2; color: #fff; }
.share-btn.copy    { background: var(--gray-100); color: var(--gray-700); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 40px; padding-top: 32px; border-top: 3px solid var(--blue); }
.comments-title { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; }

.comment-form-wrap { margin-bottom: 32px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.comment-input:focus { border-color: var(--blue); }
textarea.comment-input { resize: vertical; min-height: 100px; }
.comment-submit {
  padding: 10px 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  align-self: flex-start;
  transition: background var(--transition);
}
.comment-submit:hover { background: var(--blue-dark); }

.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-author { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.comment-date { font-size: 12px; color: var(--gray-400); margin-left: auto; }
.comment-body { font-size: 14px; color: var(--gray-700); line-height: 1.6; font-family: var(--serif); }
.comment-reply-btn {
  margin-top: 8px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
}
.comment-reply-btn:hover { text-decoration: underline; }
.comment-replies { margin-left: 44px; border-left: 2px solid var(--gray-100); padding-left: 16px; margin-top: 12px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 70px; }
.sidebar-widget { }
.sidebar-widget-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  border-top: 3px solid var(--blue);
  padding-top: 10px;
  margin-bottom: 14px;
}
.sidebar-article {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-800);
  margin-bottom: 4px;
  transition: color var(--transition);
}
a:hover .sidebar-article-headline { color: var(--blue); }
.sidebar-article-meta { font-size: 11px; color: var(--gray-400); }
.sidebar-ad {
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { padding: 24px 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 28px; }
.search-title { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.search-meta { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.search-form-wrap { display: flex; gap: 0; max-width: 560px; margin-top: 16px; }
.search-form-wrap input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px;
  outline: none;
  font-family: var(--sans);
}
.search-form-wrap input:focus { border-color: var(--blue); }
.search-form-wrap button {
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.search-results-list { display: flex; flex-direction: column; gap: 0; }
.search-result {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.search-result:last-child { border-bottom: none; }
.search-result-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 5px; }
.search-result-headline { font-size: 18px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; transition: color var(--transition); }
a:hover .search-result-headline { color: var(--blue); }
.search-result-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.55; font-family: var(--serif); margin-bottom: 6px; }
.search-result-meta { font-size: 12px; color: var(--gray-400); }

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-header {
  padding: 28px 0;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 28px;
}
.author-profile { display: flex; align-items: flex-start; gap: 20px; }
.author-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.author-role { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.author-bio  { font-size: 15px; color: var(--gray-600); line-height: 1.6; font-family: var(--serif); max-width: 560px; }
.author-socials { display: flex; gap: 10px; margin-top: 10px; }
.author-social { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--blue); border: 1px solid var(--blue-light); padding: 4px 10px; border-radius: 20px; }
.author-social:hover { background: var(--blue); color: var(--white); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header {
  padding: 22px 0;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 28px;
}
.category-header-inner { display: flex; align-items: center; gap: 14px; }
.cat-color-bar { width: 6px; height: 52px; border-radius: 3px; flex-shrink: 0; }
.cat-page-name { font-size: 30px; font-weight: 900; color: var(--gray-900); }
.cat-page-desc { font-size: 15px; color: var(--gray-400); margin-top: 2px; }
.cat-page-count { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  font-family: var(--sans);
  font-weight: 500;
}
.page-link:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-light); }
.page-link.active { background: var(--blue); color: var(--white); border-color: var(--blue); font-weight: 700; }
.page-link.disabled { opacity: .35; pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gray-900); color: var(--white); padding: 48px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { }
.footer-mark {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-social {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  transition: background var(--transition);
}
.footer-social:hover { background: var(--gold); color: var(--blue); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-link:hover { color: var(--white); }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .top-story { border-right: none; padding-right: 0; border-bottom: 1px solid var(--gray-200); padding-bottom: 20px; }
  .hero-sidebar { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .featured-item { flex: 1; min-width: 200px; border-bottom: none; border-right: 1px solid var(--gray-200); padding-right: 16px; }
  .featured-item:last-child { border-right: none; }
  .ranked-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .cat-blocks-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr; }
  .article-headline { font-size: 26px; }
  .top-story-headline { font-size: 24px; }
  .share-btns { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); z-index: 200; }
  .comment-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .latest-grid { grid-template-columns: 1fr; }
  .top-bar-search { display: none; }
  .masthead-name { font-size: 22px; }
}
