/* ==================================================================
   Kendall Podcast - public stylesheet  (v1.1.0)
   Inline player. Solid play/pause button. No green anywhere.
   Designed to match the visual language of kendalllaw.net.
   ================================================================== */

.kp-section {
    --kp-ink:        #1a3d5c;
    --kp-ink-soft:   #4a5568;
    --kp-ink-mute:   #8a9aac;
    --kp-accent:     #1d4a82;
    --kp-accent-hov: #163a68;
    --kp-page:       #ffffff;
    --kp-cream:      #f6f8fb;
    --kp-rule:       #c9d4e0;
    --kp-shadow:     0 6px 28px rgba(26, 61, 92, .08);
    --kp-shadow-lg:  0 18px 44px rgba(26, 61, 92, .18);

    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var( --kp-ink-soft );
    background: var( --kp-page );
    padding: 80px 24px 100px;
    box-sizing: border-box;
}

.kp-section *,
.kp-section *::before,
.kp-section *::after {
    box-sizing: border-box;
}

.kp-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* -------------------- Hero -------------------- */
.kp-hero {
    text-align: center;
    margin-bottom: 64px;
    padding: 0 16px;
}

.kp-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var( --kp-accent );
    font-weight: 700;
    margin-bottom: 18px;
}

.kp-hero-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp( 44px, 6vw, 68px );
    line-height: 1.05;
    letter-spacing: -.005em;
    color: var( --kp-ink );
    margin: 0 0 18px;
}

.kp-hero-rule {
    width: 56px;
    height: 2px;
    background: var( --kp-accent );
    margin: 0 auto 22px;
    opacity: .85;
}

.kp-hero-subtitle {
    font-size: 17.6px;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
    color: var( --kp-ink-soft );
    font-weight: 400;
}

/* -------------------- Grid -------------------- */
.kp-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
    gap: 36px 28px;
}

@media ( min-width: 900px ) {
    .kp-grid {
        grid-template-columns: repeat( 3, 1fr );
    }
}

@media ( max-width: 540px ) {
    .kp-grid {
        grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
        gap: 24px 18px;
    }
}

/* -------------------- Card -------------------- */
.kp-card {
    background: var( --kp-page );
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var( --kp-shadow );
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease;
}

.kp-card:hover {
    transform: translateY( -4px );
    box-shadow: var( --kp-shadow-lg );
}

/* The wrapper is the click target AND the aspect-ratio frame */
.kp-section .kp-video-wrap {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #0a1c2e;            /* solid navy fallback while video loads */
    cursor: pointer;
    overflow: hidden;
}

/* Fallback for browsers without aspect-ratio support */
@supports not ( aspect-ratio: 9 / 16 ) {
    .kp-section .kp-video-wrap::before {
        content: "";
        display: block;
        padding-top: 177.78%;
    }
    .kp-section .kp-video-wrap > * {
        position: absolute;
        inset: 0;
    }
}

.kp-section .kp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0a1c2e;            /* solid navy, NOT green, ever */
    z-index: 1;
}

/* -------------------- Play / Pause button --------------------
   Solid, opaque, theme-conflict-resistant. Sits above the video
   (z-index 3) so nothing in the video frame can ever bleed through.
*/
.kp-section .kp-play-btn {
    /* reset whatever the host theme might be doing to <button> */
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    font: inherit;
    text-decoration: none;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    z-index: 3;

    width: 68px;
    height: 68px;
    border-radius: 50% !important;

    background: #ffffff !important; /* SOLID white — fully opaque */
    color: #1d4a82 !important;      /* navy icon — never green */
    box-shadow: 0 8px 22px rgba( 0, 0, 0, .35 );

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: transform .25s ease, background-color .2s ease,
                color .2s ease, opacity .25s ease;
}

.kp-section .kp-play-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba( 29, 74, 130, .5 ),
                0 8px 22px rgba( 0, 0, 0, .35 );
}

.kp-section .kp-card:hover .kp-play-btn {
    transform: translate( -50%, -50% ) scale( 1.07 );
    background: #1d4a82 !important;
    color: #ffffff !important;
}

/* The play / pause icon swap, driven by .is-playing on the wrap */
.kp-section .kp-icon {
    display: block;
}
.kp-section .kp-icon-pause {
    display: none;
}
.kp-section .kp-icon-play {
    margin-left: 3px;               /* optical centring of the triangle */
}

.kp-section .kp-video-wrap.is-playing .kp-icon-play  { display: none; }
.kp-section .kp-video-wrap.is-playing .kp-icon-pause { display: block; }
.kp-section .kp-video-wrap.is-playing .kp-icon-pause { margin-left: 0; }

/* While playing, fade the button so the video isn't obscured.
   It comes back instantly on hover so the user can pause. */
.kp-section .kp-video-wrap.is-playing .kp-play-btn {
    opacity: 0;
}
.kp-section .kp-video-wrap.is-playing:hover .kp-play-btn,
.kp-section .kp-video-wrap.is-playing:focus-within .kp-play-btn {
    opacity: 1;
}
/* On touch devices there is no hover — keep a small pause affordance */
@media ( hover: none ) {
    .kp-section .kp-video-wrap.is-playing .kp-play-btn {
        opacity: .85;
        width: 52px;
        height: 52px;
    }
}

/* -------------------- 9:16 badge -------------------- */
.kp-section .kp-ratio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba( 10, 28, 46, .55 );
    color: #fff;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur( 6px );
    -webkit-backdrop-filter: blur( 6px );
}

.kp-section .kp-video-wrap.is-playing .kp-ratio-badge {
    opacity: 0;
    transition: opacity .25s ease;
}

/* -------------------- Card body -------------------- */
.kp-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-card-date {
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var( --kp-ink-mute );
    margin-bottom: 4px;
}

.kp-card-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.22;
    color: var( --kp-ink );
    margin: 0;
}

.kp-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var( --kp-ink-soft );
    margin: 8px 0 0;
}

.kp-empty {
    text-align: center;
    color: var( --kp-ink-mute );
    padding: 60px 20px;
    font-style: italic;
}

@media ( max-width: 480px ) {
    .kp-section {
        padding: 56px 18px 72px;
    }
    .kp-hero {
        margin-bottom: 44px;
    }
    .kp-section .kp-play-btn {
        width: 60px;
        height: 60px;
    }
}
