/* ════════════════════════════════════════════════════════════════════
   LMA NEWS — V15.0
   ════════════════════════════════════════════════════════════════════
   Built on top of assets/css/lma-editorial.css (.lma-ed tokens/
   components). Everything here is scoped under .lma-news so it can
   only ever affect the News archive/single templates and the
   [lma_news_grid] shortcode — never any other part of the site.
   ════════════════════════════════════════════════════════════════════ */

.lma-news { overflow-x: clip; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.lma-news-hero {
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
  background: var(--ed-bg);
  overflow: hidden;
}
.lma-news-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lma-news-hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}
.lma-news-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.10), transparent 60%),
              linear-gradient(180deg, rgba(6,6,8,0.2) 0%, var(--ed-bg) 92%);
}
.lma-news-hero-overlay--dense {
  background: linear-gradient(180deg, rgba(6,6,8,0.35) 0%, rgba(6,6,8,0.75) 60%, var(--ed-bg) 100%);
}
.lma-news-hero-inner { position: relative; z-index: 1; }

.lma-news-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 52px;
}
.lma-news-stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lma-news-stat .lma-ed-icon-badge { margin-bottom: 4px; }
.lma-news-stat-value {
  font-family: var(--ed-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ed-gold-light);
}
.lma-news-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-faint);
}

/* ── Featured story ───────────────────────────────────────────────── */
.lma-news-featured-section { padding-top: 0; }
.lma-news-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-top: 26px;
  border-radius: var(--ed-r-lg);
  overflow: hidden;
  border: 1px solid var(--ed-border);
  background: var(--ed-bg-elevated);
  transition: border-color var(--ed-t), box-shadow var(--ed-t);
}
.lma-news-featured:hover { border-color: var(--ed-gold-border); box-shadow: 0 30px 70px rgba(0,0,0,0.4); }
.lma-news-featured-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ed-bg-elevated-2); }
.lma-news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ed-t-slow); }
.lma-news-featured:hover .lma-news-featured-media img { transform: scale(1.05); }
.lma-news-featured-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(6,6,8,0.5)); }
.lma-news-featured-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lma-news-featured-excerpt { color: var(--ed-muted); line-height: 1.7; font-size: 0.98rem; margin: 0; }

@media (max-width: 900px) {
  .lma-news-featured { grid-template-columns: 1fr; }
  .lma-news-featured-body { padding: 28px 26px; }
}

/* ── Filters ──────────────────────────────────────────────────────── */
.lma-news-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 34px;
}
.lma-news-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lma-news-search input {
  width: 260px;
  max-width: 100%;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  font-family: var(--ed-font-body);
  /* 16px is a hard floor, not a target to tune down — anything less
     triggers iOS Safari's focus-zoom (same bug fixed on the Entry Form
     in V14.3.6 and the Contact Form in V15.1; missed here until now). */
  font-size: 16px;
  outline: none;
  transition: var(--ed-t);
}
.lma-news-search input::placeholder { color: var(--ed-faint); }
.lma-news-search input:focus { border-color: var(--ed-gold-border); background: var(--ed-bg-elevated-2); }

/* ── Grid ─────────────────────────────────────────────────────────── */
.lma-news-grid-section { padding-top: 0; padding-bottom: 90px; }
.lma-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.lma-news-grid--related { margin-top: 26px; }
@media (max-width: 1024px) { .lma-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .lma-news-grid { grid-template-columns: 1fr; } }

.lma-news-card { display: block; }
.lma-news-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ed-gold-border);
  font-size: 2rem;
}

.lma-news-loadmore-wrap { display: flex; justify-content: center; margin-top: 48px; }
#lma-news-loadmore[disabled] { opacity: 0.5; cursor: default; }

/* ── Empty state ──────────────────────────────────────────────────── */
.lma-news-empty {
  text-align: center;
  padding: 70px 20px;
  grid-column: 1 / -1;
}
.lma-news-empty .lma-ed-icon-badge { margin: 0 auto 20px; }

/* ── Single article hero ──────────────────────────────────────────── */
.lma-news-single-hero {
  position: relative;
  padding: 200px 0 64px;
  background: var(--ed-bg);
  overflow: hidden;
}
.lma-news-single-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lma-news-hero-bg);
  background-size: cover;
  background-position: center;
}
.lma-news-single-hero-inner { position: relative; z-index: 1; }
.lma-news-single-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ed-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.lma-news-single-meta span:not(:last-child)::after { content: '•'; margin-left: 16px; color: var(--ed-border-strong); }

/* ── Body / share row ─────────────────────────────────────────────── */
.lma-news-single-body { max-width: 780px; padding-top: 44px; padding-bottom: 100px; }
.lma-news-share {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--ed-border);
}
.lma-news-share-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-faint); margin-right: 6px; }
.lma-news-share-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  color: var(--ed-muted);
  cursor: pointer;
  transition: var(--ed-t);
}
.lma-news-share-btn .lma-ed-icon { width: 16px; height: 16px; }
.lma-news-share-btn:hover { border-color: var(--ed-gold-border); color: var(--ed-gold-light); background: var(--ed-gold-dim); transform: translateY(-2px); }
.lma-news-share-btn.is-copied { color: var(--ed-gold-light); border-color: var(--ed-gold-border); }

