/* News article card in #map-news-panel (map-news-panel.js renderArticleDetail).
 * One category chip, story title only, quiet pending-review chip, then
 * Read story (primary) / Hermes reads (icon + label) / one Share control.
 * Facebook stays inside the share menu. Scoped to .map-news-panel--article. */

#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: 10px;
    padding: 18px 22px 0;
}

.news-article__kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding-right: 44px; /* room for the floating close button */
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #94a3b8;
}

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

.news-article__chip,
.news-article__status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.news-article__chip {
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    color: var(--news-accent, #38bdf8);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-article__status {
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.10);
    color: #fbbf24;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.news-article__time {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #94a3b8;
}

#map-news-panel .news-article__title {
    margin: 0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    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;
}

/* One row: Read story (primary), Hermes reads (quiet), Share (icon). Menu wraps under it. */
.news-article__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 22px 4px;
}

#map-news-panel .news-article__read,
#map-news-panel .news-article__actions .news-podcast-btn,
#map-news-panel .news-article__share-toggle,
#map-news-panel .news-article__share-menu button {
    box-sizing: border-box;
    min-height: 44px;
    height: 44px;
    margin: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

#map-news-panel .news-article__read {
    width: auto;
    flex: 0 0 auto;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #f8fafc;
    color: #0b1220;
    font-weight: 600;
}

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

/* Hermes reads: icon + label, same height as the primary, no competing pill. */
#map-news-panel .news-article__actions .news-podcast-btn {
    --podcast-accent: #e5e7eb;
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 10px 0 6px;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
}

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

#map-news-panel .news-article__actions .news-podcast-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

#map-news-panel .news-article__actions .news-podcast-btn.is-playing {
    background: rgba(56, 189, 248, 0.08);
    color: #f8fafc;
    box-shadow: none;
}

#map-news-panel .news-article__actions .news-podcast-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

#map-news-panel .news-article__actions .news-podcast-btn.is-playing .news-podcast-btn__icon {
    background: var(--news-accent, #38bdf8);
}

#map-news-panel .news-article__share-toggle {
    width: 44px;
    flex: 0 0 44px;
    margin-left: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #e5e7eb;
}

#map-news-panel .news-article__share-toggle:hover,
#map-news-panel .news-article__share-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.32);
}

#map-news-panel .news-article__share-menu {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#map-news-panel .news-article__share-menu[hidden] {
    display: none;
}

#map-news-panel .news-article__share-menu button {
    width: auto;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #e5e7eb;
    font-weight: 600;
}

#map-news-panel .news-article__share-menu .ll-pin-share__facebook,
#map-news-panel .news-article__share-menu .ll-pin-share__native {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.18);
}

#map-news-panel .news-article__share-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
}

#map-news-panel .news-article__read:focus-visible,
#map-news-panel .news-article__actions .news-podcast-btn:focus-visible,
#map-news-panel .news-article__share-toggle:focus-visible,
#map-news-panel .news-article__share-menu button:focus-visible,
#map-news-panel .news-article__more:focus-visible {
    outline: 2px solid #f8fafc;
    outline-offset: 2px;
}

.news-article__footer {
    padding: 4px 22px 14px;
}

#map-news-panel .news-article__more {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#map-news-panel .news-article__more:hover,
#map-news-panel .news-article__more:focus-visible {
    color: #f8fafc;
    background: transparent;
}

@media (max-width: 560px) {
    .news-article__body { padding: 16px 18px 0; }
    .news-article__actions { padding: 14px 18px 4px; }
    .news-article__footer { padding: 4px 18px 12px; }
    #map-news-panel .news-article__title { font-size: 1.25rem; }
}
