/* ============================================================
   BBC News Classic 3.0 — main.css
   BBC Reith fonts loaded locally. No Google Fonts for text.
   ============================================================ */

/* ── @font-face: BBC Reith Serif ──────────────────────────── */
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_It.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSerif';
  src: url('fonts/serif/BBCReithSerif_W_BdIt.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── @font-face: BBC Reith Sans ───────────────────────────── */
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_It.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BBCReithSans';
  src: url('fonts/sans/BBCReithSans_W_BdIt.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --white:   #ffffff;
  --black:   #000000;
  --text:    #202224;
  --muted:   #545658;
  --border:  #e6e8ea;
  --bg:      #f6f6f6;
  --red:     #e32b2b;
  --max:     1264px;
  --art:     620px;
  --wide:    1000px;
  --serif:   'BBCReithSerif', Georgia, 'Times New Roman', serif;
  --sans:    'BBCReithSans', Arial, sans-serif;
  --icons:   'Material Symbols Outlined';
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
p      { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* Material Symbols base */
.material-symbols-outlined {
  font-family: var(--icons);
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Shared image helper */
.bbc-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════════════════════════════
   HEADER
   65px sticky white bar. Hides on scroll down, shows on up.
   Layout: [≡ left] | [LOGO absolute centre] | [🔍 Register Sign In right]
   ════════════════════════════════════════════════════════════ */
.bbc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 65px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: transform .25s ease;
}
.bbc-header.hidden { transform: translateY(-100%); }

/* Compensate for fixed header — push page content down */
body.bbc-theme { padding-top: 65px; }

.bbc-header-inner {
  position: relative; /* for absolute logo */
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT: hamburger only */
.bbc-header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* LOGO: absolute centre */
.bbc-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  z-index: 1;
}
.bbc-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  user-select: none;
  flex-shrink: 0;
}

/* RIGHT: search + auth */
.bbc-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

/* Icon buttons */
.bbc-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  min-width: 40px;
  min-height: 40px;
  color: var(--black);
  transition: background .1s;
}
.bbc-icon-btn:hover { background: var(--bg); }
.bbc-icon-btn .material-symbols-outlined { font-size: 22px; }

/* Register / Sign In */
.bbc-btn-register {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s;
  margin-left: 4px;
}
.bbc-btn-register:hover { background: #333; color: var(--white); text-decoration: none; }

.bbc-btn-signin {
  color: var(--black);
  font-size: 16px;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.bbc-btn-signin:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════════════════
   SEARCH PANEL
   ════════════════════════════════════════════════════════════ */
#bbc-search-panel {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 999;
}
#bbc-search-panel.open { display: block; }

.bbc-search-inner { max-width: var(--max); margin: 0 auto; }
.bbc-search-form { display: flex; }
.bbc-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--text);
  border-right: none;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  background: var(--white);
  -webkit-appearance: none;
}
.bbc-search-form button {
  background: var(--text);
  color: var(--white);
  border: 2px solid var(--text);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bbc-search-form button .material-symbols-outlined { font-size: 20px; }


/* ════════════════════════════════════════════════════════════
   CATEGORY NAV STRIP
   ════════════════════════════════════════════════════════════ */
.bbc-cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 998;
}
.bbc-cat-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
}
.bbc-cat-nav-inner::-webkit-scrollbar { display: none; }

.bbc-cat-link {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: border-color .1s;
}
.bbc-cat-link:hover,
.bbc-cat-link.active { border-bottom-color: var(--black); }


/* ════════════════════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════════════════════ */
#bbc-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 1001;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}
#bbc-mobile-menu.open { transform: translateX(0); }

.bbc-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 65px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
/* Override absolute positioning inside mobile menu */
.bbc-mobile-head .bbc-logo,
.bbc-logo-sm {
  position: static !important;
  transform: none !important;
}
.bbc-logo-sm .bbc-logo-box { width: 28px; height: 28px; font-size: 16px; }

.bbc-mobile-nav { list-style: none; flex: 1; }
.bbc-mobile-nav li { border-bottom: 1px solid var(--border); }
.bbc-mobile-nav li a {
  display: block;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.bbc-mobile-nav li a:hover { background: var(--bg); }

#bbc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  cursor: pointer;
}
#bbc-overlay.open { display: block; }


/* ════════════════════════════════════════════════════════════
   HERO — 3 columns (matches first-version layout)
   Left 285px | Centre 1fr | Right 255px
   ════════════════════════════════════════════════════════════ */
