/* =================================================================
   LE-CORP THEME — CSS DESIGN SYSTEM  (Part 1 of 2)
   Variables · Reset · Layout · Typography · Header · Footer · Nav
   ================================================================= */

/* -----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
----------------------------------------------------------------- */
:root {
  /* Colours */
  --lc-bg:           #1a1a1a;
  --lc-bg-card:      #242424;
  --lc-bg-surface:   #2e2e2e;
  --lc-bg-nav:       #0f0f0f;
  --lc-bg-footer:    #111111;
  --lc-accent:       #E50914;
  --lc-accent-hover: #b0060f;
  --lc-text:         #f0f0f0;
  --lc-text-muted:   #9a9a9a;
  --lc-text-faint:   #666;
  --lc-border:       #333333;
  --lc-border-light: #2a2a2a;
  --lc-overlay:      rgba(0,0,0,.82);

  /* Category default colours (overridden via inline style) */
  --lc-cat-color:    #E50914;

  /* Typography */
  --lc-font-head:    'Oswald', 'Arial Narrow', sans-serif;
  --lc-font-body:    Georgia, 'Times New Roman', serif;
  --lc-font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --lc-gap:          20px;
  --lc-gap-lg:       40px;
  --lc-radius:       4px;
  --lc-radius-lg:    8px;

  /* Header heights */
  --lc-header-h:     72px;
  --lc-sticky-h:     52px;

  /* Container max-width */
  --lc-container:    1280px;
  --lc-container-sm: 740px;

  /* Transitions */
  --lc-trans:        .2s ease;
  --lc-trans-slow:   .35s ease;
}

/* -----------------------------------------------------------------
   RESET & BASE
----------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--lc-bg);
  color: var(--lc-text);
  font-family: var(--lc-font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Offset for fixed headers */
body { padding-top: var(--lc-header-h); }

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select {
  font: inherit;
  color: inherit;
  background: var(--lc-bg-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--lc-accent); }

/* -----------------------------------------------------------------
   UTILITY CLASSES
----------------------------------------------------------------- */
.lc-container {
  max-width: var(--lc-container);
  margin-inline: auto;
  padding-inline: 20px;
}
.lc-container--sm { max-width: var(--lc-container-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.lc-accent-text { color: var(--lc-accent); }

/* -----------------------------------------------------------------
   TYPOGRAPHY — Headings
----------------------------------------------------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--lc-font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--lc-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.lc-section-heading {
  font-family: var(--lc-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lc-text);
  margin-bottom: 18px;
}
.lc-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lc-border);
  margin-left: 8px;
}
.lc-section-icon { color: var(--lc-accent); flex-shrink: 0; }

/* -----------------------------------------------------------------
   CATEGORY PILL
----------------------------------------------------------------- */
.lc-cat-pill {
  display: inline-block;
  background: var(--lc-cat-color, var(--lc-accent));
  color: #fff;
  font-family: var(--lc-font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--lc-trans);
}
.lc-cat-pill:hover { opacity: .85; }
/* Inside sidebar, constrain pill width */
.lc-sidebar .lc-cat-pill { max-width: 160px; }

/* -----------------------------------------------------------------
   MAIN HEADER
----------------------------------------------------------------- */
.lc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--lc-header-h);
  background: var(--lc-bg-nav);
  z-index: 900;
  border-bottom: 1px solid var(--lc-border-light);
  transition: transform var(--lc-trans-slow);
}
.lc-header--hidden { transform: translateY(-100%); }

.lc-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--lc-gap);
}

/* Logo */
.lc-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.lc-logo img { height: 44px; width: auto; }
.lc-logo .custom-logo { height: 44px; width: auto; }
.lc-logo__text {
  font-family: var(--lc-font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lc-accent);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.lc-logo--small .lc-logo__text { font-size: 1.2rem; }
.lc-logo--small img,
.lc-logo--small .custom-logo { height: 32px; }

/* Primary nav (desktop) */
.lc-nav-primary { flex: 1; display: flex; justify-content: center; }
.lc-nav-primary__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.lc-nav-primary__list li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--lc-font-ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--lc-text);
  transition: color var(--lc-trans);
  border-radius: var(--lc-radius);
}
.lc-nav-primary__list li a:hover { color: var(--lc-accent); }
/* no separator bars — gap handles spacing */

/* Header right actions */
.lc-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lc-header__search-btn,
.lc-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--lc-text);
  transition: background var(--lc-trans), color var(--lc-trans);
}
.lc-header__search-btn:hover,
.lc-header__menu-btn:hover { background: var(--lc-bg-surface); color: var(--lc-accent); }

/* -----------------------------------------------------------------
   COMPACT STICKY HEADER
----------------------------------------------------------------- */
.lc-header-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--lc-sticky-h);
  background: var(--lc-bg-nav);
  border-bottom: 1px solid var(--lc-border-light);
  z-index: 901;
  transform: translateY(-100%);
  transition: transform var(--lc-trans-slow);
  display: flex;
  align-items: center;
}
.lc-header-sticky--visible { transform: translateY(0); }

.lc-header-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lc-sticky-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lc-sticky-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--lc-text);
  transition: background var(--lc-trans);
}
.lc-sticky-btn:hover { background: var(--lc-bg-surface); }
.lc-sticky-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--lc-accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Body states */
body.lc-nav-open,
body.lc-search-open { overflow: hidden; }

