/**
 * Valley View University — Newsroom Editorial System
 * =================================================
 * Replaces the photo-with-text-on-top treatment used across the news and
 * event pages. Core principles:
 *
 *  1. Type never sits on photography. Headlines live on paper; images are
 *     framed companions. This is what makes the pages read as "blended" —
 *     no scrim can rescue white text over an unpredictable photo.
 *  2. Warm paper canvas instead of cold blue-grey, so the pages feel
 *     printed rather than templated.
 *  3. Serif headlines (Merriweather, already loaded site-wide) with Inter
 *     for interface text — the classic newsroom voice pairing.
 *  4. Human signals everywhere: author faces, relative dates, read times.
 *
 * Namespaced .ed-* so it never collides with news-portal.css.
 */

/* =====================================================
   TOKENS
   ===================================================== */
:root {
    /* Surfaces — warm, paper-like */
    --ed-paper: #fffdfb;
    --ed-canvas: #f7f3ee;
    --ed-canvas-deep: #efe8e0;

    /* Ink */
    --ed-ink: #16203a;
    --ed-ink-soft: #4a5568;
    --ed-ink-muted: #8a8578;

    /* Brand */
    --ed-navy: #002147;
    --ed-accent: #c8501c;
    --ed-accent-soft: #e0703b;

    --ed-rule: #e5ddd3;
    --ed-rule-strong: #d5cabd;

    --ed-shadow-sm: 0 1px 2px rgba(35, 25, 15, .05);
    --ed-shadow: 0 8px 26px rgba(45, 32, 18, .08);
    --ed-shadow-lg: 0 26px 60px rgba(45, 32, 18, .14);

    --ed-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --ed-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ed-ease: cubic-bezier(.22, .7, .28, 1);
}

.ed-news,
.ed-article {
    background: var(--ed-canvas);
    font-family: var(--ed-sans);
    color: var(--ed-ink-soft);
    padding-bottom: 10px;
}

.ed-news ::selection,
.ed-article ::selection {
    background: rgba(200, 80, 28, .18);
}

/* =====================================================
   MASTHEAD — the page's own introduction
   ===================================================== */
.ed-masthead {
    padding: 54px 0 34px;
    border-bottom: 1px solid var(--ed-rule);
    background: var(--ed-paper);
}

.ed-masthead-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.ed-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--ed-accent);
    margin-bottom: 14px;
}

.ed-eyebrow:before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--ed-accent);
}

.ed-masthead h1 {
    font-family: var(--ed-serif);
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -1px;
    color: var(--ed-navy);
    margin: 0 0 14px;
}

.ed-masthead p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ed-ink-muted);
    max-width: 560px;
    margin: 0;
}

.ed-masthead-stat {
    text-align: right;
    padding-left: 26px;
    border-left: 1px solid var(--ed-rule);
}

.ed-masthead-stat strong {
    display: block;
    font-family: var(--ed-serif);
    font-size: 36px;
    line-height: 1;
    color: var(--ed-navy);
}

.ed-masthead-stat span {
    font-size: 11.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ed-ink-muted);
}

/* =====================================================
   KICKER — category label as small caps + dot
   (replaces the coloured chips that floated over photos)
   ===================================================== */
.ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--ed-ink-muted);
    margin-bottom: 14px;
}

.ed-kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ed-accent);
    flex-shrink: 0;
}

.ed-kicker .sep {
    color: var(--ed-rule-strong);
}

.ed-kicker strong {
    color: var(--ed-navy);
    font-weight: 700;
}

/* =====================================================
   BYLINE — the human signature
   ===================================================== */
.ed-byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ed-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ed-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 33, 71, .22);
}

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

.ed-avatar.sm {
    width: 30px;
    height: 30px;
    font-size: 10.5px;
}

.ed-byline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ed-byline-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ed-ink);
}

