/* Article page layer. Kept separate so the post layout can be tuned without
   disturbing the shared navigation, homepage, or account pages. */
body:has(#article-reading-body) { background: #fff !important; }
.dark:has(#article-reading-body) { background: #0e1924 !important; }
html.dark body:has(#article-reading-body),
body.dark:has(#article-reading-body) { background: #0e1924 !important; }
body:has(#article-reading-body) > header.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: #101b2d !important;
    box-shadow: 0 3px 12px rgba(10,25,40,.12);
}
body:has(#article-reading-body) > main {
    width: min(calc(100% - 48px), 1240px) !important;
    max-width: 1240px !important;
    margin: 0 auto;
    padding: 50px 0 68px !important;
    font-family: 'Revathi', 'Anek Malayalam', sans-serif !important;
}
body:has(#article-reading-body) > main .article-page-title,
body:has(#article-reading-body) > main .article-author-name,
body:has(#article-reading-body) > main .article-author-name * {
    font-family: 'Anek Malayalam', sans-serif !important;
}
body:has(#article-reading-body) > main #article-reading-body p,
body:has(#article-reading-body) > main #article-reading-body li,
body:has(#article-reading-body) > main #article-reading-body blockquote,
body:has(#article-reading-body) > main #article-reading-body td,
body:has(#article-reading-body) > main #article-reading-body th {
    font-family: 'Revathi', 'Anek Malayalam', sans-serif !important;
}
body:has(#article-reading-body) > main #article-reading-body h1,
body:has(#article-reading-body) > main #article-reading-body h2,
body:has(#article-reading-body) > main #article-reading-body h3,
body:has(#article-reading-body) > main #article-reading-body h4,
body:has(#article-reading-body) > main #article-reading-body h5,
body:has(#article-reading-body) > main #article-reading-body h6 {
    font-family: 'Anek Malayalam', sans-serif !important;
    font-variation-settings: 'wdth' 87.5;
}
body:has(#article-reading-body) > main > .article-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px !important;
}
.article-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 5px;
    color: #fff;
    background: var(--article-category-color, #2596be);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.article-premium-chip, .article-access-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}
.article-premium-chip {
    position: relative;
    justify-content: center;
    width: 140px;
    height: 34px;
    padding: 0;
    color: #171717;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}
.article-premium-chip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.article-premium-chip > span { position: relative; z-index: 1; transform: translateX(10px); }
.article-premium-icon { display: block; width: 48px; height: 48px; object-fit: contain; }
.article-access-chip { color: #526273; background: #edf2f6; }
.article-reading-time { color: #8994a1; font-size: 15px; }
body:has(#article-reading-body) > main > h1 {
    max-width: 1200px;
    margin: 0 0 24px !important;
    color: #172638 !important;
    font-size: clamp(32px, 4.2vw, 54px) !important;
    line-height: 1.42 !important;
    letter-spacing: -.025em !important;
}
html.dark body:has(#article-reading-body) > main > h1,
body.dark:has(#article-reading-body) > main > h1 { color: #f1f6fa !important; }
body:has(#article-reading-body) > main > div.flex.flex-wrap.items-center.justify-between {
    align-items: center;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
}
.article-byline { min-height: 82px; }
.article-byline > a, .article-byline > div { text-decoration: none; }
.article-author-avatar { width: 64px !important; height: 64px !important; }
.article-author-fallback { font-size: 24px !important; }
.article-author-name { color: #138ab1 !important; font-size: 22px !important; }
.article-byline .text-\[10\.5px\] { color: #8994a1 !important; font-size: 16px !important; }
.article-share-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.article-share-actions a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #080a0d; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.article-share-actions a:hover { background: #2596be; transform: translateY(-2px); }
.article-share-actions svg { display: block; width: 17px; height: 17px; fill: currentColor; }
.article-lead {
    margin: 0 0 22px;
    padding: 14px 8px 16px;
    border-top: 1px solid #cbd2d8;
    border-bottom: 1px solid #cbd2d8;
    color: #657584;
    font-size: clamp(17px, 1.8vw, 21px);
    font-style: italic;
    line-height: 1.55;
}
.article-lead p { margin: 0; }
body:has(#article-reading-body) > main > div.rounded-3xl.overflow-hidden {
    width: min(100%, 1040px);
    margin: 20px auto 38px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(17,41,60,.11) !important;
}
body:has(#article-reading-body) > main > div.aspect-video { margin: 18px auto 26px !important; border-radius: 12px !important; }
#article-reading-body {
    width: min(100%, 900px);
    max-width: 900px;
    margin: 0 auto;
    color: #273541 !important;
    font-size: 17px !important;
    line-height: 1.9 !important;
}
#article-reading-body p { margin: 0 0 1.05em !important; line-height: 1.9 !important; }
#article-reading-body h2, #article-reading-body h3 { margin: 1.45em 0 .55em !important; color: #172638; }
#article-reading-body img { max-width: 100%; height: auto; margin: 1.4rem auto; border-radius: 10px; }
#article-reading-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2596be;
    border-radius: 0 12px 12px 0;
    background: #f0f9fc;
    color: #273541;
}
#article-reading-body figure { margin: 1.4rem auto; }
#article-reading-body table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .9em; }
#article-reading-body th, #article-reading-body td { padding: .55rem .7rem; border: 1px solid #dce5ea; text-align: left; }
.dark #article-reading-body, .dark #article-reading-body * { color: inherit; }
html.dark #article-reading-body, body.dark #article-reading-body { color: #d4e0e8 !important; }
html.dark #article-reading-body *, body.dark #article-reading-body * { color: #d4e0e8; }
html.dark #article-reading-body a, body.dark #article-reading-body a { color: #70cce8 !important; }
.dark #article-reading-body blockquote { background: #162b38; }
.article-tags-section {
    width: min(100%, 900px);
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.article-tags-section { margin-top: 30px !important; }
.article-tag-chip {
    color: #167fa3 !important;
    border: 1px solid rgba(37,150,190,.25);
    background: rgba(37,150,190,.08);
    text-decoration: none;
}
.article-tag-chip:hover { color: #fff !important; border-color: #2596be; background: #2596be; }
.article-related { width: min(100%, 1120px); max-width: 1120px; margin: 48px auto 0 !important; padding-top: 30px !important; }
.article-related-mark { background: #2596be; }
.article-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px !important; }
.article-related-grid > a { border-radius: 16px !important; box-shadow: 0 4px 18px rgba(16,55,79,.07) !important; }
.article-related-grid > a > div:first-child { aspect-ratio: 16 / 10; }
.article-related-grid > a > div:last-child { padding: 16px !important; }
.article-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-related .home-section-label,
.article-related .home-editorial-title,
.article-related .home-editorial-card h4,
.article-related-heading h2 {
    font-family: 'Anek Malayalam', sans-serif !important;
    font-variation-settings: 'wdth' 87.5;
}
.article-related .home-editorial-card p,
.article-related .home-editorial-meta,
.article-related .home-read-link {
    font-family: 'Revathi', 'Anek Malayalam', sans-serif !important;
}
.article-related .home-editorial-card p { margin: 6px 0 2px; }

@media (max-width: 700px) {
    body:has(#article-reading-body) > header.site-header .site-header-inner { width: calc(100% - 24px); }
    body:has(#article-reading-body) > main { width: calc(100% - 30px) !important; padding: 28px 0 48px !important; }
    body:has(#article-reading-body) > main > h1 { font-size: clamp(26px, 7vw, 36px) !important; line-height: 1.45 !important; }
    .article-top-meta { gap: 8px !important; }
    .article-category-chip, .article-premium-chip, .article-access-chip { font-size: 12px; }
    .article-reading-time { font-size: 13px; }
    .article-byline { min-height: 66px; padding-bottom: 14px !important; }
    .article-author-avatar { width: 48px !important; height: 48px !important; }
    .article-author-fallback { font-size: 19px !important; }
    .article-author-name { font-size: 18px !important; }
    .article-byline .text-\[10\.5px\] { font-size: 13px !important; }
    .article-share-actions { gap: 6px; }
    .article-share-actions a { width: 30px; height: 30px; }
    .article-lead { padding: 12px 2px; font-size: 16px; }
    body:has(#article-reading-body) > main > div.rounded-3xl.overflow-hidden { width: 100%; margin-bottom: 28px !important; }
    .article-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
    #article-reading-body { font-size: 16px !important; line-height: 1.88 !important; }
    #article-reading-body p { line-height: 1.88 !important; margin-bottom: 1em !important; }
}
@media (max-width: 430px) {
    .article-related-grid { grid-template-columns: 1fr; }
}
