/* assets/css/article.css — article page styles */

.article-wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 272px; border-left: 1px solid var(--bd); border-right: 1px solid var(--bd); }
.article-main { border-right: 1px solid var(--bd); min-width: 0; }
.article-sidebar { padding: 1.25rem; background: var(--bg2); }

.art-hero { width: 100%; aspect-ratio: 16/6; overflow: hidden; background: var(--bg3); position: relative; }
.art-hero img { width: 100%; height: 100%; object-fit: cover; }
.art-hero-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-family: 'Playfair Display', Georgia, serif; font-size: 5rem; font-weight: 900; color: var(--bd2); }

.art-hdr { padding: 1.75rem 2.25rem 1.25rem; }
.art-badges { display: flex; gap: .4rem; margin-bottom: .75rem; flex-wrap: wrap; }
.art-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; color: var(--tx); margin-bottom: .85rem; }
.art-meta { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid var(--bd); font-size: .72rem; color: var(--tx3); }
.art-meta strong { color: var(--tx); font-weight: 600; }
.art-author-link { color: var(--tx); text-decoration: none; }
.art-author-link:hover strong { color: var(--ac); }
.dot { color: var(--bd2); }

.art-ad-wrap { margin: 1.25rem 2.25rem; }
.art-body { padding: 1.25rem 2.25rem; }
.art-lede { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.08rem; color: var(--tx2); line-height: 1.75; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--bd); }
.art-content p { font-size: .97rem; line-height: 1.82; color: var(--tx); margin-bottom: 1.15rem; }
.art-content p:first-child { font-size: 1rem; color: var(--tx); }
[data-theme="light"] .art-content p { color: #111111; }
[data-theme="dark"]  .art-content p { color: #F0EDE8; }
.art-no-content { color: var(--tx3) !important; }
.art-no-content a { color: var(--ac); }
.art-content-blur { font-size: .95rem; line-height: 1.8; color: var(--tx2); opacity: .35; overflow: hidden; max-height: 120px; margin: 0 2.25rem; }

.video-section { margin-bottom: 1.25rem; }
.video-label { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); margin-bottom: .4rem; }
.video-wrap { aspect-ratio: 16/9; background: var(--bg3); border-radius: 5px; overflow: hidden; border: 1px solid var(--bd); }
.video-wrap iframe { width: 100%; height: 100%; border: none; }

.art-paywall { padding: 2rem 2.25rem; text-align: center; background: linear-gradient(to bottom, transparent, var(--bg2)); }
.art-paywall h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 900; margin-bottom: .6rem; color: var(--tx); }
.art-paywall p { font-size: .85rem; color: var(--tx2); line-height: 1.6; margin-bottom: 1.25rem; }
.paywall-plans { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }
.plan-btn { padding: .65rem 1.5rem; border-radius: 5px; font-weight: 700; font-size: .82rem; transition: all .15s; }
.plan-basic { background: var(--ac); color: #fff; }
.plan-basic:hover { background: var(--ac2); }
.plan-pro { background: var(--am); color: #fff; }
.plan-pro:hover { background: var(--am2); }
.art-paywall small { font-size: .7rem; color: var(--tx3); }

.art-share { padding: 1rem 2.25rem; border-top: 1px solid var(--bd); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share-lbl { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); margin-right: .25rem; }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 4px; font-size: .72rem; font-weight: 600; cursor: pointer; border: 1px solid var(--bd2); background: var(--bg3); color: var(--tx2); font-family: 'DM Sans', system-ui, sans-serif; transition: all .15s; white-space: nowrap; }
.share-btn:hover { color: #fff; border-color: transparent; }
.share-btn-x:hover    { background: #000; }
.share-btn-li:hover   { background: #0a66c2; }
.share-btn-fb:hover   { background: #1877f2; }
.share-btn-wa:hover   { background: #25d366; }
.share-btn-em:hover   { background: var(--ac); }
.share-btn-cp:hover   { background: var(--am); }

.art-tags { display: flex; gap: .4rem; flex-wrap: wrap; padding: 1rem 2.25rem; border-top: 1px solid var(--bd); }
.art-tag { font-size: .68rem; padding: .22rem .58rem; background: var(--tg); color: var(--tx2); border-radius: 3px; transition: all .15s; }
.art-tag:hover { background: var(--ac); color: #fff; }

.art-source { padding: .75rem 2.25rem; border-top: 1px solid var(--bd); font-size: .72rem; color: var(--tx3); }
.art-source a { color: var(--ac); }

.art-ai-badge { display: flex; align-items: center; gap: .5rem; padding: .55rem 2.25rem; border-top: 1px solid var(--bd); font-size: .68rem; color: var(--tx3); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); flex-shrink: 0; }

/* PANELS (editorial + AI) */
.edit-panel, .ai-panel { border-top: 1px solid var(--bd); background: var(--bg2); }
.ai-panel { border-top: 2px solid var(--ac); }
.panel-hdr { padding: .85rem 2.25rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.panel-title { font-family: 'Playfair Display', Georgia, serif; font-size: .85rem; font-weight: 700; color: var(--tx); display: flex; align-items: center; gap: .5rem; }
.edit-title::before { content: '✎'; color: var(--am); }
.ai-title::before   { content: '⬡'; color: var(--ac); }
.panel-toggle { font-size: .68rem; color: var(--tx3); }
.panel-body { padding: 0 2.25rem 1.5rem; display: none; }
.panel-body.open { display: block; }
.panel-desc { font-size: .75rem; color: var(--tx3); margin-bottom: 1rem; line-height: 1.55; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
.fg { display: flex; flex-direction: column; gap: .3rem; }
.fg.s2 { grid-column: span 2; }
.form-label { font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.edit-checkboxes { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cb-label { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--tx2); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cb-label input { width: 15px; height: 15px; accent-color: var(--am); }

.ai-model-row { margin-bottom: .85rem; }
.ai-last-used { font-size: .65rem; color: var(--tx3); margin-top: .35rem; }
.ai-last-used strong { color: var(--ac); }
.ai-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .75rem; }
.ai-status { font-size: .72rem; color: var(--tx3); margin-top: .5rem; display: none; }
.ai-status.show { display: block; }
.ai-status.ok  { color: var(--gn); }
.ai-status.err { color: var(--rd); }
.ai-preview { background: var(--bg3); border: 1px solid var(--bd); border-radius: 4px; padding: .85rem; margin-top: .75rem; font-size: .78rem; color: var(--tx2); line-height: 1.6; display: none; max-height: 200px; overflow-y: auto; }
.ai-preview.show { display: block; }

/* COMMENTS */
.comments-section { padding: 1.5rem 2.25rem; border-top: 1px solid var(--bd); }
.comments-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--tx); }
.no-comments { font-size: .8rem; color: var(--tx3); margin-bottom: 1rem; }
.comment { display: flex; gap: .85rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--bd); }
.comment:last-of-type { border-bottom: none; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: .8rem; color: var(--ac); flex-shrink: 0; border: 1px solid var(--bd); }
.comment-meta { font-size: .65rem; color: var(--tx3); margin-bottom: .4rem; }
.comment-meta strong { color: var(--tx); font-weight: 600; }
.comment-sub-badge { display: inline-block; font-size: .52rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .08rem .32rem; border-radius: 2px; background: rgba(13,115,119,.12); color: var(--ac); margin: 0 .25rem; }
.comment-body { font-size: .82rem; color: var(--tx2); line-height: 1.65; }
.comment-reply-btn { font-size: .65rem; color: var(--ac); cursor: pointer; margin-top: .35rem; display: inline-block; background: none; border: none; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
.reply-notice { font-size: .72rem; color: var(--ac); margin-bottom: .5rem; }
.comment-form { background: var(--bg3); border: 1px solid var(--bd); border-radius: 6px; padding: 1rem; margin-top: 1rem; }
.comment-form h3 { font-family: 'Playfair Display', Georgia, serif; font-size: .88rem; font-weight: 700; margin-bottom: .75rem; color: var(--tx); }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.comment-fields textarea { grid-column: span 2; resize: vertical; min-height: 80px; }
.comment-submit { background: var(--ac); color: #fff; border: none; border-radius: 4px; padding: .42rem 1rem; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: 'Inter', system-ui, sans-serif; transition: background .15s; }
.comment-submit:hover { background: var(--ac2); }
.comment-msg { font-size: .75rem; margin-top: .5rem; display: none; }

/* RELATED */
.related-section { padding: 1.5rem 2.25rem; border-top: 1px solid var(--bd); }
.related-title { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem; }
.rc { display: flex; gap: .65rem; cursor: pointer; padding: .45rem; border-radius: 4px; transition: background .15s; }
.rc:hover { background: var(--bg2); }
.rc-thumb { width: 68px; height: 68px; border-radius: 3px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.rc-no-thumb { width: 68px; height: 68px; border-radius: 3px; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: .7rem; color: var(--bd2); }
.rc-cat  { font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--am); margin-bottom: .2rem; }
.rc-title{ font-family: 'Playfair Display', Georgia, serif; font-size: .77rem; font-weight: 700; line-height: 1.22; color: var(--tx); }
.rc-meta { font-size: .6rem; color: var(--tx3); margin-top: .2rem; }

/* RESPONSIVE */
@media (max-width: 1100px) { .article-wrap { grid-template-columns: 1fr; } .article-sidebar { border-top: 1px solid var(--bd); display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; } }
@media (max-width: 700px) {
  .art-hdr, .art-body, .art-tags, .art-source, .art-share, .panel-hdr, .panel-body, .comments-section, .related-section, .art-paywall, .art-ai-badge, .art-ad-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  .art-title { font-size: 1.45rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .edit-grid, .ai-form-grid, .comment-fields { grid-template-columns: 1fr; }
  .fg.s2, .comment-fields textarea { grid-column: span 1; }
}

/* ── RICH CONTENT ELEMENTS ─────────────────────────────────────────── */

/* Pull Quote */
.art-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--ac);
  background: var(--bg2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--tx);
  quotes: none;
  position: relative;
}
.art-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -.25rem;
  left: .75rem;
  font-size: 4rem;
  color: var(--ac);
  opacity: .25;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Stat Callout */
.art-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  max-width: 360px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-top: 3px solid var(--ac);
  border-radius: 4px;
  text-align: center;
}
.art-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ac);
  line-height: 1;
  margin-bottom: .4rem;
}
.art-stat-lbl {
  font-size: .78rem;
  color: var(--tx2);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Section Break — bold newspaper heading */
.art-section-break {
  display: block;
  margin: 2.5rem 0 .75rem;
  padding: 0;
  border: none;
}
.art-section-break::before,
.art-section-break::after {
  display: none;
}
.art-section-break span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-transform: none;
  text-decoration: none;
  color: var(--tx);
  display: block;
  line-height: 1.2;
}

/* ── INLINE LINKS & QUOTES ─────────────────────────────────────────── */
.art-content .art-link {
  color: var(--ac);
  text-decoration: underline;
  text-decoration-color: var(--ac);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s;
}
.art-content .art-link:hover { color: var(--am); }

.art-inline-quote {
  display: block;
  margin: .5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--am);
  font-style: italic;
  color: var(--tx);
}
.art-cite {
  display: block;
  font-size: .78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--tx3);
  margin-top: .25rem;
  padding-left: .1rem;
}

/* ── FIGURES & REFERENCES ──────────────────────────────────────────── */
.art-figure {
  margin: 1.5rem 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--bd);
}
.art-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.art-figure figcaption {
  padding: .5rem .75rem;
  font-size: .72rem;
  color: var(--tx3);
  background: var(--bg2);
  border-top: 1px solid var(--bd);
}

/* Inline article images — full width, modern editorial */
.art-figure-inline {
  width: 100%;
  margin: 2rem 0;
  float: none;
  clear: both;
}
.art-figure-inline img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.art-figure-inline.art-img-right img,
.art-figure-inline.art-img-left img {
  height: 420px;
}
.art-figure-inline figcaption {
  font-size: .72rem;
  color: var(--tx3);
  padding: .5rem .25rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--bd);
  margin-bottom: .25rem;
}
.art-content::after { content: ''; display: table; clear: both; }

@media (max-width: 700px) {
  .art-figure-inline img { height: 220px; }
}

.art-references {
  margin: 2rem 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 5px;
}
.art-references h4 {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: .6rem;
}
.art-references ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.art-references li {
  font-size: .78rem;
}
.art-references .art-link {
  color: var(--ac);
}