/*
Theme Name: ELN — Esports Legal News
Theme URI: https://esportslegalnews.example/
Author: ELN
Author URI: https://esportslegalnews.example/
Description: Editorial classic theme for ELN — Esports Legal News. Sober legal-publication aesthetic with Titillium Web, ink/paper palette and the ELN corporate green accent. Where law meets the game.
Version: 1.0.41
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eln
Tags: news, editorial, magazine, two-columns, custom-menu, featured-images, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #fdfcfb;
  --ink: #0a0a0a;
  --accent: #12fd7e;
  --highlight: #cdf546;
  --muted: #666666;
  --border: #e5e2df;
  --font-sans: "Titillium Web", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 72rem; /* matches max-w-6xl */
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(18,253,126,.25); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--ink);
  padding: .26rem .55rem;
  font-weight: 700;
  line-height: 1.2;
}
/* On the dark newsletter band the kicker is plain mint (no stripe) */
.eln-newsletter .kicker { background: transparent; padding: 0; color: var(--accent); }
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.meta span + span::before { content: " · "; margin: 0 .35rem; color: rgba(10,10,10,.3); }

/* ---------- Utility bar ---------- */
.eln-utility {
  background: var(--ink);
  color: rgba(253,252,251,.7);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
}
.eln-utility .row {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eln-utility a:hover { color: var(--accent); }
.eln-utility nav { display: flex; gap: 1.25rem; }
@media (max-width: 640px) { .eln-utility nav { display: none; } }

/* ---------- Masthead ---------- */
.eln-masthead { border-bottom: 2px solid var(--ink); }
.eln-masthead .top {
  display: flex; align-items: center;
  gap: 1.5rem; padding: 1.5rem 1.5rem;
}
.eln-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eln-logo .mark {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
/* Inline ELN wordmark — `currentColor` drives the dark glyphs so it inverts on dark backgrounds */
.eln-logo-svg { display: block; height: 34px; width: auto; color: var(--ink); }
.brandblock { display: flex; flex-direction: column; gap: .4rem; }
.eln-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
/* Customizer custom logo (image/SVG) */
.eln-masthead .custom-logo-link { display: inline-block; }
.eln-masthead .custom-logo { height: 56px; width: auto; max-width: 280px; }
/* Prominent, centred search (GAR-style) */
.eln-search {
  display: none;
  flex: 0 1 34rem; min-width: 0; margin: 0 auto;
  align-items: center;
  border: 1px solid rgba(10,10,10,.22);
  height: 44px; padding: 0 1rem; gap: .6rem;
}
.eln-search:focus-within { border-color: var(--ink); }
.eln-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
@media (min-width: 768px) { .eln-search { display: flex; } }

.eln-cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0 1rem; height: 36px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.eln-cta:hover { background: var(--ink); color: var(--accent); }


/* Primary nav */
.eln-nav { border-top: 1px solid rgba(10,10,10,.15); }
.eln-nav .container { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.eln-nav-cta { flex-shrink: 0; height: 30px; padding: 0 .9rem; }

/* Mobile-nav toggle (hamburger) — hidden on desktop; the nav shows normally */
.eln-nav-toggle { display: none; }

@media (max-width: 768px) {
  /* Masthead row: brand on the left, hamburger on the right */
  .eln-masthead .top { padding: 1.1rem 1.25rem; }
  .eln-nav-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-left: auto; cursor: pointer; user-select: none;
    color: var(--ink); padding: .35rem .25rem; line-height: 1;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .eln-nav-toggle svg { display: block; }
  .eln-nav-toggle .eln-nav-toggle-close { display: none; }
  .eln-nav-toggle-cb:checked ~ .top .eln-nav-toggle .eln-nav-toggle-open { display: none; }
  .eln-nav-toggle-cb:checked ~ .top .eln-nav-toggle .eln-nav-toggle-close { display: inline-flex; }

  /* Collapse the nav until the hamburger is tapped */
  .eln-nav { display: none; border-top: 0; }
  .eln-nav-toggle-cb:checked ~ .eln-nav { display: block; border-top: 1px solid rgba(10,10,10,.15); }

  .eln-nav .container { flex-direction: column; align-items: stretch; gap: 0; padding-top: .35rem; padding-bottom: .9rem; }
  .eln-nav > .container > ul { flex-direction: column; gap: 0; width: 100%; }
  .eln-nav > .container > ul > li > a { display: block; padding: .8rem .1rem; border-bottom: 1px solid rgba(10,10,10,.08); }
  .eln-nav-cta { order: 99; align-self: stretch; text-align: center; height: 42px; margin: .9rem 0 .15rem; }
}
.eln-nav > .container > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eln-nav a { white-space: nowrap; }
.eln-nav li { position: relative; }
.eln-nav .menu-item-has-children > a::after { content: "▾"; margin-left: .4em; font-size: .9em; }

/* Dropdown sub-menu */
.eln-nav .sub-menu {
  list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 230px;
  background: var(--ink);
  border-top: 2px solid var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  text-transform: none; letter-spacing: .02em; font-size: 13px; font-weight: 600;
}
.eln-nav li:hover > .sub-menu,
.eln-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.eln-nav .sub-menu li { position: static; }
.eln-nav .sub-menu a { display: block; padding: .5rem 1.25rem; color: rgba(253,252,251,.85); }
.eln-nav .sub-menu a:hover { color: var(--accent); background: rgba(253,252,251,.06); }
@media (max-width: 640px) {
  /* On touch screens, show the sub-menu inline (no hover) */
  .eln-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: transparent; padding: .25rem 0 .5rem 1rem; min-width: 0; }
  .eln-nav .sub-menu a { color: var(--ink); padding: .35rem 0; }
  .eln-nav .menu-item-has-children > a::after { content: ""; }
}

/* ---------- Wire ticker ---------- */
.eln-wire { background: var(--highlight); border-bottom: 2px solid var(--ink); overflow: hidden; }
.eln-wire .container { height: 36px; display: flex; align-items: center; gap: 1rem; }
.eln-wire .tag {
  background: var(--ink); color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
  padding: 2px 10px; flex-shrink: 0;
}
.eln-wire .track-wrap { flex: 1; overflow: hidden; position: relative; }
.eln-wire .track {
  display: inline-flex; gap: 3rem; white-space: nowrap;
  animation: eln-marquee 45s linear infinite;
  font-size: 12px; font-weight: 600;
}
.eln-wire .track span.dot { color: rgba(10,10,10,.3); margin-left: 3rem; }
@keyframes eln-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Main grid ---------- */
.eln-main { padding: 2.5rem 0 0; }
.eln-lead-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .eln-lead-grid { grid-template-columns: 2fr 1fr; }
}

/* Lead article */
.eln-lead .thumb { border: 1px solid rgba(10,10,10,.1); overflow: hidden; margin-bottom: 1.5rem; aspect-ratio: 16/9; }
.eln-lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.eln-lead:hover .thumb img { transform: scale(1.02); }
.eln-lead h1, .eln-lead .headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: .75rem 0 1rem;
  text-wrap: balance;
}
.eln-lead .dek { font-size: 1.05rem; line-height: 1.65; color: rgba(10,10,10,.75); max-width: 42rem; margin: 0 0 1.25rem; }

