/* ==========================================================================
   LemondePress — Editorial Broadsheet Stylesheet (Mobile-First)
   ========================================================================== */

:root {
  --lp-accent: #ffc700;
  --lp-link: #015aad;
  --lp-breaking: #c41e1e;
  --lp-ink: #0f1116;
  --lp-ink-muted: #464f5f;
  --lp-ink-subtle: #666e80;
  --lp-bg: #ffffff;
  --lp-surface: #f5f6f8;
  --lp-border: #d5d8dc;
  --lp-border-light: #e8eaee;
  --lp-footer-bg: #181a1e;
  --lp-container: 1280px;
  --lp-font-size: 16px;
  --lp-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --lp-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lp-font-cond: "Roboto Condensed", var(--lp-font-sans);
  --lp-marquee-duration: 35s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: var(--lp-font-size);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-font-sans);
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--lp-link); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lp-container {
  width: 100%;
  max-width: var(--lp-container);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .lp-container { padding-inline: 24px; }
}

/* ---------- Header & Navigation ---------- */
.lp-header {
  background: var(--lp-bg);
  border-bottom: 1px solid var(--lp-border);
  position: relative;
  z-index: 40;
}

.lp-header--sticky {
  position: sticky;
  top: 0;
}

.lp-topbar {
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border-light);
  font-size: 0.75rem;
  color: var(--lp-ink-muted);
}

.lp-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
}

.lp-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.lp-topbar__date {
  font-family: var(--lp-font-cond);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lp-secondary-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}

@media (min-width: 768px) {
  .lp-secondary-nav__list { display: flex; }
}

.lp-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-ink-muted);
  padding: 4px;
}

.lp-social__link:hover { color: var(--lp-link); }

.lp-masthead {
  border-bottom: 1px solid var(--lp-border-light);
}

.lp-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}

.lp-brand {
  text-align: center;
  flex: 1;
}

.lp-brand__title {
  font-family: var(--lp-font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--lp-ink);
}

.lp-brand__tagline {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--lp-ink-subtle);
}

.lp-brand__logo img {
  max-height: 52px;
  width: auto;
  margin-inline: auto;
}

.lp-burger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}

.lp-burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lp-ink);
}

@media (min-width: 1024px) {
  .lp-burger-btn { display: none; }
}

.lp-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--lp-ink);
}

.lp-search-drawer {
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  padding: 12px 0;
}

.lp-search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin-inline: auto;
}

.lp-search-form__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  font: inherit;
  background: var(--lp-bg);
}

.lp-search-form__submit, .lp-btn {
  padding: 10px 18px;
  background: var(--lp-ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.lp-btn--primary { display: inline-block; background: var(--lp-link); color: #fff; }

.lp-primary-nav {
  display: none;
  background: var(--lp-bg);
}

@media (min-width: 1024px) {
  .lp-primary-nav { display: block; }
}

.lp-primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.lp-primary-nav__list > li > a {
  display: block;
  padding: 11px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.lp-primary-nav__list > li > a:hover,
.lp-primary-nav__list > li.current-menu-item > a,
.lp-primary-nav__list > li.current-cat > a {
  border-bottom-color: var(--lp-accent);
  color: var(--lp-ink);
}

.lp-mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--lp-bg);
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}

.lp-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 16px;
}

.lp-mobile-drawer__title { font-family: var(--lp-font-serif); font-weight: 700; font-size: 1.25rem; }
.lp-mobile-drawer__close { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; }
.lp-mobile-drawer__search { margin-bottom: 16px; }
.lp-mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.lp-mobile-nav__list li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--lp-border-light); font-weight: 600; }

/* ---------- Breaking News Marquee ---------- */
.lp-breaking {
  background: var(--lp-ink);
  color: #ffffff;
  border-bottom: 2px solid var(--lp-accent);
  font-size: 0.875rem;
}

.lp-breaking__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
}

.lp-breaking__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lp-breaking);
  color: #fff;
  font-family: var(--lp-font-cond);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.lp-breaking__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: lp-pulse 1.5s infinite;
}

.lp-breaking__viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.lp-breaking__track {
  display: inline-flex;
  gap: 36px;
  animation: lp-marquee var(--lp-marquee-duration) linear infinite;
}

.lp-breaking__viewport:hover .lp-breaking__track { animation-play-state: paused; }

.lp-breaking__item {
  color: #f5f6f8;
  font-weight: 500;
}

.lp-breaking__item:hover { color: var(--lp-accent); }
.lp-breaking__time { color: var(--lp-accent); font-family: var(--lp-font-cond); margin-right: 4px; }

@keyframes lp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Main & Section Headers ---------- */
.lp-main { padding-block: 24px 48px; }

