/*
Theme Name: Uttarapath
Theme URI: https://uttarapath.in
Description: Custom child theme for Uttarapath, based on Blocksy.
Author: Uttarapath
Template: blocksy
Version: 1.1.0
Text Domain: uttarapath
*/

:root {
    --up-red: #c5222d;
    --up-red-dark: #9f1822;
    --up-navy: #183b5b;
    --up-navy-dark: #102a43;
    --up-text: #38475a;
    --up-muted: #68778a;
    --up-cream: #f4f0e8;
    --up-paper: #faf8f3;
    --up-border: #e5ded2;
    --up-white: #ffffff;
    --up-shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--up-paper);
    color: var(--up-text);
    font-family: "Noto Sans Devanagari", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.82;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--up-navy-dark);
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}

a {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.up-home {
    overflow: hidden;
    background: var(--up-paper);
}

.up-shell {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.up-section {
    padding: clamp(70px, 8vw, 112px) 0;
}

.up-eyebrow {
    margin: 0 0 12px;
    color: var(--up-red);
    font-family: "Noto Sans Devanagari", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero */

.up-hero {
    position: relative;
    padding: clamp(64px, 8vw, 116px) 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(197, 34, 45, 0.11),
            transparent 32%
        ),
        linear-gradient(135deg, #f7f2e8 0%, #fffdf9 100%);
    border-bottom: 1px solid var(--up-border);
}

.up-hero::before {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    content: "";
    border: 1px solid rgba(197, 34, 45, 0.13);
    border-radius: 50%;
}

.up-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: center;
}

.up-hero-intro h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.65rem, 5vw, 4.8rem);
    line-height: 1.16;
}

.up-hero-description {
    max-width: 670px;
    margin: 26px 0 0;
    color: var(--up-text);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.8;
}

.up-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 36px;
}

.up-button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 25px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.up-button-primary {
    color: var(--up-white);
    background: var(--up-red);
    box-shadow: 0 12px 25px rgba(197, 34, 45, 0.18);
}

.up-button-primary:hover {
    color: var(--up-white);
    background: var(--up-navy);
    transform: translateY(-2px);
}

.up-text-link,
.up-section-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--up-navy);
    font-weight: 700;
    text-decoration: none;
}

.up-text-link:hover,
.up-section-link:hover {
    color: var(--up-red);
}

/* Featured card */

.up-featured-card {
    overflow: hidden;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 8px;
    box-shadow: var(--up-shadow);
}

.up-featured-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--up-cream);
}

.up-featured-image img,
.up-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.up-featured-card:hover .up-featured-image img,
.up-post-card:hover .up-card-image img,
.up-english-card:hover .up-card-image img {
    transform: scale(1.025);
}

.up-featured-content {
    padding: clamp(24px, 4vw, 38px);
}

.up-category-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--up-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.up-category-label:hover {
    color: var(--up-navy);
}

.up-featured-content h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.32;
}

.up-featured-content h2 a,
.up-post-card h3 a,
.up-english-card h3 a {
    color: inherit;
    text-decoration: none;
}

.up-featured-content h2 a:hover,
.up-post-card h3 a:hover {
    color: var(--up-red);
}

.up-post-excerpt {
    margin: 18px 0 0;
}

.up-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 22px;
    color: var(--up-muted);
    font-size: 0.82rem;
}

.up-post-meta a {
    color: var(--up-navy);
    font-weight: 700;
    text-decoration: none;
}

/* Section headings */

.up-section-heading {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.up-section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.25;
}

.up-section-heading-centred {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 48px;
    margin-left: auto;
    text-align: center;
}

.up-section-introduction {
    margin: 18px auto 0;
    color: var(--up-muted);
}

/* Latest article cards */

.up-latest-section {
    background: var(--up-paper);
}

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

.up-post-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 7px;
}

.up-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--up-cream);
}

.up-card-content {
    display: flex;
    height: 100%;
    padding: 26px;
    flex-direction: column;
}

.up-post-card h3,
.up-english-card h3 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.38;
}

.up-post-card .up-card-content > p:not(.up-category-label) {
    margin: 16px 0 0;
    color: var(--up-muted);
    font-size: 0.95rem;
}

.up-post-card .up-post-meta {
    margin-top: auto;
    padding-top: 22px;
}

/* Topics */

.up-topics-section {
    background: var(--up-cream);
    border-top: 1px solid var(--up-border);
    border-bottom: 1px solid var(--up-border);
}

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