.bbc-hero { padding: 0; }

.bbc-hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 285px 1fr 255px;
  gap: 0;
}

/* Col A: 2 stacked secondary posts */
.bbc-hero-col-a {
  padding: 16px 20px 16px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.bbc-hero-sec { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }
.bbc-hero-sec--border { padding-top: 20px; border-top: 1px solid var(--border); }

/* 16:9 image wrapper for Col A */
.bbc-hero-sec-img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.bbc-hero-sec-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.bbc-hero-sec-title a { color: var(--text); text-decoration: none; }
.bbc-hero-sec-title a:hover { text-decoration: underline; }

/* Col B: main story */
.bbc-hero-col-b {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.bbc-hero-main-img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
}
.bbc-hero-main-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.bbc-hero-main-title a { color: var(--text); text-decoration: none; }
.bbc-hero-main-title a:hover { text-decoration: underline; }
.bbc-hero-excerpt { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }

/* Col C: 4 text-only stories */
.bbc-hero-col-c {
  padding: 16px 0 16px 20px;
  display: flex;
  flex-direction: column;
}
.bbc-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.bbc-hero-text:last-child  { border-bottom: none; }
.bbc-hero-text:first-child { padding-top: 0; }
.bbc-hero-text-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.bbc-hero-text-title a { color: var(--text); text-decoration: none; }
.bbc-hero-text-title a:hover { text-decoration: underline; }

/* LIVE badge */
.bbc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.bbc-live-dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* Post meta: time | category */
.bbc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); }
.bbc-meta a { color: var(--muted); text-decoration: none; }
.bbc-meta a:hover { text-decoration: underline; }
.bbc-sep { color: var(--muted); }


/* ════════════════════════════════════════════════════════════
   CATEGORY SECTIONS
   ════════════════════════════════════════════════════════════ */
.bbc-sections { padding-bottom: 20px; }

.bbc-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Section head: slim top border only */
.bbc-section-head {
  border-top: 1px solid var(--text);
  padding-top: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.bbc-section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  text-decoration: none;
}
.bbc-section-label:hover { text-decoration: underline; }
.bbc-section-arrow { font-size: 14px; color: var(--text); text-decoration: none; }

/* ── 2-col equal grid matching BBC homepage layout ─────────── */
.bbc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── Cards ─────────────────────────────────────────────────── */
.bbc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* 16:9 image box — uniform height across ALL columns */
.bbc-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
}
.bbc-card-img a { display: block; width: 100%; height: 100%; }
.bbc-img { transition: transform .25s ease; }
.bbc-card-img:hover .bbc-img { transform: scale(1.02); }

.bbc-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.bbc-card-title--lg { font-size: 22px; }
.bbc-card-title a { color: var(--text); text-decoration: none; }
.bbc-card-title a:hover { text-decoration: underline; }

.bbc-card-exc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY / SEARCH PAGES
   3-col equal grid — same card component
   ════════════════════════════════════════════════════════════ */
.bbc-archive {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 60px;
}
.bbc-arc-head {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.bbc-arc-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.bbc-arc-desc { font-size: 15px; color: var(--muted); margin: 0; }

/* 3-col archive grid */
.bbc-arc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Pagination */
.bbc-pagination { margin-top: 48px; }
.bbc-pagination .page-numbers {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.bbc-pagination .page-numbers li a,
.bbc-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
}
.bbc-pagination .page-numbers li span.current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.bbc-empty { padding: 60px 0; text-align: center; }
.bbc-empty h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }


/* ════════════════════════════════════════════════════════════
   SINGLE ARTICLE
   ════════════════════════════════════════════════════════════ */
.bbc-single { background: var(--white); }

/* Article header: 620px centred */
.bbc-art-head {
  max-width: var(--art);
  margin: 40px auto 0;
  padding: 0 16px 24px;
  /* NO border-bottom — separator removed as requested */
}

.bbc-art-time {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.bbc-art-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 20px;
}

/* Meta row: author left | Share Save right — no bottom border */
.bbc-art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  /* NO border — removed per request */
}
.bbc-art-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}
.bbc-art-by { color: var(--muted); }
.bbc-art-author a { color: var(--text); text-decoration: none; font-weight: 600; }
.bbc-art-author a:hover { text-decoration: underline; }