.ed-byline-meta {
    font-size: 12.5px;
    color: var(--ed-ink-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.ed-byline-meta .sep {
    color: var(--ed-rule-strong);
}

/* =====================================================
   FEATURED STORY — split panel, no text over photo
   ===================================================== */
.ed-featured {
    padding: 44px 0 10px;
}

.ed-featured-panel {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--ed-shadow);
    transition: box-shadow .45s var(--ed-ease);
}

.ed-featured-panel:hover {
    box-shadow: var(--ed-shadow-lg);
}

.ed-featured-media {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    background: var(--ed-canvas-deep);
}

.ed-featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ed-ease);
}

.ed-featured-panel:hover .ed-featured-media img {
    transform: scale(1.045);
}

/* A whisper of warmth so photos sit in the same palette as the paper */
.ed-featured-media:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0, 33, 71, .12) 0%, rgba(200, 80, 28, .07) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.ed-flag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--ed-paper);
    color: var(--ed-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(35, 25, 15, .18);
}

.ed-featured-body {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ed-featured-title {
    font-family: var(--ed-serif);
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -.6px;
    color: var(--ed-navy);
    margin: 0 0 18px;
}

.ed-featured-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--ed-accent), var(--ed-accent));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .45s var(--ed-ease), color .3s ease;
}

.ed-featured-title a:hover {
    color: var(--ed-accent);
    background-size: 100% 2px;
}

.ed-featured-excerpt {
    font-size: 17px;
    line-height: 1.72;
    color: var(--ed-ink-soft);
    margin: 0 0 28px;
}

.ed-featured-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--ed-rule);
}

/* Buttons */
.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 4px;
    background: var(--ed-navy);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none !important;
    border: 1px solid var(--ed-navy);
    transition: background .3s ease, transform .3s var(--ed-ease), box-shadow .3s ease;
}

.ed-btn:hover {
    background: var(--ed-accent);
    border-color: var(--ed-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 80, 28, .28);
}

.ed-btn i {
    font-size: 12px;
    transition: transform .3s var(--ed-ease);
}

.ed-btn:hover i {
    transform: translateX(4px);
}

.ed-btn-ghost {
    background: transparent;
    color: var(--ed-navy) !important;
    border-color: var(--ed-rule-strong);
}

.ed-btn-ghost:hover {
    background: var(--ed-navy);
    color: #fff !important;
    border-color: var(--ed-navy);
    box-shadow: 0 10px 24px rgba(0, 33, 71, .2);
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.ed-section {
    padding: 52px 0 20px;
}

.ed-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 34px;
    border-bottom: 2px solid var(--ed-navy);
}

.ed-section-head h2 {
    font-family: var(--ed-serif);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.4px;
    color: var(--ed-navy);
    margin: 0;
}

.ed-section-head .ed-count {
    font-size: 12.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ed-ink-muted);
}

/* =====================================================
   STORY CARDS
   ===================================================== */
.ed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 28px;
}

.ed-card {
    display: flex;
    flex-direction: column;
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-radius: 5px;
    overflow: hidden;
    transition: transform .45s var(--ed-ease), box-shadow .45s ease, border-color .45s ease;
}

.ed-card:hover {
    transform: translateY(-5px);
    border-color: var(--ed-rule-strong);
    box-shadow: var(--ed-shadow);
}

.ed-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ed-canvas-deep);
}

.ed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ed-ease);
}

.ed-card:hover .ed-card-media img {
    transform: scale(1.06);
}

.ed-card-media:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0, 33, 71, .1) 0%, rgba(200, 80, 28, .06) 100%);
    mix-blend-mode: multiply;
}

/* Date tile for events — reads as a calendar tear-off */
.ed-datetile {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 54px;
    text-align: center;
    background: var(--ed-paper);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(35, 25, 15, .22);
}

.ed-datetile .m {
    display: block;
    background: var(--ed-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 3px 0;
}

.ed-datetile .d {
    display: block;
    font-family: var(--ed-serif);
    font-size: 21px;
    font-weight: 900;
    color: var(--ed-navy);
    padding: 4px 0 6px;
}

.ed-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 20px;
}

.ed-card-title {
    font-family: var(--ed-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.2px;
    margin: 0 0 12px;
}

.ed-card-title a {
    color: var(--ed-navy);
    text-decoration: none;
    transition: color .3s ease;
}

.ed-card:hover .ed-card-title a {
    color: var(--ed-accent);
}

.ed-card-excerpt {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ed-ink-muted);
    margin: 0 0 20px;
}

