﻿/* Light editorial article theme, shared with the journal index. */
body { background: #fff; }
.article-layout {
  --article-ink: #0f172a;
  --article-muted: #596579;
  --article-line: #e2e8f0;
  --article-accent: #6d28d9;
  --article-lavender: #f3efff;
  --article-blue: #edf5ff;
  --article-mint: #edf8f3;
  max-width: 1180px;
  color: var(--article-ink);
  padding-bottom: 4rem !important;
}
.article-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: #6d28d9; z-index: 1050; }
.article-breadcrumb-wrap { margin-top: 1.5rem; }
.breadcrumb-custom { margin: 0; padding: .5rem 0; font-size: .82rem; background: transparent; }
.breadcrumb-custom a { color: #6d28d9; }
.article-hero-card { padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid #e7def8; border-radius: 8px; background: var(--article-lavender); }
.article-hero-card h1 { color: var(--article-ink); font-size: clamp(2rem, 4.3vw, 3.25rem); line-height: 1.12; letter-spacing: -.04em; text-wrap: pretty; overflow-wrap: anywhere; }
.article-eyebrow { display: inline-block; margin-bottom: .85rem; color: var(--article-accent); font-size: .73rem; font-weight: 700; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.article-meta { padding: 0 !important; margin: 1.5rem 0 0 !important; color: var(--article-muted); font-size: .8rem; }
.article-meta .text-muted { color: var(--article-muted) !important; }
.article-meta .badge { padding: .35rem .6rem; background: #fff !important; color: var(--article-accent); font-weight: 500; }
.reading-time { display: inline-flex; align-items: center; padding: .4rem .65rem; border: 1px solid #cce5da; border-radius: 4px; background: var(--article-mint); color: #24634b; white-space: nowrap; font-size: .78rem; }
.article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: 6px; }
.article-reading { background: #fff; }
.article-reading > .card-body { max-width: 70ch; margin-inline: auto; padding: 1.5rem .5rem 0; }
.enhanced-content { color: #273449; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.05rem, 1.6vw, 1.15rem); line-height: 1.85; overflow-wrap: anywhere; }
.enhanced-content > p:first-child { color: #435168; font-size: 1.12em; line-height: 1.75; }
.enhanced-content p { margin-bottom: 1.4em; text-align: left; }
.enhanced-content h1, .enhanced-content h2, .enhanced-content h3, .enhanced-content h4, .enhanced-content h5, .enhanced-content h6 { scroll-margin-top: 6rem; margin: 1.8em 0 .7em; color: var(--article-ink); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-wrap: pretty; }
.enhanced-content h2 { padding-bottom: .55rem; border-bottom: 1px solid var(--article-line); font-size: 1.6em; }
.enhanced-content h3 { font-size: 1.3em; }
.enhanced-content a { color: var(--article-accent); text-decoration-color: #b9a8f3; text-underline-offset: .2em; }
.enhanced-content ul, .enhanced-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.enhanced-content li { margin-bottom: .65em; padding-left: .25em; }
.enhanced-content li::marker { color: var(--article-accent); }
.enhanced-content blockquote { margin: 2em 0; padding: 1.25em 1.5em; border-left: 3px solid #af94e8; border-radius: 0 5px 5px 0; background: var(--article-lavender); color: #493666; }
.enhanced-content blockquote > :last-child { margin-bottom: 0; }
.enhanced-content code { padding: .15em .35em; border: 1px solid #e7def8; border-radius: 3px; background: #f8f5ff; color: #8c2858; font-size: .88em; }
.enhanced-content pre { padding: 1.25rem; overflow-x: auto; border-radius: 5px; background: #182235; color: #e2e8f0; }
.enhanced-content pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.enhanced-content img { display: block; max-width: 100%; height: auto; margin: 1.75em auto; border-radius: 5px; }
.enhanced-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.75em 0; font-size: .9em; }
.enhanced-content th, .enhanced-content td { padding: .75em 1em; text-align: left; border: 1px solid var(--article-line); }
.enhanced-content th { background: var(--article-blue); color: #305781; }
.article-dates { font-size: .8rem; line-height: 1.7; }
.article-layout .text-muted { color: var(--article-muted) !important; }
.article-layout .text-primary { color: var(--article-accent) !important; }
.article-layout .bg-primary, .article-layout .btn-primary { background-color: var(--article-accent) !important; border-color: var(--article-accent) !important; }
.social-share { background: var(--article-blue); border-color: #dce9f7 !important; }
.social-share h5 { font-size: 1rem; }
.social-share .btn { font-size: .85rem; }
.article-author { background: var(--article-mint); border-color: #d5e9df !important; }
.article-author .bg-primary { background-color: #d6ebdf !important; color: #24634b !important; }
.discussion-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--article-line); }
.discussion-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.discussion-heading h2 { margin: 0 0 .5rem; color: var(--article-ink); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.discussion-heading p { margin: 0; color: var(--article-muted); line-height: 1.65; }
.comment-count { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .5rem .75rem; border-radius: 4px; background: var(--article-lavender); color: var(--article-accent); font-weight: 600; }
.comment-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.comment-card { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--article-line); background: #fff; }
.comment-avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--article-lavender); color: var(--article-accent); font-weight: 700; }
.comment-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.comment-meta h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; }
.comment-meta time, .comment-number { color: var(--article-muted); font-size: .75rem; }
.comment-main > p { margin: .75rem 0 0; color: #435168; line-height: 1.75; overflow-wrap: anywhere; }
.comment-empty { margin-bottom: 1.5rem; padding: 2rem 1rem; border-radius: 6px; background: var(--article-mint); text-align: center; }
.comment-empty > span { color: #24634b; font-size: 1.5rem; }
.comment-empty h3 { margin: .75rem 0 .4rem; font-size: 1.1rem; }
.comment-empty p { margin: 0; color: var(--article-muted); }
.comment-compose { overflow: hidden; border: 1px solid var(--article-line); border-radius: 6px; background: #fff; }
.compose-intro { display: flex; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid #e7def8; background: var(--article-lavender); }
.compose-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 5px; background: #fff; color: var(--article-accent); }
.compose-intro h3 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 600; }
.compose-intro p { margin: 0; color: var(--article-muted); font-size: .82rem; line-height: 1.65; }
.comment-form { padding: 1.25rem; }
.form-field label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; }
.form-field label span { margin-left: .2rem; color: #b42349; }
.comment-form .form-control { min-height: 44px; padding: .65rem .85rem; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: var(--article-ink); }
.comment-form textarea.form-control { min-height: 10rem; resize: vertical; line-height: 1.65; }
.comment-form .form-control:focus { border-color: var(--article-accent); box-shadow: 0 0 0 3px #ede5fc; }
.form-field small { display: block; margin-top: .4rem; color: var(--article-muted); font-size: .75rem; }
.field-error { margin-top: .35rem; color: #b42349; font-size: .8rem; }
.comment-errors { display: flex; gap: .8rem; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid #efc1cb; border-radius: 5px; background: #fff2f5; color: #9d2142; }
.comment-errors p { margin: .25rem 0 0; font-size: .85rem; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.compose-footer p { margin: 0; color: var(--article-muted); font-size: .8rem; }
.compose-footer p i { margin-right: .35rem; color: #24634b; }
.comment-submit { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; flex: none; min-height: 44px; padding: .7rem 1rem; border: 0; border-radius: 5px; background: var(--article-accent); color: #fff; font-weight: 600; }
.related-articles { padding-top: 2rem; border-top: 1px solid var(--article-line); }
.related-articles > h2 { margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.related-story { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding-bottom: 1.25rem; border-bottom: 1px solid var(--article-line); }
.related-story > a { display: block; width: 100%; margin-bottom: 1rem; }
.related-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; }
.related-category { padding: .3rem .5rem; border-radius: 4px; background: var(--article-lavender); color: var(--article-accent); font-size: .7rem; font-weight: 600; }
.related-articles .row > :nth-child(2) .related-category { background: var(--article-blue); color: #305781; }
.related-articles .row > :nth-child(3) .related-category { background: var(--article-mint); color: #24634b; }
.related-story h3 { margin: .75rem 0; font-size: 1.15rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.related-story h3 a { color: var(--article-ink); text-decoration: none; }
.related-story p { flex: 1; color: var(--article-muted); font-size: .85rem; line-height: 1.7; overflow-wrap: anywhere; }
.related-story time { color: var(--article-muted); font-size: .75rem; }
.article-navigation { flex-wrap: wrap; gap: 1rem; }
.article-navigation .btn { min-height: 44px; font-size: .85rem; }
.article-layout a:focus-visible, .article-layout button:focus-visible, .article-breadcrumb-wrap a:focus-visible { outline: 3px solid #6d28d9; outline-offset: 3px; }
@media (max-width: 767px) {
  .article-breadcrumb-wrap { margin-top: 1rem; }
  .breadcrumb-item.active { display: none; }
  .article-meta .col-md-4 { text-align: left !important; }
  .article-reading > .card-body { padding-inline: 0; }
  .enhanced-content h2 { font-size: 1.4em; }
  .enhanced-content blockquote { padding: 1rem; }
  .discussion-heading { gap: .75rem; }
  .compose-footer { align-items: stretch; flex-direction: column; }
  .article-navigation > div { flex-wrap: wrap; }
}
@media print {
  .article-progress, .article-breadcrumb-wrap, .social-share, .article-author, .discussion-section, .related-articles, .article-navigation, nav, body > footer { display: none !important; }
  .article-layout { max-width: none; padding: 0 !important; }
  .article-layout article > div { width: 100%; }
  .article-hero-card { padding: 0; border: 0; background: #fff; }
  .article-hero-card h1 { font-size: 24pt; }
  .article-reading > .card-body { max-width: none; padding: 0; }
  .enhanced-content { font-size: 12pt; line-height: 1.6; }
  .enhanced-content h2, .enhanced-content h3 { break-after: avoid; }
  .enhanced-content img { break-inside: avoid; }
}