/* Most-read sidebar list */
.eln-most-read {
  border-left: 1px solid rgba(10,10,10,.15);
  padding-left: 2rem;
}
@media (max-width: 1023px) {
  .eln-most-read { border-left: 0; padding-left: 0; }
}
.eln-section-head {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  padding-bottom: .5rem; margin: 0 0 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.eln-most-read ol { list-style: none; margin: 0; padding: 0; }
.eln-most-read li {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-top: 1px solid rgba(10,10,10,.1);
}
.eln-most-read li:first-child { border-top: 0; padding-top: 0; }
.eln-most-read .num {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700; color: var(--accent);
  line-height: 1; flex-shrink: 0; width: 2rem;
}
.eln-most-read h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin: .25rem 0; text-wrap: balance; }

/* Rule-headed section */
.eln-rule-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 4rem 0 1.5rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--ink);
}
.eln-rule-head h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eln-rule-head .view-all { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.eln-rule-head .view-all:hover { color: var(--accent); }

/* Briefs */
.eln-briefs { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .eln-briefs { grid-template-columns: 1fr 1fr; } }
.eln-brief { display: grid; grid-template-columns: 2fr 3fr; gap: 1.25rem; }
.eln-brief--nothumb { grid-template-columns: 1fr; }
/* On phones, stack the image above the text so headlines aren't crammed into a third of the row */
@media (max-width: 600px) {
  .eln-brief { grid-template-columns: 1fr; gap: .85rem; }
  .eln-brief .thumb { aspect-ratio: 16/9; }
  .eln-brief h3 { font-size: 1.2rem; }
}
.eln-brief .thumb { aspect-ratio: 4/3; border: 1px solid rgba(10,10,10,.1); overflow: hidden; }
.eln-brief .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.eln-brief:hover .thumb img { transform: scale(1.03); }
.eln-brief h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin: .35rem 0 .5rem; text-wrap: balance; }
.eln-brief p:not(.kicker):not(.meta) { font-size: .9rem; color: rgba(10,10,10,.7); margin: 0 0 .75rem; line-height: 1.55; }