/* -----------------------------------------------------------------
   SEARCH OVERLAY
----------------------------------------------------------------- */
.lc-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--lc-overlay);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(4px);
}
.lc-search-overlay[hidden] { display: none; }

.lc-search-overlay__inner {
  width: 100%;
  max-width: 620px;
  padding: 0 20px;
  position: relative;
}
.lc-search-form {
  display: flex;
  align-items: center;
  background: #111;
  border: 2px solid var(--lc-accent);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 16px;
}
.lc-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 0;
  font-size: 1.1rem;
  color: var(--lc-text);
  outline: none;
}
.lc-search-input::placeholder { color: var(--lc-text-muted); }
.lc-search-form button {
  color: var(--lc-accent);
  padding: 0 4px;
  flex-shrink: 0;
}
.lc-search-overlay__close {
  position: absolute;
  top: -60px; right: 20px;
  color: var(--lc-text);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--lc-bg-surface);
}
.lc-search-overlay__close:hover { color: var(--lc-accent); }

/* -----------------------------------------------------------------
   NAV OVERLAY (slide-in from right)
----------------------------------------------------------------- */
.lc-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.lc-nav-overlay[hidden] { display: none; }

.lc-nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.lc-nav-overlay__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #1e1e2a;
  overflow-y: auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: lc-slide-in var(--lc-trans-slow) both;
}
@keyframes lc-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.lc-nav-overlay__close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--lc-text);
  margin-bottom: 12px;
  transition: color var(--lc-trans);
}
.lc-nav-overlay__close:hover { color: var(--lc-accent); }

/* Search inside nav */
.lc-nav-overlay__search {
  display: flex;
  align-items: center;
  background: #3dcc64;  /* green search bar like Polygon */
  border-radius: 4px;
  overflow: hidden;
  padding: 0 12px;
  margin-bottom: 24px;
}
.lc-nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: .95rem;
  color: #000;
  outline: none;
  font-weight: 500;
}
.lc-nav-search-input::placeholder { color: rgba(0,0,0,.5); }
.lc-nav-overlay__search button { color: #000; }

/* Quick links */
.lc-nav-overlay__quick {
  display: flex;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.lc-nav-overlay__quick-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--lc-text);
  transition: background var(--lc-trans);
}
.lc-nav-overlay__quick-link:hover { background: var(--lc-bg-surface); }
.lc-nav-overlay__quick-link svg { color: var(--lc-accent); }
.lc-nav-overlay__quick-sep { width: 1px; background: var(--lc-border); flex-shrink: 0; }

/* Nav list */
.lc-nav-overlay__list { margin-bottom: 16px; }
.lc-nav-overlay__item {
  border-bottom: 1px solid var(--lc-border-light);
  position: relative;
}
.lc-nav-overlay__link {
  display: flex;
  align-items: center;
  padding: 16px 0;
  font-family: var(--lc-font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lc-text);
  transition: color var(--lc-trans);
}
.lc-nav-overlay__link:hover { color: var(--lc-accent); }

/* Expand button (+ / −) */
.lc-nav-overlay__expand {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lc-text-muted);
  border-radius: 50%;
  transition: color var(--lc-trans), background var(--lc-trans);
}
.lc-nav-overlay__expand:hover { color: var(--lc-accent); background: var(--lc-bg-surface); }

/* Sub-menu */
.lc-nav-overlay__item .sub-menu {
  display: none;
  padding-bottom: 10px;
  padding-left: 16px;
}
.lc-nav-overlay__item--open .sub-menu { display: block; }
.lc-nav-overlay__item .sub-menu li a {
  display: block;
  padding: 6px 0;
  font-size: .9rem;
  color: var(--lc-text-muted);
  transition: color var(--lc-trans);
}
.lc-nav-overlay__item .sub-menu li a:hover { color: var(--lc-text); }

/* Footer links inside overlay */
.lc-nav-overlay__footer {
  border-top: 1px solid var(--lc-border-light);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
.lc-nav-overlay__footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--lc-text);
  border-bottom: 1px solid var(--lc-border-light);
  transition: color var(--lc-trans);
}
.lc-nav-overlay__footer-link:hover { color: var(--lc-accent); }

/* Social icons inside overlay */
.lc-nav-overlay__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Social icon (shared) */
.lc-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--lc-border);
  border-radius: 50%;
  color: var(--lc-text);
  transition: border-color var(--lc-trans), color var(--lc-trans);
  flex-shrink: 0;
}
.lc-social-icon:hover { border-color: var(--lc-accent); color: var(--lc-accent); }

/* -----------------------------------------------------------------
   SITE WRAP
----------------------------------------------------------------- */
.lc-site-wrap { min-height: calc(100vh - var(--lc-header-h)); }

/* -----------------------------------------------------------------
   READING PROGRESS BAR
----------------------------------------------------------------- */
.lc-reading-progress {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 899;
}
.lc-reading-progress__bar {
  height: 100%;
  background: var(--lc-accent);
  width: 0%;
  transition: width .1s linear;
}

/* -----------------------------------------------------------------
   FOOTER
----------------------------------------------------------------- */
.lc-footer {
  background: var(--lc-bg-footer);
  border-top: 1px solid var(--lc-border-light);
  margin-top: var(--lc-gap-lg);
}

.lc-footer__upper {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--lc-border-light);
}
.lc-footer__upper .lc-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
}

