@font-face {
    font-family: "Reporter Nafees Web Naskh";
    src: url("../fonts/Nafees-Web-Naskh.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutrals - Slate-based for premium modern feel */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #94a3b8;
    
    --surface-bg: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-active: #e2e8f0;
    --surface-muted: #f8fafc;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing Scale */
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
    color: var(--text-primary);
    background: #f7f5ef;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.public-site {
    background: #f7f5ef;
}

html[lang="ur"] body,
html[lang="ur"] .urdu-text {
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", Arial, Verdana, "Noto Naskh Arabic", sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.85;
}

html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] h6,
html[lang="ur"] .headline,
html[lang="ur"] .headline-sm,
html[lang="ur"] .news-card h3,
html[lang="ur"] .side-list h3,
html[lang="ur"] .trending-featured-card h3,
html[lang="ur"] .trending-thumb-row h3 {
    line-height: 1.45 !important;
}

html[lang="ur"] .top-strip {
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", Arial, Verdana, "Noto Naskh Arabic", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--primary, #b21f2d);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--primary, #b21f2d);
    outline-offset: 2px;
}

.site-shell {
    min-height: 100vh;
    max-width: 1260px;
    margin: 0 auto;
    background: #fff;
}

.top-strip {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #15171a;
    color: #fff;
    font-size: 13.5px;
    direction: ltr;
}

