/*
  Rimando Law Office — Article Page Styles
  Supplements style.css; load after it on every article page.
*/

/* ── Article Banner ──────────────────────────────────────────── */
.article-banner {
  padding: calc(var(--header-stack-h) + 3rem) 5% 3.5rem;
  background: linear-gradient(160deg, #0b1017 0%, #111a26 60%, #0c121b 100%);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.article-banner-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.45);
  padding: 0.22rem 0.7rem;
  font-weight: 700;
}

.article-banner-date {
  font-size: 0.72rem;
  color: rgba(244, 238, 226, 0.56);
  letter-spacing: 0.08em;
}

.article-banner-sep {
  color: rgba(201, 168, 76, 0.4);
  font-size: 0.6rem;
}

.article-banner-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 860px;
  margin: 0 auto 1rem;
  color: var(--ivory);
}

.article-banner-title span {
  color: var(--gold-light);
}

.article-banner-excerpt {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 0.96rem;
  color: var(--ivory-soft);
  line-height: 1.7;
}

/* ── Article Layout ──────────────────────────────────────────── */
.article-outer {
  padding: 4rem 5% 2rem;
  background: linear-gradient(180deg, rgba(17, 24, 35, 0.36) 0%, rgba(12, 18, 27, 0.24) 100%);
  border-top: 1px solid var(--line-soft);
}

.article-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Article Content Typography ─────────────────────────────── */
.article-content {
  font-size: 1rem;
  line-height: 1.82;
  color: rgba(244, 238, 226, 0.88);
}

.article-content > * + * {
  margin-top: 1.35rem;
}

.article-content h2 {
  font-family: var(--heading);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 600;
  color: var(--ivory);
  margin-top: 2.8rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-light));
}

.article-content h3 {
  font-family: var(--heading);
  font-size: clamp(1.15rem, 2.5vw, 1.42rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

.article-content p {
  color: rgba(244, 238, 226, 0.84);
  font-size: 0.975rem;
  line-height: 1.84;
}

.article-content strong {
  color: var(--ivory);
  font-weight: 700;
}

.article-content em {
  font-style: italic;
  color: rgba(244, 238, 226, 0.9);
}

.article-content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.35);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.article-content a:hover {
  color: var(--gold);
  text-decoration-color: rgba(201, 168, 76, 0.7);
}

/* Lists */
.article-content ul,
.article-content ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.975rem;
  color: rgba(244, 238, 226, 0.84);
  line-height: 1.78;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.28);
}

.article-content ol {
  counter-reset: article-ol;
}

.article-content ol li {
  counter-increment: article-ol;
}

.article-content ol li::before {
  content: counter(article-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.78;
}

/* Nested lists */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin-top: 0.45rem;
  padding-left: 0.6rem;
}

/* Blockquote */
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem 1.4rem 2rem;
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.9) 0%, rgba(18, 24, 34, 0.88) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  position: relative;
}

.article-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 1rem;
  font-family: var(--heading);
  font-size: 4rem;
  color: rgba(201, 168, 76, 0.18);
  line-height: 1;
  pointer-events: none;
}

.article-content blockquote p {
  font-family: var(--heading);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.65;
  margin: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Horizontal rule */
.article-content hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 2.5rem 0;
}

/* Citation/reference note */
.article-content .citation-note {
  font-size: 0.82rem;
  color: rgba(244, 238, 226, 0.52);
  font-style: italic;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  margin-top: 2.5rem;
}

/* Callout box */
.article-content .callout {
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.9) 0%, rgba(18, 24, 34, 0.88) 100%);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
}

.article-content .callout-title {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.article-content .callout p {
  font-size: 0.92rem;
  margin: 0;
}

/* ── Article Source Bar ──────────────────────────────────────── */
.article-source-bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-source-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.article-source-name {
  font-size: 0.86rem;
  color: rgba(244, 238, 226, 0.72);
}

.article-source-name a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.3);
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

.article-source-name a:hover {
  color: var(--gold);
}

/* ── Article Disclaimer ──────────────────────────────────────── */
.article-disclaimer {
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: rgba(11, 15, 20, 0.6);
  border: 1px solid var(--line-soft);
}

.article-disclaimer p {
  font-size: 0.76rem;
  color: rgba(244, 238, 226, 0.38);
  line-height: 1.65;
  margin: 0;
}

/* ── Related Articles Section ────────────────────────────────── */
.related-section {
  background: linear-gradient(180deg, rgba(19, 27, 39, 0.4) 0%, rgba(13, 19, 28, 0.28) 100%);
  border-top: 1px solid var(--line-soft);
}

.related-section .posts-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

/* ── Share / Nav strip ───────────────────────────────────────── */
.article-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color 0.25s ease, gap 0.25s ease;
}

.article-back-link::before {
  content: '←';
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.article-back-link:hover {
  color: var(--gold);
}

.article-back-link:hover::before {
  transform: translateX(-3px);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-share-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.44);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(244, 238, 226, 0.56);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.share-btn:hover {
  border-color: rgba(201, 168, 76, 0.5);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.07);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .related-section .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-outer {
    padding: 3rem 5% 1.5rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
    margin-top: 2.2rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .article-content blockquote {
    padding: 1.1rem 1rem 1.1rem 1.4rem;
    margin: 1.4rem 0;
  }

  .related-section .posts-grid {
    grid-template-columns: 1fr;
  }

  .article-nav-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