/* Share + Save — Material Symbols icons */
.bbc-art-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bbc-act-btn {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.bbc-act-btn:hover { opacity: .65; }
.bbc-act-icon { font-size: 18px; }

/* Save: swap icon on saved state */
.bbc-save-btn.saved .bbc-save-icon-off { display: none !important; }
.bbc-save-btn.saved .bbc-save-icon-on  { display: inline-block !important; }

/* Featured image: max 1000px wide, centred, properly displayed */
.bbc-art-img-wrap {
  max-width: var(--wide);
  margin: 28px auto;
  padding: 0;
}
.bbc-art-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Body content: 620px centred, Playfair Display */
.bbc-art-body {
  max-width: var(--art);
  margin: 0 auto;
  padding: 0 16px 40px;
}
.bbc-art-body p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 22px;
}
.bbc-art-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 40px 0 16px; }
.bbc-art-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 32px 0 12px; }
.bbc-art-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.bbc-art-body ul,
.bbc-art-body ol  { padding-left: 24px; margin-bottom: 22px; }
.bbc-art-body li  { font-family: var(--serif); font-size: 18px; line-height: 1.6; margin-bottom: 6px; }
.bbc-art-body blockquote { border-left: 3px solid var(--black); margin: 28px 0; padding: 4px 0 4px 20px; font-style: italic; }
.bbc-art-body img { max-width: 100%; height: auto; margin: 24px 0; }

/* Tags */
.bbc-art-tags {
  max-width: var(--art);
  margin: 0 auto 32px;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bbc-tag { font-size: 13px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--border); color: var(--text); text-decoration: none; display: inline-block; }
.bbc-tag:hover { background: var(--bg); }

/* Prev / Next navigation */
.bbc-post-nav { max-width: var(--art); margin: 0 auto; padding: 0 16px; }
.bbc-post-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bbc-post-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  max-width: 48%;
  line-height: 1.3;
}
.bbc-post-nav-link:hover { text-decoration: underline; }
.bbc-post-nav-next { margin-left: auto; text-align: right; }
.nav-arrow { font-size: 18px; flex-shrink: 0; }
.nav-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* ════════════════════════════════════════════════════════════
   MORE POSTS — BBC layout: date | title+excerpt | image
   (DO NOT CHANGE — working as intended)
   ════════════════════════════════════════════════════════════ */
.bbc-more {
  max-width: var(--art);
  margin: 40px auto 0;
  padding: 0 16px 60px;
}
.bbc-more-head {
  border-top: 1px solid var(--text);
  padding-top: 12px;
}
.bbc-more-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
}
.bbc-more-item {
  display: grid;
  grid-template-columns: 90px 1fr 200px;
  gap: 0 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.bbc-more-item:last-child { border-bottom: none; }
.bbc-more-date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.bbc-more-body { display: flex; flex-direction: column; gap: 6px; }
.bbc-more-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.bbc-more-title a { color: var(--text); text-decoration: none; }
.bbc-more-title a:hover { text-decoration: underline; }
.bbc-more-exc { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bbc-more-img-link { display: block; }
.bbc-more-img-link img,
.bbc-more-img { display: block; width: 200px; height: 150px; object-fit: cover; }


/* ════════════════════════════════════════════════════════════
   FOOTER — matches first version design
   ════════════════════════════════════════════════════════════ */
.bbc-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.bbc-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px 32px;
}
.bbc-footer-logo {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  text-decoration: none;
  /* Override absolute in header — footer logo is static */
  position: static !important;
  transform: none !important;
}
.bbc-footer-logo .bbc-logo-box { width: 28px; height: 28px; font-size: 16px; }

.bbc-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  align-items: start;
}
.bbc-footer-col-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--sans);
}
.bbc-footer-col-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bbc-footer-col-list li a { font-size: 14px; color: var(--muted); text-decoration: none; }
.bbc-footer-col-list li a:hover { color: var(--text); text-decoration: underline; }

/* Social links — vertical stack, icon left + label right */
.bbc-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.bbc-social-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--sans);
  line-height: 1.2;
  white-space: nowrap;
}
.bbc-social-link:hover { color: var(--text); }
.bbc-social-link svg { display: block; flex-shrink: 0; width: 18px; height: 18px; }
.bbc-social-link span { display: inline-block; }

