/* =========================================================
   RIGHTS MEDIA — FINAL CONSOLIDATED PORTAL.CSS
   Public Website + CMS/Admin
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

:root {
    --red: #ba1b23;
    --red-dark: #8f1017;
    --blue: #123f78;
    --blue-dark: #0d315f;
    --yellow: #f4cf00;

    --ink: #17191d;
    --muted: #66707a;
    --paper: #ffffff;
    --page: #f7f7f7;
    --soft: #f2f2f2;
    --line: #dedbd7;

    --shadow: 0 12px 35px rgba(15, 18, 22, 0.09);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--page);
    color: var(--ink);
    font-family:
        "Noto Sans Telugu",
        "Nirmala UI",
        "Noto Sans",
        Arial,
        sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

main {
    width: 100%;
    background: var(--page);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    left: -9999px;
    top: 8px;
    z-index: 10000;

    padding: 10px 14px;

    background: #ffffff;
    color: #111111;
}

.skip-link:focus {
    left: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f0b44d;
    outline-offset: 3px;
}


/* =========================================================
   TOP INFO STRIP
   ========================================================= */

.info-strip {
    width: 100%;
    background: #17191d;
    color: #ffffff;

    font-size: 12px;
}

.info-inner {
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.info-org {
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Only Telugu should remain visible */
.header-actions a:not([lang="te"]) {
    display: none !important;
}

.header-actions a[lang="te"] {
    color: #ffffff;
    font-weight: 700;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #ffffff;
    color: #171717;

    border-bottom: 1px solid var(--line);
}

.masthead {
    min-height: 112px;

    display: flex;
    align-items: center;

    gap: 24px;
}

.brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;
}

.brand img {
    width: 74px;
    height: 74px;

    flex: 0 0 74px;

    border-radius: 50%;

    object-fit: cover;
}

.brand span {
    min-width: 0;
}

.brand b {
    display: block;

    color: var(--red);

    font-family: "Noto Sans", Arial, sans-serif;
    font-size: clamp(30px, 3.2vw, 45px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.4px;

    white-space: nowrap;
}

.brand small {
    display: block;

    margin-top: 8px;

    color: #333333;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;
}

.masthead-note {
    margin-left: auto;

    color: var(--muted);

    text-align: right;

    font-size: 13px;
}

.masthead-note strong {
    color: #444444;
}

/* Old Register / Donate area removed */
.public-header-actions {
    display: none !important;
}

.theme-toggle,
.menu-toggle,
.cms-menu {
    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;
}

.menu-toggle {
    display: none;
}


/* =========================================================
   CATEGORY NAVIGATION
   BLUE + WHITE TEXT
   ========================================================= */

/* =========================================================
   PRIMARY NAVIGATION - DESKTOP
   ========================================================= */

.primary-nav {
    display: block;
    width: 100%;
    background: var(--blue);
    border-top: 1px solid var(--blue-dark);
}

.primary-nav .nav-scroll {
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.primary-nav .nav-scroll::-webkit-scrollbar { display: none; }

.primary-nav .nav-scroll > a {
    flex: 0 0 auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    color: #ffffff !important;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.16);
}

.primary-nav .nav-scroll > a:hover,
.primary-nav .nav-scroll > a:focus-visible,
.primary-nav .nav-scroll > a[aria-current="page"] { background: var(--blue-dark); }

.menu-toggle { display: none !important; }


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    margin-top: 15px;

    padding: 13px 16px;

    background: #fff8df;
    color: #523f12;

    border-left: 4px solid #c69a44;
}

.alert.success {
    background: #e9f8ef;
    color: #155a38;

    border-color: #218654;
}

.alert.error {
    background: #fff0f0;
    color: #7b1016;

    border-color: var(--red);
}


/* =========================================================
   BREAKING NEWS
   ========================================================= */

.breaking {
    min-height: 50px;

    display: flex;
    align-items: stretch;

    margin-top: 22px;

    overflow: hidden;

    background: #ffffff;

    color: #111111;

    border: 1px solid #dddddd;
}

.breaking > strong {
    position: relative;
    z-index: 5;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    background: #c3151c;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.breaking-list {
    position: relative;

    flex: 1 1 auto;

    min-width: 0;

    display: block;

    overflow: hidden;

    padding: 0;

    background: #ffffff;

    color: #111111;
}

.breaking-track {
    width: max-content;
    min-width: max-content;
    min-height: 48px;

    display: flex;
    align-items: center;

    background: #ffffff;

    animation: rm-breaking-scroll 35s linear infinite;

    will-change: transform;
}

.breaking-track a {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    padding: 0 34px;

    color: #111111;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.breaking-track a::after {
    content: "•";

    margin-left: 34px;

    color: #c3151c;

    font-size: 18px;
    font-weight: 900;
}

.breaking-track a:hover {
    color: #c3151c;
}

.breaking-list:hover .breaking-track {
    animation-play-state: paused;
}

@keyframes rm-breaking-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    width: 100%;

    padding: 36px 0;
}

.section.soft {
    background: var(--soft);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;

    border-bottom: 2px solid var(--ink);
}

.section-heading h1,
.section-heading h2 {
    margin: 0 0 9px;

    color: #171717;

    font-size: clamp(23px, 3vw, 34px);

    line-height: 1.2;
}

.section-heading a {
    margin-bottom: 10px;

    color: var(--red);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   MAIN / LEAD NEWS
   ========================================================= */

.lead-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 0.75fr);

    gap: 26px;
}