.ed-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--ed-rule);
}

.ed-card-where {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ed-ink-muted);
    margin: -6px 0 16px;
}

.ed-card-where i {
    color: var(--ed-accent);
}

/* First card on the page runs wide when there is no featured panel */
.ed-card.is-wide {
    grid-column: span 2;
    flex-direction: row;
}

.ed-card.is-wide .ed-card-media {
    flex: 0 0 46%;
    aspect-ratio: auto;
}

.ed-card.is-wide .ed-card-body {
    padding: 30px 32px;
    justify-content: center;
}

.ed-card.is-wide .ed-card-title {
    font-size: 24px;
}

/* =====================================================
   FILTER RAIL
   ===================================================== */
.ed-rail {
    position: sticky;
    top: 116px;
    z-index: 90;
    background: rgba(255, 253, 251, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ed-rule);
}

.ed-rail-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 0;
}

.ed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ed-tab {
    position: relative;
    padding: 9px 15px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ed-ink-soft);
    text-decoration: none !important;
    transition: color .25s ease, background .25s ease;
}

.ed-tab:hover {
    color: var(--ed-navy);
    background: var(--ed-canvas);
}

.ed-tab.is-active {
    color: var(--ed-navy);
}

.ed-tab.is-active:after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--ed-accent);
}

.ed-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.ed-search-field i {
    position: absolute;
    left: 13px;
    font-size: 13px;
    color: var(--ed-ink-muted);
    pointer-events: none;
}

.ed-search-field input {
    width: 240px;
    height: 40px;
    padding: 0 34px 0 34px;
    border: 1px solid var(--ed-rule-strong);
    border-radius: 4px;
    background: var(--ed-paper);
    font-family: var(--ed-sans);
    font-size: 14px;
    color: var(--ed-ink);
    transition: border-color .25s ease, box-shadow .25s ease, width .3s var(--ed-ease);
}

.ed-search-field input:focus {
    outline: none;
    width: 280px;
    border-color: var(--ed-accent);
    box-shadow: 0 0 0 3px rgba(200, 80, 28, .12);
}

.ed-search-clear {
    position: absolute;
    right: 10px;
    color: var(--ed-ink-muted);
    font-size: 12px;
}

.ed-search button {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    background: var(--ed-navy);
    color: #fff;
    font-family: var(--ed-sans);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease;
}

.ed-search button:hover {
    background: var(--ed-accent);
}

.ed-result-note {
    padding: 0 0 18px;
    font-size: 14px;
    color: var(--ed-ink-muted);
}

.ed-result-note strong {
    color: var(--ed-navy);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.ed-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--ed-paper);
    border: 1px dashed var(--ed-rule-strong);
    border-radius: 6px;
}

.ed-empty i {
    font-size: 42px;
    color: var(--ed-rule-strong);
    margin-bottom: 18px;
}

.ed-empty h3 {
    font-family: var(--ed-serif);
    font-size: 23px;
    color: var(--ed-navy);
    margin: 0 0 10px;
}

.ed-empty p {
    color: var(--ed-ink-muted);
    max-width: 440px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.ed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 50px 0 10px;
}

.ed-page,
.ed-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ed-rule);
    border-radius: 4px;
    background: var(--ed-paper);
    color: var(--ed-ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .25s var(--ed-ease);
}

.ed-page:hover,
.ed-page-arrow:hover {
    border-color: var(--ed-navy);
    color: var(--ed-navy);
}

.ed-page.is-active {
    background: var(--ed-navy);
    border-color: var(--ed-navy);
    color: #fff;
}