.lc-footer__logo img,
.lc-footer__logo .custom-logo { height: 40px; filter: brightness(0) invert(1) opacity(.5); }
.lc-footer__logo-text {
  font-family: var(--lc-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}

.lc-footer__nav { grid-column: 1 / -1; }
.lc-footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
}
.lc-footer__nav-list li a {
  display: inline-block;
  padding: 4px 14px 4px 0;
  font-size: .85rem;
  color: var(--lc-text-muted);
  transition: color var(--lc-trans);
}
.lc-footer__nav-list li + li a::before {
  content: '|';
  margin-right: 14px;
  color: var(--lc-text-faint);
}
.lc-footer__nav-list li a:hover { color: var(--lc-text); }

.lc-footer__social { display: flex; flex-direction: column; gap: 10px; }
.lc-footer__social-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lc-text-muted);
}
.lc-footer__social-icons { display: flex; gap: 8px; }

/* Lower footer */
.lc-footer__lower {
  padding: 20px 0;
  border-bottom: 1px solid var(--lc-border-light);
}
.lc-footer__lower .lc-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lc-footer__legal-nav {}
.lc-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}
.lc-footer__legal-list li a {
  font-size: .8rem;
  color: var(--lc-text-muted);
  padding: 2px 10px 2px 0;
  transition: color var(--lc-trans);
}
.lc-footer__legal-list li + li a::before {
  content: '|';
  margin-right: 10px;
  color: var(--lc-text-faint);
}
.lc-footer__legal-list li a:hover { color: var(--lc-text); }
.lc-footer__group { font-size: .8rem; color: var(--lc-text-muted); }
.lc-footer__group strong { color: var(--lc-text); }

/* Copyright bar */
.lc-footer__copy {
  background: #080808;
  padding: 14px 0;
  text-align: center;
}
.lc-footer__copy p {
  font-size: .78rem;
  color: var(--lc-text-faint);
}
.lc-footer__copy a { color: var(--lc-text-muted); }
.lc-footer__copy a:hover { color: var(--lc-text); }

/* -----------------------------------------------------------------
   BUTTONS (global)
----------------------------------------------------------------- */
.lc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--lc-accent);
  color: #fff;
  font-family: var(--lc-font-ui);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--lc-radius);
  border: none;
  cursor: pointer;
  transition: background var(--lc-trans);
  text-decoration: none;
}
.lc-btn:hover { background: var(--lc-accent-hover); color: #fff; }

.lc-btn--outline {
  background: transparent;
  border: 2px solid var(--lc-accent);
  color: var(--lc-accent);
}
.lc-btn--outline:hover { background: var(--lc-accent); color: #fff; }

.lc-btn--ghost {
  background: var(--lc-bg-surface);
  color: var(--lc-text);
  border: 1px solid var(--lc-border);
}
.lc-btn--ghost:hover { border-color: var(--lc-accent); color: var(--lc-accent); }

.lc-btn-see-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: var(--lc-accent);
  color: #fff;
  font-family: var(--lc-font-ui);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--lc-radius);
  margin-top: 14px;
  transition: background var(--lc-trans);
}
.lc-btn-see-more:hover { background: var(--lc-accent-hover); color: #fff; }

/* -----------------------------------------------------------------
   PAGINATION
----------------------------------------------------------------- */
.lc-pagination { margin: 40px 0; display: flex; justify-content: center; }
.lc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.lc-pagination .page-numbers li a,
.lc-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  font-size: .85rem;
  color: var(--lc-text-muted);
  transition: all var(--lc-trans);
}
.lc-pagination .page-numbers li a:hover { border-color: var(--lc-accent); color: var(--lc-accent); }
.lc-pagination .page-numbers li .current {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
}

/* -----------------------------------------------------------------
   SIDEBAR WIDGET BASE
----------------------------------------------------------------- */
.lc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  /* Sticky — stays in view as user scrolls, shows full content */
  position: sticky;
  top: calc(var(--lc-header-h) + 24px);
  align-self: start;
}
.lc-sidebar::-webkit-scrollbar { width: 4px; }
.lc-sidebar::-webkit-scrollbar-track { background: transparent; }
.lc-sidebar::-webkit-scrollbar-thumb { background: var(--lc-border); border-radius: 2px; }

/* Ensure every direct grid/flex parent constrains the sidebar column */
.lc-archive-layout > .lc-sidebar,
.lc-home-hero-grid > .lc-sidebar,
.lc-home-bottom > .lc-sidebar,
.lc-single__layout > .lc-sidebar { min-width: 0; }

.lc-sidebar-widget { overflow: hidden; }

/* Disable sticky sidebar when admin toggles it off */
.lc-sidebar-static .lc-sidebar {
  position: static;
  max-height: none;
  overflow: visible;
}

.lc-sidebar-heading {
  font-family: var(--lc-font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lc-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lc-accent);
}

/* Related articles */
.lc-related-list { display: flex; flex-direction: column; gap: 0; }
.lc-related-item { border-bottom: 1px solid var(--lc-border-light); overflow: hidden; }
.lc-related-link {
  display: grid;
  grid-template-columns: 1fr 76px;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  padding: 12px 0;
  align-items: start;
}
.lc-related-meta { grid-column: 1; font-size: .7rem; color: var(--lc-text-muted); min-width: 0; }
.lc-related-text { grid-column: 1; min-width: 0; overflow: hidden; }
.lc-related-thumb { grid-column: 2; grid-row: 1 / 3; flex-shrink: 0; overflow: hidden; }
.lc-related-thumb img { width: 76px; height: 50px; object-fit: cover; border-radius: var(--lc-radius); display: block; }
.lc-related-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--lc-text);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.lc-related-link:hover .lc-related-title { color: var(--lc-accent); }

