/* News article card in #map-news-panel (map-news-panel.js renderArticleDetail).
 * Editorial layout: full-bleed photo, kicker, serif headline, short summary,
 * one quiet meta line, then Read story / Hermes reads / Share.
 * Scoped to .map-news-panel--article so the feed and marker cards are untouched. */

#map-news-panel.map-news-panel--article {
    --news-accent: #38bdf8;
    width: min(460px, calc(100% - 44px));
    background: #0b1220 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

#map-news-panel.map-news-panel--article.is-open {
    padding: 0;
    max-height: min(72vh, 600px);
}

/* Close button floats over the card's top-right corner (over the photo when there is one). */
#map-news-panel.map-news-panel--article .map-news-panel__topbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    margin: 0;
    min-height: 0;
}

#map-news-panel.map-news-panel--article .map-news-panel__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(5, 8, 15, 0.72);
    color: #f8fafc;
    font-size: 1.3rem;
}

#map-news-panel.map-news-panel--article .map-news-panel__close:hover,
#map-news-panel.map-news-panel--article .map-news-panel__close:focus-visible {
    background: rgba(5, 8, 15, 0.9);
    outline: 2px solid #f8fafc;
    outline-offset: 2px;
}

.news-article {
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
}

.news-article__media {
    margin: 0;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    background: #131c2e;
    overflow: hidden;
}

#map-news-panel .news-article__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.news-article__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 22px 0;
}

.news-article__kicker {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    padding-right: 44px; /* room for the floating close button */
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.news-article--media .news-article__kicker {
    padding-right: 0;
}

.news-article__section {
    color: var(--news-accent);
}

.news-article__sep {
    color: #475569;
}

.news-article__time {
    margin-left: auto;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

#map-news-panel .news-article__title {
    margin: 0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #f8fafc;
}

#map-news-panel .news-article__dek {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #a3adbd;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#map-news-panel .news-article__meta {
    display: flex;
    gap: 6px;
    margin: 2px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

#map-news-panel .news-article__meta span {
    color: #475569;
}

/* Actions: Read story | Hermes reads | (space) | Share; share options wrap below. */
.news-article__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 22px 18px;
}

.news-article__actions .ll-pin-share {
    display: contents;
}

.news-article__actions .ll-pin-share__toggle {
    margin-left: auto;
}

.news-article__actions .ll-pin-share__menu {
    flex: 1 1 100%;
}

#map-news-panel .news-article__read {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #f8fafc;
    color: #0b1220;
    font-size: 14px;
    font-weight: 600;
}

#map-news-panel .news-article__read:hover {
    background: #e2e8f0;
    transform: none;
}

#map-news-panel .news-article__read:focus-visible {
    outline: 2px solid #f8fafc;
    outline-offset: 2px;
}

/* Hermes reads: a plain secondary button, no glow. */
.news-article__actions .news-podcast-btn {
    --podcast-accent: #e5e7eb;
    min-height: 44px;
    padding: 0 14px 0 8px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: transparent;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
}

.news-article__actions .news-podcast-btn::after {
    display: none;
}

.news-article__actions .news-podcast-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    transform: none;
}

.news-article__actions .news-podcast-btn.is-playing {
    border-color: var(--news-accent);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: none;
}

.news-article__actions .news-podcast-btn__icon {
    width: 26px;
    height: 26px;
    background: #e5e7eb;
    color: #0b1220;
}

.news-article__actions .news-podcast-btn.is-playing .news-podcast-btn__icon {
    background: var(--news-accent);
}

/* Icon-only Share; the label stays for screen readers. */
.news-article__actions .ll-pin-share__toggle {
    width: 44px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #e5e7eb;
}

.news-article__actions .ll-pin-share__toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.news-article__actions .ll-pin-share__toggle svg {
    width: 17px;
    height: 17px;
}

.news-article__actions .ll-pin-share__option {
    border-radius: 10px;
}

/* Footer link */
#map-news-panel .news-article__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

#map-news-panel .news-article__more:hover,
#map-news-panel .news-article__more:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    outline: none;
}

@media (max-width: 560px) {
    .news-article__body { padding: 16px 18px 0; }
    .news-article__actions { padding: 16px 18px; }
    #map-news-panel .news-article__more { padding: 0 18px; }
    #map-news-panel .news-article__title { font-size: 1.4rem; }
    /* Read story gets its own full-width row; Hermes + Share sit beneath it. */
    #map-news-panel .news-article__read { flex: 1 1 100%; justify-content: center; }
}