.lead-story {
    position: relative;

    width: 100%;

    min-height: 440px;

    overflow: hidden;

    background: #16191d;
}

.lead-story > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.75;
}

.lead-copy {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 90px 28px 28px;

    color: #ffffff;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.9)
        );
}

.lead-copy .eyebrow {
    color: #ffd0d0;
}

.lead-copy h1 {
    margin: 8px 0;

    color: #ffffff;

    font-size: clamp(28px, 3.2vw, 45px);

    line-height: 1.16;
}

.lead-copy p {
    margin: 8px 0;

    color: #eeeeee;
}

.lead-copy .meta {
    color: #dddddd;
}


/* =========================================================
   RIGHT SIDE STORIES
   ========================================================= */

.story-stack {
    min-width: 0;

    display: grid;

    align-content: start;

    gap: 0;

    background: #ffffff;
}

.story-row {
    min-width: 0;

    display: grid;

    grid-template-columns: 112px minmax(0, 1fr);

    gap: 14px;

    padding: 14px 0;

    background: #ffffff;

    color: #171717;

    border-bottom: 1px solid var(--line);
}

.story-row:first-child {
    padding-top: 0;
}

.story-row img {
    width: 112px;
    height: 82px;

    object-fit: cover;
}

.story-row > div {
    min-width: 0;
}

.story-row h3 {
    margin: 4px 0;

    font-size: 17px;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* =========================================================
   MAIN NEWS VERTICAL SCROLLER
   ========================================================= */

.main-news-scroll {
    position: relative;

    width: 100%;
    height: 440px;

    overflow: hidden;

    background: #ffffff;
}

.main-news-track {
    display: flex;

    flex-direction: column;

    animation: rm-main-news-scroll 40s linear infinite;

    will-change: transform;
}

.main-news-scroll:hover .main-news-track {
    animation-play-state: paused;
}

.main-news-scroll .story-row {
    flex: 0 0 auto;
}

@keyframes rm-main-news-scroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}


/* =========================================================
   NEWS CARDS
   ========================================================= */

.news-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.news-card {
    min-width: 0;

    padding-bottom: 20px;

    background: #ffffff;

    color: #171717;

    border-bottom: 1px solid var(--line);
}

.news-card img {
    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #eeeeee;
}

.news-card h3 {
    margin: 8px 0;

    color: #171717;

    font-size: 20px;

    line-height: 1.35;

    overflow-wrap: anywhere;
}

.news-card p {
    color: var(--muted);

    font-size: 14px;
}

.eyebrow {
    display: inline-block;

    color: var(--red);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.meta {
    color: var(--muted);

    font-size: 12px;
}

.placeholder {
    padding: 36px;

    background: #ffffff;

    color: var(--muted);

    text-align: center;

    border: 1px dashed var(--line);
}


/* =========================================================
   ARTICLE PAGE
   ========================================================= */

.article-shell {
    width: min(820px, calc(100% - 40px));

    margin: 42px auto;
}

.article-shell h1 {
    margin: 8px 0 15px;

    color: #171717;

    font-size: clamp(34px, 6vw, 60px);

    line-height: 1.17;

    letter-spacing: -0.02em;
}

.article-summary {
    padding-left: 18px;

    color: var(--muted);

    font-size: 19px;

    border-left: 4px solid var(--red);
}

.article-hero {
    width: 100%;
    max-height: 560px;

    margin: 28px 0;

    object-fit: cover;
}

.article-body {
    font-size: 18px;

    line-height: 1.9;
}

.article-body p {
    margin: 0 0 1.25em;
}

.share-bar {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 22px 0;
}


/* =========================================================
   GENERAL PAGE
   ========================================================= */

.page-content {
    width: min(860px, calc(100% - 40px));

    margin: 40px auto;
}

.page-content h1 {
    color: #171717;

    font-size: clamp(33px, 5vw, 52px);
}

.page-content h2 {
    margin-top: 36px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--line);
}