.ed-page-gap {
    color: var(--ed-ink-muted);
    padding: 0 4px;
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.ed-subscribe {
    margin: 60px 0 0;
    padding: 46px 0;
    background: var(--ed-navy);
    background-image:
        radial-gradient(circle at 12% 20%, rgba(200, 80, 28, .30) 0%, rgba(200, 80, 28, 0) 45%),
        radial-gradient(circle at 88% 80%, rgba(0, 130, 180, .22) 0%, rgba(0, 130, 180, 0) 50%);
}

.ed-subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.ed-subscribe h2 {
    font-family: var(--ed-serif);
    font-size: 27px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
}

.ed-subscribe p {
    color: rgba(255, 255, 255, .72);
    margin: 0;
    max-width: 460px;
    line-height: 1.65;
    font-size: 15px;
}

.ed-subscribe form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ed-subscribe input {
    width: 290px;
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: var(--ed-sans);
    font-size: 15px;
}

.ed-subscribe input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.ed-subscribe input:focus {
    outline: none;
    border-color: var(--ed-accent-soft);
    background: rgba(255, 255, 255, .16);
}

.ed-subscribe button {
    height: 48px;
    padding: 0 26px;
    border: none;
    border-radius: 4px;
    background: var(--ed-accent);
    color: #fff;
    font-family: var(--ed-sans);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, transform .25s var(--ed-ease);
}

.ed-subscribe button:hover {
    background: var(--ed-accent-soft);
    transform: translateY(-2px);
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.ed-article-head {
    background: var(--ed-paper);
    border-bottom: 1px solid var(--ed-rule);
    padding: 40px 0 42px;
}

.ed-crumbs {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 0 26px !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    font-size: 12.5px;
    color: var(--ed-ink-muted);
}

.ed-crumbs a {
    color: var(--ed-ink-muted) !important;
    text-decoration: none;
    padding: 0 !important;
    height: auto;
    line-height: 1.5;
    font-size: 12.5px;
    transition: color .25s ease;
}

.ed-crumbs a:hover {
    color: var(--ed-accent) !important;
}

.ed-crumbs .sep {
    color: var(--ed-rule-strong);
    font-size: 10px;
}

.ed-crumbs .current {
    color: var(--ed-ink);
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ed-headline {
    font-family: var(--ed-serif);
    font-size: clamp(30px, 3.9vw, 50px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.1px;
    color: var(--ed-navy);
    margin: 0 0 20px;
    max-width: 20ch;
}

.ed-standfirst {
    font-family: var(--ed-serif);
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 300;
    line-height: 1.66;
    color: var(--ed-ink-soft);
    margin: 0 0 30px;
    max-width: 62ch;
}

.ed-article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--ed-rule);
}

.ed-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    color: var(--ed-ink-muted);
}

.ed-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ed-stats i {
    color: var(--ed-accent);
    font-size: 13px;
}

/* Hero image sits below the headline, framed as a figure */
.ed-article-figure {
    margin: 0;
    background: var(--ed-canvas);
}

.ed-article-figure .ed-figure-frame {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: var(--ed-canvas-deep);
    box-shadow: var(--ed-shadow);
    margin-top: 34px;
}

.ed-article-figure img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.ed-article-figure figcaption {
    padding: 14px 2px 0;
    font-size: 13px;
    color: var(--ed-ink-muted);
    border-top: 1px solid var(--ed-rule);
    margin-top: 14px;
}

/* Event fact strip under the headline */
.ed-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 26px 0 0;
    background: var(--ed-canvas);
    border: 1px solid var(--ed-rule);
    border-radius: 5px;
    overflow: hidden;
}

.ed-fact {
    flex: 1 1 180px;
    padding: 18px 22px;
    border-right: 1px solid var(--ed-rule);
}

.ed-fact:last-child {
    border-right: none;
}

.ed-fact span {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ed-ink-muted);
    margin-bottom: 6px;
}

.ed-fact strong {
    display: block;
    font-family: var(--ed-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--ed-navy);
    line-height: 1.35;
}

/* =====================================================
   ARTICLE BODY
   Re-tunes the shared news-portal / news-modern rules to the editorial
   palette. The old layer assumed a photo hero above the content card,
   so the negative overlap is unwound here.
   ===================================================== */
.ed-article.news-detail-page {
    background: var(--ed-canvas);
}

.ed-article .article-content-section {
    padding: 40px 0 70px;
}

.ed-article .article-wrapper {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 46px;
    align-items: start;
}