.lp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--lp-ink);
  border-bottom: 1px solid var(--lp-border-light);
  padding: 10px 0;
  margin-bottom: 18px;
}

.lp-section-title {
  margin: 0;
  font-family: var(--lp-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
}

.lp-section-title--sm { font-size: 1.05rem; }
.lp-section-more { font-size: 0.8125rem; font-weight: 600; color: var(--lp-link); }

.lp-kicker {
  display: inline-block;
  font-family: var(--lp-font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-link);
  border-bottom: 2px solid var(--lp-accent);
  margin-bottom: 6px;
}

.lp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--lp-ink-subtle);
  margin-top: 6px;
}

/* ---------- WhatsApp-Style Stories ---------- */
.lp-stories { margin-bottom: 28px; }
.lp-stories__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lp-stories__controls { display: flex; gap: 6px; }

.lp-stories__btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.lp-stories__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.lp-story-item {
  flex: 0 0 88px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.lp-story-item__ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-link));
  display: block;
}

.lp-story-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--lp-bg);
}

.lp-story-item__title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--lp-ink);
}

/* ---------- Featured News Hero ---------- */
.lp-featured { margin-bottom: 36px; }

.lp-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lp-border);
}

@media (min-width: 960px) {
  .lp-featured__grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
  }
}

.lp-hero-lead__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lp-surface);
  margin-bottom: 14px;
}

.lp-hero-lead__img { width: 100%; height: 100%; object-fit: cover; }

.lp-hero-lead__title {
  margin: 0 0 10px;
  font-family: var(--lp-font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.18;
}

.lp-hero-lead__excerpt { margin: 0 0 8px; color: var(--lp-ink-muted); font-size: 0.975rem; }

.lp-hero-side { display: flex; flex-direction: column; gap: 16px; }

.lp-hero-side__item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-border-light);
}

.lp-hero-side__item:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-hero-side__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--lp-surface); }
.lp-hero-side__img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-side__title { margin: 0; font-family: var(--lp-font-serif); font-size: 1rem; line-height: 1.3; }

/* ---------- Split Layout (Main + Sidebar) ---------- */
.lp-layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 1024px) {
  .lp-layout-split--has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* ---------- River & Cards ---------- */
.lp-river { display: flex; flex-direction: column; gap: 20px; }

.lp-card--river {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lp-border-light);
}

@media (min-width: 640px) {
  .lp-card--river { grid-template-columns: 220px 1fr; gap: 18px; }
}

.lp-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lp-surface);
}

.lp-card__img { width: 100%; height: 100%; object-fit: cover; }
.lp-card__title { margin: 0 0 6px; font-family: var(--lp-font-serif); font-size: 1.15rem; line-height: 1.3; }
.lp-card__excerpt { margin: 0; font-size: 0.9rem; color: var(--lp-ink-muted); }

.lp-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .lp-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Category Blocks ---------- */
.lp-catblocks { display: flex; flex-direction: column; gap: 36px; }

.lp-catblock--grid .lp-catblock__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .lp-catblock--grid .lp-catblock__items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lp-catblock--grid .lp-catblock__items { grid-template-columns: repeat(4, 1fr); }
}

.lp-catblock--featured-list .lp-catblock__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lp-catblock--featured-list .lp-catblock__items {
    grid-template-columns: 1.2fr 1fr;
  }
  .lp-catblock--featured-list .lp-catcard--lead {
    grid-row: span 3;
  }
}

.lp-catblock--list .lp-catblock__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .lp-catblock--list .lp-catblock__items { grid-template-columns: repeat(2, 1fr); }
}

.lp-catcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lp-surface); margin-bottom: 10px; }
.lp-catcard__img { width: 100%; height: 100%; object-fit: cover; }
.lp-catcard__title { margin: 0 0 6px; font-family: var(--lp-font-serif); font-size: 1.05rem; line-height: 1.3; }
.lp-catcard--lead .lp-catcard__title { font-size: 1.45rem; }
.lp-catcard__excerpt { margin: 0; font-size: 0.9rem; color: var(--lp-ink-muted); }

/* ---------- Sidebar & 7 News Widgets ---------- */
.lp-sidebar { display: flex; flex-direction: column; gap: 28px; }

.lp-widget {
  background: var(--lp-surface);
  padding: 18px;
  border-top: 3px solid var(--lp-ink);
}

.lp-widget__title {
  margin: 0 0 14px;
  font-family: var(--lp-font-serif);
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lp-border);
}

.lp-news-widget { display: grid; gap: 14px; }
.lp-news-widget--grid.lp-news-widget--cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-news-widget--grid.lp-news-widget--cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-news-widget--grid.lp-news-widget--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 639px) {
  .lp-news-widget--grid[class*="lp-news-widget--cols-"] { grid-template-columns: 1fr; }
}