/* Most popular */
.lc-popular-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.lc-popular-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lc-border-light);
  align-items: start;
  overflow: hidden;
}
.lc-popular-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--lc-accent);
  flex-shrink: 0;
  min-width: 16px;
  padding-top: 2px;
}
.lc-popular-title {
  font-size: .82rem;
  color: var(--lc-text);
  line-height: 1.35;
  transition: color var(--lc-trans);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-width: 0;
}
.lc-popular-title:hover { color: var(--lc-accent); }

/* Trending now */
.lc-trending-list { display: flex; flex-direction: column; gap: 0; }
.lc-trending-item { border-bottom: 1px solid var(--lc-border-light); overflow: hidden; }
.lc-trending-link {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  align-items: flex-start;
  overflow: hidden;
}
.lc-trending-thumb { flex-shrink: 0; overflow: hidden; border-radius: var(--lc-radius); }
.lc-trending-thumb img { width: 70px; height: 46px; object-fit: cover; display: block; }
.lc-trending-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.lc-trending-title {
  font-size: .82rem;
  color: var(--lc-text);
  line-height: 1.35;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.lc-trending-link:hover .lc-trending-title { color: var(--lc-accent); }

/* Latest */
.lc-latest-list { display: flex; flex-direction: column; gap: 0; }
.lc-latest-item { padding: 11px 0; border-bottom: 1px solid var(--lc-border-light); overflow: hidden; }
.lc-latest-time { display: block; font-size: .68rem; color: var(--lc-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.lc-latest-title {
  font-size: .85rem;
  color: var(--lc-text);
  line-height: 1.35;
  font-weight: 500;
  transition: color var(--lc-trans);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.lc-latest-title:hover { color: var(--lc-accent); }

/* Ensure ALL images inside sidebar never overflow their container */
.lc-sidebar img { max-width: 100%; height: auto; display: block; }

/* -----------------------------------------------------------------
   WIDGET (registered WordPress widgets)
----------------------------------------------------------------- */
.lc-widget { margin-bottom: 28px; }
.lc-widget__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lc-accent);
  margin-bottom: 14px;
}

/* -----------------------------------------------------------------
   POST CARD (thumbnail with colored corner cut)
----------------------------------------------------------------- */
.lc-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--lc-radius);
  background: var(--lc-bg-card);
  aspect-ratio: 16/9;
}
.lc-thumb::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--lc-cat-color, var(--lc-accent));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 2;
  transition: background var(--lc-trans);
}
.lc-thumb img, .lc-thumb .lc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.lc-thumb a:hover img { transform: scale(1.03); }
.lc-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--lc-bg-surface);
  border-radius: var(--lc-radius);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .lc-nav-primary { display: none; }
}

@media (max-width: 768px) {
  :root { --lc-header-h: 58px; }
  body { padding-top: var(--lc-header-h); }
  .lc-logo img, .lc-logo .custom-logo { height: 34px; }
  .lc-logo__text { font-size: 1.3rem; }

  .lc-footer__upper .lc-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .lc-footer__nav-list { justify-content: center; }
  .lc-footer__social { align-items: center; }
  .lc-footer__social-icons { justify-content: center; }
  .lc-footer__lower .lc-container { justify-content: center; text-align: center; }
  .lc-footer__legal-list { justify-content: center; }
}

/* =================================================================
   LE-CORP CSS — Part 2
   Cards · Articles · Homepage · Thread · Recommended · Responsive
   ================================================================= */

/* -----------------------------------------------------------------
   POST CARD — default (grid / archive)
----------------------------------------------------------------- */
.lc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-card__thumb { flex-shrink: 0; }
.lc-card__body { display: flex; flex-direction: column; gap: 6px; }
.lc-card__title {
  font-family: var(--lc-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lc-text);
  transition: color var(--lc-trans);
}
.lc-card__title a { color: inherit; }
.lc-card__title a:hover { color: var(--lc-accent); }
.lc-card__excerpt {
  font-size: .85rem;
  color: var(--lc-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero card (large, homepage lead) */
.lc-card--hero { gap: 14px; }
.lc-card--hero .lc-card__title {
  font-size: clamp(1.3rem, 3vw, 2rem);
}
.lc-card--hero .lc-card__excerpt {
  font-size: .9rem;
  -webkit-line-clamp: 2;
}

/* Side card (thumbnail left, text right) */
.lc-card--side {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: start;
}
.lc-card--side .lc-thumb { aspect-ratio: 16/10; }
.lc-card--side .lc-card__title { font-size: .95rem; }

/* List card (thumbnail left, text right) */
.lc-card--list {
  flex-direction: row;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lc-border-light);
  align-items: flex-start;
}
.lc-card--list .lc-card__body { flex: 1; min-width: 0; }
.lc-card--list .lc-card__title { font-size: .95rem; }
.lc-card--list .lc-thumb { width: 220px; flex-shrink: 0; aspect-ratio: 16/10; }

/* -----------------------------------------------------------------
   BYLINE
----------------------------------------------------------------- */
.lc-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--lc-text-muted);
}
.lc-byline__avatar img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.lc-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lc-byline__by { color: var(--lc-text-faint); }
.lc-byline__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lc-accent);
  transition: opacity var(--lc-trans);
}
.lc-byline__name:hover { opacity: .8; }
.lc-byline__sep { color: var(--lc-text-faint); }
.lc-byline__date { color: var(--lc-text-muted); }
.lc-byline__readtime { color: var(--lc-text-muted); font-size: .72rem; }

