/* ============================================================
   LF Edit — main.css
   ============================================================ */

/* ── @font-face: 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: 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:    #000000;
  --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 */
.lfe-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.lfe-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 65px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

/* Compensate for fixed header + fixed category nav */
body.lfe-theme { padding-top: 110px; }

.lfe-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 */
.lfe-header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* LOGO: absolute centre */
.lfe-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  z-index: 1;
}
.lfe-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;
}

/* Custom logo image in header — constrained to fit within header height */
.lfe-logo-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 1;
  text-decoration: none;
}
.lfe-logo-img .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.lfe-logo-img .custom-logo-link img,
.lfe-logo-img img.custom-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Mobile menu custom logo */
.lfe-mobile-logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.lfe-mobile-logo-img .custom-logo-link {
  display: flex;
  align-items: center;
}
.lfe-mobile-logo-img .custom-logo-link img,
.lfe-mobile-logo-img img.custom-logo {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

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

/* Icon buttons */
.lfe-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;
}
.lfe-icon-btn:hover { background: var(--bg); }
.lfe-icon-btn .material-symbols-outlined { font-size: 22px; }

/* Register / Sign In */
.lfe-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;
}
.lfe-btn-register:hover { background: #333; color: var(--white); text-decoration: none; }

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


/* ════════════════════════════════════════════════════════════
   SEARCH PANEL
   ════════════════════════════════════════════════════════════ */
#lfe-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;
}
#lfe-search-panel.open { display: block; }

.lfe-search-inner { max-width: var(--max); margin: 0 auto; }
.lfe-search-form { display: flex; }
.lfe-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;
}
.lfe-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;
}
.lfe-search-form button .material-symbols-outlined { font-size: 20px; }


/* ════════════════════════════════════════════════════════════
   CATEGORY NAV STRIP
   ════════════════════════════════════════════════════════════ */
.lfe-cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 998;
  transition: transform .25s ease;
}
.lfe-cat-nav.hidden { transform: translateY(-130%); }
.lfe-cat-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Menu list */
.lfe-cat-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
}
.lfe-cat-menu > li {
  position: relative;
}
.lfe-cat-menu > li > a {
  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;
}
.lfe-cat-menu > li > a:hover,
.lfe-cat-menu > li.current-menu-item > a,
.lfe-cat-menu > li.current-menu-ancestor > a { border-bottom-color: var(--black); }

/* Dropdown arrow for items with children */
.lfe-cat-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform .2s;
}
.lfe-cat-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Sub-menu dropdown */
.lfe-cat-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 1000;
}
.lfe-cat-menu > li:hover > .sub-menu {
  display: block;
}
.lfe-cat-menu .sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.lfe-cat-menu .sub-menu li a:hover {
  background: var(--bg);
}
.lfe-cat-menu .sub-menu li.current-menu-item a {
  font-weight: 700;
}


/* ════════════════════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════════════════════ */
#lfe-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;
}
#lfe-mobile-menu.open { transform: translateX(0); }

.lfe-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 */
.lfe-mobile-head .lfe-logo,
.lfe-logo-sm {
  position: static !important;
  transform: none !important;
}
.lfe-logo-sm .lfe-logo-box { width: 28px; height: 28px; font-size: 16px; }

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

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


/* ════════════════════════════════════════════════════════════
   HERO — 3 columns
   Left 285px | Centre 1fr | Right 255px
   ════════════════════════════════════════════════════════════ */
.lfe-hero { padding: 0; }