.ed-article .article-main {
    margin-top: 0;
    padding: 8px 0 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Comfortable measure — the single biggest readability win */
.ed-article .article-body {
    font-family: var(--ed-sans);
    font-size: 18px;
    line-height: 1.85;
    color: var(--ed-ink-soft);
    max-width: 68ch;
}

.ed-article .article-body p {
    margin-bottom: 26px;
}

/* No drop cap — the standfirst already opens the article */
.ed-article .article-body>p:first-of-type:first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit;
    padding: 0;
}

.ed-article .article-body h2,
.ed-article .article-body h3,
.ed-article .article-body h4 {
    font-family: var(--ed-serif);
    color: var(--ed-navy);
    font-weight: 900;
    letter-spacing: -.4px;
    padding-left: 0;
    margin-top: 46px;
    margin-bottom: 16px;
}

.ed-article .article-body h2:before,
.ed-article .article-body h3:before,
.ed-article .article-body h4:before {
    display: none;
}

.ed-article .article-body h2 {
    font-size: 27px;
}

.ed-article .article-body h3 {
    font-size: 21px;
}

.ed-article .article-body ul li:before {
    background: var(--ed-accent);
    box-shadow: 0 0 0 4px rgba(200, 80, 28, .12);
}

.ed-article .article-body blockquote {
    background: none;
    border-radius: 0;
    border-left: 3px solid var(--ed-accent);
    padding: 6px 0 6px 30px;
    margin: 38px 0;
    font-family: var(--ed-serif);
    font-size: 21px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--ed-navy);
    max-width: 62ch;
}

.ed-article .article-body blockquote:before {
    display: none;
}

.ed-article .article-body a {
    color: var(--ed-accent);
}

.ed-article .article-body a:hover {
    color: var(--ed-navy);
}

.ed-article .article-body img {
    border-radius: 4px;
    box-shadow: var(--ed-shadow);
}

/* Tags, share and nav rendered as quiet footer furniture */
.ed-article .article-tags,
.ed-article .article-navigation {
    border-top: 1px solid var(--ed-rule);
    max-width: 68ch;
}

.ed-article .tags-label {
    color: var(--ed-ink-muted);
    font-size: 13px;
}

.ed-article .tag-item {
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    color: var(--ed-ink-soft);
    border-radius: 3px;
    font-size: 12.5px;
}

.ed-article .tag-item:hover {
    background: var(--ed-navy);
    border-color: var(--ed-navy);
    color: #fff;
}

.ed-article .article-share {
    max-width: 68ch;
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-radius: 5px;
}

.ed-article .share-label {
    font-family: var(--ed-sans);
    color: var(--ed-navy);
}

.ed-article .share-btn {
    border-radius: 4px;
}

.ed-article .nav-back,
.ed-article .nav-category {
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-radius: 4px;
    color: var(--ed-navy);
}

.ed-article .nav-back:hover,
.ed-article .nav-category:hover {
    background: var(--ed-navy);
    color: #fff;
    box-shadow: none;
}

/* Sidebar as a quiet rail, not a stack of floating cards */
.ed-article .article-sidebar {
    top: 110px;
    gap: 30px;
}

.ed-article .sidebar-card {
    background: none;
    border: none;
    border-top: 2px solid var(--ed-navy);
    border-radius: 0;
    box-shadow: none;
    padding: 20px 0 0;
}

.ed-article .sidebar-card:hover {
    transform: none;
    box-shadow: none;
}

.ed-article .sidebar-card h4 {
    font-family: var(--ed-sans);
    font-size: 12px;
    letter-spacing: 1.8px;
    color: var(--ed-navy);
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.ed-article .sidebar-card h4 i {
    color: var(--ed-accent);
}

.ed-article .event-info-card {
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-top: 2px solid var(--ed-accent);
    padding: 22px;
    color: var(--ed-ink-soft);
}

.ed-article .event-info-card h4 {
    color: var(--ed-navy);
}

.ed-article .event-info-card .detail-label {
    color: var(--ed-ink-muted);
}

.ed-article .event-info-card .detail-value {
    color: var(--ed-navy);
    font-family: var(--ed-serif);
}

.ed-article .event-info-card .event-detail {
    border-bottom-color: var(--ed-rule);
}

.ed-article .btn-event-register {
    background: var(--ed-accent) !important;
    border-radius: 4px !important;
    box-shadow: none;
}

.ed-article .recent-post-item {
    margin: 0;
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--ed-rule);
}