/* -----------------------------------------------------------------
   HIGHLIGHTS / TLDR BOX
----------------------------------------------------------------- */
.lc-highlights {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--lc-bg-card);
  border: 1px solid var(--lc-border);
  border-left: 4px solid var(--lc-accent);
  border-radius: 0 var(--lc-radius-lg) var(--lc-radius-lg) 0;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.lc-highlights__label {
  flex-shrink: 0;
  font-family: var(--lc-font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lc-accent);
  background: rgba(var(--lc-accent-rgb, 229,9,20),.1);
  padding: 4px 10px;
  border-radius: var(--lc-radius);
  margin-top: 2px;
  white-space: nowrap;
}
.lc-highlights__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.lc-highlights__list li {
  position: relative;
  padding-left: 18px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--lc-text);
}
.lc-highlights__list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: .55rem;
  color: var(--lc-accent);
  top: .38em;
}
@media (max-width: 600px) {
  .lc-highlights { flex-direction: column; gap: 10px; }
}

/* -----------------------------------------------------------------
   ACTION BAR (Follow / Like / Thread / Share)
----------------------------------------------------------------- */
.lc-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid var(--lc-border-light);
  border-bottom: 1px solid var(--lc-border-light);
  margin: 8px 0 20px;
}
.lc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--lc-text-muted);
  border: 1px solid var(--lc-border);
  border-radius: 20px;
  transition: all var(--lc-trans);
  cursor: pointer;
  background: none;
}
.lc-action-btn:hover { border-color: var(--lc-accent); color: var(--lc-accent); }
.lc-action-btn--liked { color: var(--lc-accent); border-color: var(--lc-accent); }
.lc-action-btn--saved { color: #f59e0b; border-color: #f59e0b; }

/* -----------------------------------------------------------------
   SINGLE POST — article content
----------------------------------------------------------------- */
.lc-single {
  padding-top: 20px;
}
.lc-single__top {
  max-width: var(--lc-container);
  margin: 0 auto;
  padding: 0 20px;
}
.lc-single__cat { margin-bottom: 10px; }
.lc-single__title {
  font-family: var(--lc-font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.lc-single__subtitle {
  font-family: var(--lc-font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--lc-text-muted);
  margin-bottom: 16px;
}
.lc-single__hero {
  margin: 20px 0;
  max-width: var(--lc-container);
  margin-inline: auto;
  padding: 0 20px;
  background: var(--lc-bg-card);
  border-radius: var(--lc-radius-lg);
  overflow: hidden;
}
.lc-single__hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 68vh;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--lc-radius-lg);
  background: var(--lc-bg-card);
}
.lc-single__hero-caption {
  font-size: .72rem;
  color: var(--lc-text-faint);
  text-align: right;
  padding-top: 6px;
}

/* Main layout: article + sidebar */
.lc-single__layout {
  max-width: var(--lc-container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.lc-single__layout--wide { grid-template-columns: 1fr; max-width: var(--lc-container-sm); }
.lc-single__layout--full { grid-template-columns: 1fr; }
/* Prevent grid children from overflowing */
.lc-single__content { min-width: 0; }
.lc-single__layout > aside { min-width: 0; overflow: hidden; }

/* Article body typography (Georgia serif) */
.lc-article-content {
  font-family: var(--lc-font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--lc-text);
}
.lc-article-content p { margin-bottom: 1.4em; }
.lc-article-content a { color: var(--lc-accent); text-decoration: underline; text-underline-offset: 2px; }
.lc-article-content a:hover { opacity: .8; }
.lc-article-content h2 {
  font-family: var(--lc-font-head);
  font-size: 1.5rem;
  margin: 2em 0 .7em;
}
.lc-article-content h3 {
  font-family: var(--lc-font-head);
  font-size: 1.2rem;
  margin: 1.6em 0 .5em;
}
.lc-article-content img {
  border-radius: var(--lc-radius-lg);
  margin: 1.5em 0;
}
.lc-article-content figure { margin: 1.5em 0; }
.lc-article-content figcaption {
  font-family: var(--lc-font-ui);
  font-size: .72rem;
  color: var(--lc-text-faint);
  text-align: right;
  padding-top: 6px;
}
.lc-article-content blockquote {
  border-left: 4px solid var(--lc-accent);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: var(--lc-bg-card);
  border-radius: 0 var(--lc-radius) var(--lc-radius) 0;
  font-style: italic;
  color: var(--lc-text-muted);
}
.lc-article-content ul, .lc-article-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.lc-article-content ul { list-style: disc; }
.lc-article-content ol { list-style: decimal; }
.lc-article-content li { margin-bottom: .4em; }
.lc-article-content li::marker { color: var(--lc-accent); }
.lc-article-content pre {
  background: #111;
  padding: 16px 20px;
  border-radius: var(--lc-radius-lg);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  margin: 1.5em 0;
}
.lc-article-content code { font-family: 'Courier New', monospace; font-size: .9em; background: var(--lc-bg-card); padding: 2px 6px; border-radius: 3px; }
.lc-article-content .wp-block-embed { margin: 1.5em 0; }
.lc-article-content iframe { width: 100%; border-radius: var(--lc-radius-lg); }

/* Tags at bottom */
.lc-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--lc-border-light);
  margin-top: 24px;
}
.lc-single__tag {
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--lc-text-muted);
  background: var(--lc-bg-surface);
  border-radius: 20px;
  transition: all var(--lc-trans);
}
.lc-single__tag:hover { color: var(--lc-text); background: var(--lc-bg-card); border-color: var(--lc-accent); }