.page-content p,
.page-content li {
    font-size: 16px;

    line-height: 1.85;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-card,
.card {
    padding: 24px;

    background: #ffffff;

    color: #171717;

    border: 1px solid var(--line);

    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
    width: 100%;

    padding: 11px 12px;

    background: #ffffff;

    color: #171717;

    border: 1px solid var(--line);
    border-radius: 4px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(186, 27, 35, 0.15);

    border-color: var(--red);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    background: var(--red);

    color: #ffffff;

    border: 0;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.button.secondary,
.btn.secondary {
    background: var(--ink);

    color: #ffffff;
}

.actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 50px;

    padding: 46px 0 20px;

    background: #17191d;

    color: #d8dce1;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr repeat(3, 1fr);

    gap: 40px;
}

.footer-grid h2 {
    color: #ffffff;

    font-size: 14px;
}

.footer-grid a {
    display: block;

    margin: 8px 0;

    color: #d8dce1;

    font-size: 13px;
}

.footer-brand {
    color: #ffffff;

    font-size: 27px;
    font-weight: 800;
}

.footer-grid p {
    max-width: 440px;

    color: #adb3bc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    margin-top: 32px;

    padding-top: 18px;

    font-size: 12px;

    border-top: 1px solid #353a41;
}


/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.mobile-bottom-nav {
    display: none;
}


/* =========================================================
   CMS / ADMIN
   ========================================================= */

.cms-body {
    background: #f5f6f8 !important;

    color: #111827 !important;
}

.cms-top {
    position: fixed;

    inset: 0 0 auto;

    z-index: 500;

    height: 66px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    background: #17191d;

    color: #ffffff;
}

.cms-logo {
    font-weight: 800;

    letter-spacing: 0.04em;
}

.cms-logo small {
    color: #aaaaaa;

    font-weight: 500;
}

.cms-user {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 15px;

    font-size: 13px;
}

.cms-menu {
    display: none;

    margin-right: 12px;
}

.cms-layout {
    min-height: 100vh;

    display: grid;

    grid-template-columns: 240px minmax(0, 1fr);

    padding-top: 66px;
}

.cms-sidebar {
    position: fixed;

    top: 66px;
    bottom: 0;

    width: 240px;

    overflow-y: auto;

    padding: 22px 14px;

    background: #20242a;

    color: #d9dce0;
}

.cms-sidebar a {
    display: block;

    padding: 11px 13px;

    border-radius: 4px;

    font-size: 14px;
}

.cms-sidebar a:hover {
    background: #30353d;

    color: #ffffff;
}

.cms-main {
    grid-column: 2;

    min-width: 0;

    padding: 30px;

    background: #f5f6f8 !important;

    color: #111827 !important;
}

.cms-main h1 {
    margin-top: 0;
}

.cms-main .form-card,
.cms-main .card,
.cms-main .panel {
    background: #ffffff !important;

    color: #111827 !important;

    border-color: #d1d5db !important;
}

.cms-main input:not([type="checkbox"]):not([type="radio"]),
.cms-main textarea,
.cms-main select {
    background: #ffffff !important;

    color: #111827 !important;

    border: 1px solid #cbd5e1 !important;
}

.cms-main select option {
    background: #ffffff;

    color: #111827;
}

.cms-main label,
.cms-main .field label,
.cms-main h1,
.cms-main h2,
.cms-main h3,
.cms-main h4,
.cms-main p,
.cms-main strong {
    color: #111827;
}

.cms-main input::placeholder,
.cms-main textarea::placeholder {
    color: #6b7280;

    opacity: 1;
}


/* =========================================================
   CMS STATS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stat {
    padding: 20px;

    background: #ffffff;

    border: 1px solid var(--line);
}

.stat b {
    display: block;

    font-size: 30px;
}

.stat span {
    color: var(--muted);

    font-size: 12px;

    text-transform: uppercase;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap {
    width: 100%;

    overflow: auto;

    background: #ffffff;

    border: 1px solid var(--line);
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

th,
td {
    padding: 12px;

    text-align: left;

    vertical-align: middle;

    border-bottom: 1px solid var(--line);
}

th {
    background: #f1f5f9;

    font-size: 11px;

    text-transform: uppercase;
}

.cms-main table {
    background: #ffffff !important;

    color: #111827 !important;
}

.cms-main table th {
    background: #f1f5f9 !important;

    color: #111827 !important;
}

.cms-main table td {
    background: #ffffff !important;

    color: #111827 !important;
}

.cms-main table a {
    color: #b5121b !important;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-block;

    padding: 4px 8px;

    background: #e8e9eb;

    color: #333333;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 800;
}

.badge.published,
.badge.Approved {
    background: #d9f4e4;

    color: #17653a;
}

.badge.pending_review,
.badge.Pending {
    background: #fff0c2;

    color: #705000;
}

.badge.rejected,
.badge.Rejected {
    background: #ffdfe1;

    color: #8d141b;
}

.badge.changes_requested {
    background: #e7e0ff;

    color: #4b3195;
}


/* =========================================================
   OTHER CMS COMPONENTS
   ========================================================= */

.pagination {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}

.pagination a {
    padding: 7px 11px;

    border: 1px solid var(--line);
}

.login-shell {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 20px;

    background: #f5f6f8;
}

.login-card {
    width: min(420px, 100%);
}

.editor-fields {
    display: contents;
}

.editor-fields:disabled {
    opacity: 0.72;
}

.upload-preview {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 8px;
}

.upload-preview img {
    width: 90px;
    height: 64px;

    object-fit: cover;

    border: 1px solid var(--line);
    border-radius: 4px;
}

.sidebar-action {
    margin: 0;
}

.sidebar-action button {
    width: 100%;

    justify-content: flex-start;

    padding: 11px 13px;

    background: transparent;

    color: inherit;
}

.review-hero {
    max-width: 480px;
    max-height: 300px;

    object-fit: contain;

    background: var(--soft);
}

.media-preview video {
    width: 220px;
    max-width: 100%;

    height: auto;
}

.honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.story-cell {
    min-width: 260px;
}

.btn:disabled,
.editor-fields:disabled .btn {
    cursor: not-allowed;

    opacity: 0.6;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .shell {
        width: min(100% - 30px, 1180px);
    }

    .masthead-note {
        display: none;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .lead-story {
        min-height: 410px;
    }

    .story-stack {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .story-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .story-row:first-child {
        padding-top: 14px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-news-scroll {
        height: 380px;
    }

    /* CMS */

    .cms-menu {
        display: block;
    }

    .cms-layout {
        display: block;
    }

    .cms-sidebar {
        z-index: 450;

        transform: translateX(-100%);

        transition: transform 0.2s ease;

        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.28);
    }

    .cms-nav-open .cms-sidebar {
        transform: translateX(0);
    }

    .cms-main {
        grid-column: auto;

        padding: 24px 18px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    body:not(.cms-body) {
        padding-bottom: 66px;
    }

    .shell {
        width: calc(100% - 24px);
    }


    /* ---------------- INFO BAR ---------------- */

    .info-inner {
        min-height: 32px;

        gap: 10px;

        font-size: 10px;
    }

    .info-org {
        display: none;
    }


    /* ---------------- HEADER ---------------- */

    .masthead {
        min-height: 78px;

        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;

        gap: 8px;
    }

    .brand img {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }

    .brand b {
        font-size: clamp(20px, 6.4vw, 27px);

        letter-spacing: -0.7px;
    }

    .brand small {
        max-width: 200px;

        margin-top: 4px;

        overflow: hidden;

        font-size: 8px;

        letter-spacing: 0;

        white-space: nowrap;

        text-overflow: ellipsis;
    }

    .masthead-note {
        display: none;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-left: auto;

        padding: 0;

        background: #ffffff;

        color: #171717;

        border: 1px solid #dddddd;
        border-radius: 6px;

        font-size: 22px;
    }


    /* ---------------- MOBILE BURGER MENU ---------------- */

    .menu-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0;
        background: #ffffff;
        color: #171717;
        border: 1px solid #dddddd;
        border-radius: 6px;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .primary-nav {
        display: none;
        width: 100%;
        background: var(--blue);
        border-top: 1px solid var(--blue-dark);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

    .primary-nav.open { display: block; }

    .primary-nav .nav-scroll {
        width: 100%;
        max-height: calc(100vh - 145px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 5px 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .primary-nav .nav-scroll > a {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 18px;
        color: #ffffff !important;
        background: var(--blue);
        font-size: 13px;
        font-weight: 700;
        white-space: normal;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .primary-nav .nav-scroll > a:last-child { border-bottom: 0; }

    .primary-nav .nav-scroll > a:hover,
    .primary-nav .nav-scroll > a:active,
    .primary-nav .nav-scroll > a[aria-current="page"] { background: var(--blue-dark); }


    /* ---------------- BREAKING ---------------- */

    .breaking {
        width: calc(100% - 24px);

        min-height: 44px;

        margin-top: 12px;
    }

    .breaking > strong {
        padding: 0 10px;

        font-size: 9px;
    }

    .breaking-track {
        min-height: 42px;

        animation-duration: 27s;
    }

    .breaking-track a {
        padding: 0 20px;

        font-size: 12px;
    }

    .breaking-track a::after {
        margin-left: 20px;
    }


    /* ---------------- MAIN NEWS ---------------- */

    .section {
        padding: 24px 0;
    }

    .lead-grid {
        display: block;
    }

    .lead-story {
        min-height: 330px;
    }

    .lead-copy {
        padding: 70px 16px 18px;
    }

    .lead-copy h1 {
        margin: 5px 0;

        font-size: clamp(24px, 8vw, 34px);

        line-height: 1.15;
    }

    .lead-copy p {
        display: none;
    }

    .story-stack {
        display: block;

        margin-top: 18px;
    }

    .story-row {
        grid-template-columns: 94px minmax(0, 1fr);

        gap: 11px;

        padding: 12px 0;
    }

    .story-row:first-child {
        padding-top: 0;
    }

    .story-row img {
        width: 94px;
        height: 70px;
    }

    .story-row h3 {
        margin: 2px 0;

        font-size: 15px;

        line-height: 1.3;
    }

    .main-news-scroll {
        height: 320px;
    }


    /* ---------------- NEWS CARDS ---------------- */

    .news-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .news-card {
        padding-bottom: 18px;
    }

    .news-card h3 {
        font-size: 18px;
    }


    /* ---------------- HEADINGS ---------------- */

    .section-heading {
        align-items: center;

        gap: 8px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 23px;
    }

    .section-heading a {
        font-size: 11px;
    }


    /* ---------------- FORMS ---------------- */

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .form-card,
    .card {
        padding: 16px;
    }


    /* ---------------- ARTICLE ---------------- */

    .article-shell,
    .page-content {
        width: calc(100% - 24px);

        margin-top: 26px;
    }

    .article-shell h1 {
        font-size: clamp(28px, 9vw, 42px);
    }

    .article-summary {
        font-size: 17px;
    }

    .article-body {
        font-size: 17px;
    }


    /* ---------------- FOOTER ---------------- */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;

        margin-top: 5px;
    }


    /* ---------------- BOTTOM NAV ---------------- */

    .mobile-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 9999;

        height: 66px;

        display: grid;

        grid-template-columns: repeat(4, minmax(0, 1fr));

        overflow: hidden;

        background: var(--yellow);

        border-top: 1px solid #d0ad00;

        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    }

    .mobile-bottom-nav > a {
        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 5px 2px;

        color: #111111;

        text-align: center;

        font-size: 10px;
        font-weight: 800;

        line-height: 1;

        border-right: 1px solid rgba(0, 0, 0, 0.15);
    }

    .mobile-bottom-nav > a:last-child {
        border-right: 0;
    }

    .mobile-bottom-nav > a:hover,
    .mobile-bottom-nav > a:active {
        background: #e5c100;
    }

    .bottom-nav-icon {
        display: block;

        color: #111111;

        font-size: 19px;

        line-height: 1;
    }


    /* ---------------- CMS MOBILE ---------------- */

    .cms-top {
        padding: 0 12px;
    }

    .cms-logo small {
        display: none;
    }

    .cms-user span {
        display: none;
    }

    .cms-sidebar {
        width: min(290px, 86vw);
    }

    .cms-main {
        padding: 20px 12px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .stat {
        padding: 14px;
    }

    .stat b {
        font-size: 21px;
    }

    .actions .btn {
        min-height: 42px;
    }

    .table-wrap {
        max-width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .shell {
        width: calc(100% - 18px);
    }

    .info-inner {
        font-size: 9px;
    }

    .brand {
        gap: 6px;
    }

    .brand img {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

    .brand b {
        font-size: 20px;
    }

    .brand small {
        max-width: 165px;

        font-size: 7.5px;
    }

    .menu-toggle {
        width: 35px;
        height: 35px;

        flex-basis: 35px;

        font-size: 20px;
    }

    .primary-nav .nav-scroll > a {
        min-height: 41px;

        padding: 0 12px;

        font-size: 11px;
    }

    .breaking {
        width: calc(100% - 18px);
    }

    .breaking > strong {
        padding: 0 8px;

        font-size: 8px;
    }

    .lead-story {
        min-height: 300px;
    }

    .lead-copy {
        padding: 60px 14px 15px;
    }

    .lead-copy h1 {
        font-size: 24px;
    }

    .story-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .story-row img {
        width: 86px;
        height: 65px;
    }

    .main-news-scroll {
        height: 300px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cms-main {
        padding: 16px 8px;
    }

    .form-card,
    .card {
        padding: 13px;
    }

    .btn,
    .button {
        padding: 10px 12px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .breaking-track,
    .main-news-track {
        animation: none !important;
    }

    .main-news-scroll {
        overflow-y: auto;
    }
}


/* =========================================================
   RIGHTS MEDIA — BRAND + CATEGORY NAV FINAL OVERRIDES
   Updated: 2026-08-16
   ========================================================= */

/* Logo-inspired header branding */
.site-header {
    background: var(--yellow) !important;
    border-bottom-color: #d0ad00 !important;
}

.masthead {
    background: var(--yellow);
}

.brand b {
    color: var(--red) !important;
}

.brand small {
    color: #171717 !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.masthead-note,
.masthead-note strong {
    color: #2b2b2b !important;
}

/* Desktop category/navigation bar */
.primary-nav {
    display: block !important;
    width: 100%;
    background: var(--yellow) !important;
    border-top: 1px solid #d0ad00 !important;
    border-bottom: 1px solid #d0ad00;
    box-shadow: none;
}

.primary-nav .nav-scroll {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    max-height: none;
    margin-inline: auto;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.primary-nav .nav-scroll::-webkit-scrollbar {
    display: none;
}

.primary-nav .nav-scroll > a {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    background: var(--yellow) !important;
    color: #111111 !important;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 0;
}

.primary-nav .nav-scroll > a:hover,
.primary-nav .nav-scroll > a:focus-visible {
    background: #e5c100 !important;
    color: #111111 !important;
}

.primary-nav .nav-scroll > a[aria-current="page"] {
    background: var(--red) !important;
    color: #ffffff !important;
}

/* Categories are permanently visible, so public burger is not needed */
.menu-toggle {
    display: none !important;
}

@media (max-width: 650px) {
    .masthead {
        min-height: 82px;
        gap: 8px;
    }

    .brand {
        gap: 9px;
    }

    .brand img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand b {
        font-size: clamp(20px, 6.2vw, 27px);
        letter-spacing: -0.6px;
        line-height: 1.02;
    }

    .brand small {
        display: block;
        max-width: none;
        margin-top: 5px;
        overflow: visible;
        color: #171717 !important;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.25;
        white-space: nowrap;
        text-overflow: clip;
    }

    .menu-toggle {
        display: none !important;
    }

    /* Always-visible horizontal mobile category strip */
    .primary-nav,
    .primary-nav.open {
        display: block !important;
        width: 100%;
        background: var(--yellow) !important;
        border-top: 1px solid #d0ad00 !important;
        border-bottom: 1px solid #d0ad00;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .primary-nav .nav-scroll {
        width: 100%;
        max-height: none;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        margin: 0;
        padding: 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .primary-nav .nav-scroll > a {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        background: var(--yellow) !important;
        color: #111111 !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        border-right: 1px solid rgba(0, 0, 0, 0.13);
        border-bottom: 0;
        scroll-snap-align: start;
    }

    .primary-nav .nav-scroll > a:hover,
    .primary-nav .nav-scroll > a:active,
    .primary-nav .nav-scroll > a:focus-visible {
        background: #e5c100 !important;
        color: #111111 !important;
    }

    .primary-nav .nav-scroll > a[aria-current="page"] {
        background: var(--red) !important;
        color: #ffffff !important;
    }
}

@media (max-width: 390px) {
    .brand img {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .brand b {
        font-size: 20px;
    }

    .brand small {
        max-width: none;
        font-size: 9.5px;
    }

    .primary-nav .nav-scroll > a {
        min-height: 42px;
        padding: 0 12px;
        font-size: 11px;
    }
}


/* =========================================================
   RIGHTS MEDIA — BLUE CATEGORY STRIP + MOBILE DRAWER
   ========================================================= */

/* Category strip remains blue on all screen sizes */
.primary-nav,
.primary-nav.open {
    display: block !important;
    background: var(--blue) !important;
    border-top: 1px solid var(--blue-dark) !important;
    border-bottom: 1px solid var(--blue-dark) !important;
}

.primary-nav .nav-scroll > a {
    background: var(--blue) !important;
    color: #ffffff !important;
    border-right-color: rgba(255, 255, 255, 0.16) !important;
}

.primary-nav .nav-scroll > a:hover,
.primary-nav .nav-scroll > a:focus-visible,
.primary-nav .nav-scroll > a:active {
    background: var(--blue-dark) !important;
    color: #ffffff !important;
}

.primary-nav .nav-scroll > a[aria-current="page"] {
    background: var(--red) !important;
    color: #ffffff !important;
}

/* Drawer is mobile-only */
.mobile-menu-backdrop,
.mobile-menu-drawer {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 650px) {

    /* Restore burger in the yellow masthead */
    .menu-toggle,
    #mobile-menu-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0;
        background: var(--red) !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 6px;
        font-size: 23px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    /* Keep the blue categories visible under the header */
    .primary-nav,
    .primary-nav.open {
        display: block !important;
        background: var(--blue) !important;
    }

    .primary-nav .nav-scroll {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        width: 100%;
        max-height: none;
        padding: 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .primary-nav .nav-scroll > a {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding: 0 14px;
        background: var(--blue) !important;
        color: #ffffff !important;
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-bottom: 0 !important;
    }

    /* Dark overlay */
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10020;
        display: block;
        background: rgba(0, 0, 0, 0.48);
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .mobile-menu-backdrop[hidden] {
        display: none !important;
    }

    .mobile-menu-backdrop.open {
        opacity: 1;
    }

    /* Off-canvas drawer */
    .mobile-menu-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 10030;
        width: min(86vw, 340px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #ffffff;
        color: #171717;
        transform: translateX(105%);
        transition: transform 0.24s ease;
        box-shadow: -12px 0 32px rgba(0, 0, 0, 0.22);
    }

    .mobile-menu-drawer.open {
        transform: translateX(0);
    }

    .mobile-menu-head {
        min-height: 92px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px;
        background: var(--yellow);
        border-bottom: 4px solid var(--red);
    }

    .mobile-menu-head > div {
        min-width: 0;
    }

    .mobile-menu-head strong {
        display: block;
        color: var(--red);
        font-size: 17px;
        font-weight: 900;
        line-height: 1.1;
    }

    .mobile-menu-head small {
        display: block;
        margin-top: 5px;
        color: #222222;
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: var(--red);
        color: #ffffff;
        border: 0;
        border-radius: 50%;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu-links {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 0 24px;
        background: #ffffff;
    }

    .mobile-menu-links > a {
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        color: #171717;
        border-bottom: 1px solid #ececec;
        font-size: 14px;
    }

    .mobile-menu-links > a > span {
        width: 22px;
        flex: 0 0 22px;
        color: var(--red);
        text-align: center;
        font-size: 20px;
        font-weight: 900;
    }

    .mobile-menu-links > a > strong {
        font-weight: 750;
    }

    .mobile-menu-links > a:hover,
    .mobile-menu-links > a:active,
    .mobile-menu-links > a:focus-visible {
        background: #fff7c9;
        color: var(--red);
    }

    .mobile-menu-section-title {
        padding: 15px 18px 8px;
        background: #f5f5f5;
        color: var(--blue);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-bottom: 1px solid #e4e4e4;
    }
}

@media (max-width: 390px) {
    #mobile-menu-toggle {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 21px;
    }

    .mobile-menu-drawer {
        width: min(90vw, 325px);
    }
}
/* MOBILE HEADER — KEEP RIGHTS MEDIA SOCIETY IN ONE LINE */
@media (max-width: 650px) {

    .masthead {
        min-height: 92px !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .brand {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        overflow: visible !important;
    }

    .brand img {
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px !important;
    }

    .brand-text {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .brand b {
        display: block !important;

        /* ALWAYS ONE LINE */
        white-space: nowrap !important;

        font-size: clamp(15px, 4.6vw, 21px) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.5px !important;

        color: var(--red) !important;

        overflow: visible !important;
        text-overflow: clip !important;
    }

    .brand small {
        display: block !important;
        margin-top: 5px !important;

        font-size: clamp(8px, 2.5vw, 11px) !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;

        color: #111 !important;
        white-space: nowrap !important;
    }

    #mobile-menu-toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        margin-left: 3px !important;
    }
}


/* Very small phones */
@media (max-width: 390px) {

    .masthead {
        padding-left: 7px !important;
        padding-right: 7px !important;
        gap: 5px !important;
    }

    .brand {
        gap: 5px !important;
    }

    .brand img {
        width: 45px !important;
        height: 45px !important;
        flex-basis: 45px !important;
    }

    .brand b {
        font-size: 14px !important;
        letter-spacing: -0.6px !important;
    }

    .brand small {
        font-size: 8px !important;
    }

    #mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
}
/* Mobile brand text size improvement */
@media (max-width: 650px) {

    .brand b {
        font-size: 18px !important;
        line-height: 1.05 !important;
        font-weight: 900 !important;
        letter-spacing: -0.6px !important;
        white-space: nowrap !important;
    }

    .brand small {
        margin-top: 5px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
}

/* Small phones */
@media (max-width: 390px) {

    .brand b {
        font-size: 16.5px !important;
    }

    .brand small {
        font-size: 8.5px !important;
    }
}
/* =========================================================
   RIGHTS MEDIA — SAFE BRAND TYPOGRAPHY OVERRIDE
   ========================================================= */

/* Desktop */
.brand b {
    color: #ff0000 !important;
}

.brand small {
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

/* Mobile */
@media (max-width: 650px) {

    .brand b {
        color: #ff0000 !important;
        font-size: 18px !important;
        line-height: 1.05 !important;
        letter-spacing: -0.6px !important;
        white-space: nowrap !important;
    }

    .brand small {
        max-width: none !important;
        margin-top: 5px !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* Very small phones */
@media (max-width: 390px) {

    .brand b {
        font-size: 16.5px !important;
    }

    .brand small {
        font-size: 10px !important;
    }
}
/* =========================================================
   CMS MOBILE NAVIGATION — FINAL
   ========================================================= */

.cms-overlay {
    display: none;
}

.cms-menu-icon {
    width: 22px;
    height: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cms-menu-icon i {
    display: block;

    width: 100%;
    height: 2px;

    background: currentColor;

    border-radius: 10px;
}


/* ---------------- MOBILE / TABLET ---------------- */

@media (max-width: 900px) {

    .cms-top {
        height: 62px;

        padding: 0 14px;

        gap: 10px;

        background: #17191d !important;
    }


    .cms-menu {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        margin: 0 4px 0 0;

        padding: 0;

        background: #ffffff !important;
        color: #17191d !important;

        border: 0;
        border-radius: 8px;

        box-shadow:
            0 2px 8px
            rgba(0, 0, 0, .18);

        cursor: pointer;

        position: relative;
        z-index: 1002;
    }


    .cms-logo {
        min-width: 0;

        color: #ffffff !important;

        font-size: 14px;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .cms-logo small {
        display: none;
    }


    .cms-user {
        margin-left: auto;
        gap: 8px;
    }


    .cms-user span {
        display: none;
    }


    .cms-layout {
        display: block;

        padding-top: 62px;
    }


    /* SIDEBAR DRAWER */

    .cms-sidebar {
        position: fixed !important;

        top: 62px !important;
        left: 0;
        bottom: 0;

        width: min(82vw, 290px) !important;
        height: calc(100dvh - 62px);

        padding: 16px 12px 30px;

        overflow-y: auto;

        background: #20242a !important;

        z-index: 1001 !important;

        transform: translateX(-105%) !important;

        transition:
            transform .24s ease !important;

        box-shadow:
            12px 0 35px
            rgba(0, 0, 0, .25);
    }


    body.cms-nav-open .cms-sidebar {
        transform: translateX(0) !important;
    }


    .cms-sidebar nav {
        display: flex;
        flex-direction: column;

        gap: 3px;
    }


    .cms-sidebar a {
        min-height: 44px;

        display: flex;
        align-items: center;

        padding: 10px 13px;

        color: #e5e7eb !important;

        border-radius: 7px;

        font-size: 14px;
        font-weight: 600;
    }


    .cms-sidebar a:hover,
    .cms-sidebar a:active,
    .cms-sidebar a:focus-visible {
        background: #30353d !important;

        color: #ffffff !important;
    }


    .cms-sidebar form {
        margin: 4px 0 0;
    }


    .cms-sidebar .sidebar-action {
        width: 100%;

        min-height: 44px;

        padding: 10px 13px;

        background: transparent;

        color: #e5e7eb;

        border: 0;
        border-radius: 7px;

        text-align: left;

        cursor: pointer;
    }


    .cms-sidebar .sidebar-action:hover {
        background: #30353d;
        color: #ffffff;
    }


    /* OVERLAY */

    .cms-overlay {
        position: fixed;

        top: 62px;
        right: 0;
        bottom: 0;
        left: 0;

        z-index: 1000;

        display: block;

        padding: 0;

        background:
            rgba(15, 23, 42, .52);

        border: 0;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity .24s ease,
            visibility .24s ease;
    }


    body.cms-nav-open .cms-overlay {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    body.cms-nav-open {
        overflow: hidden;
    }


    /* CONTENT */

    .cms-main {
        width: 100%;

        min-width: 0;

        padding: 22px 14px !important;

        background: #f5f6f8 !important;
    }


    .cms-main h1 {
        font-size: 25px;

        line-height: 1.2;
    }


    .stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px;
    }


    .stat {
        min-width: 0;

        padding: 15px;
    }


    .stat b {
        font-size: 24px;
    }


    /* TABLE */

    .table-wrap {
        width: 100%;

        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .table-wrap table {
        min-width: 720px;
    }


    /* FORMS */

    .cms-main .form-grid {
        grid-template-columns: 1fr !important;
    }


    .cms-main .field.full {
        grid-column: auto !important;
    }


    .cms-main .actions {
        display: flex;

        flex-wrap: wrap;

        gap: 8px;
    }

}


/* ---------------- SMALL MOBILE ---------------- */

@media (max-width: 520px) {

    .cms-top {
        padding: 0 10px;
    }


    .cms-menu {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .cms-logo {
        font-size: 13px;
    }


    .cms-main {
        padding: 18px 10px !important;
    }


    .cms-main h1 {
        font-size: 22px;
    }


    .stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .stat {
        padding: 13px 11px;
    }


    .stat b {
        font-size: 21px;
    }


    .stat span {
        font-size: 10px;
    }


    .cms-main .form-card,
    .cms-main .card {
        padding: 14px;
    }


    .cms-main .actions {
        flex-direction: column;
        align-items: stretch;
    }


    .cms-main .actions input,
    .cms-main .actions select,
    .cms-main .actions .btn {
        width: 100%;
    }

}
/* =========================================================
   NEWS ARTICLE HEADING COLORS
========================================================= */

/* Main News Headline */
.article-title,
.article-page h1 {
    color: #c71920 !important;
}


/* Headlines inside news article content */
.article-body h2,
.article-body h3,
.article-body h4,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #4169E1 !important; /* Royal Blue */
}


/* Keep normal paragraph text dark */
.article-body p,
.article-content p {
    color: #222222;
}

/* =========================================================
   ADMIN NEWS LISTING — COMPACT STORY ROWS + ACTION CONTRAST
   Scoped only to Admin > News listing.
   ========================================================= */

.cms-main .admin-news-listing table {
    min-width: 900px;
    table-layout: auto;
}
.cms-main .admin-news-listing th,
.cms-main .admin-news-listing td {
    padding: 11px 12px;
    vertical-align: middle;
}
.cms-main .admin-news-listing th:first-child,
.cms-main .admin-news-listing td:first-child {
    width: 34%;
    min-width: 300px;
}
.cms-main .admin-news-listing .story-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cms-main .admin-news-listing .story-cell img {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 75px !important;
    min-height: 75px !important;
    max-height: 75px !important;
    flex: 0 0 120px;
    object-fit: cover !important;
    border-radius: 7px;
    border: 1px solid #d9dee7;
    background: #eef1f5;
}
.cms-main .admin-news-listing .story-cell span {
    min-width: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.cms-main .admin-news-listing .badge {
    max-width: 110px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
}
.cms-main .admin-news-listing .actions {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}
.cms-main .admin-news-listing .actions form {
    display: block !important;
    margin: 0;
}
.cms-main .admin-news-listing .actions .btn,
.cms-main .admin-news-listing .actions a.btn,
.cms-main .admin-news-listing .actions button.btn {
    width: 92px;
    min-width: 92px;
    min-height: 38px;
    padding: 8px 10px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.cms-main .admin-news-listing a.admin-news-edit,
.cms-main .admin-news-listing a.admin-news-edit:link,
.cms-main .admin-news-listing a.admin-news-edit:visited,
.cms-main .admin-news-listing a.admin-news-edit:hover,
.cms-main .admin-news-listing a.admin-news-edit:focus {
    background: #17191d !important;
    color: #ffffff !important;
}
.cms-main .admin-news-listing a.admin-news-review,
.cms-main .admin-news-listing a.admin-news-review:link,
.cms-main .admin-news-listing a.admin-news-review:visited,
.cms-main .admin-news-listing a.admin-news-review:hover,
.cms-main .admin-news-listing a.admin-news-review:focus {
    background: #c71920 !important;
    color: #ffffff !important;
}
.cms-main .admin-news-listing button.admin-news-delete,
.cms-main .admin-news-listing button.admin-news-delete:hover,
.cms-main .admin-news-listing button.admin-news-delete:focus {
    background: #17191d !important;
    color: #ffffff !important;
}
.cms-main .admin-news-listing .actions .btn.secondary:not(.admin-news-delete) {
    background: #343a40 !important;
    color: #ffffff !important;
}
@media (max-width: 900px) {
    .cms-main .admin-news-listing {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cms-main .admin-news-listing table { min-width: 860px; }
    .cms-main .admin-news-listing .story-cell img {
        width: 105px !important;
        min-width: 105px !important;
        max-width: 105px !important;
        height: 66px !important;
        min-height: 66px !important;
        max-height: 66px !important;
        flex-basis: 105px;
    }
}
@media (max-width: 520px) {
    .cms-main .admin-news-listing table { min-width: 820px; }
    .cms-main .admin-news-listing th:first-child,
    .cms-main .admin-news-listing td:first-child { min-width: 270px; }
    .cms-main .admin-news-listing .story-cell { gap: 9px; }
    .cms-main .admin-news-listing .story-cell img {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        flex-basis: 96px;
    }
    .cms-main .admin-news-listing .actions { min-width: 86px; }
    .cms-main .admin-news-listing .actions .btn,
    .cms-main .admin-news-listing .actions a.btn,
    .cms-main .admin-news-listing .actions button.btn {
        width: 86px !important;
        min-width: 86px;
        min-height: 36px;
        padding: 7px 8px;
    }
}