/* Directory embedded in the theme: keep the page background on-brand (the
   directory plugin forces a light-grey body bg in fullscreen mode). */
html body.eln-directory-embed { background: var(--paper) !important; }
/* Contain the directory within the site container — a compound box, not a
   full-bleed edge-to-edge stripe. Scoped to the body class so it applies
   regardless of which wrapper renders the app (theme template or plugin). */
.eln-directory-main { margin: 0 auto; padding: 2.5rem 1.5rem; max-width: var(--container); }
body.eln-directory-embed .eln-idx {
    max-width: var(--container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}
body.eln-directory-embed .eln-idx-hero { border-radius: 4px; }

/* From the Wiki (homepage) */
/* Fluid grid: fits as many cards per row as the width allows (≈4–5 on desktop) */
.eln-wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.25rem; }
.eln-wiki-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--border); background: var(--paper); transition: border-color .15s ease; }
.eln-wiki-card:hover { border-color: var(--ink); color: var(--ink); }
.eln-wiki-card .kicker { align-self: flex-start; }
.eln-wiki-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
.eln-wiki-card p { font-size: .85rem; color: rgba(10,10,10,.7); line-height: 1.5; margin: 0; flex: 1; }
.eln-wiki-readmore { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; align-self: flex-start; }

/* Newsletter band */
.eln-newsletter {
  margin: 5rem 0 0;
  background: var(--ink); color: var(--paper);
  padding: 3.5rem 1.5rem;
}
/* Centred newsletter CTA */
.eln-newsletter-inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.eln-newsletter h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.15; margin: .5rem 0 .75rem; color: var(--paper); }
.eln-newsletter p { color: rgba(253,252,251,.7); margin: 0 auto; }
.eln-newsletter form { max-width: 30rem; margin: 1.75rem auto 0; }
.eln-nl-row { display: flex; gap: .5rem; }
.eln-newsletter input[type=email] {
  flex: 1; min-width: 0;
  background: rgba(253,252,251,.05); border: 1px solid rgba(253,252,251,.25);
  padding: 0 1rem; height: 48px; color: var(--paper); font-size: 14px;
}
.eln-newsletter input[type=email]:focus { outline: none; border-color: var(--accent); }
.eln-newsletter button {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--accent); color: var(--ink); border: 0;
  height: 48px; padding: 0 1.25rem; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.eln-newsletter button:hover { background: var(--paper); }