/* -----------------------------------------------------------------
   NEWSLETTER BOX (mid-article)
----------------------------------------------------------------- */
.lc-newsletter-box {
  background: var(--lc-bg-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 28px 24px;
  margin: 2em 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lc-newsletter-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.lc-newsletter-content { flex: 1; }
.lc-newsletter-headline {
  font-family: var(--lc-font-head);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 6px;
}
.lc-newsletter-sub {
  font-size: .85rem;
  color: var(--lc-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.lc-newsletter-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--lc-border);
  padding-top: 14px;
}
.lc-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--lc-bg-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  font-size: .9rem;
  color: var(--lc-text);
}
.lc-newsletter-input::placeholder { color: var(--lc-text-faint); }
.lc-newsletter-btn {
  padding: 10px 20px;
  background: var(--lc-accent);
  color: #fff;
  border: none;
  border-radius: var(--lc-radius);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--lc-trans);
}
.lc-newsletter-btn:hover { background: var(--lc-accent-hover); }
.lc-newsletter-legal {
  font-size: .68rem;
  color: var(--lc-text-faint);
  margin-top: 8px;
  line-height: 1.4;
}

/* -----------------------------------------------------------------
   THREAD / COMMENTS
----------------------------------------------------------------- */
.lc-thread {
  max-width: var(--lc-container);
  margin: 40px auto 0;
  padding: 0 20px;
}
.lc-thread__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lc-thread__icon { color: var(--lc-accent); flex-shrink: 0; }
.lc-thread__title {
  font-family: var(--lc-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lc-thread__count {
  font-size: .7rem;
  background: var(--lc-bg-surface);
  color: var(--lc-text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.lc-thread__underline {
  height: 3px;
  background: linear-gradient(90deg, var(--lc-accent) 0%, transparent 100%);
  border-radius: 2px;
  margin: 6px 0 16px;
}
.lc-thread__intro {
  font-size: .85rem;
  color: var(--lc-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.lc-thread__sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--lc-text-muted);
  margin: 16px 0;
}
.lc-sort-select {
  background: var(--lc-bg-surface);
  border: 1px solid var(--lc-border);
  color: var(--lc-text);
  padding: 4px 8px;
  border-radius: var(--lc-radius);
  font-size: .8rem;
}
.lc-thread__closed, .lc-thread__empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--lc-text-faint);
}
.lc-thread__empty p { margin-top: 8px; font-size: .9rem; }

/* Comment form */
.lc-comment-form { margin-top: 16px; margin-bottom: 20px; }
.lc-comment-field-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--lc-bg-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 12px 14px;
}
.lc-comment-avatar-placeholder {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--lc-bg-surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lc-comment-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--lc-text);
  font-size: .9rem;
  resize: none;
  min-height: 38px;
  outline: none;
  padding-top: 8px;
}
.lc-comment-textarea::placeholder { color: var(--lc-text-faint); }
.lc-comment-submit {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--lc-accent);
  color: #fff;
  border: none;
  border-radius: var(--lc-radius);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--lc-trans);
}
.lc-comment-submit:hover { background: var(--lc-accent-hover); }

/* Individual comment */
.lc-comments-list { display: flex; flex-direction: column; gap: 0; }
.lc-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--lc-border-light);
}
.lc-comment__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lc-comment__avatar img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.lc-comment__body { flex: 1; }
.lc-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.lc-comment__author { font-size: .85rem; color: var(--lc-text); }
.lc-comment__time { font-size: .7rem; color: var(--lc-text-muted); }
.lc-comment__text { font-size: .88rem; line-height: 1.55; color: var(--lc-text-muted); }
.lc-comment__text p { margin-bottom: .5em; }
.lc-comment__pending { color: #f59e0b; font-size: .78rem; font-style: italic; }
.lc-comment__actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.lc-comment__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: .72rem;
  color: var(--lc-text-faint);
  border-radius: var(--lc-radius);
  transition: color var(--lc-trans), background var(--lc-trans);
}
.lc-comment__action:hover { color: var(--lc-text); background: var(--lc-bg-surface); }

