/* The artist side panel (assets/js/artist-panel.js, template-parts/artist-panel.php, 2026-11-06): the shell that
   slides in under the header, and the compact view inside it. Loaded on every page while the panel is on; the full
   page's styles (artist.css: discs, waveforms, buttons) load with the first panel. Stacking: under the header (100),
   its colour band (98) and the podcast player bar (90). */

.ap-shell { position: fixed; inset: 0; z-index: 89; pointer-events: none; }
.ap-shell__dim { position: absolute; inset: calc(var(--cap-h, 76px) + var(--ab-h, 0px)) 0 0 0; background: rgba(17, 17, 16, .42); opacity: 0; transition: opacity .45s ease; }
.ap-shell__box {
	position: absolute; top: calc(var(--cap-h, 76px) + var(--ab-h, 0px)); bottom: 0; inset-inline-end: 0;
	width: min(var(--ap-w, 640px), 100vw); overflow-y: auto; overscroll-behavior: contain; outline: 0;
	background: var(--ground, #f1f0ec); color: var(--ink, #22221f); box-shadow: -24px 0 48px rgba(0, 0, 0, .18);
	transform: translateX(102%); visibility: hidden; will-change: transform; backface-visibility: hidden;
	/* closing: a quick ease-in, then hidden */
	transition: transform .34s cubic-bezier(.4, 0, .9, .5), visibility 0s linear .34s;
}
[dir="rtl"] .ap-shell__box, .lang-ar .ap-shell__box { transform: translateX(-102%); box-shadow: 24px 0 48px rgba(0, 0, 0, .18); }
.ap-shell.is-open { pointer-events: auto; }
.ap-shell.is-open .ap-shell__dim { opacity: 1; }
/* opening: a long, soft ease-out (fast start, slow settle) */
.ap-shell.is-open .ap-shell__box { transform: none; visibility: visible; transition: transform .56s cubic-bezier(.22, 1, .36, 1); }
/* the page behind is not locked (that would take its scrollbar away and shift it sideways): artist-panel.js stops
   the wheel and touch scrolling over the dimmed page, and the panel's own scrolling never spills over */
@media (prefers-reduced-motion: reduce) { .ap-shell__box, .ap-shell.is-open .ap-shell__box, .ap-shell__dim { transition: none; } }
@media (max-width: 760px) { .ap-shell__box { width: 100vw; box-shadow: none; } }

/* ---------- the compact view ---------- */
.ap-pv { --ap-navy: #32365f; --ap-rust: #b84329; --ap-rust-deep: #9c3620; --ap-tint: #fbece5; --ap-gold: #e8c26a; --ap-sky: #a8c5dc; --ap-olive: #5f6f35; --ap-rule: rgba(34, 34, 31, .16); /* the full page's colours */
	--pv-pad: clamp(16px, 4vw, 24px); --pv-rust: #b84329; font-family: var(--font, 'Manrope', Arial, sans-serif); font-size: 15px; line-height: 1.6; padding-bottom: 72px; }
.ap-pv[lang="ar"] { font-family: var(--font-ar, 'Noto Sans Arabic', Tahoma, sans-serif); }
.ap-pv h2, .ap-pv h3, .ap-pv h4 { text-transform: none; letter-spacing: 0; }

/* the bar: close, section, Full page */
.ap-pv__bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; height: 52px; padding-inline: 8px var(--pv-pad); background: var(--pv-rust); color: #fff; }
.ap-pv__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ap-pv__close:hover, .ap-pv__close:focus-visible { background: rgba(255, 255, 255, .16); }
.ap-pv__close:focus-visible, .ap-pv__full:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ap-pv__kick { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.ap-pv[lang="ar"] .ap-pv__kick { letter-spacing: 0; font-size: 13px; }
.ap-pv__full { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-pv__full:hover { background: #fff; color: var(--pv-rust); }
.ap-pv[dir="rtl"] .ap-pv__full svg { transform: scaleX(-1); }
.ap-pv__wait { padding: 40px var(--pv-pad); color: var(--muted, #595955); }
/* the shape shown while the content comes */
.ap-sk { display: block; height: 12px; margin: 0 0 12px; background: rgba(34, 34, 31, .09); animation: ap-sk 1.2s ease-in-out infinite alternate; }
.ap-sk__head { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 20px var(--pv-pad) 26px; background: var(--pv-rust); }
.ap-sk__head .ap-sk { background: rgba(255, 255, 255, .18); }
.ap-sk--pic { width: 96px; height: 96px; margin: 0; }
.ap-sk--name { width: 62%; height: 22px; }
.ap-sk--line { width: 80%; }
.ap-sk--short { width: 45%; }
.ap-sk__text { padding: 26px var(--pv-pad); }
@keyframes ap-sk { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ap-sk { animation: none; } }

/* the head: portrait, names, years and roles */
.ap-pv__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px var(--pv-pad) 14px; background: var(--pv-rust); color: #fff; }
.ap-pv__pic { margin: 0; }
.ap-pv__pic img, .ap-pv__pic .ap-plate { width: 96px; height: 96px; object-fit: cover; filter: grayscale(1); }
.ap-pv__pic .ap-plate { padding: 6px; background: #9c3620; }
.ap-pv__pic .ap-plate span { font-size: 15px; line-height: 1.2; }
.ap-pv__name { margin: 0; color: #fff; font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em !important; outline: 0; }
.ap-pv[lang="ar"] .ap-pv__name { letter-spacing: 0 !important; line-height: 1.35; }
/* the name takes the focus when the panel opens (screen readers announce it); it cannot be reached with Tab, so the
   site's focus ring (.editorial :focus-visible) is not drawn around it */
.ap-pv .ap-pv__name:focus, .ap-pv .ap-pv__name:focus-visible { outline: 0; }
.ap-pv__alt { margin: 2px 0 0; font-size: 17px; opacity: .9; text-align: end; } /* the other script, aligned with the page's start */
.ap-pv__alt[lang="ar"] { font-family: var(--font-ar, 'Noto Sans Arabic', Tahoma, sans-serif); }
.ap-pv__alt[lang="en"] { font-family: var(--font, 'Manrope', Arial, sans-serif); }
.ap-pv__line { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; }
.ap-pv__place { margin: 0; font-size: 13px; opacity: .85; }
.ap-pv__act { padding: 0 var(--pv-pad) 18px; background: var(--pv-rust); }
.ap-pv__act .ap-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }

/* the jumps */
.ap-pv__tabs { position: sticky; top: 52px; z-index: 2; display: flex; gap: 0 18px; padding: 0 var(--pv-pad); overflow-x: auto; scrollbar-width: none; background: var(--ground, #f1f0ec); border-bottom: 1px solid rgba(34, 34, 31, .16); }
.ap-pv__tabs::-webkit-scrollbar { display: none; }
.ap-pv__tabs a { flex: none; padding: 12px 0; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-pv__tabs a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* sections */
.ap-pv__sec { padding: 22px var(--pv-pad) 4px; scroll-margin-top: 96px; }
.ap-pv__h { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em !important; text-transform: uppercase !important; }
.ap-pv[lang="ar"] .ap-pv__h { font-size: 13px; letter-spacing: 0 !important; }
.ap-pv .ap-more { margin-top: 12px; font-size: 13px; }

/* the biography, a few lines first */
.ap-pv__bio p { margin: 0 0 .9em; font-size: 15.5px; line-height: 1.7; }
.ap-pv[lang="ar"] .ap-pv__bio p { font-size: 16.5px; line-height: 1.9; }
.ap-pv__bio p.ap-lead { font-size: 17.5px; font-weight: 600; line-height: 1.5; }
.ap-pv[lang="ar"] .ap-pv__bio p.ap-lead { font-size: 18px; line-height: 1.75; }
.ap-pv__bio.is-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.ap-pv__more { margin: 4px 0 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: inherit; }
.ap-pv .ap-printed { margin-top: 16px; }
.ap-pv .amr--line { margin: 16px 0 0; }
.ap-pv__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ap-pv__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; background: var(--bg); color: var(--c); font-size: 13px; font-weight: 700; text-decoration: none; }
.ap-pv__links a:hover { filter: brightness(1.08); text-decoration: underline; text-underline-offset: 4px; }

/* recordings: the Recordings navy, as a block */
.ap-pv__recs { margin: 18px var(--pv-pad) 0; padding: 18px 16px 14px; background: #32365f; color: #fff; }
.ap-pv__recs .ap-pv__h { color: #fff; }
.ap-pv .ap-reclist { border-top: 1px solid rgba(255, 255, 255, .22); }
.ap-pv .ap-rec { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding-block: 12px; }
.ap-pv .ap-disc { width: 52px; }
.ap-pv .ap-rec__t { color: #fff; margin: 0; font-size: 15px !important; line-height: 1.3; letter-spacing: 0; }
.ap-pv .ap-rec__meta { display: block; margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.ap-pv .ap-rec__ctl { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; }
.ap-pv .ap-pp { width: 34px; height: 34px; }
.ap-pv .ap-pp .ap-tri { border-width: 5px 0 5px 8px; }
.ap-pv .ap-pp.is-playing .ap-tri { width: 8px; height: 10px; border: 0; }
.ap-pv .ap-wave { height: 26px; }
.ap-pv .ap-rec__time { font-size: 12px; }
.ap-pv .ap-rec__foot { gap: 6px 16px; margin-top: 8px; font-size: 12px; }
.ap-pv__recs .ap-more { color: #fff; }

/* episodes: one row each */
.ap-pv__eps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(34, 34, 31, .16); }
.ap-pv__eps li[hidden] { display: none; }
.ap-pv__eps a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(34, 34, 31, .12); border-inline-start: 3px solid var(--c); padding-inline-start: 10px; text-decoration: none; }
.ap-pv__eps img, .ap-pv__eps .ap-ep__ph { width: 52px; height: 52px; object-fit: cover; background: #e6e3da; }
.ap-pv__epn { display: flex; align-items: baseline; gap: 10px; }
.ap-pv__epn b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.ap-pv__eps strong { display: block; font-size: 14px; line-height: 1.35; }
.ap-pv__eps small { display: block; font-size: 12px; color: var(--muted, #595955); }
.ap-pv__eps a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* people named: a row of faces */
.ap-pv__people { display: flex; gap: 14px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.ap-pv__people li { flex: 0 0 92px; }
.ap-pv__people a { display: block; text-decoration: none; }
.ap-pv__people img, .ap-pv__people .ap-plate { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.ap-pv__people .ap-plate { padding: 6px; }
.ap-pv__people .ap-plate span { font-size: 10.5px !important; }
.ap-pv__people strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.25; }
.ap-pv__people small { display: block; font-size: 11.5px; color: var(--muted, #595955); }
.ap-pv__people a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* sources (folded) */
.ap-pv .ap-srcfold summary { padding: 12px 0; }
.ap-pv .ap-srcfold .ap-pv__h { margin: 0; }
.ap-pv .ap-srcs { columns: 1; }

/* the foot: the same generation, the full page */
.ap-pv__foot { margin-top: 26px; padding: 18px var(--pv-pad) 0; border-top: 1px solid rgba(34, 34, 31, .16); }
.ap-pv__gen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ap-pv__gen a { display: block; padding: 10px 12px; background: #fbece5; text-decoration: none; }
.ap-pv__gen-next { text-align: end; }
.ap-pv__gen small { display: block; font-size: 11.5px; font-weight: 700; color: #9c3620; }
.ap-pv__gen strong { display: block; font-size: 14px; line-height: 1.3; }
.ap-pv__gen a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ap-pv__fullbtn { width: 100%; justify-content: center; }

/* on the full page: the feature article, beside Play */
.ap-btn--story { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; text-decoration: none; }
.ap-btn--story:hover { background: rgba(255, 255, 255, .14); }
/* on the full page: the way back to the panel */
.ap-btn--back { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; text-decoration: none; }
.ap-btn--back:hover { background: rgba(255, 255, 255, .14); }