/* ── Single article title ──────────────────────────────────────────
   Deliberately NOT using the shared .lma-ed-h1 gold-gradient treatment
   here — that's right for one-per-page marketing headlines (News
   archive hero, About, Contact), but on an article page the title is
   what the reader is trying to actually read, so it gets a clean,
   solid, highly-legible color instead. Font-size uses a tighter
   clamp() with a lower floor than the shared h1, since the old shared
   clamp(2.6rem, 6vw, 5.2rem) never actually shrank below 41.6px on any
   phone width and grew to 83px on wide desktops — both too large for
   a headline that has to sit above a paragraph of body text. */
.lma-news-single-title {
  font-family: var(--ed-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ed-text);
  text-align: left;
  margin: 16px 0 0;
}

/* ── Article typography ───────────────────────────────────────────── */
.lma-news-article-content { font-size: 1.08rem; line-height: 1.85; color: var(--ed-muted); }
.lma-news-article-content > * + * { margin-top: 1.5em; }
.lma-news-article-content h2 {
  font-family: var(--ed-font-display); font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.7rem); color: var(--ed-text); line-height: 1.3; margin-top: 2em;
}
.lma-news-article-content h3 {
  font-family: var(--ed-font-display); font-weight: 700;
  font-size: clamp(1.12rem, 3.4vw, 1.32rem); color: var(--ed-text); line-height: 1.3; margin-top: 1.8em;
}
.lma-news-article-content p { margin: 0 0 1.5em; }
.lma-news-article-content p:last-child { margin-bottom: 0; }
.lma-news-article-content a { color: var(--ed-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.lma-news-article-content ul,
.lma-news-article-content ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.lma-news-article-content li { margin: 0.4em 0; }
.lma-news-article-content img,
.lma-news-article-content figure img {
  width: 100%; border-radius: var(--ed-r); display: block;
}
.lma-news-article-content figure { margin: 0 0 1.5em; }
.lma-news-article-content figcaption {
  font-size: 0.8rem; color: var(--ed-faint); text-align: center; margin-top: 10px;
}
.lma-news-article-content iframe,
.lma-news-article-content video { width: 100%; border-radius: var(--ed-r); margin: 0 0 1.5em; }
.lma-news-article-content table {
  width: 100%; border-collapse: collapse;
  font-size: 0.94rem;
  margin: 0 0 1.5em;
}
.lma-news-article-content table th,
.lma-news-article-content table td {
  padding: 12px 16px; border: 1px solid var(--ed-border); text-align: left;
}
.lma-news-article-content table th { color: var(--ed-text); background: var(--ed-bg-elevated); }

/* ── Quote block (premium gold accent) ────────────────────────────── */
.lma-news-article-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 8px 0 8px 34px;
  border-left: 3px solid var(--ed-gold);
  font-family: var(--ed-font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ed-gold-light);
}
.lma-news-article-content blockquote p { margin: 0; }
.lma-news-article-content blockquote::before {
  content: '“';
  position: absolute; left: -2px; top: -14px;
  font-family: var(--ed-font-display);
  font-size: 3rem; color: var(--ed-gold-border); line-height: 1;
}

/* ── Prev / Next ──────────────────────────────────────────────────── */
.lma-news-prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 60px; padding-top: 32px;
  border-top: 1px solid var(--ed-border);
}
.lma-news-prevnext-link { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--ed-r); border: 1px solid var(--ed-border); transition: var(--ed-t); }
.lma-news-prevnext-link:hover { border-color: var(--ed-gold-border); background: var(--ed-bg-elevated); }
.lma-news-prevnext-next { text-align: right; align-items: flex-end; }
.lma-news-prevnext-dir { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-gold); }
.lma-news-prevnext-title { font-family: var(--ed-font-display); font-size: 1rem; color: var(--ed-text); }
@media (max-width: 640px) { .lma-news-prevnext { grid-template-columns: 1fr; } .lma-news-prevnext-next { text-align: left; align-items: flex-start; } }

/* ── Related ──────────────────────────────────────────────────────── */
.lma-news-related { margin-top: 70px; }

/* ── Comments (modern dark) ───────────────────────────────────────── */
.lma-news-comments { margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--ed-border); color: var(--ed-muted); }
.lma-news-comments .comment-form input[type="text"],
.lma-news-comments .comment-form input[type="email"],
.lma-news-comments .comment-form input[type="url"],
.lma-news-comments .comment-form textarea {
  width: 100%; background: var(--ed-bg-elevated); border: 1px solid var(--ed-border);
  border-radius: var(--ed-r-sm); color: var(--ed-text); padding: 12px 14px; font-family: var(--ed-font-body);
  font-size: 1rem; /* >=16px: avoids the same iOS Safari zoom-on-focus issue fixed in the Entry Form */
}
.lma-news-comments .comment-form textarea { min-height: 120px; }
.lma-news-comments .comment-form-comment { margin-top: 1em; }
.lma-news-comments .comment-reply-title,
.lma-news-comments .comments-title { font-family: var(--ed-font-display); color: var(--ed-text); }
.lma-news-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.lma-news-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--ed-border); }
.lma-news-comments .comment-author .fn { color: var(--ed-text); font-weight: 700; font-style: normal; }
.lma-news-comments .comment-metadata { font-size: 0.76rem; color: var(--ed-faint); }
.lma-news-comments .comment-form-submit .submit,
.lma-news-comments input[type="submit"] {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .lma-news-single-hero { padding: 150px 0 50px; }
  .lma-news-hero { padding: 100px 0 60px; }
}