.lp-wcard {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lp-border-light);
}

.lp-wcard:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-wcard--lead, .lp-news-widget--grid .lp-wcard { grid-template-columns: 1fr; }
.lp-wcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lp-border-light); }
.lp-wcard__img { width: 100%; height: 100%; object-fit: cover; }
.lp-wcard__title { margin: 0; font-family: var(--lp-font-serif); font-size: 0.92rem; line-height: 1.32; }
.lp-wcard--lead .lp-wcard__title { font-size: 1.15rem; }
.lp-wcard__date { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--lp-ink-subtle); }
.lp-wcard__excerpt { margin: 6px 0 0; font-size: 0.84rem; color: var(--lp-ink-muted); }

/* ---------- Single Post, Archives, Breadcrumbs, Pagination ---------- */
.lp-breadcrumbs {
  font-size: 0.8rem;
  color: var(--lp-ink-subtle);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-single__title, .lp-page__title, .lp-archive-header__title {
  font-family: var(--lp-font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.16;
  margin: 0 0 12px;
}

.lp-single__standfirst { font-size: 1.125rem; color: var(--lp-ink-muted); margin: 0 0 14px; }
.lp-single__meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--lp-border-light); margin-bottom: 20px; }
.lp-single__figure { margin: 0 0 24px; }
.lp-single__img { width: 100%; border-radius: 2px; }
.lp-single__caption { font-size: 0.8rem; color: var(--lp-ink-subtle); margin-top: 6px; }
.lp-single__content { font-size: 1.05rem; line-height: 1.75; }
.lp-single__content p { margin: 0 0 1.25em; }

.lp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 16px; }
.lp-share__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.lp-share__btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--lp-border);
  border-radius: 3px;
  background: var(--lp-surface);
  cursor: pointer;
}

.lp-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.lp-single__tags a { padding: 3px 10px; background: var(--lp-surface); border: 1px solid var(--lp-border-light); font-size: 0.8rem; border-radius: 3px; }

.lp-author-box {
  display: flex; gap: 16px; align-items: center;
  padding: 18px; background: var(--lp-surface); border-left: 4px solid var(--lp-accent);
  margin: 24px 0;
}
.lp-author-box__avatar, .lp-author-banner__avatar { border-radius: 50%; }
.lp-author-box__name { margin: 0 0 4px; font-family: var(--lp-font-serif); }
.lp-author-box__bio { margin: 0; font-size: 0.9rem; color: var(--lp-ink-muted); }

.lp-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 32px;
}

@media (min-width: 640px) { .lp-post-nav { grid-template-columns: 1fr 1fr; } }
.lp-post-nav__dir { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--lp-ink-subtle); margin-bottom: 4px; }
.lp-post-nav__next { text-align: right; }

.lp-archive-header { padding-bottom: 18px; border-bottom: 2px solid var(--lp-ink); margin-bottom: 24px; }
.lp-author-banner { display: flex; align-items: center; gap: 18px; }
.lp-search-inline { margin-top: 14px; }
.lp-search-inline .lp-search-form { margin-inline: 0; }

.lp-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; list-style: none; gap: 6px; padding: 0; margin: 28px 0 0;
}
.lp-pagination .page-numbers a,
.lp-pagination .page-numbers span {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--lp-border); font-size: 0.875rem; font-weight: 600;
}
.lp-pagination .page-numbers .current { background: var(--lp-ink); color: #fff; border-color: var(--lp-ink); }

.lp-404 { text-align: center; padding: 60px 16px; max-width: 600px; margin-inline: auto; }
.lp-404__title { font-family: var(--lp-font-serif); font-size: 2.2rem; margin: 8px 0 12px; }
.lp-404__search { margin: 24px 0; }

/* ---------- Footer ---------- */
.lp-footer {
  background: var(--lp-footer-bg);
  color: #d5d8dc;
  padding: 40px 0 24px;
  font-size: 0.875rem;
}

.lp-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 960px) {
  .lp-footer__top { grid-template-columns: 1.2fr 2fr; }
}

.lp-footer__logo {
  display: inline-block;
  font-family: var(--lp-font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.lp-footer__desc { margin: 0 0 16px; color: #bdc1c8; max-width: 340px; }
.lp-social--footer .lp-social__link { color: #d5d8dc; }
.lp-social--footer .lp-social__link:hover { color: var(--lp-accent); }

.lp-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) { .lp-footer__cols { grid-template-columns: repeat(3, 1fr); } }

.lp-footer-widget__title { color: #ffffff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.lp-footer__catlist { list-style: none; margin: 0; padding: 0; }
.lp-footer__catlist li { margin-bottom: 6px; }
.lp-footer__catlist a:hover { color: var(--lp-accent); }

.lp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.lp-footer__nav-list { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