.ed-article .recent-post-item:hover {
    background: none;
    transform: translateX(2px);
}

.ed-article .recent-post-info h5 {
    font-family: var(--ed-serif);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ed-navy);
}

.ed-article .recent-post-date {
    color: var(--ed-ink-muted);
}

.ed-article .categories-list a,
.ed-article .quick-links-list a {
    color: var(--ed-ink-soft);
    border-radius: 3px;
}

.ed-article .categories-list a:hover,
.ed-article .quick-links-list a:hover {
    background: var(--ed-canvas-deep);
    color: var(--ed-navy);
}

/* Gallery inside the article */
.ed-article .article-gallery-title {
    font-family: var(--ed-serif);
    color: var(--ed-navy);
    border-bottom-color: var(--ed-rule);
}

.ed-article .article-gallery-item {
    border-radius: 4px;
}

/* Related stories */
.ed-article .related-articles-section {
    background: var(--ed-paper);
    border-top: 1px solid var(--ed-rule);
    padding: 54px 0 70px;
}

.ed-article .section-header {
    border-bottom: 2px solid var(--ed-navy);
    padding-bottom: 14px;
}

.ed-article .section-header h2 {
    font-family: var(--ed-serif);
    font-size: 24px;
    color: var(--ed-navy);
}

.ed-article .related-article-card {
    background: var(--ed-paper);
    border: 1px solid var(--ed-rule);
    border-radius: 4px;
    box-shadow: none;
}

.ed-article .related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ed-shadow);
}

.ed-article .related-content h3 {
    font-family: var(--ed-serif);
    color: var(--ed-navy);
}

.ed-article .related-date {
    color: var(--ed-ink-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media screen and (max-width: 1100px) {
    .ed-featured-panel {
        grid-template-columns: 1fr;
    }

    .ed-featured-media {
        min-height: 320px;
    }

    .ed-featured-body {
        padding: 34px 32px;
    }

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

    .ed-card.is-wide {
        grid-column: span 2;
    }
}

@media screen and (max-width: 760px) {
    .ed-masthead {
        padding: 36px 0 26px;
    }

    .ed-masthead-stat {
        display: none;
    }

    .ed-featured {
        padding: 28px 0 0;
    }

    .ed-featured-media {
        min-height: 230px;
    }

    .ed-featured-body {
        padding: 26px 22px;
    }

    .ed-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ed-card.is-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .ed-card.is-wide .ed-card-media {
        flex: none;
        aspect-ratio: 16 / 10;
    }

    .ed-card.is-wide .ed-card-body {
        padding: 22px;
    }

    .ed-card.is-wide .ed-card-title {
        font-size: 20px;
    }

    .ed-rail {
        top: 0;
    }

    .ed-rail-inner {
        padding: 12px 0;
    }

    .ed-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .ed-tab {
        white-space: nowrap;
    }

    .ed-search {
        width: 100%;
    }

    .ed-search-field {
        flex: 1;
    }

    .ed-search-field input,
    .ed-search-field input:focus {
        width: 100%;
    }

    .ed-article-head {
        padding: 26px 0 30px;
    }

    .ed-headline {
        max-width: none;
    }

    .ed-article .article-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ed-article .article-body {
        font-size: 16.5px;
    }

    .ed-article .article-body blockquote {
        font-size: 18px;
        padding-left: 20px;
    }

    .ed-subscribe form {
        width: 100%;
    }

    .ed-subscribe input {
        width: 100%;
    }

    .ed-subscribe button {
        width: 100%;
    }

    .ed-fact {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--ed-rule);
    }

    .ed-fact:last-child {
        border-bottom: none;
    }
}

/* =====================================================
   MOTION
   ===================================================== */
.ed-rise {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .7s var(--ed-ease);
}

.ed-rise.ed-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .ed-rise,
    .ed-card,
    .ed-featured-media img,
    .ed-card-media img {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