.lfe-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 */
.lfe-hero-col-a {
  padding: 16px 20px 16px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.lfe-hero-sec { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }
.lfe-hero-sec--border { padding-top: 20px; border-top: 1px solid var(--border); }

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

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

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


/* ════════════════════════════════════════════════════════════
   EDITORIAL HOMEPAGE — alternating image/text blocks
   ════════════════════════════════════════════════════════════ */
.lfe-editorial {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px 16px 60px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.lfe-ed-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.lfe-ed-block:first-child { padding-top: 0; }
.lfe-ed-block + .lfe-ed-block { border-top: 1px solid var(--border); }

/* Alternating layout */
.lfe-ed-block--img-left  .lfe-ed-img  { order: 1; }
.lfe-ed-block--img-left  .lfe-ed-text { order: 2; }
.lfe-ed-block--img-right .lfe-ed-img  { order: 2; }
.lfe-ed-block--img-right .lfe-ed-text { order: 1; }

/* Image */
.lfe-ed-img a { display: block; }
.lfe-ed-img img { width: 100%; height: auto; }

/* Category label with decorative line */
.lfe-ed-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.lfe-ed-cat a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.lfe-ed-cat a:hover { text-decoration: underline; }
.lfe-ed-cat-line {
  flex: 1;
  height: 2px;
  background: var(--black);
}

/* Title */
.lfe-ed-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.lfe-ed-title a { color: var(--text); text-decoration: none; }
.lfe-ed-title a:hover { text-decoration: underline; }

/* Excerpt */
.lfe-ed-excerpt {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Author credit */
.lfe-ed-author {
  font-family: var(--sans);
  font-size: 12px;
}
.lfe-ed-author-label {
  font-style: italic;
  color: var(--muted);
}
.lfe-ed-author-name {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

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

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


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

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

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

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

/* ── Cards ─────────────────────────────────────────────────── */
.lfe-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 */
.lfe-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
}
.lfe-card-img a { display: block; width: 100%; height: 100%; }
.lfe-img { transition: transform .25s ease; }
.lfe-card-img:hover .lfe-img { transform: scale(1.02); }

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

.lfe-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
   ════════════════════════════════════════════════════════════ */
.lfe-archive {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 60px;
}
.lfe-arc-head {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.lfe-arc-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.lfe-arc-desc { font-size: 15px; color: var(--muted); margin: 0; }

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

/* Pagination */
.lfe-pagination { margin-top: 48px; }
.lfe-pagination .page-numbers {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.lfe-pagination .page-numbers li a,
.lfe-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);
}
.lfe-pagination .page-numbers li span.current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.lfe-empty { padding: 60px 0; text-align: center; }
.lfe-empty h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }


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

/* Article header: 620px centred */
.lfe-art-head {
  max-width: var(--art);
  margin: 40px auto 0;
  padding: 0 16px 24px;
}

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

.lfe-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 */
.lfe-art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.lfe-art-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}
.lfe-art-by { color: var(--muted); }
.lfe-art-author a { color: var(--text); text-decoration: none; font-weight: 600; }
.lfe-art-author a:hover { text-decoration: underline; }

/* Share + Save — Material Symbols icons */
.lfe-art-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lfe-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;
}
.lfe-act-btn:hover { opacity: .65; }
.lfe-act-icon { font-size: 18px; }

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

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

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

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

/* Prev / Next navigation */
.lfe-post-nav { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.lfe-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);
}
.lfe-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;
}
.lfe-post-nav-link:hover { text-decoration: underline; }
.lfe-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; }

.lfe-more {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 16px 60px;
}
.lfe-more-head {
  border-top: 1px solid var(--text);
  padding-top: 12px;
}
.lfe-more-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
}
.lfe-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);
}
.lfe-more-item:last-child { border-bottom: none; }
.lfe-more-date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.lfe-more-body { display: flex; flex-direction: column; gap: 6px; }
.lfe-more-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.lfe-more-title a { color: var(--text); text-decoration: none; }
.lfe-more-title a:hover { text-decoration: underline; }
.lfe-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; }
.lfe-more-img-link { display: block; }
.lfe-more-img-link img,
.lfe-more-img { display: block; width: 200px; height: 150px; object-fit: cover; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.lfe-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 0 32px;
}
.lfe-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Logo */
.lfe-footer-logo {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-bottom: 20px;
  text-decoration: none;
  position: static !important;
  transform: none !important;
}
/* Disclaimer block */
.lfe-footer-disclaimer {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.lfe-footer-disclaimer-heading {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  margin-bottom: 8px;
}
.lfe-footer-disclaimer-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.lfe-footer-logo-wrap {
  margin-bottom: 20px;
  display: block;
}
.lfe-footer-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lfe-footer-logo-wrap .custom-logo-link img,
.lfe-footer-logo-wrap .custom-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}
.lfe-footer-logo .lfe-logo-box { width: 28px; height: 28px; font-size: 16px; }

/* Nav row */
.lfe-footer-nav-wrap { margin-bottom: 20px; }
.lfe-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.lfe-footer-nav li { display: inline; }
.lfe-footer-nav li a {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 4px 16px 4px 0;
  white-space: nowrap;
  font-family: 'BBCReithSans', Arial, sans-serif;
}
.lfe-footer-nav li a:hover { text-decoration: underline; }

/* Languages button */
.lfe-footer-languages { margin-bottom: 20px; }
.lfe-footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'BBCReithSans', Arial, sans-serif;
  color: var(--text);
  cursor: pointer;
}
.lfe-footer-lang-btn:hover { background: #e0e0e0; }

/* Divider */
.lfe-footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 20px;
}

