/* ============================================================
   Wildlink player + article furniture — snippet 2
   Namespace: wl-   (kept separate from the coyote v1 wr- snippet)
   ============================================================ */

/* ---- Player: wrapper permanently reserves 16:9 height ---- */
#wl-player-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto 1rem;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.wl-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.wl-stage > iframe,
.wl-stage > #wl-player-slot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
}

/* ---- Sticky mini player: desktop corner ---- */
.wl-stage.wl-sticky {
    position: fixed;
    top: auto;
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 360px;
    height: 203px;
    z-index: 9999;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.wl-close {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 24px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
}

.wl-stage.wl-sticky .wl-close {
    display: block;
}

.wl-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ---- "Hear it" buttons ---- */
.wl-hear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin: 10px 0;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #1f6f4a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wl-hear::before {
    content: "\25B6";
    font-size: 0.8em;
}

.wl-hear:hover {
    background: #2a8c5e;
}

.wl-hear:focus-visible {
    outline: 3px solid #7fd1a8;
    outline-offset: 2px;
}

.wl-hear.is-playing {
    background: #145035;
}

.wl-hear.wl-mini {
    padding: 5px 10px;
    margin: 0;
    font-size: 0.85em;
    white-space: nowrap;
}

/* ---- Sound cards ---- */
.wl-card {
    border: 1px solid #dfe3e0;
    border-left: 4px solid #1f6f4a;
    border-radius: 10px;
    padding: 22px 24px;
    margin: 0 0 34px;
    background: #fcfdfc;
}

.wl-card > *:first-child {
    margin-top: 0;
}

.wl-card > *:last-child {
    margin-bottom: 0;
}

.wl-card figure.wp-block-image {
    margin: 16px 0;
}

.wl-card figure.wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.wl-card figcaption {
    margin-top: 8px;
    font-size: 0.88em;
    color: #5a635e;
    text-align: left;
}

.wl-card blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 3px solid #1f6f4a;
    background: #f2f7f4;
}

.wl-card blockquote p:last-child {
    margin-bottom: 0;
}

/* ---- Summary tables ---- */
.wl-table-wrap {
    overflow-x: auto;
    margin: 0 0 34px;
    -webkit-overflow-scrolling: touch;
}

table.wl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

table.wl-table th,
table.wl-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e3e7e5;
    text-align: left;
    vertical-align: top;
}

table.wl-table thead th {
    background: #1f6f4a;
    color: #fff;
    font-weight: 600;
}

table.wl-table tbody tr:nth-child(even) {
    background: #f6f9f7;
}

/* ---- Evidence notes, credits, sources ---- */
.wl-note {
    margin: 20px 0;
    padding: 12px 16px;
    border-left: 3px solid #b8c2bd;
    background: #f4f6f5;
    color: #3b423e;
    font-size: 0.95em;
}

.wl-credit {
    margin: 0 auto 1.75rem;
    max-width: 720px;
    color: #6a726d;
    text-align: center;
}

.wl-sources {
    line-height: 1.65;
}

.wl-sources li {
    margin-bottom: 8px;
}

/* ---- FAQ accordions ---- */
.wp-block-details {
    border: 1px solid #dfe3e0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #fcfdfc;
}

.wp-block-details summary {
    font-weight: 600;
    cursor: pointer;
}

/* ---- Phones: dock the mini player to the TOP, ----
   ---- leaving the bottom free for an anchor ad ---- */
@media (max-width: 600px) {
    .wl-stage.wl-sticky {
        top: 0;                 /* if your Astra header is sticky, change to the header height, e.g. 60px */
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vw * 0.5625);
        border-radius: 0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .wl-card {
        padding: 18px 16px;
    }
}