/* Shared styles for Legal Guide articles */
.article-main { background: #fbf8f2; }
.article-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #faf6ef 0%, #f4ebdf 60%, #e5eee9 100%);
  border-bottom: 1px solid var(--line);
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(var(--terracotta), var(--gold), var(--teal));
}
.article-hero-inner { max-width: 940px; padding: 64px 0 58px; }
.breadcrumbs { margin: 0 0 24px; font-size: .9rem; color: #64737b; }
.breadcrumbs a { color: var(--ink-2); font-weight: 700; }
.article-hero h1 {
  font-size: clamp(2.55rem, 5.4vw, 4.55rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 0 0 22px;
}
.article-dek { max-width: 820px; margin: 0; font-size: 1.2rem; color: #3f535e; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 26px;
  color: #61717a;
  font-size: .88rem;
}
.article-meta strong { color: var(--ink); }
.article-shell { width: min(calc(100% - 40px), var(--content, 900px)); margin: 0 auto; padding: 58px 0 84px; }
.article-content { font-size: 1.07rem; line-height: 1.82; color: #31444f; }
.article-content > p:first-child { font-size: 1.12rem; }
.article-content h2 { font-size: clamp(1.7rem, 3.3vw, 2.25rem); margin: 48px 0 15px; line-height: 1.15; }
.article-content h3 { font-size: 1.35rem; margin: 34px 0 10px; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 8px 0 24px; padding-left: 25px; }
.article-content li { margin: 6px 0; }
.article-content blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f4eee4, #faf6ef);
  border: 1px solid #e3d8c8;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm, 6px);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}
.article-content .question-line { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: 1.17rem; }

/* Standard related-guide callout used throughout all articles */
.article-callout,
.related-block {
  margin: 30px 0;
  padding: 24px 26px;
  background: linear-gradient(135deg, #e9f0f1, #eef2e8);
  border: 1px solid #d3dedc;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 22px rgba(23,50,77,.04);
}
.article-callout p:last-child,
.related-block > *:last-child { margin-bottom: 0; }
.article-callout a,
.related-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-callout a:hover,
.related-block a:hover { text-decoration-thickness: 2px; }
.article-content .related-block h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--charcoal);
  font-weight: 700;
}
.related-grid { display: block; }
.related-link,
.related-coming {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.6;
  margin: 4px 0;
}
.related-link { font-weight: 400; }
.related-link:hover { border-color: transparent; }
.related-coming { color: #6c777c; }
.related-coming small {
  display: inline;
  margin: 0 0 0 5px;
  color: #8a918f;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 800;
}

.author-note {
  margin-top: 52px;
  padding: 26px 28px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-top: 4px solid var(--terracotta);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 22px rgba(23,50,77,.04);
}
.author-note h2 { margin: 0 0 7px; font-size: 1.35rem; }
.author-note p { margin: 0; color: #53636b; }
.article-disclaimer {
  margin-top: 26px;
  padding: 20px 22px;
  background: #f5f0e7;
  border: 1px solid #e3d8c8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm, 6px);
  color: #5a666c;
  font-size: .92rem;
}
.article-disclaimer p { margin: 0; }
.article-back { margin-top: 34px; font-weight: 700; }
.source-note { margin-top: 30px; font-size: .86rem; color: #6a777d; }
.source-note a { text-decoration: underline; text-underline-offset: 2px; }
.article-language-switch { margin-top:18px; display:flex; gap:8px; align-items:center; font-size:.9rem; font-weight:800; }
.article-language-switch a,.article-language-switch span { display:inline-block; padding:7px 11px; border:1px solid var(--line); background:rgba(255,255,255,.65); }
.article-language-switch span { background:var(--ink); color:#fff; border-color:var(--ink); }
.article-table-wrap { overflow-x:auto; margin:26px 0 32px; }
.article-content table { width:100%; border-collapse:collapse; background:#fffdf9; font-size:.96rem; line-height:1.55; }
.article-content th,.article-content td { padding:13px 15px; border:1px solid #d8d1c5; text-align:left; vertical-align:top; }
.article-content th { background:#eaf0ee; color:var(--ink); }
.article-content .series-nav { margin-top:42px; }
@media (max-width: 720px) {
  .article-hero-inner { padding: 48px 0 44px; }
  .article-hero h1 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
  .article-shell { padding-top: 42px; }
  .article-content { font-size: 1rem; }
  .article-callout, .related-block { padding: 21px 22px; }
}


/* T08: Sinhala article readability on mobile and enlarged text */
html[lang="si"] .article-hero h1 { line-height: 1.24; letter-spacing: 0; overflow-wrap: anywhere; }
html[lang="si"] .article-dek { line-height: 1.75; }
html[lang="si"] .article-content { line-height: 1.9; }
html[lang="si"] .article-content h2 { line-height: 1.32; letter-spacing: 0; overflow-wrap: anywhere; }
html[lang="si"] .article-content h3 { line-height: 1.38; letter-spacing: 0; overflow-wrap: anywhere; }
.breadcrumbs, .article-language-switch, .source-note { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .article-shell { width: min(calc(100% - 24px), 900px); }
  .article-callout, .related-block, .author-note, .article-disclaimer { overflow-wrap: anywhere; }
}


/* C08: long-form reading refinements */
.article-content > h2:first-of-type { margin-top: 36px; }
.article-content h2 + p,
.article-content h3 + p { margin-top: 0; }
.article-content strong { color: #223b4c; }
.article-content li::marker { color: var(--terracotta); }
.article-language-switch { flex-wrap: wrap; }
.article-language-switch a,
.article-language-switch span { border-radius: 999px; }
.article-back { padding-top: 8px; border-top: 1px solid var(--line); }
.article-table-wrap {
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 22px rgba(23,50,77,.04);
}
@media (max-width: 720px) {
  .article-content h2 { margin-top: 38px; }
  .article-content blockquote { padding: 18px 20px; }
  .author-note { margin-top: 42px; }
}

/* Shared article feature images. */
.article-feature-image{width:min(calc(100% - 40px),900px);margin:38px auto 0}.article-feature-image img{display:block;width:100%;height:auto;max-height:480px;aspect-ratio:3/2;object-fit:cover;border-radius:8px;background:#e7f0f2}@media(max-width:700px){.article-feature-image{margin-top:24px}.article-feature-image img{max-height:320px}}
