/* =============================================================
   Lineage 2 Download Centre — Main Theme Stylesheet
   assets/css/theme.css
   ============================================================= */

/* ── 1. Design Tokens ─────────────────────────────────────── */

:root {
  /* ── Accent (silver replaces gold) */
  --gold:          #8A909E;
  --gold-dim:      #555B6A;
  --gold-glow:     rgba(138,144,158,0.10);
  --gold-border:   rgba(138,144,158,0.25);

  /* ── Backgrounds (light) */
  --dark:          #FFFFFF;   /* page bg  */
  --dark2:         #F7F8FA;   /* surface  */
  --dark3:         #EFF1F5;   /* inset    */
  --dark4:         #E2E5EC;   /* deep inset */

  /* ── Borders */
  --border:        rgba(0,0,0,0.07);
  --border-mid:    rgba(0,0,0,0.12);

  /* ── Text */
  --text:          #2A2D36;
  --text-bright:   #0F1117;
  --text-dim:      #9199AE;

  /* ── Semantic */
  --red:           #C0392B;
  --red-bright:    #E74C3C;

  /* ── Nav / Hero / Footer (always dark) */
  --nav-bg:        #0F1117;
  --nav-border:    rgba(138,144,158,0.20);
  --hero-bg:       #0F1117;
  --footer-bg:     #0F1117;

  /* ── Typography */
  --font-display:  'Cinzel', Georgia, serif;
  --font-ui:       'Inter', system-ui, sans-serif;
  --radius:        5px;
  --radius-lg:     8px;
}

/* ── 2. Reset / Base ──────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Override Twenty Twenty-Four body background */
body.wp-theme-twentytwentyfour { background: #fff !important; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text-bright); }

img { max-width: 100%; height: auto; display: block; }

/* ── 3. Layout Shell ──────────────────────────────────────── */

.l2dc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 4. Navigation ────────────────────────────────────────── */

.l2dc-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #0F1117;
  border-bottom: 1px solid rgba(138,144,158,0.20);
  box-shadow: 0 1px 8px rgba(0,0,0,0.18);
  overflow: visible; /* allow logo to hang below nav bar */
}

.l2dc-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

/* Custom logo image — let it be taller than the nav bar */
.l2dc-nav .custom-logo-link,
.l2dc-nav .custom-logo-link img,
.l2dc-nav__logo img {
  display: block;
  height: 80px;       /* taller than the 60px nav — hangs below */
  width: auto;
  margin-top: 20px;   /* push it down so it sits centred on the bar edge */
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

/* Site logo / name */
.l2dc-nav__logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.l2dc-nav__logo span { color: #555B6A; font-weight: 400; margin: 0 4px; }
.l2dc-nav__logo:hover { color: #B8BECC; }

/* Primary menu */
.l2dc-nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex: 1;
}

.l2dc-nav__menu a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-radius: var(--radius);
  transition: color .18s, background .18s;
}

.l2dc-nav__menu a:hover,
.l2dc-nav__menu .current-menu-item > a,
.l2dc-nav__menu .current-menu-ancestor > a {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
}

/* Search */
.l2dc-nav__search-wrap {
  flex-shrink: 0;
  position: relative;
}

.l2dc-nav__search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(138,144,158,0.25);
  border-radius: var(--radius);
  padding: 6px 14px 6px 34px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  width: 200px;
  transition: border-color .2s, width .3s;
  outline: none;
}

.l2dc-nav__search::placeholder { color: rgba(255,255,255,0.3); }
.l2dc-nav__search:focus { border-color: rgba(138,144,158,0.5); width: 260px; }

.l2dc-nav__search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  font-size: 13px;
}

/* Live search dropdown */
.l2dc-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 600;
}

.l2dc-search-results.is-open { display: block; }

.l2dc-search-results__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.l2dc-search-results__item:last-child { border-bottom: none; }
.l2dc-search-results__item:hover { background: var(--dark4); color: var(--gold); }

/* Mobile hamburger toggle */
.l2dc-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}

/* ── 5. Hero Section ──────────────────────────────────────── */

.l2dc-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0F1117;
}

.l2dc-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(138,144,158,0.06) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.012) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.012) 80px);
  pointer-events: none;
}

/* Silver shimmer bar replaces gold grid */
.l2dc-hero__grid {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #8A909E 30%, #B8BECC 50%, #8A909E 70%, transparent 100%);
  pointer-events: none;
}

.l2dc-hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  max-width: 680px;
  margin-left: max(80px, calc((100% - 1200px) / 2 + 80px));
}