.up-topic-card {
    position: relative;
    display: flex;
    min-height: 126px;
    padding: 24px;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    color: var(--up-navy-dark);
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 6px;
    text-decoration: none;
}

.up-topic-card:hover {
    color: var(--up-white);
    background: var(--up-navy);
    border-color: var(--up-navy);
    transform: translateY(-3px);
}

.up-topic-name {
    padding-right: 28px;
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.up-topic-count {
    margin-top: 7px;
    color: var(--up-muted);
    font-size: 0.8rem;
}

.up-topic-card:hover .up-topic-count {
    color: rgba(255, 255, 255, 0.72);
}

.up-topic-arrow {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: var(--up-red);
    font-size: 1.2rem;
}

.up-topic-card:hover .up-topic-arrow {
    color: var(--up-white);
}

/* English */

.up-english-section {
    color: rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(197, 34, 45, 0.25),
            transparent 30%
        ),
        var(--up-navy-dark);
}

.up-section-heading-light h2,
.up-section-heading-light .up-section-link {
    color: var(--up-white);
}

.up-section-heading-light .up-eyebrow {
    color: #f19a9f;
}

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

.up-english-card {
    overflow: hidden;
    color: var(--up-text);
    background: var(--up-white);
    border-radius: 7px;
}

.up-english-card h3 a:hover {
    color: var(--up-red);
}

.up-english-card .up-card-content > p:last-child {
    color: var(--up-muted);
}

.up-english-date {
    margin: 0 0 12px;
    color: var(--up-red);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Author */

.up-author-section {
    background: var(--up-white);
}

.up-author-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 720px);
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.up-author-mark {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: var(--up-white);
    background:
        linear-gradient(
            145deg,
            var(--up-red),
            var(--up-red-dark)
        );
    border-radius: 50%;
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-size: 5.5rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(197, 34, 45, 0.2);
}

.up-author-content h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
}

.up-author-content > p:not(.up-eyebrow) {
    margin: 18px 0 22px;
}

/* Single articles */

.single-post .entry-content {
    max-width: 820px;
    margin-inline: auto;
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-size: clamp(1.08rem, 1.3vw, 1.2rem);
    line-height: 1.95;
}

.single-post .entry-content p {
    margin-bottom: 1.55em;
}

.single-post .entry-content h2 {
    margin-top: 1.9em;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.single-post .entry-content h3 {
    margin-top: 1.7em;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.single-post blockquote {
    padding: 28px 30px;
    color: var(--up-navy-dark);
    background: var(--up-cream);
    border-left: 4px solid var(--up-red);
}

/* Responsive */

@media (max-width: 1024px) {
    .up-hero-grid {
        grid-template-columns: 1fr;
    }

    .up-featured-area {
        max-width: 760px;
    }

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

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

@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    .up-shell {
        width: min(100% - 28px, 1240px);
    }

    .up-section {
        padding: 64px 0;
    }

    .up-hero {
        padding: 56px 0 66px;
    }

    .up-hero-intro h1 {
        font-size: 2.55rem;
    }

    .up-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .up-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .up-post-grid,
    .up-topic-grid,
    .up-english-grid {
        grid-template-columns: 1fr;
    }

    .up-author-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .up-author-mark {
        width: 120px;
        height: 120px;
        margin-inline: auto;
        font-size: 4.5rem;
    }

    .up-author-content .up-text-link {
        justify-content: center;
    }
}

/* ==================================================
   Uttarapath header refinement
   ================================================== */

/* Hide duplicate textual site title beneath the logo */
#header .site-title,
.ct-header .site-title {
    display: none !important;
}

/* Give the logo a confident but balanced size */
#header [data-id="logo"] img,
.ct-header .site-logo-container img {
    width: auto;
    max-width: 205px;
    max-height: 74px;
    object-fit: contain;
}

/* Reduce excessive header height */
#header [data-row="middle"] .ct-container,
#header [data-row="middle"] .ct-container-fluid {
    min-height: 94px !important;
}

/* Navigation styling */
#header .menu > li > a {
    color: var(--up-navy);
    font-size: 15px;
    font-weight: 700;
}

#header .menu > li > a:hover,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a {
    color: var(--up-red);
}

/* Mobile logo sizing */
@media (max-width: 700px) {
    #header [data-id="logo"] img,
    .ct-header .site-logo-container img {
        max-width: 165px;
        max-height: 58px;
    }
}

/* ==================================================
   Uttarapath custom footer
   ================================================== */

/* Hide the parent Blocksy footer, while retaining its template and wp_footer hook */
footer.ct-footer {
    display: none !important;
}