.container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.top-strip-row,
.brand-row,
.nav-row,
.story-meta,
.admin-topbar,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.top-strip-row {
    padding: 7px 0;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.top-links,
.top-languages {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    white-space: nowrap;
}

.top-links a:hover {
    color: #fff;
}

.top-links a:not(:last-child)::after {
    content: "-";
    margin-inline-start: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.top-date {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.brand-row {
    padding: 18px 0 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    max-width: 280px;
    width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-container {
    position: relative;
    display: inline-flex;
    --clock-left: 37.83%;
    --clock-top: 28.38%;
    --clock-size: 11.32%;
}

.logo-clock-canvas {
    position: absolute;
    left: var(--clock-left);
    top: var(--clock-top);
    width: var(--clock-size);
    aspect-ratio: 1 / 1;
    pointer-events: none;
}

.brand-title {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary, #b21f2d);
}

.tagline {
    margin-top: 6px;
    color: #53606a;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-top: 3px solid var(--primary, #b21f2d);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.nav-row {
    min-height: 46px;
    overflow: visible;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.nav-item[hidden] {
    display: none !important;
}

.nav-link,
.nav-row a {
    display: inline-flex;
    align-items: center;
    padding: 13px 18px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-row a:hover,
.nav-row a.active,
.nav-item.is-open > .nav-link {
    color: var(--primary, #b21f2d);
}

.nav-dropdown-toggle,
.public-menu-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-dropdown-toggle {
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: -8px;
}

.nav-dropdown-toggle svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 30;
    min-width: 190px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2) 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.nav-dropdown a,
.nav-dropdown .nav-link {
    display: flex;
    width: calc(100% - 16px);
    margin: 2px 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 0;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown a:hover,
.nav-dropdown .nav-link:hover {
    background: var(--surface-hover);
    color: var(--primary, #b21f2d);
}

.nav-category:hover > .nav-dropdown,
.nav-category:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more {
    margin-inline-start: 0;
}

.nav-more-button {
    font-weight: 900;
}

.nav-more .nav-dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.nav-more-list .nav-more-group {
    border-bottom: 1px solid #eee9df;
}

.nav-more-list .nav-more-group:last-child {
    border-bottom: 0;
}

.nav-more-list .nav-more-child {
    padding-inline-start: 22px;
    color: #53606a;
}

.public-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-weight: 800;
}

.public-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.language-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d8d4ca;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.top-strip .pill {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
}

.top-strip .pill:hover {
    color: #fff;
}

.top-language-switcher {
    position: relative;
}

.top-language-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
}

.top-language-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.92;
}

.top-language-button:hover,
.top-language-switcher.is-open .top-language-button {
    color: #fff;
}

.top-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 40;
    min-width: 180px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid #2d3339;
    border-radius: 10px;
    background: #1a1d21;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.top-language-menu[hidden] {
    display: none !important;
}

.top-language-option {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
}

.top-language-option small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
}

.top-language-option:hover,
.top-language-option.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.breaking {
    margin: 18px 0;
    border-inline-start: 5px solid var(--primary, #b21f2d);
    background: #fff;
}

.breaking-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
}

.breaking-label {
    background: var(--primary, #b21f2d);
    color: #fff;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ticker {
    display: flex;
    gap: 18px;
    overflow: hidden;
    white-space: nowrap;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
    margin-top: var(--spacing-5);
}

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 20px;
}

.lead-card,
.news-card,
.panel,
.story-body,
.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.panel {
    padding: var(--spacing-4);
}

.featured-image-block {
    width: calc(100% + 2 * clamp(16px, 3vw, 28px));
    margin-inline: calc(-1 * clamp(16px, 3vw, 28px));
    margin-block: var(--spacing-5);
    max-width: none;
    border-radius: 0;
    display: block;
    cursor: zoom-in;
}

.lead-card {
    overflow: hidden;
}

.lead-card .copy,
.news-card .copy {
    padding: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.news-card .copy {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.eyebrow {
    display: inline-flex;
    color: var(--primary, #b21f2d);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.headline {
    margin: 8px 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
}

.news-card h3,
.side-list h3 {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.28;
}

.headline-sm {
    margin: 8px 0;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.18;
}

.muted {
    color: #555c63;
    font-size: 13px;
}

.section-title {
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ded9cf;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.widget-head h2 {
    margin: 0;
    font-size: 18px;
}

.widget-head a {
    color: var(--primary, #b21f2d);
    font-size: 12px;
    font-weight: 900;
}

.trending-widget {
    padding: 14px;
}

.author-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 22px 0;
    padding: 18px;
}

.author-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.author-avatar {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary, #b21f2d), var(--accent, #113d66));
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.featured-live-board,
.home-latest-board,
.home-section-block {
    margin-top: 18px;
}

.featured-live-board {
    --featured-board-height: clamp(260px, 24vw, 340px);
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 46px;
    align-items: start;
    padding: var(--spacing-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    direction: ltr;
}

html[dir="rtl"] .featured-live-board > * {
    direction: rtl;
}

.featured-live-copy {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: var(--featured-board-height);
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    padding-inline-end: 4px;
}

.featured-live-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--primary, #b21f2d);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-live-label::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #b21f2d);
}

.featured-live-list {
    display: grid;
    align-content: start;
    min-height: 0;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #b8b2a7 transparent;
    direction: rtl;
    padding-inline-start: 8px;
}

.featured-live-list::-webkit-scrollbar {
    width: 6px;
}

.featured-live-list::-webkit-scrollbar-track {
    background: transparent;
}

.featured-live-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b8b2a7;
}

.featured-live-list a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #d8d4ca;
    font-size: 15px;
    font-weight: 700;
    direction: ltr;
}

.featured-live-list a span {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    direction: rtl;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

html[dir="rtl"] .featured-live-list a {
    padding: 8px 12px;
}

.featured-live-list small {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #4d4d4d;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
}

.featured-live-media {
    display: grid;
    height: var(--featured-board-height);
    min-height: 0;
    min-width: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d9d4c9;
}

.featured-live-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-live-media img,
.featured-live-media .placeholder-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-live-media .placeholder-media {
    display: grid;
    place-items: center;
}

.important-news-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.important-news-header {
    margin: 24px 0 14px;
}

.important-news-header h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
}

.important-news-header p {
    margin: 0;
}

.important-news-loader,
.important-news-empty {
    margin-top: 16px;
    padding: 16px;
    text-align: center;
    color: #69747d;
    background: #fff;
    border: 1px solid #e2ded4;
    border-radius: 8px;
}

.home-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    direction: ltr;
    padding: 5px 10px;
    border-top: 2px solid #15171a;
    border-bottom: 1px solid #d8d4ca;
    background: #fbfaf7;
}

.home-section-block .home-layout {
    margin-top: 10px;
}

.home-section-bar h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: right;
}

html[dir="rtl"] .home-section-bar h2 {
    direction: rtl;
}

.home-section-bar a {
    color: #15171a;
    font-size: 12px;
}

.home-latest-grid {
    --latest-area-height: clamp(350px, 28vw, 420px);
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr) minmax(360px, 1.25fr);
    grid-template-areas: "headline mini lead";
    gap: 16px;
    align-items: stretch;
    padding-top: 12px;
}

html[dir="rtl"] .home-latest-grid {
    grid-template-columns: minmax(360px, 1.25fr) minmax(280px, 1fr) minmax(220px, 0.85fr);
    grid-template-areas: "lead mini headline";
}

.latest-headline-list {
    grid-area: headline;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: var(--latest-area-height);
    overflow: hidden;
}

.latest-headline-list article {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    min-height: 0;
}

html[dir="rtl"] .latest-headline-list article {
    direction: rtl;
}

.latest-headline-list article:last-child {
    border-bottom: none;
}

.latest-list-thumb {
    flex-shrink: 0;
}

.latest-list-thumb img,
.latest-list-thumb .placeholder-media {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
    display: block;
}

.latest-list-thumb .placeholder-media {
    display: grid;
    place-items: center;
    padding: 6px;
    color: #a0aec0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.latest-list-copy {
    flex-grow: 1;
    min-width: 0;
}

.latest-headline-list h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a202c;
}

.latest-headline-list h3 a {
    color: #1a202c;
    text-decoration: none;
}

.latest-headline-list h3 a:hover {
    color: var(--primary, #b21f2d);
}

.latest-mini-grid {
    grid-area: mini;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: var(--latest-area-height);
    overflow: hidden;
}

.latest-mini-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.latest-mini-card a {
    display: block;
    width: 100%;
    height: 95px;
    overflow: hidden;
    border-radius: 6px;
    background: #e2e8f0;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.latest-mini-card img,
.latest-mini-card .placeholder-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-mini-card .placeholder-media {
    display: grid;
    place-items: center;
    padding: 8px;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.latest-mini-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.latest-mini-card h3 a {
    color: #2d3748;
    text-decoration: none;
}

.latest-mini-card h3 a:hover {
    color: var(--primary, #b21f2d);
}

.latest-lead-card {
    grid-area: lead;
    display: block;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.latest-lead-media {
    position: relative;
    display: block;
    height: var(--latest-area-height);
    overflow: hidden;
    background: #e2e8f0;
}

.latest-lead-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.latest-lead-card img,
.latest-lead-card .placeholder-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-lead-title {
    position: absolute;
    z-index: 2;
    inset-inline: 20px;
    bottom: 40px;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    line-height: 1.3;
    text-align: start;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html[dir="rtl"] .latest-lead-title {
    text-align: right;
}

.latest-lead-meta {
    position: absolute;
    z-index: 2;
    inset-inline: 20px;
    bottom: 14px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    max-width: calc(100% - 40px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.4;
}

/* Utility line clamps */
.news-title-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-content-grid {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 22px;
    direction: ltr;
}

.home-content-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 312px;
    border-left: 2px dashed #b9b4aa;
}

html[dir="rtl"] .home-content-grid > * {
    direction: rtl;
}

.home-section-feed {
    min-width: 0;
}

.home-sidebar {
    align-self: stretch;
    align-content: start;
    grid-auto-rows: max-content;
    padding-right: 14px;
    border: 0;
}

.home-content-grid .panel,
.home-content-grid .lead-card,
.home-content-grid .news-card {
    border: 0;
    border-radius: 0;
}

.home-content-grid .eyebrow {
    display: none;
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #d8d4ca;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.card-media .post-meta {
    position: absolute;
    z-index: 1;
    inset-inline-start: 10px;
    bottom: 8px;
    max-width: calc(100% - 20px);
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 10px;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.78);
}

.home-section-block .lead-card .copy,
.home-section-block .news-card .copy {
    padding: 10px 12px 12px;
}

.home-section-block .lead-card .copy h3,
.home-section-block .news-card .copy h3 {
    margin-top: 0;
}

.home-section-block .lead-card .copy p,
.home-section-block .news-card .copy p {
    margin-top: 4px;
}

.epaper-widget {
    padding: 12px;
}

.epaper-widget h2 {
    margin: 0 0 10px;
    font-size: 17px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    justify-content: flex-start;
    margin-top: auto;
    color: #5c646b;
    font-family: Arial, Verdana, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    direction: ltr;
    text-align: left;
}

.post-meta span:not(:last-child)::after {
    content: "";
}

.trending-widget {
    position: sticky;
    top: 12px;
    z-index: 2;
    padding: 12px;
}

.trending-widget .widget-head {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #c9c3b8;
}

.trending-widget .widget-head::before {
    content: "";
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 18px;
    height: 3px;
    background: var(--primary, #b21f2d);
}

.trending-widget .widget-head::after {
    content: "";
    position: absolute;
    bottom: -2px;
    inset-inline-end: 0;
    width: 78px;
    height: 3px;
    background: #15171a;
}

.trending-featured-card {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #c9c3b8;
}

.trending-featured-media,
.trending-thumb-media {
    display: block;
    overflow: hidden;
    background: #d8d4ca;
}

.trending-featured-media img,
.trending-featured-media .placeholder-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.trending-featured-media .placeholder-media {
    display: grid;
    place-items: center;
    padding: 10px;
    overflow: hidden;
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.trending-featured-card h3,
.trending-thumb-row h3 {
    margin: 0;
    line-height: 1.35;
}

.trending-featured-card h3 {
    font-size: 18px;
}

.trending-thumb-list {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    counter-reset: trending-counter;
}

.trending-thumb-row {
    counter-increment: trending-counter;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 92px;
    gap: 14px;
    align-items: center;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trending-thumb-row::before {
    content: counter(trending-counter, decimal-leading-zero);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary, #b21f2d);
    opacity: 0.15;
    line-height: 1;
    font-family: system-ui, -apple-system, sans-serif;
    padding-inline-end: 2px;
    order: 0;
}

.trending-thumb-copy {
    min-width: 0;
    order: 1;
}

.trending-thumb-media {
    order: 2;
}

.trending-thumb-media img,
.trending-thumb-media .placeholder-media {
    width: 92px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.trending-thumb-media .placeholder-media {
    display: grid;
    place-items: center;
    padding: 4px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.12;
    text-align: center;
    overflow-wrap: anywhere;
}

.trending-thumb-row h3 {
    font-size: 14px;
}

.home-layout {
    display: grid;
    gap: 16px;
}

.home-layout-grid {
    display: grid;
    gap: 16px;
}

.home-layout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-layout-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.home-layout-feature-columns {
    display: grid;
    gap: 12px;
}

.feature-column-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 14px;
    align-items: stretch;
    background: #fff;
}

.feature-column-lead .card-media,
.feature-column-lead img,
.feature-column-lead .placeholder-media {
    height: 100%;
    min-height: 245px;
}

.feature-column-lead .copy {
    display: grid;
    align-content: start;
    padding: 6px 8px 8px;
}

.feature-column-lead .headline-sm {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.15vw, 30px);
    line-height: 1.22;
}

.feature-column-lead .muted {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
}

.feature-column-mid-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-column-mid-grid .news-card .card-media,
.feature-column-mid-grid .news-card img,
.feature-column-mid-grid .news-card .placeholder-media {
    aspect-ratio: 16 / 10;
}

.feature-column-mid-grid .news-card .copy {
    padding: 8px 4px 2px;
}

.feature-column-mid-grid .news-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.home-layout-feature-columns .placeholder-media {
    padding: 8px;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.feature-column-lead .placeholder-media {
    font-size: clamp(18px, 2vw, 24px);
}

.home-layout-feature-columns .card-media::after {
    display: none;
}

.home-layout-feature-columns .post-meta {
    margin-top: 8px;
    color: #858b91;
    text-shadow: none;
}

.feature-column-small-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-column-small-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-content-grid .feature-column-small-card {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.feature-column-small-card .card-media,
.feature-column-small-card img,
.feature-column-small-card .placeholder-media {
    height: 78px;
    aspect-ratio: auto;
    border-radius: 0;
}

.feature-column-small-card h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.feature-column-small-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
}

.home-layout-stacked-briefs {
    display: grid;
    gap: 14px;
}

.stacked-brief-lead {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
    direction: ltr;
    background: transparent;
    border: 0;
}

.stacked-brief-lead > * {
    direction: rtl;
}

.stacked-brief-lead .card-media,
.stacked-brief-lead img,
.stacked-brief-lead .placeholder-media {
    height: 100%;
    min-height: 245px;
}

.stacked-brief-lead .card-media::after,
.stacked-brief-small-card .card-media::after {
    display: none;
}

.stacked-brief-lead .copy {
    display: grid;
    align-content: start;
    padding: 6px 6px 8px;
}

.stacked-brief-lead .headline-sm {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.25;
}

.stacked-brief-lead .muted {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
}

.stacked-brief-lead .post-meta {
    margin-top: 10px;
    color: #858b91;
    text-shadow: none;
}

.stacked-brief-small-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stacked-brief-small-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.stacked-brief-small-card .card-media,
.stacked-brief-small-card img,
.stacked-brief-small-card .placeholder-media {
    height: 78px;
    aspect-ratio: auto;
    border-radius: 0;
}

.stacked-brief-small-card .placeholder-media {
    padding: 6px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.stacked-brief-small-card h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.brief-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.brief-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-card,
.mosaic-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2ded4;
    border-radius: 8px;
    background: #fff;
}

.brief-card {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
}

.brief-card img,
.mosaic-card img {
    width: 100%;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    background: #d8d4ca;
}

.brief-card h4,
.mosaic-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.brief-card > div,
.mosaic-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brief-card p,
.mosaic-card p {
    margin: 0;
    font-size: 13px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mosaic-card {
    grid-template-columns: minmax(0, 1.2fr) 92px;
    align-items: center;
}

.mosaic-media {
    display: block;
}

.news-card,
.lead-card {
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.lead-card:hover {
    border-color: var(--border-focus);
}

.news-card .card-media,
.lead-card .card-media,
.latest-headline-list article .latest-list-thumb,
.latest-mini-grid article a,
.latest-lead-card .latest-lead-media,
.trending-featured-media,
.trending-thumb-media {
    display: block;
    overflow: hidden;
    position: relative;
}

.news-card img,
.lead-card img,
.latest-headline-list article .latest-list-thumb img,
.latest-mini-grid article a img,
.latest-lead-card .latest-lead-media img,
.trending-featured-media img,
.trending-thumb-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #d8d4ca;
    transition: transform var(--transition-normal);
}

.news-card:hover .card-media img,
.lead-card:hover .card-media img,
.latest-headline-list article:hover .latest-list-thumb img,
.latest-mini-grid article:hover a img,
.latest-lead-card:hover .latest-lead-media img,
.trending-featured-card:hover .trending-featured-media img,
.trending-thumb-row:hover .trending-thumb-media img {
    transform: scale(1.03);
}

.placeholder-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: #d9d4c9;
    color: #fff;
    font-weight: 900;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.15;
    text-align: center;
    padding: 16px;
    overflow-wrap: anywhere;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list article {
    padding: 14px;
}

.sidebar {
    display: grid;
    gap: 16px;
}

.sidebar-search {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    width: 100%;
}

.sidebar-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d8d4ca;
    border-radius: 6px;
    padding: 9px 10px;
    min-height: 38px;
    outline: 0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-search button {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid var(--primary, #b21f2d);
    border-radius: 6px;
    padding: 9px 12px;
    min-height: 38px;
    background: var(--primary, #b21f2d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ad-box {
    display: grid;
    place-items: center;
    min-height: 90px;
    padding: 12px;
    border: 1px dashed #b6afa2;
    background: #fff;
    color: #69747d;
    text-align: center;
}

.ad-box-news {
    display: block;
    padding: 0;
    background: transparent;
    text-align: initial;
}

.sponsored-card {
    border-color: rgba(178, 31, 45, 0.28);
}

.sponsored-card .copy {
    padding: 12px;
}

.sponsored-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary, #b21f2d);
    font-weight: 800;
}

.sponsored-detail .story-lead {
    color: #48525a;
    font-size: 18px;
    line-height: 1.7;
}

.story-body {
    padding: clamp(16px, 3vw, 28px);
}

.story-body h1 {
    margin: 8px 0 14px;
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.18;
}

.story-content {
    font-size: 19px;
    line-height: 1.95;
}

.story-content p {
    margin: 0 0 18px;
}

.detail-sidebar {
    align-content: start;
}

.detail-sidebar-panel,
.detail-sidebar .trending-widget,
.detail-sidebar .sidebar-search,
.detail-sidebar .ad-box {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.detail-sidebar-panel,
.detail-sidebar .trending-widget {
    padding: 0 0 18px;
}

.detail-sidebar-panel::after,
.detail-sidebar .trending-widget::after {
    content: "";
    display: block;
    margin-top: 18px;
    border-bottom: 1px dashed #bdb6aa;
}

.detail-sidebar .widget-head {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 0;
}

.detail-sidebar .widget-head::before,
.detail-sidebar .widget-head::after {
    display: none;
}

.detail-sidebar .side-list article,
.detail-sidebar .trending-thumb-row {
    padding-inline: 0;
}

.detail-sidebar .ad-box,
.detail-sidebar .sidebar-search {
    padding-inline: 0;
}

.story-spacer {
    height: 12px;
}

.story-inline-image,
.story-inline-video {
    margin: 22px 0;
}

.story-inline-article-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: center;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    background: #f8fbfd;
    color: inherit;
    text-decoration: none;
}

.story-inline-article-copy {
    display: grid;
    gap: 10px;
}

.story-inline-article-copy h4 {
    margin: 0;
    font-size: 24px;
    line-height: 1.5;
}

.story-inline-article-copy p {
    margin: 0;
    color: #516070;
}

.story-inline-article-meta {
    color: #73808c;
    font-size: 13px;
    font-weight: 700;
}

.story-inline-article-media {
    min-height: 170px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9eef3;
}

.story-inline-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.story-inline-article-media-empty {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #173b67, #a1172e);
}

.story-inline-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 8px;
    background: #eef2f5;
}

.story-inline-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #111820;
}

/* Inline Multi-Image Layouts - Fluid justified gallery grid */
.inline-images-layout {
    margin: 24px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-images-layout::after {
    content: "";
    flex-grow: 999999;
    height: 240px;
}

.inline-images-layout > img,
.inline-images-layout > .preview-inline-image-wrapper {
    height: 240px;
    flex: 1 1 auto;
    min-width: 100px;
    width: auto;
}

.inline-images-layout img {
    object-fit: cover;
    object-position: center 20%; /* Keep faces from being cropped */
    border-radius: 8px;
    display: block;
    transition: transform var(--transition-normal, 250ms ease), filter 0.3s ease;
    cursor: zoom-in;
}

.inline-images-layout img:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

/* Live Preview Inline Image Delete Button */
.preview-inline-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-inline-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0; /* Let wrapper's overflow: hidden shape the corners */
}

.preview-inline-image-delete {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 0 8px 0 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.15);
}

.preview-inline-image-delete:hover {
    background: #ef4444;
}

@media (max-width: 600px) {
    .inline-images-layout::after {
        height: 180px;
    }
    .inline-images-layout > img,
    .inline-images-layout > .preview-inline-image-wrapper {
        height: 180px;
    }
}

/* Lightbox Layout & Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast, 150ms ease);
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 40px;
    width: 56px;
    height: 56px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast, 150ms ease);
    user-select: none;
    z-index: 100000;
}

.lightbox-prev {
    left: 28px;
}

.lightbox-next {
    right: 28px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 12px;
    }
    .lightbox-next {
        right: 12px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
}

.reader-feedback {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid #e2ded4;
    border-radius: 8px;
    background: #fbfaf7;
}

.reader-feedback-copy {
    display: grid;
    gap: 6px;
}

.reader-feedback-copy p {
    margin: 0;
}

.reader-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reaction-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(17, 61, 102, 0.08);
    font-size: 12px;
}

.reaction-button.active-like {
    border-color: #1f8a42;
    background: #e9f7ee;
    color: #176836;
}

.reaction-button.active-dislike {
    border-color: #d73b3e;
    background: #fff0f0;
    color: #a12629;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.share-row a,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-row a:hover,
.button:hover {
    border-color: var(--border-focus);
    background: var(--surface-hover);
    color: var(--text-primary);
}

.button.primary {
    border-color: var(--primary, #b21f2d);
    background: var(--primary, #b21f2d);
    color: #fff;
    box-shadow: 0 2px 6px rgba(178, 31, 45, 0.15);
}

.button.primary:hover {
    background: var(--primary, #b21f2d);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(178, 31, 45, 0.25);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.epaper-viewer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.epaper-main {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--surface, #fff);
    padding: 16px;
    transition: box-shadow var(--transition-normal, 250ms ease);
}

.epaper-main:hover {
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.epaper-main img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 4px);
    display: block;
}

.epaper-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
}

.epaper-thumbs button {
    border: 3px solid transparent;
    background: var(--surface, #fff);
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-md, 8px);
    width: 80px;
    height: 112px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    transition: all var(--transition-normal, 250ms ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epaper-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm, 4px);
    transition: transform var(--transition-normal, 250ms ease);
}

.epaper-thumbs button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.epaper-thumbs button:hover img {
    transform: scale(1.06);
}

.epaper-thumbs button.active {
    border-color: var(--primary, #b21f2d);
    box-shadow: 0 0 0 3px rgba(178, 31, 45, 0.15), var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transform: translateY(-4px);
}

.site-footer {
    margin-top: 40px;
    width: 100%;
    padding: 34px 0 26px;
    background: #15171a;
    color: #fff;
}

.site-footer-shell {
    display: grid;
    gap: 22px;
}

.site-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.site-footer-brand {
    display: grid;
    gap: 8px;
    max-width: 540px;
}

.site-footer-brand strong {
    font-size: 18px;
    font-weight: 900;
}

.site-footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.8;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    max-width: 520px;
}

.site-footer-nav a,
.site-footer-meta a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer-nav a:hover,
.site-footer-meta a:hover {
    color: #fff;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.7;
}

.site-footer-powered {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

html[dir="rtl"] .site-footer-top,
html[dir="rtl"] .site-footer-bottom {
    direction: rtl;
}

html[dir="rtl"] .site-footer-nav {
    justify-content: flex-start;
}

html[dir="rtl"] .site-footer-meta {
    justify-content: flex-start;
}

.static-page-shell {
    display: grid;
    gap: 22px;
    padding: 22px;
}

.static-page-head {
    display: grid;
    gap: 8px;
}

.static-page-copy {
    font-size: 16px;
    line-height: 1.8;
    color: #33404a;
}

.contact-office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-office-card,
.contact-form-panel {
    padding: 18px;
}

.contact-office-card h2,
.contact-form-panel h2 {
    margin: 6px 0 10px;
    font-size: 22px;
}

.contact-message-area {
    min-height: 180px;
}

.admin-body {
    background: var(--surface-bg);
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px 1fr;
    transition: grid-template-columns var(--transition-normal);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: var(--spacing-5) var(--spacing-4);
    box-shadow: var(--shadow-lg), inset -1px 0 0 rgba(255, 255, 255, 0.05);
    z-index: 20;
}

.admin-sidebar-head {
    margin-bottom: var(--spacing-5);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-2) var(--spacing-3);
}

.admin-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary, #b21f2d), var(--accent, #113d66));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    flex: 0 0 44px;
    box-shadow: 0 4px 12px rgba(178, 31, 45, 0.25);
}

.admin-brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-brand-copy strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.admin-brand-copy small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-nav {
    display: grid;
    gap: var(--spacing-2);
}

.admin-sidebar-credit {
    margin-top: auto;
    display: grid;
    gap: var(--spacing-1);
    padding: var(--spacing-5) var(--spacing-3) var(--spacing-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.admin-sidebar-credit-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.admin-sidebar-credit strong {
    font-size: 13px;
    line-height: 1.3;
    color: #f1f5f9;
}

.admin-sidebar-credit a {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.admin-sidebar-credit a:hover {
    color: #fff;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-height: 44px;
    padding: 10px var(--spacing-3);
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav-link.active {
    background: var(--primary, #b21f2d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(178, 31, 45, 0.25);
}

.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    color: currentColor;
}

.admin-nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-nav-icon svg path {
    vector-effect: non-scaling-stroke;
}

.admin-nav-label {
    white-space: nowrap;
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 13, 20, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 18;
}

body.sidebar-collapsed .admin-layout {
    grid-template-columns: 84px 1fr;
}

body.sidebar-collapsed .admin-sidebar {
    padding-inline: 10px;
}

body.sidebar-collapsed .admin-brand {
    justify-content: center;
    padding-inline: 0;
}

body.sidebar-collapsed .admin-brand-copy,
body.sidebar-collapsed .admin-nav-label,
body.sidebar-collapsed .admin-sidebar-credit {
    width: 0;
    opacity: 0;
    overflow: hidden;
}

body.sidebar-collapsed .admin-nav-link {
    justify-content: center;
    padding-inline: 0;
}

.admin-main {
    padding: 22px;
    min-width: 0;
}

.admin-topbar {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-topbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-user-menu {
    position: relative;
    margin-left: auto;
}

.admin-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    min-height: 44px;
}

.admin-user-trigger-copy {
    display: grid;
    gap: 2px;
    text-align: left;
    line-height: 1.15;
}

.admin-user-trigger-copy strong {
    font-size: 13px;
}

.admin-user-trigger-copy small {
    color: #69747d;
    font-size: 11px;
    font-weight: 700;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary, #7a101a), var(--accent, #113d66));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    flex-shrink: 0;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-avatar.is-large {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.admin-user-caret svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 44px));
    padding: 12px;
    border: 1px solid #d8dfe6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(12, 18, 25, 0.18);
    z-index: 30;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-notification-menu {
    position: relative;
}

.admin-notification-trigger {
    position: relative;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
}

.admin-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #b21f2d;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notification-dropdown {
    width: min(360px, calc(100vw - 44px));
}

.admin-user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7edf3;
}

.admin-user-dropdown-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.admin-user-dropdown-links {
    display: grid;
    gap: 6px;
    padding-top: 10px;
}

.admin-user-dropdown-links form {
    margin: 0;
}

.admin-user-dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #15171a;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.admin-user-dropdown-link:hover {
    background: #f4f7fa;
}

.admin-user-dropdown-link.is-static {
    cursor: default;
}

.admin-user-dropdown-link.is-danger {
    color: #a12629;
}

.admin-notification-list,
.admin-notification-activity {
    display: grid;
    gap: 8px;
}

.admin-notification-activity {
    padding-top: 12px;
    border-top: 1px solid #e2e7ec;
}

.admin-notification-activity-title {
    font-size: 12px;
    font-weight: 800;
    color: #607182;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-notification-activity-item {
    display: grid;
    gap: 2px;
}

.admin-user-dropdown-link small,
.admin-notification-activity-item small {
    display: block;
    color: #607182;
    font-size: 12px;
}

.admin-sidebar-toggle {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.admin-sidebar-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.posts-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-toolbar,
.analytics-range-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.analytics-toolbar {
    justify-content: space-between;
    margin-bottom: 8px;
}

.analytics-range-form {
    margin-left: auto;
}

.analytics-range-form .field {
    min-width: 150px;
}

.analytics-range-note {
    margin-bottom: 14px;
}

.analytics-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-panel-head h2 {
    margin: 0 0 4px;
}

.analytics-panel-head p {
    margin: 0;
}

.analytics-trend-list,
.analytics-bar-list {
    display: grid;
    gap: 10px;
}

.analytics-trend-row,
.analytics-bar-item {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #fbfcfd;
}

.analytics-trend-row {
    grid-template-columns: 74px minmax(0, 1fr) minmax(180px, 220px);
    align-items: center;
}

.analytics-trend-label {
    font-size: 13px;
    font-weight: 800;
    color: #44505a;
}

.analytics-trend-bar-shell,
.analytics-bar-shell {
    height: 10px;
    border-radius: 999px;
    background: #e8edf3;
    overflow: hidden;
}

.analytics-trend-bar,
.analytics-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary, #7a101a), var(--accent, #113d66));
}

.analytics-trend-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    text-align: right;
    font-size: 12px;
    font-weight: 800;
}

.analytics-bar-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-bar-copy strong {
    font-size: 14px;
}

.analytics-bar-copy span {
    color: #69747d;
    font-size: 12px;
    font-weight: 700;
}

.posts-toolbar-main,
.posts-search-form,
.status-tabs,
.posts-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.posts-toolbar-main {
    flex: 1 1 720px;
}

.posts-search-form {
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 1 360px;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.posts-search-form input {
    min-width: 240px;
    padding-right: 96px;
}

.search-inside-button {
    position: absolute;
    top: 50%;
    right: 5px;
    min-height: 30px;
    padding: 4px 12px;
    transform: translateY(-50%);
}

.status-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid #d8d4ca;
    border-radius: 6px;
    background: #fff;
    color: #15171a;
    font-weight: 800;
}

.status-tab:hover {
    border-color: #9da9b5;
    background: #f4f7f9;
}

.status-tab.active {
    border-color: var(--primary, #b21f2d);
    background: var(--primary, #b21f2d);
    color: #fff;
}

.status-tab-flag.active {
    border-color: var(--success);
    background: var(--success);
}

.button.success {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
    transition: all var(--transition-fast);
}

.button.success:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.posts-filter-form select {
    width: auto;
    min-width: 170px;
}

.admin-panel {
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-3);
}

.stat {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.analytics-positive,
.analytics-negative {
    display: inline-flex;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 800;
}

.analytics-positive {
    color: var(--success);
}

.analytics-negative {
    color: var(--danger);
}

.newsroom-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--spacing-4);
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.newsroom-hero h2 {
    margin: 4px 0 10px;
    font-size: 28px;
    font-weight: 800;
}

.newsroom-pulse-line,
.newsroom-hero-actions,
.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.newsroom-pulse-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--surface-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.newsroom-hero-actions {
    justify-content: flex-end;
}

.newsroom-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.newsroom-command-card {
    display: grid;
    gap: 4px;
    padding: var(--spacing-4);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-muted);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.newsroom-command-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsroom-command-card.urgent {
    border-left-color: var(--danger);
}

.newsroom-command-card.warning {
    border-left-color: var(--warning);
}

.newsroom-command-card.info {
    border-left-color: var(--info);
}

.newsroom-command-card.calm {
    border-left-color: var(--success);
}

.newsroom-command-card span,
.newsroom-command-card small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.newsroom-command-card strong {
    font-size: 28px;
    font-weight: 800;
}

.newsroom-grid {
    margin-top: var(--spacing-4);
}

.newsroom-panel {
    display: grid;
    gap: var(--spacing-3);
}

.panel-head {
    justify-content: space-between;
}

.panel-head h2 {
    margin: 0;
    font-weight: 800;
}

.panel-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
}

.newsroom-list {
    display: grid;
    gap: 8px;
}

.newsroom-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--spacing-3);
    align-items: center;
    padding: var(--spacing-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: inherit;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.newsroom-list-item:hover {
    border-color: var(--border-focus);
    background: var(--surface-hover);
}

.newsroom-list-item.is-warning {
    border-color: #fbd38d;
    background: #fffaf0;
}

.newsroom-list-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.newsroom-list-item small {
    color: var(--text-muted);
    font-weight: 600;
}

.newsroom-empty {
    padding: var(--spacing-4);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 700;
}

.quality-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.quality-score-grid div {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid #e0e6ec;
    border-radius: 8px;
    background: #fbfcfd;
}

.quality-score-grid strong {
    font-size: 22px;
}

.quality-score-grid span {
    color: #66727b;
    font-size: 12px;
    font-weight: 800;
}

.compact-table th,
.compact-table td {
    padding: 9px 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.post-editor {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(320px, 3fr);
    gap: 20px;
    align-items: start;
}

.post-editor-main {
    display: grid;
    gap: 18px;
}

.post-editor-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e7ec;
    border-radius: 8px;
    background: #fbfcfd;
}

.post-editor-row {
    display: grid;
    gap: 16px;
}

.post-editor-row-top,
.post-editor-row-media,
.post-editor-row-seo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.post-editor-row-status {
    grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
    align-items: end;
}

.post-editor-row-options {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
    align-items: end;
}

.post-editor-preview {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.preview-meta-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 23, 26, 0.06);
}

.preview-meta-grid {
    display: grid;
    gap: 14px;
}

.preview-meta-row-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.preview-panel {
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 30px rgba(21, 23, 26, 0.08);
    overflow: hidden;
}

.preview-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e7ec;
    background: #fff;
}

.preview-card {
    display: grid;
    gap: 0;
}

.preview-featured-card {
    min-height: 220px;
    background: #edf2f7;
}

.preview-featured-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.preview-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: #69747d;
    font-weight: 700;
}

.preview-body {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
}

.preview-kicker {
    font-size: 12px;
    font-weight: 800;
    color: #b21f2d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.preview-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.preview-summary,
.preview-content,
.preview-video,
.preview-meta-row {
    color: #48525a;
}

.preview-summary,
.preview-content {
    white-space: pre-wrap;
}

.preview-content {
    display: grid;
    gap: 12px;
}

.preview-content p {
    margin: 0;
}

.preview-embed-image,
.preview-embed-video {
    margin: 8px 0;
}

.preview-embed-article {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    gap: 14px;
    align-items: center;
    margin: 10px 0;
    padding: 14px;
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    background: #f8fbfd;
    color: inherit;
    text-decoration: none;
}

.preview-embed-article-copy {
    display: grid;
    gap: 8px;
}

.preview-embed-article-copy h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

.preview-embed-article-copy p {
    margin: 0;
    color: #5b6874;
    font-size: 13px;
    line-height: 1.7;
}

.preview-embed-article-meta {
    color: #73808c;
    font-size: 12px;
    font-weight: 700;
}

.preview-embed-article-media {
    min-height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9eef3;
}

.preview-embed-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.preview-embed-article-media-empty {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #173b67, #a1172e);
}

.preview-embed-image img {
    display: block;
    width: 100%;
    max-height: 320px;
    border-radius: 8px;
    object-fit: contain;
    background: #eef2f5;
}

.preview-embed-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #111820;
}

.preview-video-title {
    margin-bottom: 8px;
    color: #b21f2d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-spacer {
    height: 6px;
}

.preview-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.preview-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
}

.preview-gallery-strip img {
    width: 100%;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
}

.field {
    display: grid;
    gap: 6px;
}

.field small {
    line-height: 1.4;
}

.field-label-inline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.field-label-inline small {
    min-width: 0;
    overflow: hidden;
    color: #627180;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font: inherit;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-focus);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary, #b21f2d);
    box-shadow: 0 0 0 3px rgba(178, 31, 45, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--surface-hover);
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select[multiple] {
    min-height: 150px;
}

.summary-equal-box,
#post-menus {
    min-height: 170px;
}

.status-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.status-choice:hover {
    border-color: var(--border-focus);
    background: var(--surface-hover);
}

.status-choice input {
    width: auto;
    margin: 0;
}

.status-choice-compact {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.post-editor-actions-top {
    justify-content: flex-start;
}

.field-status {
    align-content: start;
}

.post-content-area {
    min-height: 280px;
}

.editor-shortcut-help {
    display: block;
    margin-top: 8px;
    color: #627180;
    font-size: 12px;
    line-height: 1.5;
}

.content-url-alerts {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.content-url-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #cfe2f5;
    border-radius: 8px;
    background: #f3f8fd;
    color: #24425d;
    font-size: 12px;
}

.content-url-alert span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #dceefa;
    font-weight: 800;
}

.content-url-alert strong {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-url-alert button {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #bd1f2d;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.required-mark {
    color: var(--danger);
}

.upload-dropzone {
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: var(--spacing-5);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.upload-dropzone:hover {
    border-color: var(--border-focus);
    background: var(--surface-hover);
}

.upload-dropzone strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.upload-dropzone.is-dragover {
    border-color: var(--success);
    background: #ecfdf5;
    transform: translateY(-1px);
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.upload-preview-card,
.upload-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 10px;
    min-height: 110px;
    margin-top: 10px;
}

.upload-preview-card img,
.upload-gallery-preview img {
    width: 100%;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d8e0e8;
}

.gallery-preview-frame {
    position: relative;
}

.gallery-preview-frame img {
    display: block;
}

.gallery-preview-frame .image-delete-button {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    min-height: 24px;
    font-size: 13px;
}

.upload-preview-card {
    grid-template-columns: minmax(0, 1fr);
}

.ad-image-preview {
    max-width: 240px;
}

.epaper-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.epaper-form-column {
    display: grid;
    gap: 14px;
}

.epaper-slide-preview {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.epaper-slide-main {
    display: grid;
    min-height: 360px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #f6f8fb;
    overflow: hidden;
}

.epaper-slide-main-image {
    position: relative;
    min-height: 360px;
}

.epaper-slide-main-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #f6f8fb;
}

.epaper-slide-main-image span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.epaper-thumb-shell {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
}

.epaper-thumb-rail {
    display: flex;
    gap: 10px;
    min-height: 124px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
}

.epaper-scroll-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 64px;
    min-height: 64px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #f8fafc;
    color: #16202a;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.epaper-scroll-button:hover {
    border-color: #9fb0c2;
    background: #fff;
}

.epaper-order-help {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
}

.epaper-pages-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.epaper-page-card {
    position: relative;
    display: flex;
    flex: 0 0 104px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
    scroll-snap-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.epaper-page-card.is-active,
.epaper-page-card.is-drop-target {
    border-color: #113d66;
    box-shadow: 0 0 0 2px rgba(17, 61, 102, 0.12);
}

.epaper-page-card.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.epaper-page-card img {
    width: 100%;
    height: 82px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef2f6;
}

.epaper-page-card span {
    font-size: 13px;
    font-weight: 700;
    color: #48525a;
}

.epaper-remove-store {
    display: none;
}

.image-preview-frame {
    position: relative;
}

.upload-preview-card img {
    max-width: 100%;
    height: 180px;
}

.image-delete-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(183, 28, 28, 0.92);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(21, 23, 26, 0.22);
}

.upload-preview-empty {
    display: grid;
    place-items: center;
    min-height: 110px;
    border: 1px dashed #d4dde6;
    border-radius: 8px;
    color: #7b8791;
    background: #fff;
    font-size: 13px;
}

.toggle-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle-pill-row-align {
    align-items: end;
    padding-top: 24px;
}

.settings-editor-panel {
    display: grid;
    gap: 18px;
}

.settings-theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-setting-field {
    display: grid;
    gap: 8px;
}

.color-control-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #d5dee6;
    border-radius: 8px;
    background: #fff;
}

.color-control-shell input[type="color"] {
    width: 42px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.color-chip {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(21, 23, 26, 0.14);
    border-radius: 999px;
    background: #d5dee6;
}

.settings-logo-preview {
    max-width: 320px;
}

.settings-logo-preview img {
    object-fit: contain;
    background: #f6f8fb;
}

.settings-code-textarea {
    min-height: 150px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
}

.compact-section {
    padding: 14px;
    border: 1px solid #e6ebef;
    border-radius: 8px;
    background: #fbfcfd;
}

.ad-performance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.ad-performance-card {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #fff;
}

.ad-performance-card span,
.ad-performance-card small {
    color: #69747d;
    font-size: 12px;
    font-weight: 700;
}

.ad-performance-card strong {
    color: #16202a;
    font-size: 22px;
}

.ad-report-shell {
    display: grid;
    gap: 18px;
}

.ad-report-filter {
    align-items: end;
    justify-content: flex-start;
}

.ad-report-filter .field {
    min-width: 180px;
}

.ad-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ad-report-summary > div,
.ad-report-meta > div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #fff;
}

.ad-report-summary span,
.ad-report-summary small,
.ad-report-meta span {
    color: #69747d;
    font-size: 12px;
    font-weight: 700;
}

.ad-report-summary strong {
    color: #16202a;
    font-size: 28px;
}

.ad-report-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ad-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.ad-report-grid h3,
.ad-report-events h3 {
    margin: 0 0 10px;
}

.admin-auth-container {
    max-width: 460px;
    margin: 0 auto;
    padding-top: 8vh;
}

.admin-auth-container.register {
    max-width: 540px;
}

.field-checkbox-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.input-checkbox {
    width: auto !important;
    margin: 0;
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .ad-report-actions,
    .ad-report-filter {
        display: none !important;
    }

    .admin-main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .ad-report-shell {
        border: 0;
        box-shadow: none;
    }
}

.settings-office-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    background: #fbfcfd;
}

.settings-office-list {
    display: grid;
    gap: 14px;
}

.profile-settings-grid {
    display: grid;
    gap: 18px;
}

.profile-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfcfd, #f5f8fb);
}

.profile-summary-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.profile-summary-copy h2 {
    margin: 0;
    font-size: 24px;
}

.profile-summary-copy p {
    margin: 0;
    color: #69747d;
}

.profile-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-settings-form {
    display: grid;
    gap: 18px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.checkbox-inline input {
    width: 16px;
    height: 16px;
}

.profile-settings-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-office-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    background: #fff;
}

.settings-legal-textarea {
    min-height: 280px;
}

.toggle-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.toggle-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.toggle-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d8d4ca;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.toggle-pill input:checked + span {
    border-color: #113d66;
    background: #eaf2fb;
    color: #113d66;
}

.editor-subtitle-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.editor-subtitle-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.editor-subtitle {
    margin: 0;
    font-size: 18px;
}

.post-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-manager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.category-create-panel {
    position: sticky;
    top: 18px;
}

.category-editor-panel,
.category-translation-panel {
    display: grid;
    gap: 16px;
}

.user-create-section.is-hidden {
    display: none;
}

.user-editor-heading {
    display: grid;
    gap: 4px;
}

.user-check-row,
.user-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.user-check-row input {
    width: auto;
    margin: 0;
}

.invite-list {
    display: grid;
    gap: 10px;
}

.invite-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #dbe3eb;
    border-radius: 8px;
    background: #fbfcfd;
}

.epaper-editor-panel {
    margin-bottom: 18px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.user-card {
    padding: 0;
    overflow: hidden;
}

.user-card-cover {
    min-height: 84px;
    background:
        linear-gradient(135deg, rgba(17, 61, 102, 0.95), rgba(178, 31, 45, 0.85)),
        linear-gradient(90deg, #0f1720, #405468);
}

.user-card-active .user-card-cover {
    background: linear-gradient(135deg, #0d5c63, #2d9f5d);
}

.user-card-pending .user-card-cover {
    background: linear-gradient(135deg, #8d5d10, #d59a17);
}

.user-card-inactive .user-card-cover {
    background: linear-gradient(135deg, #49545e, #808e99);
}

.user-card-head {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 0 18px 14px;
    margin-top: -36px;
    text-align: center;
}

.user-card-avatar {
    width: 84px;
    height: 84px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #113d66, #b21f2d);
    box-shadow: 0 12px 24px rgba(21, 23, 26, 0.16);
    overflow: hidden;
}

.user-card-avatar img,
.user-card-avatar span {
    width: 100%;
    height: 100%;
}

.user-card-avatar img {
    object-fit: cover;
}

.user-card-avatar span {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.user-card-title {
    display: grid;
    gap: 4px;
}

.user-card-title h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.user-card-title p {
    margin: 0;
    color: #6c7780;
    font-weight: 700;
}

.user-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.user-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 18px;
}

.user-card-stat {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 12px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fbfcfe;
}

.user-card-stat strong {
    font-size: 24px;
}

.user-card-stat span {
    font-size: 12px;
    font-weight: 800;
    color: #66727b;
    text-transform: uppercase;
}

.user-card-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.user-card-bio {
    margin: 0;
    color: #404b55;
    line-height: 1.65;
    text-align: center;
}

.user-card-meta {
    display: grid;
    gap: 8px;
    color: #53606a;
    font-size: 13px;
}

.user-card-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.user-card-editor {
    border-top: 1px solid #e1e7ec;
    background: #fafbfd;
}

.user-card-summary {
    border-radius: 0;
    background: transparent;
}

.user-card-editor-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.user-editor-form {
    align-items: start;
}

.user-editor-form .post-editor-actions {
    justify-content: flex-start;
}

.category-settings-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.category-settings-row input[type="color"] {
    height: 44px;
    padding: 6px;
}

.category-list-shell {
    display: grid;
    gap: 16px;
}

.layout-preset-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.layout-preset-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.layout-preset-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.layout-preset-frame {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 6px 8px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fbfcfd;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.layout-preset-frame img {
    width: 64px;
    height: 42px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #e1e7ec;
    background: #eef1f3;
    flex: 0 0 auto;
}

.layout-preset-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.layout-preset-copy strong {
    font-size: 11px;
    line-height: 1.25;
}

.layout-preset-copy small {
    display: none;
}

.layout-preset-card input:checked + .layout-preset-frame {
    border-color: #113d66;
    box-shadow: 0 0 0 2px rgba(17, 61, 102, 0.12);
    background: #f6faff;
    transform: translateY(-1px);
}

.section-sort-list {
    gap: 12px;
}

.section-sort-item {
    display: grid;
}

.section-sort-item.drop-before > .category-accordion > .category-accordion-summary {
    box-shadow: inset 0 3px 0 #113d66;
}

.section-sort-item.drop-after > .category-accordion > .category-accordion-summary {
    box-shadow: inset 0 -3px 0 #113d66;
}

.section-sort-item.is-dragging {
    opacity: 0.55;
}

.section-layout-thumb {
    display: inline-flex;
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d9e1e8;
    background: #f2f5f7;
}

.section-layout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-accordion-list {
    display: grid;
    gap: 12px;
}

.menu-builder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.menu-builder-tree {
    gap: 10px;
}

.menu-tree-item {
    display: grid;
    gap: 10px;
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) {
    gap: 8px;
    margin-inline-start: 12px;
}

.menu-tree-children {
    display: grid;
    gap: 10px;
}

.category-accordion {
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: #fbfcfd;
    overflow: hidden;
}

.category-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.menu-tree-summary {
    padding-inline-start: calc(18px + (var(--tree-depth, 0) * 32px));
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) > .category-accordion > .menu-tree-summary {
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f7fafc 100%);
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) > .category-accordion > .menu-tree-summary .category-summary-main strong {
    font-size: 18px;
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) > .category-accordion > .menu-tree-summary .muted {
    font-size: 11px;
}

.category-accordion-summary::-webkit-details-marker {
    display: none;
}

.category-summary-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: 1px solid #d7dfe6;
    border-radius: 6px;
    background: #fff;
    color: #6a7580;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.menu-drag-handle:active {
    cursor: grabbing;
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) .menu-drag-handle {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
}

.category-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(17, 61, 102, 0.08);
}

.menu-tree-item[data-parent-id]:not([data-parent-id=""]) .category-color-dot {
    width: 10px;
    height: 10px;
}

.language-dot.ltr {
    background: #1f8a42;
}

.language-dot.rtl {
    background: #b21f2d;
}

.ad-dot.active {
    background: #1f8a42;
}

.ad-dot.inactive {
    background: #8d99a6;
}

.category-summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
    padding-inline-end: 26px;
    position: relative;
}

.category-summary-sort {
    font-size: 13px;
    color: #69747d;
    font-weight: 700;
}

.category-summary-meta::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid #69747d;
    border-bottom: 2px solid #69747d;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.category-accordion[open] .category-summary-meta::after {
    transform: translateY(-35%) rotate(-135deg);
}

.menu-tree-item.is-dragging {
    opacity: 0.55;
}

.menu-tree-item.drop-before > .category-accordion > .menu-tree-summary,
.menu-tree-item.drop-after > .category-accordion > .menu-tree-summary,
.menu-tree-item.drop-child > .category-accordion > .menu-tree-summary {
    background: #f7fafc;
}

.menu-tree-item.drop-before > .category-accordion > .menu-tree-summary {
    box-shadow: inset 0 3px 0 #113d66;
}

.menu-tree-item.drop-after > .category-accordion > .menu-tree-summary {
    box-shadow: inset 0 -3px 0 #113d66;
}

.menu-tree-item.drop-child > .category-accordion > .menu-tree-summary {
    box-shadow: inset 4px 0 0 #1f8a42;
}

.menu-child-hint {
    margin-top: 3px;
    color: #113d66;
    font-size: 11px;
    font-weight: 700;
}

.category-accordion-body {
    display: grid;
    gap: 18px;
    padding: 0 18px 18px;
    border-top: 1px solid #e2e7ec;
}

.category-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.category-translation-panel {
    padding-top: 14px;
    border-top: 1px dashed #d7dfe6;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th:nth-child(1) {
    width: 34%;
}

.posts-table th:nth-child(2) {
    width: 15%;
}

.posts-table th:nth-child(4) {
    width: 14%;
}

.posts-table th:last-child,
.posts-table td:last-child {
    text-align: end;
    padding-right: 0;
}

.author-chip {
    white-space: nowrap;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 13px;
}

.author-chip.active {
    border-color: #15171a;
    background: #15171a;
    color: #fff;
}

.table-actions {
    width: 1%;
}

.actions-group {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.actions-group form {
    display: inline-flex;
}

.button-sm {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.button-edit {
    border-color: #fbd38d;
    background: #fffaf0;
    color: #dd6b20;
}

.button-edit:hover {
    background: #feebc8;
    border-color: #f6ad55;
    color: #c05621;
}

.button-translate {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.button-translate:hover {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.button-delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.button-delete:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.post-note-inline {
    margin-top: 6px;
    color: #a85a00;
    font-size: 12px;
    font-weight: 700;
}

.post-translation-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.post-translation-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid #c9d3de;
    border-radius: 999px;
    background: #f6f9fc;
    color: #4c6176;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.post-translation-link:hover {
    border-color: #113d66;
    color: #113d66;
}

.post-translation-link.is-published {
    border-color: #1f8a42;
    background: #e9f7ee;
    color: #176836;
}

.post-translation-link.is-source {
    border-color: #113d66;
    background: #eef4fb;
    color: #113d66;
}

.post-translation-link-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-translation-link-name {
    font-size: 11px;
    font-weight: 800;
}

.autosave-table-row {
    background: #fffaf0;
}

.autosave-table-row td {
    border-top-color: #f2d8a8;
}

.autosave-status {
    background: #fff1d6;
    color: #8a5200;
}

.post-performance-stack {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.post-performance-stack strong {
    color: #15171a;
}

.flag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.flag-toggle-button {
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #c8d0d8;
    border-radius: 999px;
    background: #eef2f6;
    color: #62707e;
    font-size: 12px;
    font-weight: 800;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.flag-toggle-button:hover {
    border-color: #9da9b5;
    background: #e2e8ef;
    color: #334155;
}

.flag-toggle-button.is-active {
    border-color: #1f8a42;
    background: #1f8a42;
    color: #fff;
}

.flag-toggle-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.post-review-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce4eb;
    border-radius: 14px;
    background: #fbfdff;
}

.post-review-meta {
    display: grid;
    gap: 5px;
}

.post-review-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-editor-topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.post-autosave-status {
    font-size: 12px;
    font-weight: 700;
}

.post-autosave-status.is-saving {
    color: #113d66;
}

.post-autosave-status.is-saved {
    color: #1f8a42;
}

.post-autosave-status.is-pending {
    color: #a85a00;
}

.post-autosave-status.is-error {
    color: #a12629;
}

.post-autosave-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #c7d7e6;
    border-radius: 12px;
    background: #f7fbff;
}

.post-autosave-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.revision-panel {
    margin-top: 14px;
}

.revision-list {
    display: grid;
    gap: 10px;
}

.revision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f9fb;
    border: 1px solid #e2e7ec;
}

.revision-copy {
    display: grid;
    gap: 3px;
}

.audit-toolbar {
    margin-bottom: 16px;
}

.audit-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audit-table th:nth-child(1) {
    width: 12%;
}

.audit-table th:nth-child(2) {
    width: 24%;
}

.audit-detail-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-detail-pill {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef3f8;
    color: #233648;
    font-size: 12px;
}

.audit-path {
    margin-top: 8px;
}

th,
td {
    padding: var(--spacing-3) var(--spacing-4);
    border-bottom: 1px solid var(--border-color);
    text-align: start;
    vertical-align: middle;
}

th {
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--surface-bg);
    border-bottom: 2px solid var(--border-color);
}

tbody tr {
    transition: background-color var(--transition-fast);
}

tbody tr:hover {
    background-color: var(--surface-hover);
}

.status {
    display: inline-flex;
    border-radius: var(--radius-full);
    padding: 3px 10px;
    background: var(--surface-hover);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.alert {
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-4);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

main .alert {
    margin-top: var(--spacing-4);
}

.alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e7ec;
}

.search-page-head {
    margin: 22px 0 18px;
}

.public-search-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.35fr) minmax(140px, 0.3fr) auto;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2ded4;
    border-radius: 8px;
    background: #fff;
}

.public-search-form input,
.public-search-form select {
    min-height: 42px;
    border: 1px solid #d6dce3;
    border-radius: 7px;
    padding: 0 12px;
    font-weight: 700;
    background: #fff;
}

.public-search-form button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    background: var(--primary, #b21f2d);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-result-count {
    margin-top: 10px;
    color: #69747d;
    font-size: 13px;
    font-weight: 700;
}

.contact-inbox-panel {
    display: grid;
    gap: 12px;
}

.contact-message-list {
    display: grid;
    gap: 10px;
}

.contact-message-item {
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.contact-message-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.contact-message-item summary::-webkit-details-marker {
    display: none;
}

.contact-message-item[open] summary {
    border-bottom: 1px solid #e6ebef;
    background: #fbfcfd;
}

.contact-message-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-message-title strong {
    font-size: 16px;
}

.contact-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 4px;
    color: #69747d;
    font-size: 12px;
    font-weight: 700;
}

.contact-message-body {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.contact-message-body p {
    margin: 0;
    color: #303841;
    line-height: 1.65;
}

.contact-message-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .analytics-toolbar,
    .analytics-range-form {
        width: 100%;
    }

    .analytics-range-form {
        margin-left: 0;
    }

    .analytics-trend-row {
        grid-template-columns: 1fr;
    }

    .analytics-trend-metrics,
    .analytics-bar-copy {
        justify-content: flex-start;
        text-align: left;
    }

    .posts-toolbar-main,
    .posts-search-form {
        flex-basis: 100%;
    }

    .posts-search-form {
        justify-content: flex-start;
        margin-left: 0;
    }

    .posts-search-form input {
        min-width: 0;
        flex: 1 1 220px;
    }

    .newsroom-hero,
    .newsroom-command-grid,
    .quality-score-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .newsroom-hero-actions {
        justify-content: flex-start;
    }

    .audit-filter-form {
        align-items: stretch;
    }

    .audit-filter-form > * {
        width: 100%;
    }

    .post-autosave-banner,
    .revision-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-editor-preview {
        position: static;
    }

    .category-manager,
    .users-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-create-panel {
        position: static;
    }

    .post-editor-row-top,
    .post-editor-row-status,
    .post-editor-row-media,
    .post-editor-row-options,
    .post-editor-row-seo,
    .category-settings-row,
    .preview-meta-row-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-subtitle-row {
        display: grid;
    }

    .category-accordion-summary {
        display: grid;
    }

    .category-summary-meta {
        justify-content: flex-start;
        margin-inline-start: 0;
        padding-inline-end: 22px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-user-menu {
        margin-left: 0;
    }

    .admin-user-trigger-copy {
        display: none;
    }
}

.pagination-summary {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.pagination-summary[data-tone="saving"] {
    color: var(--info);
}

.pagination-summary[data-tone="success"] {
    color: var(--success);
}

.pagination-summary[data-tone="error"] {
    color: var(--danger);
}

.pagination-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition-fast);
}

.page-link:hover {
    border-color: var(--border-focus);
    background: var(--surface-hover);
}

.page-link.active {
    border-color: var(--primary, #b21f2d);
    background: var(--primary, #b21f2d);
    color: #fff;
    box-shadow: 0 2px 6px rgba(178, 31, 45, 0.2);
}

.page-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--surface-hover);
    border-color: var(--border-color);
}

.pagination-wrap svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .page-grid,
    .lead-grid,
    .epaper-compose-grid,
    .epaper-viewer,
    .home-feature-top,
    .feature-column-lead,
    .feature-column-mid-grid,
    .feature-column-small-grid,
    .stacked-brief-lead,
    .stacked-brief-small-grid {
        grid-template-columns: 1fr;
    }

    .epaper-slide-preview {
        position: static;
    }

    .epaper-slide-main,
    .epaper-slide-main-image {
        min-height: 260px;
    }

    .epaper-slide-main-image img {
        height: 300px;
    }

    .card-grid,
    .stats-grid,
    .admin-grid,
    .important-news-shell,
    .form-grid,
    .user-card-stats,
    .settings-theme-grid,
    .contact-office-grid,
    .home-layout-grid-2,
    .home-layout-grid-3,
    .feature-column-mid-grid,
    .feature-column-small-grid,
    .stacked-brief-small-grid,
    .brief-columns,
    .brief-columns-2,
    .mosaic-grid {
        grid-template-columns: 1fr;
    }

    .layout-preset-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .public-search-form {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 100vw);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 18px 0 42px rgba(8, 13, 20, 0.28);
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Sticky Sidebar for Detail Page */
@media (min-width: 901px) {
    .detail-sidebar {
        position: sticky;
        top: 24px;
        height: max-content;
    }
}

/* Related Posts Thumbnail Widget Styling */
.related-thumb-list {
    display: grid;
    gap: 16px;
    padding-top: 12px;
}

.related-thumb-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    align-items: center;
    position: relative;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.related-thumb-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-thumb-copy {
    min-width: 0;
    order: 1;
}

.related-thumb-media {
    order: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-bg);
}

.related-thumb-media img,
.related-thumb-media .placeholder-media {
    display: block;
    width: 92px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-thumb-row:hover .related-thumb-media img {
    transform: scale(1.05);
}

.related-thumb-media .placeholder-media {
    display: grid;
    place-items: center;
    padding: 4px;
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    text-align: center;
}

.related-thumb-row h3 {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.related-thumb-row h3 a {
    color: var(--text-primary);
}

.related-thumb-row h3 a:hover {
    color: var(--primary, #b21f2d);
}

.related-thumb-row .muted {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

html[lang="ur"] .related-thumb-row h3 {
    font-size: 16px;
    line-height: 1.55;
}

/* Premium Typography for Single Post Page */
.story-meta {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    font-weight: 500;
}

.story-meta span, .story-meta a {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.story-meta span:not(:last-child)::after {
    content: "•";
    margin-inline-start: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: normal;
}

.story-meta a {
    color: var(--primary, #b21f2d);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.story-meta a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

html[lang="ur"] .story-body h1 {
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

html[lang="ur"] .story-content {
    font-size: 24px;
    line-height: 1.6;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
    color: #1c1c1c;
}

html[lang="ur"] .story-content p {
    margin-bottom: 24px;
}

/* Inline article card improvements for Urdu */
html[lang="ur"] .story-inline-article-card {
    direction: rtl;
    text-align: right;
}

html[lang="ur"] .story-inline-article-copy h4 {
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
    line-height: 1.5;
    font-size: 22px;
}

html[lang="ur"] .story-inline-article-copy p {
    font-size: 16px;
    line-height: 1.7;
}

/* Bottom resolved previews block */
.story-bottom-previews {
    margin-top: var(--spacing-6);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-5);
    display: grid;
    gap: 16px;
}

/* Premium Gallery Slider Styling */
.post-gallery-section {
    margin: var(--spacing-6) 0;
    padding-top: var(--spacing-5);
    border-top: 1px solid var(--border-color);
}

.gallery-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

html[lang="ur"] .gallery-title {
    font-size: 22px;
    line-height: 1.5;
}

.gallery-slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: 0;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
    left: 16px;
}

.gallery-nav.next {
    right: 16px;
}

html[lang="ur"] .gallery-nav.prev {
    left: auto;
    right: 16px;
}

html[lang="ur"] .gallery-nav.next {
    right: auto;
    left: 16px;
}

/* Category Lead Horizontal Card Styling */
.lead-card-horizontal {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.lead-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.lead-card-horizontal .lead-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-bg);
}

.lead-card-horizontal .lead-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.lead-card-horizontal:hover .lead-card-media img {
    transform: scale(1.03);
}

.lead-card-horizontal .lead-card-copy {
    padding: clamp(16px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.lead-card-horizontal .lead-card-copy h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.lead-card-horizontal .lead-card-copy h3 a {
    color: var(--text-primary);
}

.lead-card-horizontal .lead-card-copy h3 a:hover {
    color: var(--primary, #b21f2d);
}

html[lang="ur"] .lead-card-horizontal .lead-card-copy h3 {
    font-size: 32px;
    line-height: 1.3;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
}

.lead-card-horizontal .lead-card-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

html[lang="ur"] .lead-card-horizontal .lead-card-copy p {
    font-size: 17px;
    line-height: 1.45;
    color: #334155;
}

/* Category Card Layout Spacing Polish */
.card-grid .news-card .copy {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-grid .news-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.card-grid .news-card h3 a {
    color: var(--text-primary);
}

.card-grid .news-card h3 a:hover {
    color: var(--primary, #b21f2d);
}

html[lang="ur"] .card-grid .news-card h3 {
    font-size: 24px;
    line-height: 1.3;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
}

.card-grid .news-card p.muted {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

html[lang="ur"] .card-grid .news-card p.muted {
    font-size: 15px;
    line-height: 1.4;
    color: #475569;
}

/* Navigation menu font size upgrades */
.nav-link,
.nav-row a {
    font-size: 18px;
}
html[lang="ur"] .nav-link,
html[lang="ur"] .nav-row a {
    font-size: 22px;
}

/* Unified Typography and Spacing Polish for Homepage & Public Site sections */
.public-site .headline-sm {
    font-size: 28px;
    line-height: 1.25 !important;
}
html[lang="ur"] .public-site .headline-sm {
    font-size: 32px;
    line-height: 1.3 !important;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
}

.public-site .news-card h3,
.public-site .lead-card h3,
.public-site .side-list h3,
.public-site .latest-lead-title {
    font-size: 18px;
    line-height: 1.25 !important;
}
html[lang="ur"] .public-site .news-card h3,
html[lang="ur"] .public-site .lead-card h3,
html[lang="ur"] .public-site .side-list h3,
html[lang="ur"] .public-site .latest-lead-title {
    font-size: 24px;
    line-height: 1.3 !important;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
}

.public-site .brief-card h4,
.public-site .feature-column-small-card h4,
.public-site .stacked-brief-small-card h4,
.public-site .mosaic-copy h4,
.public-site .mosaic-card h4 {
    font-size: 16px;
    line-height: 1.25 !important;
}
html[lang="ur"] .public-site .brief-card h4,
html[lang="ur"] .public-site .feature-column-small-card h4,
html[lang="ur"] .public-site .stacked-brief-small-card h4,
html[lang="ur"] .public-site .mosaic-copy h4,
html[lang="ur"] .public-site .mosaic-card h4 {
    font-size: 20px;
    line-height: 1.3 !important;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
}

/* Spacing and Gaps */
.public-site .news-card .copy,
.public-site .lead-card .copy,
.public-site .feature-column-lead .copy,
.public-site .stacked-brief-lead .copy,
.public-site .mosaic-copy {
    gap: 4px;
}

.public-site .news-card .copy p,
.public-site .lead-card .copy p,
.public-site .feature-column-lead .copy p,
.public-site .stacked-brief-lead .copy p,
.public-site .mosaic-copy p {
    line-height: 1.45;
}
html[lang="ur"] .public-site .news-card .copy p,
html[lang="ur"] .public-site .lead-card .copy p,
html[lang="ur"] .public-site .feature-column-lead .copy p,
html[lang="ur"] .public-site .stacked-brief-lead .copy p,
html[lang="ur"] .public-site .mosaic-copy p {
    line-height: 1.45;
}

@media (max-width: 900px) {
    .lead-card-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .top-strip-row {
        align-items: stretch;
        flex-direction: column;
        padding: 9px 0;
    }

    .top-strip-left {
        align-items: center;
        flex-direction: row;
        gap: 14px;
        min-width: 0;
    }

    .top-links,
    .top-languages {
        max-width: none;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-links::-webkit-scrollbar,
    .top-languages::-webkit-scrollbar {
        display: none;
    }

    .top-date {
        align-self: flex-end;
        font-size: 11px;
    }

    .site-footer {
        padding: 26px 0 22px;
    }

    .site-footer-top,
    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-nav,
    .site-footer-meta {
        justify-content: flex-start;
    }

    .brand-row {
        padding: 14px 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .brand-title {
        font-size: 32px;
    }

    .tagline {
        font-size: 12px;
    }

    .nav-wrap {
        position: sticky;
        top: 0;
    }

    .nav-row {
        min-height: 44px;
        direction: ltr;
        justify-content: flex-end;
    }

    .public-menu-toggle {
        display: inline-flex;
        direction: rtl;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 64px 18px 22px;
        overflow-y: auto;
        background: #fff;
    }

    body.public-menu-open {
        overflow: hidden;
    }

    body.public-menu-open .nav-menu {
        display: flex;
    }

    body.public-menu-open .public-menu-toggle {
        position: fixed;
        top: 12px;
        inset-inline-start: 18px;
        z-index: 110;
        padding: 9px 12px;
        border: 1px solid #ded9cf;
        border-radius: 6px;
        background: #fff;
    }

    .nav-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        border-bottom: 1px solid #eee9df;
    }

    .nav-link,
    .nav-row a {
        padding: 13px 4px;
        font-size: 16px;
    }
    html[lang="ur"] .nav-link,
    html[lang="ur"] .nav-row a {
        font-size: 18px;
    }

    .nav-menu > .nav-link:not(.nav-more-button)::after,
    .nav-menu > .nav-item:not(.nav-more)::after,
    .top-links a:not(:last-child)::after {
        display: none;
    }

    .nav-dropdown-toggle {
        width: 42px;
        margin-inline-start: 0;
    }

    .nav-dropdown {
        position: static;
        grid-column: 1 / -1;
        min-width: 0;
        border: 0;
        border-top: 1px solid #eee9df;
        background: #fbfaf7;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }

    .nav-category:hover > .nav-dropdown {
        display: none;
    }

    .nav-category.is-open > .nav-dropdown {
        display: block;
    }

    .nav-dropdown a {
        padding: 10px 16px;
    }

    .nav-more {
        display: none !important;
    }

    .sidebar-search {
        flex-direction: column;
        align-items: stretch;
    }

    .top-language-menu {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }

    .posts-toolbar.users-toolbar,
    .posts-toolbar.users-toolbar .posts-toolbar-main,
    .posts-toolbar.users-toolbar .posts-search-form {
        width: 100%;
    }

    .user-card-head {
        padding-inline: 14px;
    }

    .user-card-body,
    .user-card-editor-body {
        padding-inline: 14px;
    }

    .brief-card,
    .mosaic-card {
        grid-template-columns: 1fr;
    }

    .featured-live-board,
    .home-latest-grid,
    .home-content-grid,
    .home-feature-top,
    .feature-column-lead,
    .feature-column-mid-grid,
    .feature-column-small-grid,
    .stacked-brief-lead,
    .stacked-brief-small-grid {
        grid-template-columns: 1fr;
    }

    .home-content-grid::before {
        display: none;
    }

    .home-sidebar {
        padding-right: 0;
    }

    .trending-widget {
        position: static;
    }

    .featured-live-board {
        grid-template-areas:
            "featured-media"
            "featured-copy";
        gap: 14px;
    }

    .featured-live-media {
        grid-area: featured-media;
        order: initial;
    }

    .featured-live-copy {
        grid-area: featured-copy;
    }

    .featured-live-copy {
        height: auto;
        max-height: none;
        padding-inline-end: 0;
    }

    .featured-live-list {
        max-height: 270px;
    }

    .home-latest-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        direction: inherit;
    }

    .latest-lead-card {
        order: 1;
        width: 100%;
    }

    .latest-headline-list {
        order: 2;
        width: 100%;
        height: auto;
        gap: 4px;
    }

    .latest-mini-grid {
        order: 3;
        width: 100%;
        height: auto;
        gap: 12px;
    }

    .latest-lead-media {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .latest-mini-card img,
    .latest-mini-card .placeholder-media,
    .latest-lead-card img,
    .latest-lead-card .placeholder-media {
        height: 100%;
        object-fit: cover;
    }

    .latest-mini-grid,
    .home-layout-grid-2,
    .home-layout-grid-3,
    .feature-column-mid-grid,
    .feature-column-small-grid,
    .stacked-brief-small-grid,
    .brief-columns,
    .brief-columns-2,
    .mosaic-grid {
        grid-template-columns: 1fr;
    }

    .latest-lead-card {
        order: -1;
    }

    .featured-live-media,
    .latest-lead-card img,
    .latest-lead-card .placeholder-media {
        min-height: 190px;
    }

    .preview-embed-article,
    .story-inline-article-card {
        grid-template-columns: 1fr;
    }
}

/* Sticky Trending Sidebar */
@media (min-width: 901px) {
    .page-grid .sidebar {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        height: auto;
        gap: 16px;
    }
    .page-grid .sidebar .trending-widget {
        position: sticky;
        top: 80px;
        z-index: 5;
    }
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary, #b21f2d);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent, #113d66);
    transform: translateY(-2px);
}

/* PWA & Notification Banners */
.pwa-install-banner,
.notification-optin-banner {
    position: fixed;
    z-index: 98;
    background: #1a1d21;
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid #2d3339;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-install-banner {
    bottom: 80px;
    left: 16px;
    right: 16px;
}

.notification-optin-banner {
    bottom: 24px;
    right: 24px;
    max-width: 380px;
}

.pwa-install-content,
.notification-optin-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-text,
.notification-optin-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-install-text strong,
.notification-optin-text strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-install-text span,
.notification-optin-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.pwa-install-actions,
.notification-optin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pwa-btn-primary {
    background: var(--primary, #b21f2d);
    color: #fff;
}

.pwa-btn-primary:hover {
    background: #d60000;
}

.pwa-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.pwa-btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pwa-close-btn:hover {
    color: #fff;
}

.bell-icon {
    color: var(--primary, #b21f2d);
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .notification-optin-banner {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 140px;
    }
}

.latest-headline-list h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
}

html[lang="ur"] .latest-headline-list h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", sans-serif;
}

.latest-mini-card h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
}

html[lang="ur"] .latest-mini-card h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-family: "Reporter Nafees Web Naskh", "Noto Nastaliq Urdu", sans-serif;
}

