/* =========================================================
   We Love Medellín - News Detail Page
   public/css/news-detail.css
   ========================================================= */

.newsd-page {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 34px 0 80px;
}

.newsd-head {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 0 12px;
    text-align: center;
}

.newsd-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.newsd-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 850;
}

.newsd-chip-brand {
    background: var(--brand-soft);
    border-color: rgba(255, 56, 92, 0.25);
    color: var(--brand-dark);
}

.newsd-chip-hot {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
}

.newsd-chip-verified {
    background: #effaf2;
    border-color: #bfe9cd;
    color: #1c7a44;
}

.newsd-head h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 900;
    text-wrap: balance;
}

.newsd-subtitle {
    max-width: 840px;
    margin: 20px auto 0;
    color: var(--text);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
    letter-spacing: -0.02em;
    font-weight: 560;
}

.newsd-byline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.newsd-byline img,
.newsd-byline > span {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 18px;
}

.newsd-byline img {
    object-fit: cover;
    background: #eee;
}

.newsd-byline > span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--ink));
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
}

.newsd-byline strong,
.newsd-byline small {
    display: block;
}

.newsd-byline strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.newsd-byline small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 700;
}

.newsd-cover {
    margin: 30px 0 0;
    overflow: hidden;
    border-radius: 42px;
    border: 1px solid var(--border);
    background: #f2f2f2;
    box-shadow: var(--shadow-lg);
}

.newsd-cover img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.newsd-cover figcaption {
    padding: 12px 18px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.newsd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1200px) 340px;
    justify-content: center;
    gap: 52px;
    align-items: start;
    margin-top: 42px;
}

.newsd-main {
    min-width: 0;
}

.newsd-block {
    margin-bottom: 36px;
}

.newsd-block h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.newsd-content {
    color: var(--text);
    font-size: 18px;
    line-height: 1.76;
    letter-spacing: -0.015em;
}

.newsd-content p,
.newsd-content > div {
    margin: 0 0 17px;
}

.newsd-content h2,
.newsd-content h3,
.newsd-content h4 {
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 850;
}

.newsd-content h2 {
    margin: 32px 0 14px;
    font-size: 32px;
}

.newsd-content h3 {
    margin: 28px 0 12px;
    font-size: 25px;
}

.newsd-content h4 {
    margin: 22px 0 10px;
    font-size: 21px;
}

.newsd-content ul,
.newsd-content ol {
    margin: 0 0 18px;
    padding-left: 25px;
}

.newsd-content li {
    margin-bottom: 8px;
}

.newsd-content a {
    color: var(--brand);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.newsd-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--brand);
    border-radius: 0 24px 24px 0;
    background: var(--paper-warm);
    color: #4d3b33;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.38;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.newsd-content figure {
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.newsd-content figure img {
    width: 100%;
    height: auto;
}

.newsd-content figcaption {
    padding: 11px 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.newsd-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 0 1px var(--border);
}

.newsd-content th,
.newsd-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 15px;
}

.newsd-content th {
    background: var(--paper-soft);
    color: var(--ink);
    font-weight: 900;
}

.newsd-video {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-md);
}

.newsd-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.newsd-sponsored-box,
.newsd-correction {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid rgba(255, 56, 92, 0.24);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--brand-soft), #fff);
}

.newsd-sponsored-box span,
.newsd-correction strong {
    display: block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.newsd-sponsored-box strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.newsd-sponsored-box a {
    display: inline-flex;
    margin-top: 13px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.newsd-correction p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.newsd-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.newsd-aside-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.newsd-aside-card h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.newsd-aside-card p,
.newsd-aside-text {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.newsd-aside-text a {
    color: var(--brand);
    font-weight: 850;
}

.newsd-reactions {
    background: linear-gradient(180deg, var(--paper-warm), #fff);
}

.newsd-reaction-grid {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.newsd-reaction-grid button {
    min-height: 48px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.newsd-reaction-grid button:hover,
.newsd-reaction-grid button.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.newsd-reaction-grid i {
    color: var(--brand);
}

.newsd-reaction-grid strong {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--paper-soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.newsd-share-btn {
    width: 100%;
    margin-top: 14px;
    cursor: pointer;
}

.newsd-fact-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 15px 0 0;
    list-style: none;
}

.newsd-fact-list li {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 0 13px;
    border-radius: 18px;
    background: var(--paper-soft);
}

.newsd-fact-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.newsd-fact-list strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.newsd-discover {
    display: grid;
    gap: 10px;
}

.newsd-discover h3 {
    margin-bottom: 4px;
}

.newsd-discover .btn {
    width: 100%;
}

.newsd-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 980px) {
    .newsd-layout {
        grid-template-columns: 1fr;
    }

    .newsd-aside {
        position: relative;
        top: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsd-aside .newsd-discover {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .newsd-page {
        padding-top: 16px;
    }

    .newsd-head {
        padding-top: 18px;
        text-align: left;
    }

    .newsd-kicker {
        justify-content: flex-start;
    }

    .newsd-head h1 {
        font-size: clamp(38px, 12vw, 56px);
        line-height: 0.96;
    }

    .newsd-subtitle {
        margin-top: 16px;
        font-size: 17px;
    }

    .newsd-byline {
        width: 100%;
        border-radius: 24px;
    }

    .newsd-cover {
        margin-top: 22px;
        border-radius: 28px;
    }

    .newsd-cover img {
        aspect-ratio: 16 / 11;
    }

    .newsd-layout {
        margin-top: 28px;
        gap: 26px;
    }

    .newsd-content {
        font-size: 16px;
        line-height: 1.72;
    }

    .newsd-content h2 {
        font-size: 27px;
    }

    .newsd-content h3 {
        font-size: 22px;
    }

    .newsd-content blockquote {
        padding: 17px 18px;
        border-radius: 0 20px 20px 0;
        font-size: 19px;
    }

    .newsd-video {
        border-radius: 24px;
    }

    .newsd-aside,
    .newsd-related-grid {
        grid-template-columns: 1fr;
    }

    .newsd-aside-card {
        border-radius: 24px;
    }
}