.up-site-footer {
    color: rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(197, 34, 45, 0.20),
            transparent 28%
        ),
        #102a43;
    border-top: 4px solid var(--up-red);
}

.up-site-footer .up-shell {
    padding-top: 72px;
    padding-bottom: 26px;
}

.up-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(170px, 0.65fr) minmax(170px, 0.65fr);
    gap: clamp(42px, 7vw, 90px);
    padding-bottom: 58px;
}

.up-footer-brand {
    max-width: 560px;
}

.up-footer-logo {
    margin-bottom: 24px;
}

.up-footer-logo .custom-logo-link {
    display: inline-block;
}

.up-footer-logo img {
    width: auto;
    max-width: 235px;
    max-height: 82px;
    object-fit: contain;
}

.up-footer-title {
    color: #ffffff;
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
}

.up-footer-brand p {
    max-width: 520px;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.9;
}

.up-footer-column h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: "Noto Sans Devanagari", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.up-footer-column nav {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    flex-direction: column;
}

.up-footer-column a {
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.92rem;
    text-decoration: none;
}

.up-footer-column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.up-footer-bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.56);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.78rem;
}

.up-footer-bottom p {
    margin: 0;
}

@media (max-width: 800px) {
    .up-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .up-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .up-site-footer .up-shell {
        padding-top: 56px;
    }

    .up-footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .up-footer-brand {
        grid-column: auto;
    }

    .up-footer-logo img {
        max-width: 190px;
        max-height: 68px;
    }

    .up-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================
   Uttarapath article archives
   ================================================== */

.up-archive-page {
    min-height: 70vh;
    background: var(--up-paper);
}

.up-archive-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 7vw, 96px) 0;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(197, 34, 45, 0.11),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #f7f2e8 0%,
            #fffdf9 100%
        );
    border-bottom: 1px solid var(--up-border);
}

.up-archive-hero::after {
    position: absolute;
    top: -125px;
    right: -95px;
    width: 340px;
    height: 340px;
    content: "";
    border: 1px solid rgba(197, 34, 45, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.up-archive-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 36px;
    align-items: flex-end;
    justify-content: space-between;
}

.up-archive-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.18;
}

.up-archive-description {
    max-width: 760px;
    margin-top: 20px;
    color: var(--up-muted);
    font-size: 1.03rem;
}

.up-archive-description p {
    margin: 0;
}

.up-archive-count {
    flex: 0 0 auto;
    margin: 0 0 8px;
    padding: 9px 16px;
    color: var(--up-navy);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--up-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.up-archive-content {
    padding: clamp(58px, 7vw, 94px) 0;
}

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

.up-archive-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.04);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}

.up-archive-card:hover {
    border-color: rgba(197, 34, 45, 0.30);
    box-shadow: 0 18px 42px rgba(16, 42, 67, 0.09);
    transform: translateY(-4px);
}

.up-archive-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--up-cream);
}

.up-archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.up-archive-card:hover .up-archive-card-image img {
    transform: scale(1.025);
}

.up-archive-card-content {
    display: flex;
    height: 100%;
    padding: 27px;
    flex-direction: column;
}

.up-archive-card h2 {
    margin: 0;
    font-size: clamp(1.38rem, 2vw, 1.68rem);
    line-height: 1.4;
}

.up-archive-card h2 a {
    color: var(--up-navy-dark);
    text-decoration: none;
}

.up-archive-card h2 a:hover {
    color: var(--up-red);
}

.up-archive-excerpt {
    margin: 17px 0 0;
    color: var(--up-muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.up-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 21px;
    color: var(--up-muted);
    font-size: 0.78rem;
}

.up-archive-meta a {
    color: var(--up-navy);
    font-weight: 600;
    text-decoration: none;
}

.up-archive-read-more {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 21px;
    color: var(--up-red);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.up-archive-read-more:hover {
    color: var(--up-navy);
}

.up-archive-card-no-image {
    position: relative;
    min-height: 390px;
}

.up-archive-card-no-image::before {
    display: block;
    height: 7px;
    content: "";
    background:
        linear-gradient(
            90deg,
            var(--up-red),
            var(--up-navy)
        );
}

.up-pagination {
    margin-top: 58px;
}

.up-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: center;
}

.up-pagination .page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;
    color: var(--up-navy);
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.up-pagination .page-numbers:hover,
.up-pagination .page-numbers.current {
    color: var(--up-white);
    background: var(--up-red);
    border-color: var(--up-red);
}

.up-pagination .prev,
.up-pagination .next {
    padding-inline: 18px;
}

.up-no-results {
    max-width: 680px;
    margin-inline: auto;
    padding: 56px 30px;
    text-align: center;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 7px;
}

.up-no-results h2 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .up-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .up-archive-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .up-archive-count {
        margin-bottom: 0;
    }

    .up-archive-grid {
        grid-template-columns: 1fr;
    }

    .up-archive-card-content {
        padding: 23px;
    }

    .up-pagination .prev,
    .up-pagination .next {
        width: 100%;
    }
}

