/* ==========================================================================
   Article content styles — shared by the public article page AND the admin
   editor (TinyMCE content_css), so what editors see is what readers get.
   ========================================================================== */
.article-body {
    --brand: #E63B1F; --brand-dark: #8B1E1A; --saffron: #F28C1A; --ink: #141114; --muted: #7a737a; --line: #ece7e9; --soft: #f7f4f5;
    font-family: Mukta, "Noto Sans Gujarati", Inter, system-ui, sans-serif;
    font-size: 19px; line-height: 1.85; color: #1d191c; word-wrap: break-word;
}
.article-body [lang=gu], .article-body .font-gujarati { font-family: "Noto Sans Gujarati", Mukta, sans-serif; }
.article-body .font-inter { font-family: Inter, system-ui, sans-serif; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5 { font-weight: 800; margin: 1.4em 0 .5em; line-height: 1.3; color: var(--ink); }
.article-body h2 { font-size: 27px; } .article-body h3 { font-size: 23px; } .article-body h4 { font-size: 20px; } .article-body h5 { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.15em; }
.article-body li { margin-bottom: .35em; }
.article-body hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.article-body mark { background: #fff1a8; padding: 0 .15em; border-radius: 3px; }
.article-body code { background: var(--soft); padding: .1em .35em; border-radius: 5px; font-size: .88em; }
.article-body pre { background: #1b1214; color: #f3e9ec; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article-body iframe, .article-body video { width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.article-body iframe { aspect-ratio: 16/9; height: auto; }
.article-body audio { width: 100%; margin: .5em 0 1.15em; }

/* Quotes */
.article-body blockquote { border-left: 4px solid var(--brand); background: var(--soft); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 21px; font-weight: 600; margin: 1.4em 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote.pull-quote { border: 0; background: none; text-align: center; font-size: 26px; font-weight: 800; color: var(--brand-dark); padding: 10px 30px; position: relative; }
.article-body blockquote.pull-quote::before { content: "\201C"; display: block; font-size: 70px; line-height: .6; color: var(--saffron); font-family: Georgia, serif; }
.article-body blockquote.pull-quote cite, .article-body blockquote cite { display: block; font-size: 15px; font-weight: 600; color: var(--muted); font-style: normal; margin-top: 8px; }

/* Figures / images with captions */
.article-body figure { margin: 1.4em 0; }
.article-body figure.image { display: table; }
.article-body figure img { display: block; margin: 0 auto; }
.article-body figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; line-height: 1.5; caption-side: bottom; }
.article-body .align-left, .article-body figure.align-left { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.article-body .align-right, .article-body figure.align-right { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.article-body .align-center, .article-body figure.align-center { margin-left: auto; margin-right: auto; display: table; }
@media (max-width: 575.98px) { .article-body .align-left, .article-body .align-right { float: none; max-width: 100%; margin: 1em 0; } }

/* Tables */
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; display: table; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th, .article-body thead td { background: var(--soft); font-weight: 700; }
.article-body table.table-striped tbody tr:nth-child(odd) { background: #fbf9fa; }
.article-body .table-wrap { overflow-x: auto; }

/* Callout boxes (Note, Important, Highlight, Fact check, Editor's note) */
.article-body .ss-note { border-radius: 14px; padding: 16px 20px 16px 56px; margin: 1.5em 0; position: relative; font-size: 17px; line-height: 1.7; background: #eef4fe; border: 1px solid #d5e3fb; }
.article-body .ss-note::before { position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: #2a62c9; content: "i"; font-family: Georgia, serif; font-style: italic; }
.article-body .ss-note .ss-note-title { display: block; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; color: #1f4fa8; }
.article-body .ss-note p:last-child { margin-bottom: 0; }
.article-body .ss-note.important { background: #fff4ec; border-color: #ffd9bf; }
.article-body .ss-note.important::before { background: var(--saffron); content: "!"; font-family: inherit; font-style: normal; }
.article-body .ss-note.important .ss-note-title { color: #b45309; }
.article-body .ss-note.highlight { background: #fffbe6; border-color: #f6e3a1; }
.article-body .ss-note.highlight::before { background: #c9971c; content: "\2605"; font-family: inherit; font-style: normal; }
.article-body .ss-note.highlight .ss-note-title { color: #8a6400; }
.article-body .ss-note.factcheck { background: #ecf8f1; border-color: #c7ebd6; }
.article-body .ss-note.factcheck::before { background: #1f9a5a; content: "\2713"; font-family: inherit; font-style: normal; }
.article-body .ss-note.factcheck .ss-note-title { color: #18794a; }
.article-body .ss-note.editor { background: #fdeeea; border-color: #f7cfc4; }
.article-body .ss-note.editor::before { background: var(--brand); content: "\270E"; font-family: inherit; font-style: normal; }
.article-body .ss-note.editor .ss-note-title { color: var(--brand-dark); }

/* Key points box */
.article-body .ss-keypoints { background: var(--soft); border-radius: 14px; padding: 18px 22px; margin: 1.5em 0; }
.article-body .ss-keypoints .ss-note-title { display: block; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; margin-bottom: 6px; }
.article-body .ss-keypoints ul { margin: 0; }

/* Gallery */
.article-body .ss-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.5em 0; }
.article-body .ss-gallery figure { margin: 0; }
.article-body .ss-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.article-body .ss-gallery figcaption { font-size: 12.5px; padding-top: 4px; }

/* Also read / related story card */
.article-body .ss-related { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 14px; padding: 12px; margin: 1.5em 0; background: #fff; text-decoration: none !important; color: inherit; box-shadow: 0 6px 18px -12px rgba(0,0,0,.25); }
.article-body .ss-related img { width: 120px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; margin: 0; }
.article-body .ss-related .lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-family: Inter, sans-serif; }
.article-body .ss-related strong { display: block; font-size: 17px; line-height: 1.4; color: var(--ink); }
.article-body a.ss-related:hover strong { color: var(--brand); }

/* Embeds & files */
.article-body .ss-embed { margin: 1.5em 0; }
.article-body .ss-embed .ss-embed-link { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; text-decoration: none; }
.article-body .ss-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 1.4em 0; background: var(--soft); text-decoration: none !important; color: var(--ink); font-size: 16px; }
.article-body .ss-file::before { content: "PDF"; flex-shrink: 0; background: var(--brand); color: #fff; font: 700 12px Inter, sans-serif; padding: 6px 8px; border-radius: 6px; }
.article-body .ss-file[data-ext]::before { content: attr(data-ext); }
.article-body .ss-pdf { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: auto; }

/* Accordion (details) */
.article-body details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 1em 0; }
.article-body details summary { font-weight: 700; cursor: pointer; }

/* Ad slot rendered inside the story */
.article-body .ad-slot { margin: 28px auto; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); clear: both; text-align: center; }
.article-body .ad-slot img, .article-body .ad-slot video { margin: 0 auto; border-radius: 8px; }
.article-body .ad-slot a { text-decoration: none; }
.article-body::after { content: ""; display: table; clear: both; }