/* -----------------------------------------------------------------
   RECOMMENDED GRID (bottom of articles)
----------------------------------------------------------------- */
.lc-recommended {
  max-width: var(--lc-container);
  margin: 40px auto;
  padding: 0 20px;
}
.lc-recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lc-gap);
}
.lc-recommended-card {}
.lc-recommended-img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--lc-radius);
  aspect-ratio: 3/4;
  background: var(--lc-bg-card);
}
.lc-recommended-img::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  background: var(--lc-cat-color, var(--lc-accent));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.lc-recommended-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.lc-recommended-img:hover img { transform: scale(1.03); }
.lc-recommended-body { padding-top: 10px; }
.lc-recommended-date {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--lc-text-muted);
  letter-spacing: .05em;
}
.lc-recommended-title {
  font-family: var(--lc-font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
}
.lc-recommended-title a { color: var(--lc-text); transition: color var(--lc-trans); }
.lc-recommended-title a:hover { color: var(--lc-accent); }

/* -----------------------------------------------------------------
   HOMEPAGE LAYOUTS
----------------------------------------------------------------- */
.lc-home-section {
  max-width: var(--lc-container);
  margin: 0 auto var(--lc-gap-lg);
  padding: 0 20px;
}

/* Hero + sidebar grid */
.lc-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}
.lc-home-hero-main { min-width: 0; }

/* 2-column row under hero */
.lc-home-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--lc-gap);
}

/* 3-column grid */
.lc-home-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lc-gap);
}

/* 4-column grid */
.lc-home-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lc-gap);
}

/* Section with heading + "SEE MORE" link */
.lc-home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lc-home-section__title {
  font-family: var(--lc-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lc-accent);
}
.lc-home-section__more {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--lc-trans);
}
.lc-home-section__more:hover { color: var(--lc-text); }

/* Also This section */
.lc-also-this { margin-bottom: var(--lc-gap-lg); }

/* Latest + Trending split at bottom of homepage */
.lc-home-bottom {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.lc-home-bottom > div { min-width: 0; }

/* Feature card band (colored background) */
.lc-feature-band {
  background: #3dcc64;
  color: #000;
  border-radius: var(--lc-radius-lg);
  padding: 30px;
  margin: var(--lc-gap-lg) 0;
}
.lc-feature-band__title {
  font-family: var(--lc-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.lc-feature-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lc-feature-band__item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lc-feature-band__item img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--lc-radius);
  flex-shrink: 0;
}
.lc-feature-band__item a {
  font-size: .85rem;
  font-weight: 600;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* SEE MORE button (outline, full-width, like Polygon) */
.lc-see-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  padding: 16px;
  border: 2px solid var(--lc-border);
  border-radius: var(--lc-radius);
  font-family: var(--lc-font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lc-text);
  transition: all var(--lc-trans);
}
.lc-see-more-btn:hover { border-color: var(--lc-accent); color: var(--lc-accent); }

/* -----------------------------------------------------------------
   ARCHIVE / SEARCH LAYOUT
----------------------------------------------------------------- */
.lc-archive-layout {
  max-width: var(--lc-container);
  margin: 0 auto;
  padding: var(--lc-gap-lg) 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.lc-archive-main { min-width: 0; }
.lc-archive-header {
  margin-bottom: 24px;
}
.lc-archive-title {
  font-family: var(--lc-font-head);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.lc-archive-desc {
  font-size: .9rem;
  color: var(--lc-text-muted);
  margin-top: 6px;
}
.lc-archive-grid {
  display: flex;
  flex-direction: column;
  gap: 0; /* border-bottom on each card provides visual separation */
}

/* -----------------------------------------------------------------
   404 / SEARCH NO RESULTS
----------------------------------------------------------------- */
.lc-error-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.lc-error-page__code {
  font-family: var(--lc-font-head);
  font-size: 6rem;
  font-weight: 700;
  color: var(--lc-accent);
  line-height: 1;
}
.lc-error-page__title {
  font-family: var(--lc-font-head);
  font-size: 1.6rem;
  margin: 16px 0;
}
.lc-error-page__text {
  font-size: .95rem;
  color: var(--lc-text-muted);
  margin-bottom: 24px;
}

/* -----------------------------------------------------------------
   UTILITY PAGES (About, Contact, Privacy)
----------------------------------------------------------------- */
.lc-page-hero {
  background: var(--lc-bg-card);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: var(--lc-gap-lg);
}
.lc-page-hero__title {
  font-family: var(--lc-font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.lc-page-hero__sub {
  font-size: 1.1rem;
  color: var(--lc-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.lc-page-content {
  max-width: var(--lc-container-sm);
  margin: 0 auto;
  padding: 0 20px 60px;
}
.lc-page-content h2 {
  font-size: 1.5rem;
  margin: 2em 0 .7em;
}
.lc-page-content h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 .5em;
}
.lc-page-content p {
  font-family: var(--lc-font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--lc-text);
  margin-bottom: 1.3em;
}
.lc-page-content a { color: var(--lc-accent); text-decoration: underline; }
.lc-page-content ul, .lc-page-content ol {
  padding-left: 1.3em;
  margin-bottom: 1.3em;
}
.lc-page-content ul { list-style: disc; }
.lc-page-content li { margin-bottom: .3em; }
.lc-page-content li::marker { color: var(--lc-accent); }

/* Team grid (about page) */
.lc-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--lc-gap);
  margin: 24px 0;
}
.lc-team-card { text-align: center; }
.lc-team-card__photo {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--lc-radius-lg);
  background: var(--lc-bg-surface);
  margin-bottom: 10px;
}
.lc-team-card__name { font-weight: 700; font-size: .9rem; }
.lc-team-card__role { font-size: .8rem; color: var(--lc-text-muted); }

/* Stats bar */
.lc-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--lc-gap);
  background: var(--lc-bg-card);
  border-radius: var(--lc-radius-lg);
  padding: 28px 20px;
  margin: 24px 0;
  text-align: center;
}
.lc-stat__num {
  font-family: var(--lc-font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lc-accent);
  display: block;
}
.lc-stat__label { font-size: .78rem; color: var(--lc-text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* Contact form */
.lc-contact-form { margin: 24px 0; }
.lc-form-group { margin-bottom: 16px; }
.lc-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lc-text-muted);
  margin-bottom: 6px;
}
.lc-form-group input,
.lc-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--lc-bg-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  color: var(--lc-text);
  font-size: .95rem;
}
.lc-form-group textarea { min-height: 140px; resize: vertical; }

