* {
    box-sizing: border-box;
}

:root {
    --ink: #15171c;
    --muted: #68707c;
    --line: #e7e2dc;
    --paper: #fffdf9;
    --white: #ffffff;
    --nav: #8b1018;
    --accent: #c9242f;
    --accent-dark: #8b1018;
    --blue: #0e5f76;
    --gold: #e0a414;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans Devanagari", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    padding-bottom: 48px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

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

.site-header {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(139, 16, 24, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar,
.masthead,
.main-nav,
.ticker,
main,
.site-footer {
    max-width: 1180px;
    margin: 0 auto;
}

.topbar {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    font-size: 13px;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 8px 16px;
}

.today {
    color: var(--ink);
    font-weight: 700;
}

.tagline {
    display: none;
}

.location-filter {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-self: start;
}

select,
input,
textarea {
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.location-filter select {
    background: #fff;
    min-width: 120px;
    padding: 5px 8px;
}

.masthead {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 18px 16px 16px;
}

.brand {
    display: block;
    max-width: 370px;
}

.brand img {
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(139, 16, 24, 0.12);
    height: auto;
    max-height: 145px;
    object-fit: contain;
    width: 370px;
}

.header-ad {
    align-items: center;
    background: #fff8ef;
    border: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    min-height: 90px;
    padding: 16px;
    place-items: center;
    text-align: center;
}

.header-ad .ad-image-link,
.header-ad img {
    height: 100%;
    width: 100%;
}

.header-ad img {
    max-height: 120px;
    object-fit: contain;
}

.main-nav {
    align-items: center;
    background: var(--nav);
    color: #fff;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 12px;
    white-space: nowrap;
}

.main-nav a,
.category-link {
    font-weight: 800;
}

.main-nav a {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    padding: 17px 14px;
}

.main-nav a:hover {
    background: var(--accent);
    color: #fff;
}

.site-search {
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    margin-left: auto;
    min-width: 220px;
}

.site-search input {
    background: #731018;
    border: 0;
    border-radius: 0;
    color: #fff;
    height: 54px;
}

.site-search button {
    background: #731018;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    height: 54px;
    padding: 0 16px;
}

.ticker {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    min-height: 42px;
    overflow: hidden;
    padding: 0 16px;
}

.ticker b {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker div {
    flex: 1;
    min-width: 0;
}

.ticker a {
    display: inline-block;
    font-weight: 800;
    margin-right: 42px;
}

main {
    padding: 28px 16px 44px;
}

.hero-news {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-bottom: 26px;
    padding: 24px;
}

.section-kicker {
    color: var(--accent);
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero-news h1,
.page-shell h1,
.article-page h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.12;
    margin: 0;
}

.hero-summary {
    color: var(--muted);
    font-size: 18px;
    margin: 12px 0 0;
}

.ad-box {
    align-items: center;
    background: repeating-linear-gradient(-45deg, #fff8ef, #fff8ef 10px, #f4f0ea 10px, #f4f0ea 20px);
    border: 1px dashed #b9c0ca;
    color: var(--muted);
    display: grid;
    min-height: 96px;
    padding: 16px;
    place-items: center;
    text-align: center;
}

.ad-box span {
    color: var(--ink);
    font-weight: 900;
}

.ad-box.tall {
    min-height: 320px;
}

.local-ad {
    background: #fff;
    border: 1px solid var(--line);
    display: block;
    margin: 18px 0;
    overflow: hidden;
}

.local-ad img {
    height: auto;
    width: 100%;
}

.wide-ad img {
    max-height: 140px;
    object-fit: cover;
}

.lead-grid,
.content-grid {
    display: grid;
    gap: 22px;
}

.lead-grid {
    margin-bottom: 28px;
}

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

.news-card {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(139, 16, 24, 0.08);
    display: grid;
    overflow: hidden;
}

.thumb {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.65)),
        linear-gradient(135deg, #fff4e4, #e9f4f0 55%, #f9d9d9);
    display: grid;
    place-items: end start;
    position: relative;
}

.thumb::after {
    background: var(--blue);
    color: #fff;
    content: "ब्रेकिंग न्यूज़";
    font-size: 12px;
    font-weight: 900;
    left: 16px;
    padding: 6px 9px;
    position: absolute;
    top: 16px;
}

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

.thumb span {
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
    padding: 24px 18px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.75);
}

.news-card-body {
    padding: 16px;
}

.meta,
.article-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
}

.meta span:first-child,
.article-meta a {
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    padding: 3px 8px;
}

.news-card h2 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    margin: 10px 0;
}

.news-card p,
.standfirst {
    color: var(--muted);
    margin: 0 0 10px;
}

.news-card time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.section-heading {
    align-items: center;
    background: #fff;
    border-left: 5px solid var(--accent);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.section-heading h1,
.section-heading h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
}

.section-heading a {
    color: var(--accent);
    font-weight: 900;
}

.sidebar {
    align-content: start;
    display: grid;
    gap: 14px;
}

.category-link {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.category-link::after {
    color: #a0a7b2;
    content: "›";
    font-size: 26px;
    line-height: 1;
}

.page-shell,
.article-page {
    padding-top: 22px;
}

.article-page {
    background: #fff;
    border: 1px solid var(--line);
    max-width: 860px;
    padding: 28px;
}

.article-meta {
    margin-bottom: 12px;
}

.article-image {
    margin: 22px 0;
    width: 100%;
}

.article-content {
    font-size: 18px;
}

.static-page {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(139, 16, 24, 0.08);
    margin: 0 auto;
    max-width: 900px;
    padding: 28px;
}

.static-page h1 {
    border-bottom: 3px solid var(--accent);
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 18px;
    padding-bottom: 10px;
}

.static-page h2 {
    font-size: 22px;
    margin: 22px 0 8px;
}

.static-page p {
    color: #30343b;
    font-size: 17px;
    margin: 0 0 14px;
}

.contact-box {
    background: #fff8ef;
    border: 1px solid var(--line);
    margin: 16px 0;
    padding: 16px;
}

.empty {
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
}

.bottom-breaking {
    align-items: center;
    background: #242424;
    bottom: 0;
    color: #fff;
    display: flex;
    left: 0;
    min-height: 42px;
    position: fixed;
    right: 0;
    z-index: 50;
}

.bottom-breaking strong {
    align-self: stretch;
    background: var(--accent);
    display: grid;
    font-size: 13px;
    min-width: 170px;
    padding: 0 18px;
    place-items: center;
}

.bottom-breaking marquee {
    flex: 1;
}

.bottom-breaking a {
    margin-right: 48px;
}

.site-footer {
    background: #20252a;
    color: #ffffff;
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: none;
    padding: 38px 16px 44px;
    text-align: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

.footer-menu a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.footer-menu a:hover {
    color: #ffcb3d;
}

.site-footer p {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.admin-shell {
    max-width: 1120px;
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px;
}

.admin-grid,
.form-grid {
    display: grid;
    gap: 14px;
}

.btn {
    background: var(--accent);
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    padding: 10px 14px;
}

.btn.secondary {
    background: #176b45;
}

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

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.admin-thumb {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    height: 58px;
    object-fit: cover;
    width: 92px;
}

.no-thumb {
    color: var(--muted);
    font-size: 13px;
}

.featured-image-field {
    background: #fff8ef;
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.featured-image-field small {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.field-help {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.featured-preview {
    display: grid;
    gap: 8px;
    max-width: 360px;
}

.featured-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.featured-preview img {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    object-fit: cover;
    width: 100%;
}

.error {
    color: var(--accent);
    font-weight: 800;
}

@media (min-width: 760px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
    }

    .tagline {
        display: inline;
        text-align: center;
    }

    .location-filter {
        justify-self: end;
    }

    .masthead {
        grid-template-columns: 370px minmax(0, 1fr);
    }

    .masthead:has(.brand:last-child) {
        grid-template-columns: 370px;
    }

    .hero-news {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .lead-grid {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
    }

    .lead-grid .news-card:first-child {
        grid-row: span 2;
    }

    .lead-grid .news-card:first-child .thumb {
        aspect-ratio: 16 / 11;
    }

    .lead-grid .news-card:first-child h2 {
        font-size: 30px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .news-list .news-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }

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

    .form-grid .wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 759px) {
    .site-search {
        display: none;
    }

    .brand {
        max-width: 100%;
    }

    .brand img {
        width: 100%;
    }

    .bottom-breaking strong {
        min-width: 124px;
    }
}
