/* Editorial article layout. Existing Peyda / OpenSans / Urdu fonts and theme toggle.
 * DESIGN_VARIANCE: 4; MOTION_INTENSITY: 2; VISUAL_DENSITY: 3.
 * Square media and open sections; round action targets and author portraits.
 * Local layer 2: reader popover. Global navigation and modal layers stay in theme.js.
 */
.eghbal-editorial {
	--editorial-paper: #fff;
	--editorial-ink: #222524;
	--editorial-muted: #636865;
	--editorial-line: #e3e6e4;
	--editorial-soft: #f5f7f6;
	--editorial-accent: #005744;
	background: var(--editorial-paper);
	color: var(--editorial-ink);
	padding-block: 48px 80px;
}
.dark .eghbal-editorial {
	--editorial-paper: #111815;
	--editorial-ink: #edf1ee;
	--editorial-muted: #aeb9b2;
	--editorial-line: #33413a;
	--editorial-soft: #1b2720;
	--editorial-accent: #80c9ac;
}
.eghbal-editorial-story { max-inline-size: 1136px; margin-inline: auto; padding-inline: 20px; }
.eghbal-editorial-header { max-inline-size: 960px; margin-inline: auto; }
.eghbal-editorial-category { display: inline-block; color: var(--editorial-accent); font-size: 14px; font-weight: 700; margin-block-end: 18px; }
.eghbal-editorial-category:hover { text-decoration: underline; text-underline-offset: 5px; }
.eghbal-editorial-title { margin: 0; color: var(--editorial-ink); font-size: clamp(28px, 3.5vw, 48px); line-height: 1.48; font-weight: 800; text-align: start; text-wrap: balance; overflow-wrap: anywhere; }
[dir="ltr"] .eghbal-editorial-title { line-height: 1.16; letter-spacing: -.035em; }
html[lang^="ur"] .eghbal-editorial-title { line-height: 1.9; }
.eghbal-editorial-deck { margin-block: 20px 0; max-inline-size: 880px; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.9; color: var(--editorial-muted); font-weight: 400; overflow-wrap: anywhere; }
.eghbal-editorial-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-block: 30px; font-size: 14px; }
.eghbal-editorial-authors { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.eghbal-editorial-authors:empty { display: none; }
.eghbal-editorial-author { display: inline-flex; align-items: center; gap: 12px; color: var(--editorial-ink); }
.eghbal-editorial-author:hover { color: var(--editorial-accent); }
.eghbal-editorial-avatar { inline-size: 44px; block-size: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.eghbal-editorial-dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--editorial-muted); }
.eghbal-editorial-dateline > * { unicode-bidi: isolate; }
.eghbal-editorial-dateline > :not(:first-child) { border-inline-start: 1px solid var(--editorial-line); padding-inline-start: 16px; }
.eghbal-editorial-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-block: 1px solid var(--editorial-line); padding-block: 10px; margin-block-end: 40px; }
.eghbal-editorial-actions { display: flex; align-items: center; gap: 6px; min-inline-size: 0; }
.eghbal-editorial .eghbal-editorial-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-inline-size: 44px; min-block-size: 44px; padding: 10px; border: 0; border-radius: 50%; color: var(--editorial-muted); background: transparent; box-shadow: none; cursor: pointer; font-size: 13px; white-space: nowrap; transition: color .15s, background-color .15s; }
.eghbal-editorial .eghbal-editorial-comment, .eghbal-editorial .eghbal-reader-settings summary { border-radius: 6px; }
.eghbal-editorial-action svg { inline-size: 21px; block-size: 21px; }
.eghbal-editorial .eghbal-editorial-action:hover,
.eghbal-editorial .eghbal-editorial-action[aria-pressed="true"],
.eghbal-editorial .eghbal-editorial-action[aria-expanded="true"],
.eghbal-reader-settings[open] summary { background: var(--editorial-soft); color: var(--editorial-accent); }
.eghbal-editorial-action[aria-pressed="true"] svg { fill: currentColor; }
.eghbal-editorial :is(a, button, summary, input, textarea):focus-visible { outline: 2px solid var(--editorial-accent); outline-offset: 4px; }
.eghbal-reader-settings { position: relative; }
.eghbal-reader-settings summary { list-style: none; }
.eghbal-reader-settings summary::-webkit-details-marker { display: none; }
.eghbal-reader-glyph { font-family: Georgia, serif; font-size: 21px; direction: ltr; }
.eghbal-reader-panel { position: absolute; z-index: 2; inset-inline-end: 0; inset-block-start: calc(100% + 10px); inline-size: 232px; padding: 16px; border: 1px solid var(--editorial-line); background: var(--editorial-paper); box-shadow: 0 8px 24px #17291f12; border-radius: 6px; }
.eghbal-reader-panel p { margin-block-end: 10px; font-weight: 700; font-size: 14px; }
.eghbal-reader-panel button { display: block; inline-size: 100%; min-block-size: 44px; padding: 8px; text-align: start; border-radius: 4px; font-size: 14px; }
.eghbal-reader-panel button:hover { color: var(--editorial-accent); background: var(--editorial-soft); }
.eghbal-editorial-cover { margin: 0; }
.eghbal-editorial-cover-image { display: block; inline-size: 100%; block-size: auto; max-block-size: 760px; object-fit: contain; margin-inline: auto; }
.eghbal-editorial-cover figcaption { margin-block-start: 12px; color: var(--editorial-muted); font-size: 13px; line-height: 1.8; text-align: start; }
.eghbal-editorial-body { max-inline-size: 740px; margin-inline: auto; padding-block-start: 44px; }
.eghbal-editorial #post-content { font-size: 21px; line-height: 2; color: var(--editorial-ink); font-weight: 400; overflow-wrap: anywhere; }
.eghbal-editorial #post-content p { text-align: start; margin-block: 0 1.4em; }
.eghbal-editorial #post-content :is(h1,h2,h3,h4,h5,h6) { color: var(--editorial-ink); line-height: 1.65; border: 0; padding: 0; }
.eghbal-editorial #post-content h2 { font-size: 1.55em; margin-block: 1.7em .7em; }
.eghbal-editorial #post-content h3 { font-size: 1.25em; }
.eghbal-editorial #post-content :is(strong,em) { color: inherit; }
.eghbal-editorial #post-content a { color: var(--editorial-accent); border: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.eghbal-editorial #post-content blockquote { border: 0; border-inline-start: 3px solid var(--editorial-accent); padding-block: 4px; padding-inline: 24px 0; border-radius: 0; background: transparent; font-style: normal; color: var(--editorial-ink); font-size: 1.15em; }
.eghbal-editorial #post-content blockquote p:last-child { margin-block-end: 0; }
.eghbal-editorial #post-content :is(ul,ol) { padding-inline: 1.4em 0; }
.eghbal-editorial #post-content li::marker { color: var(--editorial-accent); }
.eghbal-editorial #post-content img { border-radius: 0; box-shadow: none; }
.eghbal-editorial #post-content :is(iframe,video) { max-inline-size: 100%; }
.eghbal-editorial #post-content iframe { inline-size: 100%; }
.eghbal-editorial #post-content pre { max-inline-size: 100%; background: var(--editorial-soft); color: var(--editorial-ink); border-radius: 4px; text-align: start; }
.eghbal-editorial #post-content code { color: var(--editorial-ink); background: var(--editorial-soft); unicode-bidi: isolate; }
.eghbal-editorial #post-content table { display: block; max-inline-size: 100%; overflow-x: auto; }
.eghbal-editorial #post-content :is(th,td) { text-align: start; border-color: var(--editorial-line); }
.eghbal-editorial #post-content :is(th,tr:nth-child(even)) { color: var(--editorial-ink); background: var(--editorial-soft); }
.eghbal-editorial #post-content figcaption { color: var(--editorial-muted); font-size: .7em; font-style: normal; }
.eghbal-editorial-pages { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 24px; }
.eghbal-editorial-section { border-block-start: 1px solid var(--editorial-line); padding-block: 32px; margin-block-start: 32px; }
.eghbal-editorial-section h2 { color: var(--editorial-ink); font-size: 20px; }
#primary.eghbal-editorial .eghbal-editorial-section time { color: var(--editorial-muted); }
.eghbal-editorial-author-bio { padding-block: 12px; }
.eghbal-editorial-author-bio a { color: var(--editorial-accent); }
.eghbal-editorial-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.eghbal-editorial-related-item img { display: block; inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-block-end: 16px; }
.eghbal-editorial-related-item h3 { color: var(--editorial-ink); font-size: 19px; font-weight: 700; line-height: 1.7; margin-block-start: 6px; }
.eghbal-editorial-related-item:hover h3 { color: var(--editorial-accent); }
.eghbal-editorial-related-category { color: var(--editorial-muted); font-size: 12px; }
.eghbal-editorial #eghbal-comments { scroll-margin-block-start: 110px; }
.eghbal-editorial-comments #eghbal-comments { margin-block-start: 0; }
.eghbal-editorial-comments :is(div,article)[class*="rounded-"] { border-radius: 4px; box-shadow: none; backdrop-filter: none; background: var(--editorial-paper); border-color: var(--editorial-line); }
.eghbal-editorial-comments span.bg-brandRed { display: none; }
.eghbal-editorial-comments :is(input,textarea)::placeholder { color: var(--editorial-muted); }
.eghbal-editorial-comments :is(h2,input,textarea) { color: var(--editorial-ink); }
.eghbal-editorial-share :is(a,button,input):focus-visible { outline: 2px solid #005744; outline-offset: 3px; }
.dark .eghbal-editorial-share :is(a,button,input):focus-visible { outline-color: #80c9ac; }
.eghbal-editorial-action:disabled { opacity: .5; cursor: wait; }
.eghbal-editorial .eghbal-article-audio-shell { padding: 20px; margin-block-end: 32px; background: var(--editorial-soft); border: 1px solid var(--editorial-line); border-radius: 4px; box-shadow: none; }
.eghbal-editorial-summary { margin-block-end: 32px; padding: 24px; border: 1px solid var(--editorial-line); background: var(--editorial-soft); border-radius: 4px; }
.eghbal-editorial-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 16px; font-weight: 700; }
.eghbal-editorial-summary .prose { color: var(--editorial-ink); font-size: 18px; font-weight: 400; }
.eghbal-editorial-summary button { min-block-size: 44px; color: var(--editorial-accent); padding-inline: 10px; }
.eghbal-editorial-summary [role="status"] { color: var(--editorial-muted); padding-block: 16px; }
.eghbal-editorial-summary [role="alert"] { color: var(--editorial-ink); padding-block: 16px; }
@media (max-width: 767px) {
	.eghbal-editorial { padding-block: 28px 48px; }
	.eghbal-editorial-title { font-size: 30px; line-height: 1.55; }
	.eghbal-editorial-byline { align-items: flex-start; flex-direction: column; gap: 14px; margin-block: 24px; }
	.eghbal-editorial-deck { font-size: 18px; line-height: 1.85; margin-block-start: 14px; }
	.eghbal-editorial-toolbar { margin-block-end: 28px; }
	.eghbal-reader-label { display: none; }
	.eghbal-editorial-body { padding-block-start: 32px; }
	.eghbal-editorial #post-content { font-size: 19px; line-height: 1.95; }
	.eghbal-editorial-related { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
	.eghbal-editorial-story { padding-inline: 16px; }
	.eghbal-editorial-title { font-size: 28px; }
	.eghbal-editorial-actions { gap: 0; }
	.eghbal-editorial-comment span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (prefers-reduced-motion: reduce) {
	.eghbal-editorial *, .eghbal-editorial *::before, .eghbal-editorial *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	body > header, body > footer, #masthead, #colophon, .eghbal-editorial-toolbar, .eghbal-editorial-section, .eghbal-editorial-summary, .eghbal-article-audio-shell, #eghbal-share-modal { display: none !important; }
	.eghbal-editorial { --editorial-paper: white; --editorial-ink: #222; --editorial-muted: #555; padding: 0; }
	.eghbal-editorial-story, .eghbal-editorial-body { max-inline-size: none; }
	.eghbal-editorial-title { font-size: 28pt; }
	.eghbal-editorial #post-content { font-size: 12pt; }
	.eghbal-editorial-cover-image { max-block-size: 100mm; }
}