/* -----------------------------------------------------------------
   RESPONSIVE — Tablet
----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .lc-home-hero-grid { grid-template-columns: 1fr; }
  .lc-single__layout { grid-template-columns: 1fr; gap: 30px; }
  .lc-archive-layout { grid-template-columns: 1fr; }
  .lc-home-bottom { grid-template-columns: 1fr; }
  .lc-recommended-grid { grid-template-columns: repeat(2, 1fr); }
  .lc-home-4col { grid-template-columns: repeat(2, 1fr); }
  .lc-feature-band__grid { grid-template-columns: repeat(2, 1fr); }
  /* Sidebar loses sticky when it stacks below content */
  .lc-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* -----------------------------------------------------------------
   RESPONSIVE — Mobile
----------------------------------------------------------------- */
@media (max-width: 768px) {
  .lc-home-2col { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lc-home-3col { grid-template-columns: 1fr; }
  .lc-home-4col { grid-template-columns: 1fr; }
  .lc-recommended-grid { grid-template-columns: 1fr; }
  .lc-feature-band__grid { grid-template-columns: 1fr; }
  .lc-feature-band { padding: 20px; }

  .lc-card--side { grid-template-columns: 120px 1fr; gap: 10px; }
  .lc-card--list .lc-thumb { width: 140px; }

  .lc-single__title { font-size: 1.5rem; }
  .lc-single__subtitle { font-size: .95rem; }
  .lc-article-content { font-size: 1rem; }

  .lc-newsletter-box { flex-direction: column; padding: 20px; }
  .lc-newsletter-form { flex-direction: column; }

  .lc-action-bar { gap: 4px; }
  .lc-action-btn { padding: 5px 8px; font-size: .72rem; }

  .lc-thread { padding: 0 16px; }

  .lc-page-hero { padding: 36px 16px; }

  .lc-stats-bar { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; }
  .lc-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .lc-home-2col { grid-template-columns: 1fr; }
  .lc-card--side { grid-template-columns: 1fr; }
  .lc-card--side .lc-thumb { aspect-ratio: 16/9; }
  .lc-card--list .lc-thumb { width: 100px; }
  .lc-stats-bar { grid-template-columns: 1fr; }
  .lc-archive-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .lc-home-bottom { grid-template-columns: 1fr; }
  .lc-home-hero-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------
   TABLE OF CONTENTS (v5 deep dive)
----------------------------------------------------------------- */
.lc-toc {
  background: var(--lc-bg-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.lc-toc h3 {
  font-family: var(--lc-font-head);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.lc-toc ol {
  list-style: decimal;
  padding-left: 1.2em;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--lc-text-muted);
}

/* -----------------------------------------------------------------
   SHARE BUTTONS (bottom of single posts)
----------------------------------------------------------------- */
.lc-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--lc-border-light);
  margin-top: 16px;
}
.lc-share-bar__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lc-text-muted);
  margin-right: 4px;
}
.lc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--lc-border);
  color: var(--lc-text-muted);
  transition: all var(--lc-trans);
  cursor: pointer;
  text-decoration: none;
}
.lc-share-btn:hover { border-color: var(--lc-accent); color: var(--lc-accent); }

/* -----------------------------------------------------------------
   AUTHOR BOX (end of article)
----------------------------------------------------------------- */
.lc-author-box {
  display: flex;
  gap: 16px;
  background: var(--lc-bg-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 20px;
  margin: 28px 0;
  align-items: flex-start;
}
.lc-author-box__avatar img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lc-author-box__name {
  font-weight: 700;
  font-size: .95rem;
  display: block;
  margin-bottom: 4px;
  color: var(--lc-accent);
}
.lc-author-box__bio {
  font-size: .85rem;
  color: var(--lc-text-muted);
  line-height: 1.5;
}

/* -----------------------------------------------------------------
   SKIP TO CONTENT (accessibility)
----------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--lc-accent);
  color: #fff;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 0 0 var(--lc-radius) var(--lc-radius);
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* -----------------------------------------------------------------
   WP CORE ALIGNMENT CLASSES
----------------------------------------------------------------- */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: -40px; }
.alignfull { margin-inline: calc(-50vw + 50%); max-width: 100vw; }

/* -----------------------------------------------------------------
   WP CAPTION / GALLERY
----------------------------------------------------------------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .75rem; color: var(--lc-text-faint); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; }
.gallery-item img { width: 100%; object-fit: cover; border-radius: var(--lc-radius); }

/* -----------------------------------------------------------------
   ADMIN BAR OFFSET
----------------------------------------------------------------- */
.admin-bar .lc-header,
.admin-bar .lc-header-sticky { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .lc-header,
  .admin-bar .lc-header-sticky { top: 46px; }
}
