/* ==========================================================================
   Medicare Part D video: sitewide strip + /part-d/ page.
   Self-contained island. Every selector is prefixed .pd so nothing here can
   reach an existing page, and deleting the <link> in _head.php removes it all.
   ========================================================================== */

:root {
    --pd-purple: #912c7b;          /* theme --primary-color-one */
    --pd-purple-deep: #74215f;
    --pd-slate: #282f3b;           /* theme --primary-color-two */
    --pd-slate-soft: #3a4352;
    --pd-mist: #f0f3f9;            /* theme --primary-color-three */
    --pd-ink: #1f242d;
    --pd-body: #454b56;
    --pd-line: #dde2ea;
    --pd-white: #fdfdfe;
    --pd-radius: 6px;
    --pd-font-display: 'Spartan', sans-serif;
    --pd-font-body: 'Inter', sans-serif;
    --pd-section: clamp(3rem, 6vw, 5rem);
    --pd-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The theme styles bare p and a (size, line-height, margin, colour, a 0.5s
   transition with !important). Reset them once so the island owns its text. */
.pd p,
.pd-strip p { color: inherit; font-size: inherit; line-height: inherit; margin: 0; }
.pd a,
.pd-strip,
.pd-strip a { transition: color .2s ease, background-color .2s ease, transform .3s var(--pd-ease) !important; }

/* --------------------------------------------------------------------------
   Sitewide strip
   -------------------------------------------------------------------------- */
.pd-strip {
    display: block;
    background: var(--pd-slate);
    color: var(--pd-white);
    text-decoration: none;
    font-family: var(--pd-font-body);
    position: relative;
    z-index: 5;
}
.pd-strip:hover,
.pd-strip:focus-visible { background: var(--pd-slate-soft); color: var(--pd-white); }
.pd-strip:focus-visible { outline: 3px solid #f3c6e8; outline-offset: -3px; }

.pd-strip__inner {
    display: flex;
    align-items: center;
    gap: .75rem 1.25rem;
    min-height: 56px;
    padding-block: .6rem;
}
.pd-strip__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--pd-purple);
}
.pd-strip__icon svg { width: .9rem; height: .9rem; margin-left: 2px; fill: currentColor; }
.pd-strip__text { flex: 1 1 auto; font-size: 1rem; line-height: 1.4; }
.pd-strip__text strong { font-family: var(--pd-font-body); font-weight: 700; } /* theme puts Spartan on strong */
.pd-strip__btn {
    flex: none;
    white-space: nowrap;
    font-family: var(--pd-font-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    padding: .7rem 1.1rem .6rem;
    border-radius: var(--pd-radius);
    background: var(--pd-purple);
    color: var(--pd-white);
}
.pd-strip:hover .pd-strip__btn { background: var(--pd-purple-deep); }

@media (max-width: 767px) {
    .pd-strip__more { display: none; }
    .pd-strip__inner { gap: .75rem; }
    .pd-strip__text { font-size: .95rem; }
    .pd-strip__btn { padding: .6rem .85rem .5rem; font-size: .85rem; }
}
@media (max-width: 420px) {
    .pd-strip__icon { display: none; }
}

/* --------------------------------------------------------------------------
   /part-d/ page
   -------------------------------------------------------------------------- */
.pd {
    font-family: var(--pd-font-body);
    color: var(--pd-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    padding-block: var(--pd-section);
}
/* Narrower than the theme's 1320px container so the 16:9 video fits a laptop screen. */
.pd > .medium-container { max-width: 1140px; }

.pd__lede {
    max-width: 46rem;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.6;
    color: var(--pd-ink);
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.pd__lede p + p { margin-top: .9em; }

/* Video: a click-to-load poster. The iframe only loads when someone presses play,
   so the page stays fast and YouTube sets no cookies until then. */
.pd-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--pd-slate);
    box-shadow: 0 1px 2px rgba(40, 47, 59, .08), 0 18px 40px -18px rgba(40, 47, 59, .35);
    color: var(--pd-white);
    text-decoration: none;
}
.pd-video img,
.pd-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
/* The theme turns links purple on hover. Pin the text white on the link AND on
   each text span, so nothing depends on inheriting from the <a>. */
.pd-video:hover,
.pd-video:focus-visible,
.pd-video .pd-video__label,
.pd-video .pd-video__meta { color: var(--pd-white) !important; }
.pd-video__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 47, 59, .1) 0%, rgba(40, 47, 59, .25) 45%, rgba(40, 47, 59, .9) 100%);
}
.pd-video__play {
    position: absolute;
    left: clamp(1.25rem, 4vw, 2.5rem);
    bottom: clamp(1.25rem, 4vw, 2.25rem);
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pd-video__btn {
    flex: none;
    display: grid;
    place-items: center;
    width: clamp(4rem, 8vw, 5.5rem);
    height: clamp(4rem, 8vw, 5.5rem);
    border-radius: 50%;
    background: var(--pd-purple);
    box-shadow: 0 10px 28px -8px rgba(116, 33, 95, .7);
}
.pd-video__btn svg { width: 36%; height: 36%; margin-left: 6%; fill: currentColor; }
.pd-video:hover .pd-video__btn,
.pd-video:focus-visible .pd-video__btn { background: var(--pd-purple-deep); transform: scale(1.05); }
.pd-video:focus-visible { outline: 3px solid var(--pd-purple); outline-offset: 4px; }
.pd-video__label {
    font-family: var(--pd-font-display);
    font-weight: 700;
    font-size: clamp(1.05rem, 2vw, 1.375rem);
    line-height: 1.3;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.pd-video__meta {
    display: block;
    font-family: var(--pd-font-body);
    font-weight: 500;
    font-size: .95rem;
    opacity: .9;
    margin-top: .2rem;
}
/* Phones: the video is only ~200px tall, so drop the label and centre the button.
   The intro text above already says what the video is. */
@media (max-width: 575px) {
    .pd-video__play { inset: 0; justify-content: center; }
    .pd-video__label { display: none; }
    .pd-video__scrim { background: rgba(40, 47, 59, .35); }
}
.pd-video.is-playing .pd-video__scrim,
.pd-video.is-playing .pd-video__play { display: none; }

/* Below the video: what it covers */
.pd__covers {
    max-width: 46rem;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.pd__h2 {
    font-family: var(--pd-font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--pd-ink);
    margin: 0 0 1.25rem;
}

.pd-steps { list-style: none; margin: 0; padding: 0; counter-reset: pd-step; }
.pd-steps li {
    counter-increment: pd-step;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1rem 0;
    border-top: 1px solid var(--pd-line);
    color: var(--pd-ink);
    font-size: 1.0625rem;
}
.pd-steps li:last-child { border-bottom: 1px solid var(--pd-line); }
.pd-steps li::before {
    content: counter(pd-step, decimal-leading-zero);
    font-family: var(--pd-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--pd-purple);
}

.pd__fine {
    margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pd-line);
    font-size: .95rem;
    line-height: 1.6;
    color: var(--pd-body);
    max-width: 60rem;
}