.l2dc-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #B8BECC;
  font-weight: 600;
  margin-bottom: 18px;
}

.l2dc-hero__eyebrow::before,
.l2dc-hero__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #555B6A;
}

.l2dc-hero__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.l2dc-hero__title em {
  color: #B8BECC;
  font-style: normal;
}

.l2dc-hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 520px;
}

.l2dc-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero stats (bottom-right) */
.l2dc-hero__stats {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.l2dc-hero__stat {
  padding: 16px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.l2dc-hero__stat-n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #B8BECC;
  line-height: 1;
}

.l2dc-hero__stat-l {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ── 6. Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary: white on dark hero, dark on light content */
.btn--primary {
  background: #fff;
  color: #0F1117;
  border: 1px solid transparent;
}
.btn--primary:hover { background: #EFF1F5; color: #0F1117; }

/* In content areas, use dark fill */
.l2dc-content .btn--primary,
.l2dc-download-box .btn--primary {
  background: #0F1117;
  color: #fff;
}
.l2dc-content .btn--primary:hover,
.l2dc-download-box .btn--primary:hover { background: #2A2D36; }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* Ghost in content areas */
.l2dc-content .btn--ghost,
.l2dc-sidebar .btn--ghost,
.l2dc-download-box .btn--ghost {
  color: var(--text-dim);
  border-color: var(--border-mid);
}
.l2dc-content .btn--ghost:hover,
.l2dc-sidebar .btn--ghost:hover { color: var(--text); border-color: var(--gold); }

.btn--sm {
  font-size: 11px;
  padding: 7px 14px;
}

.btn--full { width: 100%; justify-content: center; }

/* ── 7. Category Tabs ─────────────────────────────────────── */

.l2dc-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border-mid);
  overflow-x: auto;
  scrollbar-width: none;
}
.l2dc-tabs::-webkit-scrollbar { display: none; }

.l2dc-tabs__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.l2dc-tab {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.l2dc-tab:hover { color: var(--text); }

.l2dc-tab.active,
.l2dc-tab.current-cat {
  color: var(--ink, #0F1117);
  border-bottom-color: #8A909E;
}

/* ── 8. Main Content Layout ───────────────────────────────── */

.l2dc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: start;
}

/* ── 9. Sidebar ───────────────────────────────────────────── */

.l2dc-sidebar {
  padding-right: 28px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 76px;
}

.l2dc-sidebar-section {
  margin-bottom: 28px;
}

.l2dc-sidebar__title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A909E;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.l2dc-sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.l2dc-sidebar__link:hover,
.l2dc-sidebar__link.active {
  color: var(--text);
  background: #F7F8FA;
}

.l2dc-sidebar__link.active { color: #0F1117; font-weight: 600; }

.l2dc-sidebar__badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.l2dc-sidebar__badge--new  { background: rgba(192,57,43,0.1); color: #C0392B; }
.l2dc-sidebar__badge--gold { background: rgba(138,144,158,0.15); color: #555B6A; }

/* Filter form inside sidebar */
.l2dc-filter {
  background: #F7F8FA;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.l2dc-filter label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9199AE;
  margin-bottom: 5px;
  font-weight: 600;
}

.l2dc-filter select,
.l2dc-filter input[type="text"] {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  color: #2A2D36;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}

.l2dc-filter select:focus,
.l2dc-filter input[type="text"]:focus {
  border-color: #8A909E;
}

.l2dc-filter__submit {
  margin-top: 4px;
}

/* Widget area (Appearance > Widgets) */
.l2dc-widget {
  margin-bottom: 24px;
}

.l2dc-widget__title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── 10. Content Area ─────────────────────────────────────── */

.l2dc-content {
  padding-left: 28px;
  min-width: 0;
}

.l2dc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.l2dc-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  margin: 0;
}

/* View toggle */
.l2dc-view-toggle {
  display: flex;
  gap: 4px;
}

.l2dc-view-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
  transition: all .2s;
}

.l2dc-view-btn.active,
.l2dc-view-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ── 11. Alert Banner ─────────────────────────────────────── */

.l2dc-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7F8FA;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid #C0392B;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.l2dc-alert__dot {
  width: 8px;
  height: 8px;
  background: #C0392B;
  border-radius: 50%;
  flex-shrink: 0;
  animation: l2dc-pulse 1.6s infinite;
}

@keyframes l2dc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.35); }
}

.l2dc-alert__text {
  flex: 1;
  font-size: 13px;
  color: #2A2D36;
}

.l2dc-alert__text strong { color: #0F1117; font-weight: 600; }

/* ── 12. File Cards (Grid View) ───────────────────────────── */

.l2dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.l2dc-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color .22s, transform .22s, border-top-color .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.l2dc-card:hover {
  border-color: rgba(138,144,158,0.3);
  border-top-color: #8A909E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.l2dc-card--featured {
  border-color: rgba(138,144,158,0.3);
  border-top-color: #8A909E;
  box-shadow: 0 0 0 3px rgba(138,144,158,0.08), 0 1px 3px rgba(0,0,0,0.05);
}

.l2dc-card__badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Badge colours — light theme, all readable on white */
.badge--client  { background: rgba(138,144,158,0.12); color: #555B6A;  border: 1px solid rgba(138,144,158,0.25); }
.badge--system  { background: rgba(30,130,80,0.08);   color: #1A7048;  border: 1px solid rgba(30,130,80,0.2); }
.badge--l2j     { background: rgba(30,70,180,0.08);   color: #1A3EA0;  border: 1px solid rgba(30,70,180,0.2); }
.badge--l2off   { background: rgba(30,70,180,0.08);   color: #1A3EA0;  border: 1px solid rgba(30,70,180,0.2); }
.badge--patch   { background: rgba(110,40,160,0.08);  color: #6020A0;  border: 1px solid rgba(110,40,160,0.2); }
.badge--tool    { background: rgba(60,120,40,0.08);   color: #2A6018;  border: 1px solid rgba(60,120,40,0.2); }
.badge--website { background: rgba(20,120,160,0.08);  color: #0A6080;  border: 1px solid rgba(20,120,160,0.2); }
.badge--new     { background: rgba(192,57,43,0.08);   color: #C0392B;  border: 1px solid rgba(192,57,43,0.2); }
.badge--misc    { background: #F7F8FA;                color: #9199AE;  border: 1px solid rgba(0,0,0,0.08); }

.l2dc-card__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #0F1117;
  line-height: 1.35;
  margin: 0 0 6px;
}

.l2dc-card__meta {
  font-size: 12px;
  color: #9199AE;
  flex: 1;
  line-height: 1.5;
}

.l2dc-card__size {
  font-size: 11px;
  color: #9199AE;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.l2dc-card__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}

.l2dc-card__dl-count {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: auto;
}

/* ── 13. File List (List View) ────────────────────────────── */

.l2dc-list { margin-bottom: 32px; }

.l2dc-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, background .18s, box-shadow .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.l2dc-list-item:hover {
  border-color: rgba(138,144,158,0.3);
  background: #F7F8FA;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.l2dc-list-item__info { flex: 1; min-width: 0; }

.l2dc-list-item__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #0F1117;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l2dc-list-item__meta {
  font-size: 12px;
  color: #9199AE;
}

.l2dc-list-item__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.l2dc-list-item__size {
  font-size: 12px;
  color: #9199AE;
  min-width: 64px;
  text-align: right;
}

/* ── 14. Pagination ───────────────────────────────────────── */

.l2dc-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 32px 0;
}

.l2dc-pagination a,
.l2dc-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #9199AE;
  transition: all .18s;
  text-decoration: none;
}

.l2dc-pagination a:hover { border-color: #8A909E; color: #0F1117; }
.l2dc-pagination .current { border-color: #8A909E; color: #0F1117; background: rgba(138,144,158,0.10); }
.l2dc-pagination .dots { border-color: transparent; background: none; }

/* ── 15. Single File / Download Page ─────────────────────── */

.l2dc-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.l2dc-single__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #0F1117;
  margin: 0 0 12px;
  line-height: 1.2;
}

.l2dc-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.l2dc-single__meta-item {
  font-size: 13px;
  color: #9199AE;
}

.l2dc-single__meta-item strong {
  color: #2A2D36;
  font-weight: 600;
}

.l2dc-single__description {
  font-size: 15px;
  line-height: 1.75;
  color: #2A2D36;
}

.l2dc-single__description h2,
.l2dc-single__description h3 {
  font-family: var(--font-display);
  color: #0F1117;
  margin-top: 28px;
}

/* Download sidebar box */
.l2dc-download-box {
  background: #fff;
  border: 1px solid rgba(138,144,158,0.25);
  border-top: 3px solid #8A909E;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 76px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.l2dc-download-box__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #0F1117;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.l2dc-download-box__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.l2dc-download-box__stat:last-of-type { border-bottom: none; margin-bottom: 20px; }
.l2dc-download-box__stat dt { color: #9199AE; }
.l2dc-download-box__stat dd { color: #0F1117; font-weight: 600; margin: 0; }

/* WPDM download button override — dark on light */
.wpdm-download-link .btn,
.wpdm_download_link .btn,
a.wpdm_download_link,
a.wpdm-download-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #0F1117 !important;
  color: #fff !important;
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  border-radius: var(--radius) !important;
  border: none !important;
  width: 100% !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background .2s !important;
}

a.wpdm_download_link:hover,
a.wpdm-download-link:hover { background: #2A2D36 !important; }

/* ── 16. Category/Archive Header ──────────────────────────── */

.l2dc-archive-header {
  background: #F7F8FA;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 32px 0;
}

.l2dc-archive-header .l2dc-wrap {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.l2dc-archive-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #0F1117;
  margin: 0;
}

.l2dc-archive-count {
  font-size: 13px;
  color: #9199AE;
  margin-bottom: 3px;
}

/* ── 17. Footer ───────────────────────────────────────────── */

.l2dc-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #0F1117;
  padding: 40px 24px 28px;
}

.l2dc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.l2dc-footer__brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.l2dc-footer__brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 300px;
}

.l2dc-footer__col-title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A909E;
  font-weight: 700;
  margin: 0 0 14px;
}

.l2dc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.l2dc-footer__links li + li { margin-top: 8px; }

.l2dc-footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color .18s;
}

.l2dc-footer__links a:hover { color: rgba(255,255,255,0.85); }

.l2dc-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  gap: 20px;
  flex-wrap: wrap;
}

.l2dc-footer-widget__title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A909E;
  font-weight: 700;
  margin: 0 0 14px;
}

/* ── 18. Chronicle Reference Page ────────────────────────── */

.l2dc-chronicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.l2dc-chronicle-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.l2dc-chronicle-card__code {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 4px;
}

.l2dc-chronicle-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.l2dc-chronicle-card__year {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── 19. No Results ───────────────────────────────────────── */

.l2dc-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.l2dc-no-results__icon { font-size: 40px; margin-bottom: 16px; }
.l2dc-no-results__title { font-family: var(--font-display); font-size: 20px; color: #0F1117; margin-bottom: 8px; }

/* ── 20. Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .l2dc-layout {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 860px) {
  .l2dc-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .l2dc-sidebar {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 24px;
    margin-bottom: 24px;
    position: static;
  }

  .l2dc-content { padding-left: 0; }

  .l2dc-single {
    grid-template-columns: 1fr;
  }

  .l2dc-download-box { position: static; }

  .l2dc-footer__inner { grid-template-columns: 1fr; gap: 24px; }

  .l2dc-hero__stats { position: static; border: none; border-top: 1px solid rgba(255,255,255,0.08); }

  .l2dc-hero__content { padding: 40px 24px; }
  .l2dc-hero__title { font-size: 30px; }
}

@media (max-width: 640px) {
  .l2dc-nav__menu { display: none; }
  .l2dc-nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0F1117;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    z-index: 499;
  }
  .l2dc-nav__menu.is-open li { width: 100%; }
  .l2dc-nav__menu.is-open a { padding: 10px 24px; border-radius: 0; }
  .l2dc-nav__toggle { display: block; }
  .l2dc-nav__inner { position: relative; }
  .l2dc-hero__stats { display: none; }
  .l2dc-grid { grid-template-columns: 1fr; }
}

/* ── 21. WordPress default overrides ──────────────────────── */

/* Gutenberg content colours */
.entry-content p, .entry-content li { color: #2A2D36; }
.entry-content h1,.entry-content h2,.entry-content h3 { color: #0F1117; font-family: var(--font-display); }
.entry-content a { color: #555B6A; text-decoration: underline; }
.entry-content a:hover { color: #0F1117; }

/* WP search widget */
.widget_search input { background: #fff !important; border-color: rgba(0,0,0,0.12) !important; color: #2A2D36 !important; }
.widget_search .search-submit { background: #0F1117 !important; color: #fff !important; border: none !important; }

/* Chronicle card — updated for light theme */
.l2dc-chronicle-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid #8A909E;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.l2dc-chronicle-card__code { color: #8A909E; }
.l2dc-chronicle-card__name { color: #0F1117; }
.l2dc-chronicle-card__year { color: #9199AE; }

/* Section title underline accent */
.l2dc-section-title { color: #0F1117; }