.eln-nl-consent {
  display: flex; gap: .55rem; align-items: flex-start; text-align: left;
  margin-top: .9rem; font-size: 12px; line-height: 1.5; color: rgba(253,252,251,.6);
}
.eln-nl-consent input { margin-top: .15rem; flex-shrink: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.eln-nl-consent a { color: var(--accent); border-bottom: 1px solid rgba(18,253,126,.4); }
.eln-newsletter .fineprint { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(253,252,251,.4); margin-top: .9rem; }
@media (max-width: 520px) { .eln-nl-row { flex-direction: column; } }

/* Wire feed + sidebar */
.eln-feed-wrap { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .eln-feed-wrap { grid-template-columns: 1fr 320px; } }
.eln-feed ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(10,10,10,.1); }
.eln-feed li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(10,10,10,.1);
  display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; row-gap: .6rem;
}
/* Top meta line: kicker chip (left) + date (right), vertically centred together; headline below */
.eln-feed .kicker { grid-column: 1; grid-row: 1; align-self: center; white-space: nowrap; justify-self: start; }
.eln-feed h3 { grid-column: 1; grid-row: 2; font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; }
.eln-feed .date { grid-column: 2; grid-row: 1; align-self: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.eln-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(10,10,10,.15); }
.eln-pagination .info { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eln-pagination nav { display: flex; gap: .25rem; font-family: var(--font-mono); font-size: 12px; }
.eln-pagination a, .eln-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem;
  border: 1px solid rgba(10,10,10,.15);
}
.eln-pagination .current { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* Sidebar */
.eln-sidebar { display: flex; flex-direction: column; gap: 2.5rem; }
.eln-side-list ul { list-style: none; margin: 0; padding: 0; }
.eln-side-list li { border-top: 1px solid rgba(10,10,10,.1); }
.eln-side-list li:first-child { border-top: 0; }
.eln-side-list a { display: flex; justify-content: space-between; padding: .65rem 0; font-size: .9rem; font-weight: 600; }
.eln-side-list a:hover { color: var(--accent); }

.eln-promo { background: var(--paper); border: 2px solid var(--ink); padding: 1.5rem; }
.eln-promo h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin: .5rem 0 .75rem; text-wrap: balance; }
.eln-promo p:not(.kicker) { font-size: .9rem; color: rgba(10,10,10,.7); margin: 0 0 1rem; }
.eln-promo .btn { display: inline-block; background: var(--ink); color: var(--accent); padding: .5rem 1rem; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eln-promo .btn:hover { background: var(--accent); color: var(--ink); }
/* Esports Legal Review cross-promo */
.eln-elr { border-top: 4px solid var(--accent); }
/* GameBanAppeal cross-promo — red top edge signals the "banned" use case */
.eln-gba { border-top: 4px solid #ef4444; }
.eln-gba .kicker { color: #dc2626; }

/* GameBanAppeal targeted in-article banner (ban/appeal/suspension articles) */
.eln-gba-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  margin: 2.25rem 0; padding: 1.15rem 1.4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left: 5px solid #ef4444;
}
.eln-gba-inline .kicker { background: #ef4444; color: #fff; }
.eln-gba-inline-msg { margin: .5rem 0 0; font-size: .92rem; line-height: 1.5; color: rgba(10,10,10,.75); }
.eln-gba-inline-btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--ink); color: var(--accent);
  padding: .6rem 1.1rem;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  white-space: nowrap;
}
.eln-gba-inline-btn:hover { background: #ef4444; color: #fff; }
@media (max-width: 640px) {
  .eln-gba-inline { flex-direction: column; align-items: flex-start; }
}

.eln-ad { background: var(--highlight); padding: 1.5rem; color: var(--ink); }
.eln-ad .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(10,10,10,.6); margin-bottom: .75rem; }
.eln-ad p { font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; text-wrap: balance; }
.eln-ad a { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* ---------- Banner / advertising positions ---------- */
.eln-banner { margin: 2rem 0; }
.eln-banner .widget { margin: 0; }
.eln-banner img { margin: 0 auto; }
.eln-banner > .container > .eln-banner-label,
.eln-banner > .eln-banner-label { display: block; }
.eln-banner-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 .5rem; }
/* House placeholder */
.eln-banner-house {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1rem; text-align: center;
  border: 1px dashed var(--border); background: var(--paper);
  padding: 1.1rem 1.5rem; min-height: 90px;
}
.eln-banner-house:hover { border-color: var(--ink); color: var(--ink); }
.eln-banner-house .eln-banner-label { width: 100%; }
.eln-banner-house .eln-banner-msg { font-weight: 600; font-size: 1rem; }
.eln-banner-house .eln-banner-cta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.eln-banner-house:hover .eln-banner-cta { color: var(--ink); border-bottom-width: 4px; }
/* Top leaderboard sits tight under the wire; footer banner above the footer */
.eln-banner--banner-top { margin-top: 0; padding-top: 1.5rem; }
.eln-banner--banner-footer { margin-bottom: 0; }

/* ---------- Single & page ---------- */
.eln-article { padding: 3rem 0; max-width: 64rem; margin-left: auto; margin-right: auto; }
/* Full-width pages (Legal Index directory, Book Reviews) use the whole container.
   These host self-styled plugin layouts, so we don't impose editorial body styles. */
.eln-article--wide { max-width: none; }
.eln-article--wide > header h1 { max-width: 44rem; }
.eln-article--wide .content { font-size: 1rem; }
.eln-article--wide .content a { border-bottom: 0; }
/* Full-width pages host self-styled plugin layouts (directory, wiki) — don't let
   the theme's editorial typography (heading/paragraph margins) leak into them. */
.eln-article--wide .content h1,
.eln-article--wide .content h2,
.eln-article--wide .content h3,
.eln-article--wide .content h4,
.eln-article--wide .content p { margin: 0 !important; }
/* Wiki landing: centred title + search hub above the full-width card grid */
.eln-article--wiki > header { text-align: center; }
.eln-article--wiki > header h1 { max-width: none; }
.eln-article--wiki .elw-search-form { max-width: 42rem; margin-left: auto; margin-right: auto; }
.eln-article header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: .5rem 0 1rem; text-wrap: balance; }
.eln-article .featured { margin: 1.5rem 0 2rem; border: 1px solid rgba(10,10,10,.1); }
.eln-article .content { font-size: 1.05rem; line-height: 1.75; }
.eln-article .content p { margin: 0 0 1.25rem; }
.eln-article .content h2 { font-size: 1.6rem; font-weight: 600; margin: 2.5rem 0 1rem; }
.eln-article .content h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .75rem; }
.eln-article .content a { border-bottom: 1px solid var(--accent); }
.eln-article .content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; color: rgba(10,10,10,.75); font-style: italic; }
.eln-article .content code { font-family: var(--font-mono); background: rgba(10,10,10,.05); padding: .15rem .4rem; font-size: .9em; }