.bbc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bbc-footer-copy { font-size: 13px; color: var(--muted); }
.bbc-footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.bbc-footer-legal a { font-size: 13px; color: var(--muted); text-decoration: none; }
.bbc-footer-legal a:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bbc-hero-grid { grid-template-columns: 280px 1fr; }
  .bbc-hero-col-c { display: none; }
  .bbc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bbc-hero-grid { grid-template-columns: 1fr; }
  .bbc-hero-col-a { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .bbc-hero-col-b { border-right: none; padding: 16px 0; }
  .bbc-hero-main-title { font-size: 22px; }
  .bbc-grid { grid-template-columns: 1fr; }
  .bbc-arc-grid { grid-template-columns: repeat(2, 1fr); }
  .bbc-art-title { font-size: 28px; }
  .bbc-more-item { grid-template-columns: 1fr; gap: 10px; }
  .bbc-more-img-link { order: -1; }
  .bbc-more-img-link img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .bbc-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bbc-btn-signin { display: none; }
  .bbc-btn-register { font-size: 13px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .bbc-arc-grid { grid-template-columns: 1fr; }
  .bbc-footer-grid { grid-template-columns: 1fr; }
  .bbc-cat-nav-inner { justify-content: flex-start; }
  .bbc-logo-box { width: 32px !important; height: 32px !important; font-size: 18px !important; }
  #bbc-mobile-menu { width: 100%; }
}

/* ============================================================
   BBC REITH FONT ASSIGNMENTS
   Serif: post titles (bold+bigger), article body text
   Sans:  author name, meta, tags, nav, UI elements
   ============================================================ */

/* ── Post titles — BBC Reith Serif Bold, larger ────────────── */
.bbc-hero-main-title,
.bbc-hero-sec-title,
.bbc-hero-text-title,
.bbc-card-title,
.bbc-card-title--lg,
.bbc-arc-title,
.bbc-more-title {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
}

/* Hero main title — biggest, bold */
.bbc-hero-main-title {
  font-size: 30px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.3px;
}

/* Side hero titles */
.bbc-hero-sec-title {
  font-size: 18px !important;
  line-height: 1.25 !important;
}

/* Text-only col C titles */
.bbc-hero-text-title {
  font-size: 17px !important;
  line-height: 1.25 !important;
}

/* Section card titles */
.bbc-card-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}
.bbc-card-title--lg {
  font-size: 24px !important;
}

/* Archive page title */
.bbc-arc-title {
  font-size: 34px !important;
}

/* More posts titles */
.bbc-more-title {
  font-size: 20px !important;
}

/* ── Single article H1 — BBC Reith Serif Bold, largest ─────── */
.bbc-art-title {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
}

/* ── Article body text — BBC Reith Serif Regular ───────────── */
.bbc-art-body p,
.bbc-art-body li,
.bbc-art-body blockquote {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* Article body headings — Serif Bold */
.bbc-art-body h2 {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
}
.bbc-art-body h3 {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
}

/* ── Author name — BBC Reith Sans Medium ───────────────────── */
.bbc-art-author,
.bbc-art-author a,
.bbc-art-by {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

/* ── Tags — BBC Reith Sans ─────────────────────────────────── */
.bbc-tag,
.bbc-art-tags .bbc-tag {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}

/* ── Meta (time | category) — BBC Reith Sans ──────────────── */
.bbc-meta,
.bbc-meta a,
.bbc-meta span,
.bbc-meta-date,
.bbc-sep,
.bbc-art-time {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
  font-size: 13px !important;
}

/* ── Navigation, buttons, UI — BBC Reith Sans ─────────────── */
.bbc-cat-link,
.bbc-mobile-nav li a,
.bbc-btn-register,
.bbc-btn-signin,
.bbc-act-btn,
.bbc-footer-col-head,
.bbc-footer-col-list li a,
.bbc-footer-copy,
.bbc-footer-legal a,
.bbc-section-label,
.bbc-more-label,
.bbc-more-date,
.bbc-more-exc,
.bbc-post-nav-link,
.bbc-search-form input,
.bbc-search-form button,
.bbc-arc-desc {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
}

/* ── Share/Save action buttons ────────────────────────────── */
.bbc-act-btn {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
  font-weight: 500 !important;
}

/* ── Card excerpt text — Reith Serif for readability ─────── */
.bbc-card-exc,
.bbc-hero-excerpt {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

@media (max-width: 768px) {
  .bbc-art-title { font-size: 30px !important; }
  .bbc-hero-main-title { font-size: 24px !important; }
}
