/*
 * Single Post / Story Styles — New Hope to Asia
 * NHTA Design System v2 — dark hero banner + warm reading area + related stories
 */

/* ===== GP OVERRIDES ===== */
.single-post .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.single-post .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
}
.single-post .entry-header {
    display: none !important;
}
.single-post .post-tags,
.single-post .tags-links,
.nhta-single-tags {
    display: none !important;
}
.single-post .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.single-post .site-main {
    max-width: 100% !important;
    margin: 0 !important;
}
.single-post .content-area {
    width: 100% !important;
    float: none !important;
}
.single-post #right-sidebar,
.single-post .widget-area {
    display: none !important;
}
/* Hide GP's default featured image — we render our own */
.single-post .post-image {
    display: none !important;
}

/* ===== HERO: SLIM DARK BANNER ===== */
.nhta-single-hero {
    background: var(--nhta-charcoal);
    position: relative;
    overflow: hidden;
    padding: 48px 40px 56px;
    text-align: center;
}
/* Grain texture */
.nhta-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    z-index: 1;
}
/* Amber glow */
.nhta-single-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,133,74,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.nhta-single-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

/* Breadcrumb */
.nhta-single-breadcrumb {
    font-family: var(--nhta-sans);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.4);
    margin-bottom: 20px;
}
.nhta-single-breadcrumb a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color var(--nhta-t);
}
.nhta-single-breadcrumb a:hover {
    color: var(--nhta-amber-light);
}
.nhta-single-sep {
    margin: 0 6px;
    opacity: .4;
}

/* Hero label */
.nhta-single-hero .nhta-label {
    margin-bottom: 14px;
    display: block;
}

/* Hero title */
.nhta-single-hero-h1 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(28px, 3.5vw, 44px) !important;
    font-weight: 700 !important;
    color: white !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em;
    margin: 0 !important;
}
.nhta-single-hero-h1::after {
    display: none !important;
}

/* Meta (date + author) */
.nhta-single-meta {
    font-family: var(--nhta-sans);
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,.5);
    margin-top: 16px;
}
.nhta-single-meta-sep {
    margin: 0 6px;
}

/* ===== ARTICLE: WARM READING AREA ===== */
.nhta-single-article {
    background: var(--nhta-cream);
    padding: 56px 40px 64px;
}
.nhta-single-article-inner {
    max-width: 780px;
    margin: 0 auto;
}

/* Featured image */
.nhta-single-featured {
    margin: 0 0 36px;
    border-radius: var(--nhta-r-md);
    overflow: hidden;
    position: relative;
}
.nhta-single-featured img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--nhta-r-md);
}
/* Caption added by functions.php filter */
.nhta-single-featured .featured-image-caption {
    display: block;
    text-align: center;
    font-family: var(--nhta-sans);
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: var(--nhta-muted);
    margin-top: 12px;
}

/* Content body */
.nhta-single-content {
    font-family: var(--nhta-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--nhta-ink-2);
}
.nhta-single-content p {
    margin-bottom: 1.6em;
}
.nhta-single-content h2 {
    font-family: var(--nhta-display) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    margin: 2em 0 0.8em !important;
    line-height: 1.2 !important;
}
.nhta-single-content h2::after {
    display: none !important;
}
.nhta-single-content h3 {
    font-family: var(--nhta-display) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    margin: 1.8em 0 0.6em !important;
    line-height: 1.25 !important;
}
.nhta-single-content h3::after {
    display: none !important;
}
.nhta-single-content a {
    color: var(--nhta-sky);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--nhta-t);
}
.nhta-single-content a:hover {
    color: #2a6a96;
}
.nhta-single-content blockquote {
    font-family: var(--nhta-serif);
    font-size: 18px;
    font-style: italic;
    font-weight: 300;
    color: var(--nhta-muted);
    line-height: 1.7;
    border-left: 3px solid var(--nhta-amber);
    padding: 8px 0 8px 24px;
    margin: 2em 0;
}
.nhta-single-content img {
    border-radius: var(--nhta-r-md);
    max-width: 100%;
    height: auto;
}
.nhta-single-content .wp-caption {
    max-width: 100%;
}
.nhta-single-content .wp-caption-text,
.nhta-single-content figcaption {
    font-family: var(--nhta-sans);
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: var(--nhta-muted);
    text-align: center;
    margin-top: 8px;
}
.nhta-single-content figure {
    margin-bottom: 28px;
}
.nhta-single-content ul,
.nhta-single-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.6em;
}
.nhta-single-content li {
    margin-bottom: 0.5em;
}