/* ==================================================
   Uttarapath single article
   ================================================== */

.up-single-page {
    background: var(--up-paper);
}

.up-single-hero {
    padding: clamp(60px, 8vw, 104px) 20px 48px;
    background:
        radial-gradient(
            circle at 86% 12%,
            rgba(197, 34, 45, 0.10),
            transparent 32%
        ),
        linear-gradient(135deg, #f7f2e8, #fffdf9);
    border-bottom: 1px solid var(--up-border);
}

.up-single-title-shell {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.up-single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.up-single-categories a {
    color: var(--up-red);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.up-single-hero h1 {
    margin: 0;
    font-size: clamp(2.55rem, 5.5vw, 5rem);
    line-height: 1.2;
}

.up-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 26px;
    color: var(--up-muted);
    font-size: 0.85rem;
}

.up-single-meta a {
    color: var(--up-navy);
    font-weight: 700;
    text-decoration: none;
}

.up-single-featured {
    width: min(1120px, calc(100% - 40px));
    margin: 52px auto 0;
    overflow: hidden;
    background: var(--up-cream);
    border-radius: 8px;
}

.up-single-featured img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.up-single-layout {
    display: grid;
    width: min(1080px, calc(100% - 40px));
    margin: 64px auto 90px;
    grid-template-columns: 120px minmax(0, 820px);
    gap: 42px;
    justify-content: center;
}

.up-share-panel {
    position: sticky;
    top: 120px;
    display: flex;
    height: max-content;
    gap: 10px;
    flex-direction: column;
    font-size: 0.76rem;
}

.up-share-panel > span {
    margin-bottom: 5px;
    color: var(--up-muted);
    font-weight: 700;
}

.up-share-panel a {
    color: var(--up-navy);
    font-weight: 700;
    text-decoration: none;
}

.up-share-panel a:hover {
    color: var(--up-red);
}

.up-article-content {
    max-width: 820px;
    margin: 0;
    color: #27394b;
    font-family: "Noto Serif Devanagari", Georgia, serif;
    font-size: clamp(1.08rem, 1.35vw, 1.22rem);
    line-height: 2;
}

.up-article-content p {
    margin: 0 0 1.55em;
}

.up-article-content h2 {
    margin: 2em 0 0.7em;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    line-height: 1.35;
}

.up-article-content h3 {
    margin: 1.8em 0 0.7em;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.up-article-content blockquote {
    margin: 2.2em 0;
    padding: 28px 30px;
    color: var(--up-navy-dark);
    background: var(--up-cream);
    border-left: 4px solid var(--up-red);
}

.up-article-content img {
    border-radius: 5px;
}

.up-single-tags {
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--up-border);
}

.up-single-tags > span {
    display: block;
    margin-bottom: 14px;
    color: var(--up-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.up-single-tags > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.up-single-tags a {
    padding: 7px 13px;
    color: var(--up-navy);
    background: var(--up-cream);
    border: 1px solid var(--up-border);
    border-radius: 999px;
    font-size: 0.76rem;
    text-decoration: none;
}

.up-author-box {
    display: grid;
    margin-top: 60px;
    padding: 34px;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 28px;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 7px;
}

.up-author-avatar img {
    border-radius: 50%;
}

.up-author-box h2 {
    margin: 0;
    font-size: 1.8rem;
}

.up-author-box p:not(.up-eyebrow) {
    margin: 12px 0;
}

.up-author-box a {
    color: var(--up-red);
    font-weight: 700;
    text-decoration: none;
}

.up-related-posts {
    margin-top: 72px;
}

.up-related-heading {
    margin-bottom: 28px;
}

.up-related-heading h2 {
    margin: 0;
    font-size: 2.2rem;
}

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

.up-related-card {
    overflow: hidden;
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 6px;
}

.up-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.up-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-related-card > div {
    padding: 18px;
}

.up-related-card p {
    margin: 0 0 8px;
    color: var(--up-red);
    font-size: 0.72rem;
}

.up-related-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.5;
}

.up-related-card h3 a {
    color: var(--up-navy-dark);
    text-decoration: none;
}

.up-post-navigation {
    display: grid;
    margin-top: 68px;
    padding-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    border-top: 1px solid var(--up-border);
}

.up-post-nav-item {
    display: flex;
    min-height: 130px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    color: var(--up-navy-dark);
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 6px;
    text-decoration: none;
}

.up-post-nav-item span {
    margin-bottom: 8px;
    color: var(--up-red);
    font-size: 0.76rem;
    font-weight: 700;
}

.up-post-nav-next {
    text-align: right;
}

@media (max-width: 900px) {
    .up-single-layout {
        grid-template-columns: 1fr;
    }

    .up-share-panel {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .up-share-panel > span {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .up-single-hero {
        padding-top: 52px;
    }

    .up-single-featured {
        width: calc(100% - 28px);
        margin-top: 34px;
    }

    .up-single-layout {
        width: calc(100% - 28px);
        margin-top: 44px;
    }

    .up-author-box {
        grid-template-columns: 1fr;
        padding: 26px;
        text-align: center;
    }

    .up-author-avatar {
        margin-inline: auto;
    }

    .up-related-grid,
    .up-post-navigation {
        grid-template-columns: 1fr;
    }

    .up-post-nav-next {
        text-align: left;
    }
}

/* ==================================================
   Imported article-content normalisation
   ================================================== */

/*
 * WordPress.com imports may preserve alignleft/alignright,
 * HTML align attributes and old floating image styles.
 * Uttarapath uses a calm, centred editorial layout instead.
 */
.up-article-content .alignleft,
.up-article-content .alignright,
.up-article-content .aligncenter,
.up-article-content [align="left"],
.up-article-content [align="right"],
.up-article-content [align="center"],
.up-article-content figure.alignleft,
.up-article-content figure.alignright,
.up-article-content figure.aligncenter,
.up-article-content .wp-caption.alignleft,
.up-article-content .wp-caption.alignright,
.up-article-content .wp-caption.aligncenter {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 2.4em auto !important;
}

/* Prevent text from wrapping beside imported media */
.up-article-content img,
.up-article-content figure,
.up-article-content .wp-caption,
.up-article-content video,
.up-article-content iframe {
    float: none !important;
    clear: both !important;
    max-width: 100% !important;
}

.up-article-content img {
    display: block;
    width: auto;
    height: auto;
    margin: 2.2em auto;
}

/* Preserve intentionally wide Gutenberg images */
.up-article-content .alignwide {
    width: min(980px, 100%) !important;
    max-width: 980px !important;
    margin: 2.6em 50%;
    transform: translateX(-50%);
}

.up-article-content .alignfull {
    position: relative;
    left: 50%;
    width: min(1120px, calc(100vw - 40px)) !important;
    max-width: none !important;
    margin: 2.8em 0;
    transform: translateX(-50%);
}

/* Captions */
.up-article-content figcaption,
.up-article-content .wp-caption-text {
    max-width: 720px;
    margin: -1.4em auto 2.4em;
    color: var(--up-muted);
    font-family: "Noto Sans Devanagari", sans-serif;
    font-size: 0.78rem;
    line-height: 1.65;
    text-align: center;
}

/* Ensure paragraphs begin below preceding media */
.up-article-content p {
    clear: both;
}

/* Refine the main featured image */
.up-single-featured {
    aspect-ratio: 16 / 9;
    max-height: 590px;
}

.up-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keep very long titles dramatic without overwhelming the screen */
.up-single-title-shell h1 {
    max-width: 940px;
    margin-inline: auto;
    font-size: clamp(2.45rem, 4.8vw, 4.55rem);
}

/* Refine sticky share links */
.up-share-panel a {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 11px;
    align-items: center;
    color: var(--up-navy);
    background: var(--up-white);
    border: 1px solid var(--up-border);
    border-radius: 4px;
}

.up-share-panel a:hover {
    color: var(--up-white);
    background: var(--up-red);
    border-color: var(--up-red);
}

@media (max-width: 700px) {
    .up-article-content .alignwide,
    .up-article-content .alignfull {
        left: auto;
        width: 100% !important;
        margin: 2.2em auto;
        transform: none;
    }

    .up-single-featured {
        aspect-ratio: auto;
        max-height: none;
    }

    .up-single-featured img {
        height: auto;
        object-fit: contain;
    }
}
