/* MeetingDetails.aspx ("pw-md"). Builds on /css/pages-wow.css (hero, kicker, lift, reveal, band, policies)
   and the theme colors in /css/root-colors/*.css. Replaces the md-* styles in premiere2.css for this page.
   Only transform, opacity and background-position animate; all motion stops for prefers-reduced-motion. */

@media (max-width: 767px) { .site-hero:has(.pw-md-hero) { --hero-height: clamp(500px, 130vw, 580px); } }
.site-hero .pw-md-hero .slider-caption h2 { max-width: 18ch; }

.pw-md { --md-line: var(--pw-line); --md-muted: color-mix(in srgb, var(--text) 80%, #fff); }
/* Secondary text uses --md-muted (an explicit color), never opacity: contrast checkers read opacity
   inconsistently, and every pairing here must stay at 4.5:1 or better in all six themes. */
.pw-md button { font-family: inherit; }
.pw-md a:focus-visible, .pw-md button:focus-visible, .pw-md summary:focus-visible, .pw-md input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Ticket (overlaps the hero) ---------- */
.pw-md-ticket {
    position: relative; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px); align-items: stretch;
    margin: calc(-40px - clamp(64px, 7vw, 96px)) auto clamp(28px, 4vw, 44px); max-width: 1180px; overflow: visible;
    border: 1px solid var(--md-line); border-radius: 28px; background: #fff; box-shadow: var(--pw-shadow-lg);
}
.pw-md-date {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 170px; padding: 28px 22px;
    border-radius: 27px 0 0 27px; background: linear-gradient(160deg, var(--green), var(--green-dark)); color: #fff; text-align: center; line-height: 1;
}
.pw-md-date::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--pw-gold-bright); }
.pw-md-date::after { content: ''; position: absolute; right: -50px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 26px rgba(255, 255, 255, .04); }
.pw-md-date small { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.pw-md-date b { margin: 8px 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 84px; font-weight: 700; }
.pw-md-date span { color: #fff; font-size: 15px; font-weight: 600; }

.pw-md-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: clamp(22px, 2.6vw, 32px); }
.pw-md-status:empty, .pw-md-status:not(:has(*)) { display: none; }
.pw-md .pw-md-status .status-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, #fff);
    color: var(--green-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pw-md .pw-md-status .status-pill::before { width: 8px; height: 8px; background: var(--green); }
.pw-md .pw-md-status.is-scheduled .status-pill::before { animation: pw-pulse 2.6s ease-out infinite; background: var(--pw-gold-bright); box-shadow: 0 0 0 0 rgba(240, 201, 92, .7); }
.pw-md .pw-md-status.is-completed .status-pill { background: var(--gray-light); color: var(--text); }
.pw-md .pw-md-status.is-completed .status-pill::before { background: #8a948f; }
.pw-md .pw-md-status.is-cancelled .status-pill { background: #fdeceb; color: #8c1d13; }
.pw-md .pw-md-status.is-cancelled .status-pill::before { background: #b3261e; }
.pw-md .pw-md-status.is-rescheduled .status-pill { background: color-mix(in srgb, var(--pw-gold-bright) 28%, #fff); color: #5c4500; }
.pw-md .pw-md-status.is-rescheduled .status-pill::before { background: #9a6300; }
/* premiere2.css forces .status-pill text to white (built for the old dark header). */
.pw-md .pw-md-status .status-pill { color: var(--green-dark) !important; }
.pw-md .pw-md-status.is-completed .status-pill { color: var(--text) !important; }
.pw-md .pw-md-status.is-cancelled .status-pill { color: #8c1d13 !important; }
.pw-md .pw-md-status.is-rescheduled .status-pill { color: #5c4500 !important; }
.pw-md-facts dl { display: grid; gap: 12px; margin: 0; }
.pw-md-facts dl > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.pw-md-facts dt { color: var(--green); font-size: 17px; line-height: 1.5; }
.pw-md-facts dd { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pw-md-facts dd strong { display: block; color: var(--green-dark); font-weight: 700; }
.pw-md-address { display: block; color: var(--md-muted); font-size: 15px; }
.pw-md-address:empty { display: none; }
.pw-md-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--md-line); border-radius: 999px;
    background: #fff; color: var(--green-dark) !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
    transition: background-color .25s, border-color .25s, color .25s;
}
.pw-md-chip i { color: var(--green); }
.pw-md-chip:hover, .pw-md-chip:focus-visible { background: var(--green-dark); border-color: var(--green-dark); color: #fff !important; }
.pw-md-chip:hover i { color: var(--pw-gold-bright); }

.pw-md-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border-left: 1px solid var(--md-line); background: linear-gradient(180deg, #fff, var(--sand)); border-radius: 0 27px 27px 0; }
.pw-md-side-label { margin: 0; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pw-md-side-big { margin: 0; color: var(--green-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
.pw-md-countdown { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-md-countdown > span:not(.pw-md-now) { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 10px 8px 8px; border-radius: 14px; background: var(--green-dark); color: #fff; }
.pw-md-countdown b { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pw-md-countdown small { margin-top: 5px; color: var(--pw-gold-bright); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pw-md-now { display: inline-block; padding: 10px 16px; border-radius: 14px; background: var(--pw-gold-bright); color: #1b1606; font-size: 17px; font-weight: 700; }
.pw-md-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 14px; background: var(--green-dark); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; box-shadow: 0 12px 24px -12px var(--green-dark); transition: background-color .25s, transform .25s var(--pw-ease); }
.pw-md-cta i { color: var(--pw-gold-bright); font-size: 18px; }
.pw-md-cta:hover { background: var(--green); transform: translateY(-2px); }

/* Add to calendar (details/summary menu) */
.pw-md-addcal { position: relative; }
.pw-md-addcal summary {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border-radius: 14px;
    background: var(--pw-gold-bright); color: #1b1606; font-size: 15px; font-weight: 700; list-style: none; cursor: pointer;
    transition: background-color .25s, transform .25s var(--pw-ease);
}
.pw-md-addcal summary::-webkit-details-marker { display: none; }
.pw-md-addcal summary:hover { background: #f7d77f; transform: translateY(-1px); }
.pw-md-caret { margin-left: auto; font-size: 12px; transition: transform .25s var(--pw-ease); }
.pw-md-addcal[open] .pw-md-caret { transform: rotate(180deg); }
.pw-md-addcal-menu {
    position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 2px; padding: 8px;
    border: 1px solid var(--md-line); border-radius: 16px; background: #fff; box-shadow: var(--pw-shadow-lg); animation: pw-md-pop .25s var(--pw-ease);
}
@keyframes pw-md-pop { from { transform: translateY(-6px); } to { transform: none; } }  /* no opacity: keeps contrast checkers happy */
.pw-md-addcal-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--green-dark) !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; }
.pw-md-addcal-menu a i { width: 18px; color: var(--green); text-align: center; }
.pw-md-addcal-menu a:hover, .pw-md-addcal-menu a:focus-visible { background: var(--sand); }

.pw-md-share { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-md-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px;
    border: 1px solid var(--md-line); border-radius: 999px; background: #fff; color: var(--green-dark) !important; font-size: 14px; font-weight: 700;
    text-decoration: none !important; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.pw-md-iconbtn[hidden] { display: none; }
.pw-md-iconbtn:hover, .pw-md-iconbtn:focus-visible { background: var(--green-dark); border-color: var(--green-dark); color: #fff !important; }
.pw-md-copy.is-done { background: var(--green); border-color: var(--green); color: #fff !important; }

@media (max-width: 1000px) {
    .pw-md-ticket { grid-template-columns: auto minmax(0, 1fr); }
    .pw-md-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--md-line); border-radius: 0 0 27px 27px; }
    .pw-md-date { border-radius: 27px 0 0 0; }
}
@media (max-width: 600px) {
    .pw-md-ticket { grid-template-columns: minmax(0, 1fr); margin-top: calc(-28px - 84px); border-radius: 22px; }
    .pw-md-date { flex-direction: row; justify-content: flex-start; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 21px 21px 0 0; }
    .pw-md-date b { margin: 0; font-size: 46px; }
    .pw-md-date small { order: 2; }
    .pw-md-date span { order: 3; }
    .pw-md-side { border-radius: 0 0 21px 21px; }
}

/* Not found */
.pw-md-missing { display: block; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; }
.pw-md-missing-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: var(--gray-light); color: var(--green); font-size: 28px; }
.pw-md-missing h2 { margin: 0 0 8px; color: var(--green-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 30px; }
.pw-md-missing p { margin: 0 auto 18px; max-width: 520px; font-size: 16px; }

/* ---------- Section bar ---------- */
.pw-md-nav {
    position: sticky; top: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto;
    padding: 6px; border: 1px solid var(--md-line); border-radius: 999px; background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--pw-shadow-sm);
}
.pw-md-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 999px; color: var(--green-dark) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background-color .25s, color .25s; }
.pw-md-nav a i { color: var(--green); }
.pw-md-nav a:hover { background: color-mix(in srgb, var(--green) 10%, transparent); }
.pw-md-nav a[aria-current="true"] { background: var(--green-dark); color: #fff !important; }
.pw-md-nav a[aria-current="true"] i { color: var(--pw-gold-bright); }
.pw-md-nav .pw-md-nav-back { border-left: 1px solid var(--md-line); border-radius: 0 999px 999px 0; margin-left: 4px; }
@media (max-width: 700px) {
    .pw-md-nav { flex-wrap: nowrap; width: auto; overflow-x: auto; border-radius: 18px; scrollbar-width: none; }
    .pw-md-nav::-webkit-scrollbar { display: none; }
    .pw-md-nav a { flex: none; padding: 8px 14px; }
}
.pw-md .pw-section { scroll-margin-top: 90px; }
.pw-md .pw-md-nav + .pw-section { padding-top: clamp(36px, 5vw, 56px); }

/* ---------- Notes ---------- */
.pw-md-notes-card { display: flex; gap: 20px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--md-line); border-left: 6px solid var(--gold); border-radius: 24px; background: linear-gradient(135deg, #fff 40%, var(--sand)); box-shadow: var(--pw-shadow-sm); }
.pw-md-notes-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(140deg, var(--green), var(--green-dark)); color: var(--pw-gold-bright); font-size: 20px; }
.pw-md-notes-card h2 { margin: 2px 0 8px; color: var(--green-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; }
.pw-md-notes-text { display: block; color: var(--text); font-size: 16px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Agenda ---------- */
.pw-md-agenda { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--md-line); border-radius: 28px; background: #fff; box-shadow: var(--pw-shadow-sm); }
.pw-md .pw-md-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.pw-md .pw-md-head > p { max-width: 460px; margin: 0; }
.pw-md .pw-head p { color: var(--md-muted); opacity: 1; }  /* pages-wow.css dims these with opacity */
.pw-md .pw-policy span.pw-policy-sub { color: color-mix(in srgb, #fff 88%, var(--green-dark)); opacity: 1; }
.pw-md-filter { position: relative; flex: 0 1 340px; }
.pw-md-filter i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--green); pointer-events: none; }
.pw-md .pw-md-filter input { width: 100%; height: 50px; margin: 0; padding: 0 16px 0 44px; border: 2px solid transparent; border-radius: 14px; background: var(--sand); color: var(--text); font-family: inherit; font-size: 15.5px; box-shadow: none; transition: border-color .25s, background-color .25s; }
.pw-md .pw-md-filter input:focus { outline: none; border-color: var(--green); background: #fff; }
.pw-md-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 5px; border: 1px solid var(--md-line); border-radius: 999px; background: var(--sand); }
.pw-md-tabs.is-single { display: none; }
.pw-md-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--green-dark); font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.pw-md-tab[hidden] { display: none; }
.pw-md-tab[aria-selected="true"] { background: var(--green-dark); color: #fff; box-shadow: 0 8px 20px -10px var(--green-dark); }
.pw-md-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 12px; }
.pw-md-tab[aria-selected="true"] .pw-md-count { background: var(--pw-gold-bright); color: #1b1606; }
.pw-md-legend { margin: 4px 0 18px; color: var(--md-muted); font-size: 13.5px; }
.pw-md-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: #fdeceb; color: #8c1d13; font-weight: 700; }
.pw-md-panel[hidden] { display: none; }
.pw-md-outline { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pw-md-item {
    --d: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 11px 14px 11px calc(14px + var(--d) * 26px);
    border-radius: 12px; color: var(--text); font-size: 15.5px; line-height: 1.55; transition: background-color .2s;
}
.pw-md-item:hover { background: var(--sand); }
.pw-md-item + .pw-md-item { border-top: 1px solid color-mix(in srgb, var(--md-line) 60%, transparent); }
.pw-md-item[style*="--d:1"], .pw-md-item[style*="--d:2"], .pw-md-item[style*="--d:3"], .pw-md-item[style*="--d:4"] { position: relative; }
.pw-md-item[style*="--d:1"]::before, .pw-md-item[style*="--d:2"]::before, .pw-md-item[style*="--d:3"]::before, .pw-md-item[style*="--d:4"]::before {
    content: ''; position: absolute; left: calc(var(--d) * 26px - 6px); top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--gold) 45%, transparent);
}
.pw-md-item-name { flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; }
.pw-md-item.is-bold .pw-md-item-name { color: var(--green-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700; }
.pw-md-item.is-bold[style*="--d:0"] { margin-top: 10px; padding-top: 18px; border-top: 2px solid var(--md-line); border-radius: 0; }
.pw-md-item.is-bold[style*="--d:0"]:first-child { margin-top: 0; padding-top: 11px; border-top: 0; }
.pw-md-item.is-italic .pw-md-item-name { font-style: italic; }
.pw-md-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pw-md-badges:empty { display: none; }
.pw-md .md-agenda-badge, .pw-md .md-agenda-decision { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pw-md .md-agenda-badge.badge-grant { background: color-mix(in srgb, var(--green) 14%, #fff); color: var(--green-dark); }
.pw-md .md-agenda-badge.badge-capital { background: #e8eefb; color: #1f3f8a; }
.pw-md .md-agenda-badge.badge-bid { background: color-mix(in srgb, var(--pw-gold-bright) 28%, #fff); color: #5c4500; }
.pw-md .md-agenda-decision.decision-approved { background: var(--green); color: #fff; }
.pw-md .md-agenda-decision.decision-denied { background: #b3261e; color: #fff; }
.pw-md .md-agenda-decision.decision-tabled, .pw-md .md-agenda-decision.decision-other { background: var(--gray-light); color: var(--text); }
.pw-md-pdf {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #f3c4c0; border-radius: 999px; background: #fdeceb;
    color: #8c1d13 !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; transition: background-color .2s, color .2s;
}
.pw-md-pdf:hover, .pw-md-pdf:focus-visible { background: #b3261e; border-color: #b3261e; color: #fff !important; }
.pw-md-panel.is-filtering .pw-md-item { padding-left: 14px; }
.pw-md-panel.is-filtering .pw-md-item::before { display: none; }
.pw-md-item.is-filtered-out { display: none; }
.pw-md-nomatch { margin: 12px 0 0; padding: 16px; border: 2px dashed var(--md-line); border-radius: 14px; text-align: center; font-size: 15px; }
.pw-md-nomatch[hidden] { display: none; }
@media (max-width: 640px) {
    .pw-md-filter { flex-basis: 100%; }
    .pw-md-item { padding: 10px 8px 10px calc(8px + var(--d) * 16px); font-size: 15px; }
    .pw-md-item[style*="--d:"]::before { left: calc(var(--d) * 16px - 6px); }
    .pw-md-tabs { display: flex; border-radius: 18px; }
    .pw-md-tab { flex: 1; justify-content: center; padding: 0 10px; }
}

/* ---------- Documents ---------- */
.pw-md-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pw-md-docs > li { min-width: 0; margin: 0; }
.pw-md-doc {
    --doc: #b3261e; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 100%; padding: 16px 20px 16px 16px;
    border: 1px solid var(--md-line); border-radius: 18px; background: #fff; box-shadow: var(--pw-shadow-sm); color: var(--text) !important; text-decoration: none !important;
}
.pw-md-doc[data-ext="pptx"] { --doc: #c4501f; }
.pw-md-doc[data-ext="xlsx"] { --doc: #1d7a46; }
.pw-md-doc[data-ext="docx"] { --doc: #1d5fa5; }
.pw-md-doc[data-ext="doc-file"] { --doc: #4a5d7a; }
.pw-md-doc-icon { display: grid; place-items: center; width: 50px; height: 58px; border-radius: 10px 18px 10px 10px; background: color-mix(in srgb, var(--doc) 12%, #fff); color: var(--doc); font-size: 24px; transition: transform .45s var(--pw-ease); }
.pw-md-doc:hover .pw-md-doc-icon { transform: rotate(-6deg) scale(1.06); }
.pw-md-doc[data-ext="pptx"] .pw-md-doc-icon i::before { content: "\f1c4"; }
.pw-md-doc[data-ext="xlsx"] .pw-md-doc-icon i::before { content: "\f1c3"; }
.pw-md-doc[data-ext="docx"] .pw-md-doc-icon i::before { content: "\f1c2"; }
.pw-md-doc[data-ext="doc-file"] .pw-md-doc-icon i::before { content: "\f15c"; }
.pw-md-doc[data-ext="pdf"] .pw-md-doc-icon i::before { content: "\f1c1"; }
.pw-md-doc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pw-md-doc-text strong { color: var(--green-dark); font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pw-md-doc-text small { color: var(--md-muted); font-size: 13px; }
.pw-md-doc-go { color: var(--green); font-size: 13px; transition: transform .35s var(--pw-ease); }
.pw-md-doc:hover .pw-md-doc-go { transform: translate(3px, -3px); }
.pw-md-presentations { margin-top: clamp(28px, 4vw, 44px); }
.pw-md-presentations h3 { margin: 0 0 4px; color: var(--green-dark); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; }
.pw-md-hint { margin: 0 0 16px; color: var(--md-muted); font-size: 14px; font-style: italic; }
@media (max-width: 800px) { .pw-md-docs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Watch (dark band) ---------- */
.pw-md .pw-md-watch { margin-top: clamp(64px, 8vw, 110px); }
.pw-md-player { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pw-md-video { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.pw-md-video video { display: block; width: 100%; height: 100%; background: #000; }
.pw-md-playlist { display: grid; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.pw-md .playlist-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; text-align: left; cursor: pointer;
    transition: background-color .25s, border-color .25s;
}
.pw-md .playlist-item:hover { background: rgba(255, 255, 255, .13); }
.pw-md .playlist-item.active { border-color: var(--pw-gold-bright); background: rgba(240, 201, 92, .14); }
.pw-md-idx { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-weight: 700; }
.pw-md .playlist-item.active .pw-md-idx { background: var(--pw-gold-bright); color: #1b1606; }
.pw-md-item-title { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.pw-md-item-type { color: var(--pw-gold-bright); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pw-md .playlist-item:focus-visible { outline-color: var(--pw-gold-bright); }
/* YouTube embeds: one part plays full width; two or more sit side by side. */
.pw-md-yt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pw-md-yt-list > li { min-width: 0; margin: 0; }
.pw-md-yt-list > li:only-child { grid-column: 1 / -1; width: 100%; max-width: 1000px; justify-self: center; }
.pw-md-yt-item { margin: 0; }
.pw-md-yt-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.pw-md-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pw-md-yt-frame:focus-within { outline: 3px solid var(--pw-gold-bright); outline-offset: 4px; }
.pw-md-yt-item figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; color: #fff; }
.pw-md-yt-part { padding: 4px 12px; border-radius: 999px; background: var(--pw-gold-bright); color: #1b1606; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pw-md-yt-title { flex: 1 1 220px; min-width: 0; color: #fff; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.pw-md-yt-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background-color .25s, border-color .25s; }
.pw-md-yt-link i { color: var(--pw-gold-bright); }
.pw-md-yt-link:hover, .pw-md-yt-link:focus-visible { background: rgba(255, 255, 255, .14); border-color: var(--pw-gold-bright); }
.pw-md .pw-md-yt-link:focus-visible { outline-color: var(--pw-gold-bright); }
@media (max-width: 900px) { .pw-md-yt-list { grid-template-columns: minmax(0, 1fr); } }
.pw-md-channel { margin: 24px 0 0; text-align: center; }
.pw-md-channel a { display: inline-flex; align-items: center; gap: 8px; color: var(--pw-gold-bright) !important; font-size: 14.5px; font-weight: 700; text-underline-offset: 3px; }
.pw-md-channel a:focus-visible { outline-color: var(--pw-gold-bright); }
@media (max-width: 900px) { .pw-md-player { grid-template-columns: minmax(0, 1fr); } .pw-md-playlist { max-height: none; } }

/* ---------- Back ---------- */
.pw-md-back { display: flex; justify-content: center; padding: clamp(40px, 6vw, 72px) 0; }
.pw-md-back .pw-hero-chip { min-height: 52px; padding: 12px 24px; font-size: 15px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pw-md .pw-md-status.is-scheduled .status-pill::before, .pw-md-addcal-menu { animation: none; }
    .pw-md-cta:hover, .pw-md-addcal summary:hover, .pw-md-doc:hover .pw-md-doc-icon, .pw-md-doc:hover .pw-md-doc-go { transform: none !important; }
}