/* Tags */
.nhta-single-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--nhta-cream-3);
}
.nhta-single-tag {
    font-family: var(--nhta-sans);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--nhta-cream-3);
    background: white;
    color: var(--nhta-muted);
    text-decoration: none;
    transition: all var(--nhta-t);
}
.nhta-single-tag:hover {
    border-color: var(--nhta-amber);
    color: var(--nhta-amber);
}

/* ===== POST NAVIGATION ===== */
.nhta-single-nav {
    background: var(--nhta-cream);
    padding: 0 40px 64px;
}
.nhta-single-nav-inner {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-top: 1px solid var(--nhta-cream-3);
    padding-top: 32px;
}
.nhta-single-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    padding: 20px;
    border-radius: var(--nhta-r-md);
    background: white;
    border: 1px solid var(--nhta-cream-3);
    transition: all var(--nhta-t);
}
.nhta-single-nav-link:hover {
    border-color: var(--nhta-amber);
    box-shadow: var(--nhta-shadow-sm);
}
.nhta-single-nav-next {
    text-align: right;
}
.nhta-single-nav-label {
    font-family: var(--nhta-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--nhta-amber);
}
.nhta-single-nav-title {
    font-family: var(--nhta-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--nhta-ink);
    line-height: 1.3;
}

/* ===== RELATED STORIES ===== */
.nhta-single-related {
    background: var(--nhta-cream-2);
    padding: 72px 40px;
}
.nhta-single-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.nhta-single-related-heading {
    text-align: center;
    margin-bottom: 40px;
}
.nhta-single-related-heading .nhta-rule.center {
    margin: 12px auto 18px;
}
.nhta-single-related-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}
.nhta-single-related-h2::after {
    display: none !important;
}
.nhta-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Reuse .nhta-story-card from stories-page.css — loaded globally or repeat here */
.nhta-single-related .nhta-story-card {
    background: white;
    border: 1px solid var(--nhta-cream-3);
    border-radius: var(--nhta-r-md);
    overflow: hidden;
    box-shadow: var(--nhta-shadow-sm);
    transition: box-shadow var(--nhta-t), transform var(--nhta-t);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}
.nhta-single-related .nhta-story-card:hover {
    box-shadow: var(--nhta-shadow-md);
    transform: translateY(-2px);
}
.nhta-single-related .nhta-story-img {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--nhta-cream-2);
}
.nhta-single-related .nhta-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.nhta-single-related .nhta-story-card:hover .nhta-story-img img {
    transform: scale(1.04);
}
.nhta-single-related .nhta-story-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--nhta-cream-2);
}
.nhta-single-related .nhta-story-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nhta-single-related .nhta-story-cat {
    font-family: var(--nhta-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--nhta-amber);
    margin-bottom: 8px;
}
.nhta-single-related .nhta-story-title {
    font-family: var(--nhta-display) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
}
.nhta-single-related .nhta-story-title::after {
    display: none !important;
}
.nhta-single-related .nhta-story-excerpt {
    font-family: var(--nhta-sans);
    font-size: 12.5px;
    color: var(--nhta-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 14px;
    font-weight: 300;
}
.nhta-single-related .nhta-story-meta {
    font-family: var(--nhta-sans);
    font-size: 10.5px;
    color: #c0b9b0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nhta-single-related .nhta-story-meta::before {
    content: '';
    width: 18px;
    height: 1px;
    background: #e0d9ce;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nhta-single-related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nhta-single-nav-inner {
        grid-template-columns: 1fr;
    }
    .nhta-single-nav-next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nhta-single-hero {
        padding: 36px 24px 40px;
    }
    .nhta-single-article {
        padding: 36px 20px 48px;
    }
    .nhta-single-nav {
        padding: 0 20px 48px;
    }
    .nhta-single-related {
        padding: 48px 20px;
    }
    .nhta-single-related-grid {
        grid-template-columns: 1fr;
    }
}