/* ---------- Footer ---------- */
.eln-footer { background: var(--ink); color: var(--paper); padding: 4rem 0 2.5rem; margin-top: 0; border-top: 4px solid var(--accent); }
.eln-footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .eln-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.eln-footer .brand { grid-column: span 2; }
@media (min-width: 768px) { .eln-footer .brand { grid-column: span 1; } }
/* Logo on the dark footer: paper-coloured glyphs (green dots stay green) */
.eln-footer .eln-logo-svg { color: var(--paper); height: 30px; }
.eln-footer .custom-logo { height: 44px; width: auto; }
/* Social icons */
.eln-social { display: flex; gap: .9rem; margin: 1.25rem 0; }
.eln-social a { color: rgba(253,252,251,.55); display: inline-flex; }
.eln-social a:hover { color: var(--accent); }
.eln-footer h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(253,252,251,.4); margin: 0 0 1.25rem; font-weight: 700; }
.eln-footer ul { list-style: none; padding: 0; margin: 0; }
.eln-footer ul li { margin: 0 0 .75rem; font-size: .9rem; }
.eln-footer ul a:hover { color: var(--accent); }
.eln-footer .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(253,252,251,.4); }
.eln-footer .blurb { color: rgba(253,252,251,.6); max-width: 26rem; font-size: .9rem; line-height: 1.6; margin: 1rem 0; }
.eln-footer .bottom { border-top: 1px solid rgba(253,252,251,.1); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .eln-footer .bottom { flex-direction: row; } }
.eln-footer .bottom .small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(253,252,251,.4); }
.eln-footer .bottom nav { display: flex; gap: 1.5rem; }
.eln-footer .bottom nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(253,252,251,.4); }
.eln-footer .bottom nav a:hover { color: var(--paper); }

/* ---------- WP-required helpers ---------- */
.alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.screen-reader-text {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.sticky, .bypostauthor { /* required */ }
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