/* Social icons row */
.lfe-footer-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.lfe-footer-social-label {
  font-size: 15px;
  font-weight: 700;
  font-family: 'BBCReithSans', Arial, sans-serif;
  color: var(--text);
  white-space: nowrap;
}
.lfe-footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lfe-footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  width: 28px;
  height: 28px;
}
.lfe-footer-social-icon:hover { opacity: .6; }
.lfe-footer-social-icon svg { display: block; flex-shrink: 0; }

/* Legal links */
.lfe-footer-legal-row { margin-bottom: 8px; }
.lfe-footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.lfe-footer-legal-list li { display: inline; }
.lfe-footer-legal-list li a {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding: 3px 16px 3px 0;
  font-family: 'BBCReithSans', Arial, sans-serif;
}
.lfe-footer-legal-list li a:hover { text-decoration: underline; }

/* Copyright */
.lfe-footer-copyright p {
  font-size: 14px;
  color: var(--text);
  font-family: 'BBCReithSans', Arial, sans-serif;
  margin: 0;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lfe-hero-grid { grid-template-columns: 280px 1fr; }
  .lfe-hero-col-c { display: none; }
  .lfe-footer-nav li a { font-size: 14px; }
}

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

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

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

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

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

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

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

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

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

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

/* ── Single article H1 — Reith Serif Bold, largest ─────── */
.lfe-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 — Reith Serif Regular ───────────── */
.lfe-art-body p,
.lfe-art-body li,
.lfe-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 */
.lfe-art-body h2 {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
}
.lfe-art-body h3 {
  font-family: 'BBCReithSerif', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
}

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

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

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

/* ── Navigation, buttons, UI — Reith Sans ─────────────── */
.lfe-cat-menu > li > a,
.lfe-ed-cat a,
.lfe-ed-author,
.lfe-mobile-nav li a,
.lfe-btn-register,
.lfe-btn-signin,
.lfe-act-btn,
.lfe-footer-nav li a,
.lfe-footer-legal-list li a,
.lfe-footer-social-label,
.lfe-footer-copyright p,
.lfe-footer-lang-btn,
.lfe-section-label,
.lfe-more-label,
.lfe-more-date,
.lfe-more-exc,
.lfe-post-nav-link,
.lfe-search-form input,
.lfe-search-form button,
.lfe-arc-desc {
  font-family: 'BBCReithSans', Arial, sans-serif !important;
}

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

/* ── Card/editorial excerpt text — Reith Serif for readability ── */
.lfe-card-exc,
.lfe-ed-excerpt,
.lfe-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) {
  .lfe-art-title { font-size: 30px !important; }
  .lfe-hero-main-title { font-size: 24px !important; }
  .lfe-ed-title { font-size: 24px !important; }
}


/* ════════════════════════════════════════════════════════════
   404 PAGE
   ════════════════════════════════════════════════════════════ */
.lfe-404 {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 16px 80px;
  text-align: center;
}
.lfe-404-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 12px;
}
.lfe-404-msg {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}
.lfe-404-search {
  max-width: 480px;
  margin: 0 auto 60px;
}
.lfe-404-popular {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.lfe-404-popular-heading {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 24px;
}
.lfe-404-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .lfe-404-title { font-size: 80px; }
  .lfe-404-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lfe-404-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   DARK MODE
   ════════════════════════════════════════════════════════════ */
/* Toggle button */
.lfe-dark-toggle { position: relative; }
.lfe-dark-icon-dark { display: none; }

/* Dark theme overrides */
html.dark-mode {
  --white:   #1a1a1a;
  --black:   #e8e8e8;
  --text:    #e0e0e0;
  --muted:   #9a9a9a;
  --border:  #333333;
  --bg:      #242424;
  --red:     #ff4d4d;
}
html.dark-mode body { background: #1a1a1a; color: #e0e0e0; }
html.dark-mode img { opacity: .92; }
html.dark-mode .lfe-dark-icon-light { display: none; }
html.dark-mode .lfe-dark-icon-dark  { display: inline-block; }
html.dark-mode .lfe-cat-menu .sub-menu { background: #242424; }
html.dark-mode .lfe-card-img { background: #242424; }
html.dark-mode .lfe-logo-box { background: var(--text); color: var(--white); }
html.dark-mode .custom-logo { filter: brightness(0) invert(1); }
