/*
Theme Name: SongWalk Theme
Theme URI: https://songwalk.fm
Author: SongWalk Team
Author URI: https://songwalk.fm
Description: Editorial WordPress theme based on SongWalk Figma layout.
Version: 1.2.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: songwalk-theme
*/

:root {
  --sw-brand-purple: #522470;
  --sw-brand-purple-shadow: rgba(50, 18, 71, 0.24);
  --sw-accent: #1f4db8;
  --sw-accent-strong: #14398e;
  --sw-accent-soft: #e8efff;
  --sw-accent-ink: #0f2559;
  --sw-gold: #f6d75f;
  --sw-text: #10233a;
  --sw-muted: #4f5e73;
  --sw-bg: #f7f9fe;
  --sw-border: #d8dce5;
  --sw-surface: #ffffff;
  --sw-shadow-soft: 0 10px 28px rgba(16, 35, 58, 0.08);
  --sw-shadow-hero: 0 18px 42px rgba(14, 31, 57, 0.2);
  --sw-container: 1174px;
  --sw-radius-xl: 3rem;
  --sw-radius-lg: 2rem;
  --sw-radius-md: 1.5rem;
  --sw-radius-sm: 0.75rem;

  /* PW-S1C token foundations — additive; existing rules not rewritten.
   * Full per-rule adoption deferred to a future refactor wave to avoid
   * visual regression risk. See
   * docs/architecture/PW_S1C_token_system_landings_v1.md
   */

  /* Typography scale (MS-9) */
  --type-display: clamp(2rem, 4.6vw, 3.45rem);
  --type-h1: clamp(2.1rem, 5vw, 3.5rem);
  --type-h2: 1.45rem;
  --type-h3: 1.25rem;
  --type-lead: 1.25rem;
  --type-body: 1rem;
  --type-small: 0.9rem;
  --type-meta: 0.8rem;
  --leading-display: 1.06;
  --leading-heading: 1.1;
  --leading-body: 1.5;
  --leading-meta: 1.3;

  /* Spacing scale (MS-10) — 4/8-px grid */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Motion scale (MS-14) */
  --duration-quick: 0.16s;
  --duration-standard: 0.24s;
  --duration-slow: 0.4s;
  --ease-standard: ease;

  /* Breakpoint scale (MS-8) — declarative only (CSS @media cannot
   * reference custom properties directly) */
  --bp-mobile: 480px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-desktop-wide: 1440px;

  /* Shadow family expansion (MS-13) */
  --sw-shadow-none: none;
  --sw-shadow-low: 0 2px 8px rgba(16, 35, 58, 0.04);
  --sw-shadow-focus: 0 0 0 2px var(--color-focus-ring);

  /* Color tokens (MS-11, MS-12) */
  --color-ink-inverse: #ffffff;
  --color-focus-ring: var(--sw-accent);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  background: var(--sw-bg);
  color: var(--sw-text);
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  color: var(--sw-text);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* CE17 D17-3 / F-A6: universal focus-visible baseline so keyboard users
   always see the focus indicator even when theme suppresses default outline
   elsewhere. Individual components may override with stronger styling. */
:focus-visible {
  outline: 2px solid var(--sw-accent, #1f4db8);
  outline-offset: 2px;
}

/* CE17 F-A8: skip-link is visually hidden until focused; WCAG 2.4.1
   bypass-blocks affordance. */
.songwalk-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--sw-accent, #1f4db8);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  z-index: 1000;
}

.songwalk-skip-link:focus,
.songwalk-skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.songwalk-container {
  margin: 0 auto;
  max-width: var(--sw-container);
  width: min(var(--sw-container), calc(100vw - 2rem));
}

.songwalk-main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding-bottom: 1rem;
}

.songwalk-page-pad {
  padding-inline: 0;
}

.songwalk-header {
  background: inherit;
  line-height: 1.3;
  padding: 1rem 1rem 0.5rem;
}

.songwalk-nav-shell {
  align-items: center;
  background: var(--sw-brand-purple);
  border-radius: var(--sw-radius-lg);
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.5rem;
  box-shadow: 0 16px 32px var(--sw-brand-purple-shadow);
}

.songwalk-head-brand {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.songwalk-brand {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  display: inline-flex;
  gap: 10px;
  font-family: "Noto Serif HK", "Georgia", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 182px;
  padding: 0;
  text-align: left;
  word-break: normal;
}

.songwalk-brand--fallback {
  max-width: none;
}

.songwalk-logo-lockup {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 0.85rem;
  min-height: 44px;
  white-space: nowrap;
}

.songwalk-logo-lockup__mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px rgba(9, 22, 55, 0.16);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.songwalk-logo-lockup__mark img {
  display: block;
  height: 100%;
  width: 100%;
}

.songwalk-logo-lockup__word {
  color: #fff;
  font-family: "Noto Serif HK", "Georgia", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-rendering: geometricPrecision;
}

.songwalk-logo-lockup__dotfm {
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: -0.015em;
  opacity: 0.94;
}

.songwalk-brand--logo .custom-logo-link {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.songwalk-brand--logo {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  max-width: none;
}

.songwalk-brand--logo img,
.songwalk-footer__item--brand img {
  height: auto;
  max-height: 40px;
  max-width: 168px;
  width: auto;
}

.songwalk-header .songwalk-brand--logo img,
.songwalk-header .songwalk-brand__logo-fallback,
.songwalk-footer .songwalk-footer__item--brand .custom-logo {
  filter: brightness(0) invert(1) contrast(1.2) drop-shadow(0 1px 2px rgba(3, 14, 41, 0.48));
  opacity: 1;
}

.songwalk-header .songwalk-brand--logo img {
  max-width: 132px;
}

.songwalk-brand__logo-fallback {
  display: block;
  height: auto;
  max-height: 32px;
  max-width: 168px;
  width: auto;
}

.songwalk-brand__icon {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  height: 18px;
  position: relative;
  width: 18px;
}

.songwalk-brand__icon::before,
.songwalk-brand__icon::after {
  background: #fff;
  border-radius: 1px;
  bottom: 3px;
  content: "";
  position: absolute;
  width: 2px;
}

.songwalk-brand__icon::before {
  height: 7px;
  left: 5px;
}

.songwalk-brand__icon::after {
  height: 10px;
  right: 5px;
}

.songwalk-head-menu {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.songwalk-nav-menu-wrap {
  display: inline-flex;
}

.songwalk-nav-menu-title {
  display: none;
}

.songwalk-menu {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.songwalk-menu li {
  margin: 0;
  padding: 0;
}

.songwalk-menu a {
  border-radius: 0.625rem;
  color: #fff;
  display: inline-flex;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.4rem 0.75rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.songwalk-menu a:hover,
.songwalk-menu .current-menu-item > a,
.songwalk-menu .current_page_item > a,
.songwalk-menu .current-playlist-menu-item > a,
.songwalk-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.songwalk-lang-pill {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.05em;
  min-width: 2.55rem;
  padding: 0.48rem 0.7rem;
  text-transform: uppercase;
}

.songwalk-lang {
  position: relative;
}

.songwalk-lang-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.songwalk-lang-trigger:hover .songwalk-lang-pill,
.songwalk-lang.is-open .songwalk-lang-trigger .songwalk-lang-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(8, 22, 53, 0.14);
}

.songwalk-lang-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.songwalk-lang-menu {
  background: #fff;
  border: 1px solid #d8e2f5;
  border-radius: 0.85rem;
  box-shadow: 0 14px 30px rgba(13, 33, 73, 0.2);
  list-style: none;
  margin: 0;
  min-width: 13rem;
  opacity: 0;
  padding: 0.35rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.songwalk-lang.is-open .songwalk-lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.songwalk-lang-menu__item {
  margin: 0;
}

.songwalk-lang-menu__link {
  align-items: center;
  border-radius: 0.6rem;
  color: #193f89;
  display: flex;
  gap: 0.5rem;
  line-height: 1.2;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
}

.songwalk-lang-menu__link:focus-visible {
  background: #eff4ff;
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.songwalk-lang-menu__link[aria-current="true"] {
  background: #eff4ff;
  color: #123578;
}

.songwalk-lang-menu__item:not(.is-current) .songwalk-lang-menu__link:hover {
  background: #f4f8ff;
}

.songwalk-lang-menu__item.is-fallback .songwalk-lang-menu__link::after {
  background: #f6d75f;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 0.45rem;
  margin-left: auto;
  width: 0.45rem;
}

.songwalk-lang-menu__code {
  background: #e8efff;
  border-radius: 999px;
  color: #1d468f;
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 2rem;
  justify-content: center;
  padding: 0.25rem 0.45rem;
  text-transform: uppercase;
}

.songwalk-lang-menu__label {
  font-size: 0.85rem;
  font-weight: 600;
}

.songwalk-burger {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  padding: 0;
}

.songwalk-burger:hover .songwalk-burger__box,
.songwalk-burger:focus-visible .songwalk-burger__box {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
}

.songwalk-burger__box {
  align-items: center;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
}

.songwalk-burger__box::before,
.songwalk-burger__inner::before,
.songwalk-burger__inner::after {
  background: #fff;
  border-radius: 2px;
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  transition: transform 0.24s ease, width 0.24s ease, background 0.24s ease;
  width: 16px;
}

.songwalk-burger__box::before {
  top: 50%;
  transform: translateY(-50%);
}

.songwalk-burger__inner::before {
  top: calc(50% - 6px);
}

.songwalk-burger__inner::after {
  top: calc(50% + 4px);
}

.songwalk-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  transition: all 0.24s ease;
}

.songwalk-btn--primary {
  background: linear-gradient(135deg, var(--sw-accent) 0%, #3263d9 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 77, 184, 0.22);
}

.songwalk-btn--primary:hover {
  background: linear-gradient(135deg, var(--sw-accent-strong) 0%, var(--sw-accent) 100%);
}

.songwalk-btn--ghost {
  background: #fff;
  border-color: #d4d8e2;
  color: var(--sw-accent);
}

.songwalk-btn--ghost:hover {
  background: var(--sw-accent-soft);
}

.songwalk-btn--compact {
  border-radius: 999px;
  font-size: 0.84rem;
  min-height: 0;
  padding: 0.42rem 0.82rem;
}

.songwalk-hero {
  aspect-ratio: 1174 / 640;
  border-radius: var(--sw-radius-xl);
  margin: 2.4rem 0 3rem;
  position: relative;
}

.songwalk-hero__media {
  background:
    radial-gradient(circle at 84% 20%, #ffe27b 0%, #f6d75f 16%, transparent 30%),
    radial-gradient(circle at 34% 18%, #f4f9ff 0%, #ddebff 10%, transparent 26%),
    linear-gradient(118deg, #2556b8 0%, #1a3784 42%, #1d4db8 100%);
  border-radius: inherit;
  box-shadow: var(--sw-shadow-hero);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.songwalk-hero__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.songwalk-hero__fallback {
  align-items: flex-end;
  display: none;
  inset: 0;
  padding: 1.4rem;
  position: absolute;
  z-index: 1;
}

.songwalk-hero--media-missing .songwalk-hero__fallback,
.songwalk-hero.is-media-broken .songwalk-hero__fallback {
  display: flex;
}

.songwalk-hero__fallback-copy {
  backdrop-filter: blur(16px);
  background: rgba(10, 24, 63, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  box-shadow: 0 18px 40px rgba(7, 19, 49, 0.3);
  color: #fff;
  display: none;
  gap: 0.9rem;
  max-width: 28rem;
  padding: 1.35rem 1.4rem 1.45rem;
}

.songwalk-hero__fallback-copy h2 {
  color: inherit;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.songwalk-hero__fallback-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  margin: 0;
}

.songwalk-hero--media-missing .songwalk-hero__fallback-copy--missing,
.songwalk-hero.is-media-broken .songwalk-hero__fallback-copy--broken {
  display: grid;
}

.songwalk-hero__fallback-eyebrow {
  color: #ffe27b;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.songwalk-hero__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.songwalk-hero__overlay {
  background: #fff;
  border-radius: 0 var(--sw-radius-xl) 0 0;
  bottom: 0;
  left: 0;
  max-width: 31rem;
  padding: 3rem;
  position: absolute;
  border-top: 1px solid rgba(31, 77, 184, 0.08);
  border-right: 1px solid rgba(31, 77, 184, 0.08);
}

.songwalk-hero__kicker {
  color: var(--sw-accent);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.songwalk-hero__overlay::before,
.songwalk-hero__overlay::after {
  background: transparent;
  border-bottom-left-radius: 4rem;
  box-shadow: -1rem 1rem 0 1rem #fff;
  content: "";
  height: 4rem;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  width: 4rem;
}

.songwalk-hero__overlay::after {
  bottom: -4rem;
  left: auto;
  right: -4rem;
  top: auto;
  transform: none;
}

.songwalk-hero__overlay h1 {
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 1.06;
}

.songwalk-hero__overlay p {
  color: var(--sw-muted);
  font-size: 1.25rem;
  margin: 1rem 0;
}

.songwalk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.songwalk-postfeed-wrapper {
  padding: 0 2rem;
}

.songwalk-section {
  margin-bottom: 2.4rem;
}

.songwalk-postfeed-title {
  padding-top: 2rem;
}

.songwalk-section__eyebrow {
  color: var(--sw-accent);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.songwalk-postfeed-title h2,
.songwalk-section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.songwalk-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2rem 0;
}

.songwalk-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 58, 0.08);
  border-radius: 2rem;
  box-shadow: 0 10px 24px rgba(12, 34, 82, 0.09);
  padding: 0.5rem 0.5rem 1rem;
  position: relative;
  top: 0;
  transition: box-shadow 0.32s ease, border-color 0.32s ease;
}

.songwalk-card:hover {
  border-color: rgba(20, 57, 142, 0.32);
  box-shadow: 0 18px 34px rgba(15, 37, 89, 0.16);
}

.songwalk-card__link {
  display: block;
  height: 100%;
}

.songwalk-card__thumb {
  background: linear-gradient(140deg, #173f95, #2758ba);
  border-radius: 1.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(23, 63, 149, 0.22);
  position: relative;
}

.songwalk-card__thumb::after {
  background: rgba(5, 14, 36, 0);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background 0.32s ease;
}

.songwalk-card__picture {
  aspect-ratio: 16 / 9;
}

.songwalk-card__thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.songwalk-card:hover .songwalk-card__thumb img {
  transform: scale(1.04);
}

.songwalk-card:hover .songwalk-card__thumb::after {
  background: rgba(5, 14, 36, 0.12);
}

.songwalk-card__placeholder {
  align-items: center;
  color: #edf3ff;
  display: grid;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  justify-items: center;
  height: 100%;
  letter-spacing: 0.04em;
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.songwalk-card__title,
.songwalk-card h3 {
  display: -webkit-box;
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0.55rem 0 0;
  min-height: calc(1.2em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.songwalk-card__meta {
  align-items: center;
  color: #60718a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0 0.35rem;
}

.songwalk-card__badge {
  background: #e8efff;
  border: 1px solid #d5dffc;
  border-radius: 999px;
  color: #1a418f;
  display: inline-flex;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.28rem 0.52rem;
  text-transform: uppercase;
}

.songwalk-card__excerpt {
  color: var(--sw-muted);
  display: -webkit-box;
  font-size: 1rem;
  margin-top: 0.7rem;
  padding: 0 0.35rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.songwalk-section__cta {
  margin: 0 0 2rem;
  text-align: center;
}

.songwalk-content {
  background: #fff;
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow-soft);
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border: 1px solid rgba(16, 35, 58, 0.05);
}

.songwalk-content > h1,
.songwalk-content > h2,
.songwalk-content > h3 {
  margin-bottom: 1rem;
}

.songwalk-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.songwalk-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
}

.songwalk-content h3 {
  font-size: 1.45rem;
  margin-top: 1.5rem;
}

.songwalk-content p,
.songwalk-content li {
  color: var(--sw-text);
  font-size: 1.15rem;
  line-height: 1.7;
}

.songwalk-content ul,
.songwalk-content ol {
  padding-left: 1.4rem;
}

.songwalk-content iframe,
.songwalk-content video {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--sw-radius-md);
  overflow: hidden;
  width: 100%;
}

.songwalk-content .wp-block-embed,
.songwalk-content .kg-embed-card {
  margin: 2rem 0;
}

.songwalk-content-body img {
  border-radius: 1rem;
  height: auto;
  margin: 1.2rem 0;
  width: 100%;
}

.songwalk-content blockquote {
  color: var(--sw-text);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  position: relative;
}

.songwalk-content blockquote::before {
  background: var(--sw-accent);
  border-radius: 0 0.25rem 0.25rem 0;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 0.25rem;
}

.songwalk-content blockquote::after {
  background: url("data:image/svg+xml,<svg width='72' height='45' viewBox='0 0 72 45' fill='none' xmlns='http://www.w3.org/2000/svg'><g opacity='0.15'><path d='M16 0C24.8366 0 32 7.16344 32 16C32 16.0437 31.9984 16.0873 31.998 16.1309C32.0062 16.871 31.9919 17.592 31.9502 18.334C31.6781 33.7728 16.9615 44.5236 3.30566 44.9014C2.53314 44.9561 1.77365 44.9878 1 45C1.76959 44.9212 2.52117 44.8227 3.28223 44.7021C13.4313 43.4681 22.7734 36.8519 26.5 28.0713C23.6899 30.5177 20.0184 32 16 32C7.16344 32 0 24.8366 0 16C0 7.16344 7.16344 0 16 0Z' fill='%23173995'/><path d='M56 0C64.8366 0 72 7.16344 72 16C72 16.0437 71.9984 16.0873 71.998 16.1309C72.0062 16.871 71.9919 17.592 71.9502 18.334C71.6781 33.7728 56.9615 44.5236 43.3057 44.9014C42.5331 44.9561 41.7736 44.9878 41 45C41.7696 44.9212 42.5212 44.8227 43.2822 44.7021C53.4313 43.4681 62.7734 36.8519 66.5 28.0713C63.6899 30.5177 60.0184 32 56 32C47.1634 32 40 24.8366 40 16C40 7.16344 47.1634 0 56 0Z' fill='%23173995'/></g></svg>") no-repeat;
  content: "";
  height: 45px;
  left: 10px;
  position: absolute;
  top: 0;
  width: 72px;
}

.songwalk-content-body > *:first-child {
  margin-top: 0;
}

.songwalk-content-body > *:last-child {
  margin-bottom: 0;
}

.songwalk-content-body h2,
.songwalk-content-body h3,
.songwalk-content-body h4 {
  scroll-margin-top: 122px;
}

.songwalk-content-body h2 {
  border-top: 1px solid rgba(31, 77, 184, 0.16);
  color: var(--sw-accent-ink);
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 3rem;
  padding-top: 2rem;
}

.songwalk-content-body h3 {
  color: var(--sw-text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-top: 2rem;
}

.songwalk-content-body p + h2,
.songwalk-content-body ul + h2 {
  margin-top: 3.35rem;
}

.songwalk-content-body > p:first-of-type {
  color: #243852;
  font-size: clamp(1.12rem, 1.65vw, 1.35rem);
  line-height: 1.65;
}

.songwalk-content-body ul {
  background: linear-gradient(180deg, rgba(232, 239, 255, 0.7), rgba(247, 249, 254, 0.86));
  border: 1px solid rgba(31, 77, 184, 0.14);
  border-radius: 1.15rem;
  margin: 1.2rem 0 1.6rem;
  padding: 1.05rem 1.35rem 1.05rem 2.2rem;
}

.songwalk-content-body li + li {
  margin-top: 0.48rem;
}

.songwalk-article-break {
  border: 0;
  height: 1px;
  margin: 3rem 0 0;
  opacity: 0;
}

.songwalk-content-body a {
  color: var(--sw-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.songwalk-content-body a:hover {
  color: var(--sw-accent-strong);
}

.songwalk-content-body hr {
  border: 0;
  border-top: 1px solid #d8e2f4;
  margin: 2rem 0;
}

.songwalk-content-body .wp-block-embed,
.songwalk-content-body .kg-embed-card {
  background: linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
  border: 1px solid #d7e2fa;
  border-radius: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0.75rem;
}

.songwalk-content-body .wp-block-embed iframe,
.songwalk-content-body .wp-block-embed__wrapper iframe,
.songwalk-content-body .kg-embed-card iframe,
.songwalk-content-body iframe[src*="youtube.com"],
.songwalk-content-body iframe[src*="youtu.be"] {
  border-radius: 0.75rem;
}

.songwalk-content-body .wp-block-embed figcaption {
  color: #536684;
  font-size: 0.9rem;
  margin-top: 0.7rem;
  padding: 0 0.2rem 0.2rem;
}

.songwalk-youtube-section {
  background:
    radial-gradient(circle at 8% 0%, rgba(246, 215, 95, 0.2), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(31, 77, 184, 0.16);
  border-radius: 1.7rem;
  box-shadow: 0 18px 44px rgba(16, 35, 58, 0.08);
  margin: 3.4rem 0 2.4rem;
  padding: clamp(1.1rem, 2.3vw, 1.65rem);
}

.songwalk-youtube-section h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.songwalk-video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.15rem 0 2rem;
}

.songwalk-video-grid--owned {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.songwalk-video-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 58, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 12px 26px rgba(16, 35, 58, 0.08);
  margin: 0;
  overflow: hidden;
}

.songwalk-video-card__embed {
  background: #101621;
}

.songwalk-video-card figcaption {
  color: var(--sw-muted);
  font-size: 0.9rem;
  line-height: 1.42;
  padding: 0.85rem 0.95rem 1rem;
}

.songwalk-video-card figcaption strong {
  color: var(--sw-text);
  display: inline-block;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.28;
  margin-bottom: 0.22rem;
}

@media (max-width: 900px) {
  .songwalk-video-grid,
  .songwalk-video-grid--owned {
    grid-template-columns: 1fr;
  }
}

.songwalk-breadcrumbs ol {
  align-items: center;
  color: var(--sw-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 0.36rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.songwalk-breadcrumbs li {
  align-items: center;
  display: inline-flex;
  gap: 0.36rem;
}

.songwalk-breadcrumbs li:not(:last-child)::after {
  color: var(--sw-muted);
  content: "/";
  opacity: 0.6;
}

.songwalk-breadcrumbs a {
  color: var(--sw-muted);
}

.songwalk-breadcrumbs [aria-current="page"] {
  color: #7b8799;
  cursor: default;
  font-weight: 600;
  opacity: 0.78;
}

.songwalk-content--post {
  padding-bottom: 2.1rem;
}

.songwalk-post-title {
  margin-bottom: 0.85rem;
}

.songwalk-post-layout {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
}

.songwalk-post-main {
  flex: 1 1 auto;
  min-width: 0;
}

.songwalk-post-header {
  margin-bottom: 0.55rem;
}

.songwalk-post-meta {
  align-items: center;
  color: var(--sw-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
}

.songwalk-post-meta__dot {
  color: var(--sw-muted);
  opacity: 0.72;
}

.songwalk-post-meta__pill {
  background: #edf3ff;
  border: 1px solid #d5e2ff;
  border-radius: 999px;
  color: #1b448f;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.32rem 0.64rem;
  text-transform: uppercase;
}

.songwalk-post-meta__pill:hover {
  background: #dfe9ff;
}

.songwalk-post-excerpt {
  color: #4f5e73;
  font-size: 1.25rem;
  margin: 0 0 1.1rem;
}

.songwalk-feature-image {
  border-radius: var(--sw-radius-md);
  margin: 0 0 1.15rem;
  overflow: hidden;
}

.songwalk-feature-image img {
  height: auto;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.songwalk-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.songwalk-mobile-toc {
  display: none;
}

.songwalk-mobile-toc details {
  background: linear-gradient(180deg, #f8fbff 0%, #eff5ff 100%);
  border: 1px solid #d9e6ff;
  border-radius: 1rem;
  margin: 0.8rem 0 1rem;
  overflow: hidden;
}

.songwalk-mobile-toc summary {
  color: #163d8b;
  cursor: pointer;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  list-style: none;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
}

.songwalk-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.songwalk-mobile-toc__list {
  border-top: 1px solid #d9e6ff;
  padding: 0.7rem 1rem 0.95rem;
}

.songwalk-post-sidebar {
  width: min(354px, 34%);
}

.gp-post-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1rem;
}

.songwalk-sidebar-card {
  background: #fff;
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow-soft);
  padding: 1.5rem;
}

.songwalk-sidebar-card h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.songwalk-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.songwalk-aside-list li {
  margin: 0 0 0.7rem;
}

.aside-link {
  color: var(--sw-text);
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.aside-link-h:hover {
  text-decoration: underline;
}

.songwalk-muted {
  color: #6b7484;
}

.songwalk-toc-items {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  position: relative;
}

.songwalk-toc-items::before {
  background: var(--sw-accent);
  border-radius: 2px;
  bottom: 0;
  content: "";
  left: 1px;
  opacity: 0.2;
  position: absolute;
  top: 0;
  width: 2px;
}

.songwalk-toc-item {
  margin-bottom: 0.5rem;
  position: relative;
}

.songwalk-toc-item::after {
  background: var(--sw-accent);
  border-radius: 4px;
  bottom: 0;
  content: "";
  left: -12px;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.24s ease;
  width: 4px;
}

.songwalk-toc-item--h3 {
  margin-left: 1.75rem;
}

.songwalk-toc-item--h3::after {
  left: -40px;
}

.songwalk-toc-item--h4 {
  margin-left: 2.6rem;
}

.songwalk-toc-item--h4::after {
  left: -52px;
}

.songwalk-toc-item a {
  color: #334762;
  font-size: 1rem;
  line-height: 1.35;
}

.songwalk-toc-item a.is-active {
  color: var(--sw-accent);
  font-weight: 700;
}

.songwalk-toc-item:has(a.is-active)::after {
  opacity: 1;
}

.songwalk-empty {
  background:
    radial-gradient(circle at top left, rgba(255, 226, 123, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f6f8fc 100%);
  border: 1px solid rgba(32, 63, 128, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 16px 34px rgba(10, 29, 69, 0.08);
  color: var(--sw-muted);
  padding: 1.25rem;
}

.songwalk-empty--playlist-taxonomy,
.songwalk-empty--playlists-page,
.songwalk-empty--sitemap {
  margin-inline: auto;
  max-width: 60rem;
}

.songwalk-empty__inner {
  display: grid;
  gap: 0.85rem;
  max-width: 38rem;
}

.songwalk-empty__eyebrow {
  color: var(--sw-accent);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.songwalk-empty h3 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.songwalk-empty__copy {
  color: #4b5c73;
  font-size: 1.02rem;
  margin: 0;
}

.songwalk-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.songwalk-list {
  display: grid;
  gap: 1rem;
}

.songwalk-list--playlists {
  gap: 1.15rem;
}

.songwalk-list--songs {
  gap: 0.9rem;
}

.songwalk-section--playlists-index .songwalk-list--playlists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.songwalk-list-item {
  align-items: stretch;
  border: 1px solid #e4e8f0;
  border-radius: 1.2rem;
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.songwalk-list-item:hover,
.songwalk-list-item:focus-within {
  border-color: rgba(24, 68, 160, 0.24);
  box-shadow: 0 14px 28px rgba(10, 28, 68, 0.1);
  transform: translateY(-2px);
}

.songwalk-list-item__image {
  align-items: center;
  background: #f6f8fc;
  display: grid;
  min-height: 120px;
}

.songwalk-list-item__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.songwalk-list-item__image .songwalk-card__placeholder {
  align-items: center;
  display: grid;
  height: 100%;
  width: 100%;
}

.songwalk-list-item__content {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.15rem;
}

.songwalk-list-item__eyebrow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.55rem;
}

.songwalk-list-item__meta {
  align-items: center;
  color: #60718a;
  display: flex;
  flex-wrap: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.38rem;
  margin: 0;
  white-space: nowrap;
}

.songwalk-list-item__content h3 {
  display: -webkit-box;
  font-size: 1.25rem;
  line-height: 1.12;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.songwalk-list-item__excerpt {
  color: #49586e;
  display: -webkit-box;
  font-size: 1rem;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.songwalk-list-item .songwalk-btn {
  justify-self: flex-start;
}

.songwalk-list-item--playlist .songwalk-list-item__image {
  min-height: 160px;
}

.songwalk-list-item--playlist .songwalk-list-item__content {
  align-content: center;
  gap: 0.8rem;
  padding: 1.25rem 1.25rem 1.3rem;
}

.songwalk-list-item--song .songwalk-list-item__content {
  gap: 0.55rem;
}

.songwalk-page-head {
  margin-bottom: 2.35rem;
}

.songwalk-page-head p {
  color: #435269;
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.songwalk-page-head__eyebrow {
  color: var(--sw-accent);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.songwalk-page-head__meta {
  align-items: center;
  color: #5a6880;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.98rem;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.songwalk-page-head__lead {
  max-width: 48rem;
}

.songwalk-page-head__summary {
  max-width: 46rem;
}

.songwalk-page-head--playlist-taxonomy .songwalk-page-image {
  box-shadow: 0 16px 34px rgba(11, 28, 69, 0.12);
  margin-bottom: 1rem;
  max-height: 240px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.songwalk-section__head {
  margin-bottom: 1rem;
}

.songwalk-page-image {
  border-radius: var(--sw-radius-md);
  margin: 1.25rem 0 0.8rem;
}

.songwalk-sitemap {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

.songwalk-sitemap__item {
  border: 1px solid #d9e2f3;
  border-radius: 1.15rem;
  padding: 1rem 1.15rem;
  background: #fbfcff;
}

.songwalk-sitemap__item h2 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.songwalk-sitemap__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.songwalk-sitemap__item ul {
  margin: 0;
  padding-left: 1.1rem;
}

.songwalk-sitemap__item li {
  margin: 0.25rem 0;
}

.songwalk-sitemap__item a {
  color: #30476d;
}

.songwalk-sitemap__item a:hover {
  text-decoration: underline;
}

.songwalk-footer {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1rem;
  padding: 0 1rem;
}

.songwalk-footer__panel {
  background: var(--sw-brand-purple);
  border-radius: var(--sw-radius-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 3rem 0 6.5rem;
  padding: 2rem;
  position: relative;
}

.songwalk-footer__panel::after {
  aspect-ratio: 2316 / 273;
  background: url("assets/images/logo-footer.png") no-repeat center bottom;
  background-size: contain;
  content: "";
  left: 0;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 2rem);
}

.songwalk-footer__top {
  display: flex;
  gap: 3rem;
  position: relative;
}

.songwalk-footer__top::before {
  background: linear-gradient(
    to right,
    var(--sw-brand-purple) 0%,
    #ffffff 25%,
    var(--sw-brand-purple) 50%,
    #ffffff 75%,
    var(--sw-brand-purple) 100%
  );
  border-radius: 2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + (2rem - 1px));
}

.songwalk-footer__item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.75rem;
}

.songwalk-footer__item--brand {
  margin-right: auto;
  max-width: 380px;
}

.songwalk-footer__title {
  color: #fff;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.songwalk-footer__text {
  color: rgba(255, 255, 255, 0.88);
}

.songwalk-footer__brand-mark {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: -0.1rem 0 0.1rem;
  max-width: 22rem;
}

.songwalk-footer__menu,
.songwalk-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.songwalk-footer__menu li,
.songwalk-footer__social li {
  margin: 0 0 0.6rem;
}

.songwalk-footer__menu a,
.songwalk-footer__social a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

.songwalk-footer__menu a:hover,
.songwalk-footer__social a:hover {
  text-decoration: underline;
}

.songwalk-footer__bottom {
  align-items: center;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
}

.songwalk-footer__menu--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.songwalk-footer__menu--inline li {
  margin: 0;
}

@media (max-width: 1024px) {
  .songwalk-postfeed-wrapper {
    padding: 0 2rem;
  }

  .songwalk-hero__overlay {
    padding: 2rem;
  }

  .songwalk-hero__fallback {
    padding: 1rem;
  }

  .songwalk-hero__fallback-copy {
    max-width: 25rem;
  }

  .songwalk-post-layout {
    flex-direction: column;
  }

  .songwalk-post-sidebar {
    width: 100%;
  }

  .gp-post-sidebar-wrapper {
    position: static;
  }

  .songwalk-post-actions .songwalk-btn {
    min-height: 40px;
  }
}

@media (max-width: 900px) {
  body.songwalk-head-open {
    overflow: hidden;
  }

  body.songwalk-head-open #songwalk-head {
    background: rgba(11, 30, 73, 0.55);
    backdrop-filter: blur(6px);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 1rem 0.5rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
  }

  .admin-bar body.songwalk-head-open #songwalk-head,
  body.admin-bar.songwalk-head-open #songwalk-head {
    top: 32px;
  }

  .songwalk-nav-shell {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 560px;
    padding: 1rem;
  }

  body.songwalk-head-open .songwalk-nav-shell {
    box-shadow: 0 18px 36px rgba(6, 22, 59, 0.34);
  }

  .songwalk-burger {
    display: inline-block;
  }

  .songwalk-lang {
    align-self: flex-end;
  }

  .songwalk-head-brand {
    gap: 1rem;
  }

  .songwalk-lang-pill {
    font-size: 0.68rem;
    padding: 0.42rem 0.6rem;
  }

  .songwalk-lang-menu {
    min-width: min(16rem, calc(100vw - 2.75rem));
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 1100;
  }

  .songwalk-head-menu {
    align-items: flex-start;
    display: none;
    flex-direction: column;
    margin: 0;
    width: 100%;
  }

  body.songwalk-head-open .songwalk-lang {
    margin-top: 0;
    width: 100%;
  }

  body.songwalk-head-open .songwalk-lang-trigger {
    display: inline-flex;
  }

  body.songwalk-head-open .songwalk-lang.is-open .songwalk-lang-menu {
    border-radius: 0.75rem;
    box-shadow: none;
    margin-top: 0.55rem;
    min-width: 0;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  body.songwalk-head-open .songwalk-head-menu {
    display: flex;
  }

  .songwalk-nav-menu-wrap {
    width: 100%;
  }

  .songwalk-nav-menu-title {
    color: #fff;
    display: block;
    font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .songwalk-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .songwalk-menu a {
    padding: 0;
  }

  .songwalk-head-open .songwalk-burger__box::before {
    width: 0;
  }

  .songwalk-head-open .songwalk-burger__inner::before {
    background: var(--sw-accent);
    transform: translateY(5px) rotate(45deg);
  }

  .songwalk-head-open .songwalk-burger__inner::after {
    background: var(--sw-accent);
    transform: translateY(-5px) rotate(-45deg);
  }

  .songwalk-head-open .songwalk-burger__inner {
    background: #fff;
    border-radius: 0.75rem;
    display: inline-block;
    height: 36px;
    width: 36px;
  }

  .songwalk-hero {
    aspect-ratio: auto;
    margin: 1rem 0 0;
  }

  .songwalk-hero__overlay::before,
  .songwalk-hero__overlay::after {
    display: none;
  }

  .songwalk-hero__overlay {
    border-radius: 1.25rem;
    max-width: 100%;
    padding: 2rem 1rem;
    position: static;
  }

  .songwalk-hero__fallback {
    align-items: stretch;
    padding: 1rem;
  }

  .songwalk-hero__fallback-copy {
    max-width: none;
    width: 100%;
  }

  .songwalk-postfeed-wrapper {
    padding: 0 1rem;
  }

  .songwalk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .songwalk-footer__item--brand {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .songwalk-content p,
  .songwalk-content li {
    font-size: 1rem;
    line-height: 1.62;
  }

  .songwalk-content blockquote {
    font-size: 1rem;
  }

  .songwalk-card__title,
  .songwalk-card h3 {
    font-size: 1.125rem;
  }

  .songwalk-card__excerpt {
    font-size: 0.95rem;
  }

  .songwalk-grid {
    display: flex;
    gap: 1rem;
    margin: 0 -0.5rem;
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
    scrollbar-width: none;
    /* PW-S2B WP-4: scroll-snap on the mobile horizontal card carousel
     * so the user lands on card boundaries instead of between them. */
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .songwalk-section--playlists-index .songwalk-list--playlists {
    grid-template-columns: 1fr;
  }

  .songwalk-grid::-webkit-scrollbar {
    display: none;
  }

  .songwalk-grid .songwalk-card {
    flex: 0 0 min(328px, 86vw);
    scroll-snap-align: start;
  }

  .songwalk-list-item {
    align-items: start;
    gap: 0.7rem;
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
    padding: 0.72rem;
  }

  .songwalk-list-item__image {
    border-radius: 0.9rem;
    min-height: 0;
    overflow: hidden;
  }

  .songwalk-list-item--playlist .songwalk-list-item__image,
  .songwalk-list-item--song .songwalk-list-item__image {
    min-height: 72px;
  }

  .songwalk-list-item__content {
    gap: 0.28rem;
    padding: 0;
  }

  .songwalk-list-item__content h3 {
    font-size: 0.96rem;
    line-height: 1.14;
    -webkit-line-clamp: 2;
  }

  .songwalk-list-item__excerpt {
    font-size: 0.86rem;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }

  .songwalk-list-item__eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.24rem;
  }

  .songwalk-list-item__meta {
    font-size: 0.7rem;
    gap: 0.26rem;
  }

  .songwalk-empty {
    border-radius: 1.25rem;
    padding: 1.1rem;
  }

  .songwalk-post-meta {
    font-size: 0.92rem;
    gap: 0.4rem;
  }

  .songwalk-post-excerpt {
    font-size: 1.08rem;
  }

  .songwalk-post-actions {
    flex-direction: column;
  }

  .songwalk-post-actions .songwalk-btn {
    width: 100%;
  }

  .songwalk-post-sidebar {
    display: none;
  }

  .songwalk-mobile-toc {
    display: block;
  }

  .songwalk-footer {
    padding: 0 0.5rem;
  }

  .songwalk-page-head__meta {
    font-size: 0.9rem;
  }

  .songwalk-page-head--playlist-taxonomy {
    margin-bottom: 1.5rem;
  }

  .songwalk-page-head--playlist-taxonomy .songwalk-page-image {
    border-radius: 1.25rem;
    margin-top: 1rem;
    max-height: 220px;
    width: 100%;
  }

  .songwalk-page-head--playlist-taxonomy .songwalk-page-head__summary {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-top: 0.95rem;
  }

  .songwalk-section--playlist-taxonomy-tracks {
    margin-top: 1.9rem;
  }

  .songwalk-section--playlist-taxonomy-tracks .nav-links {
    gap: 0.4rem;
    justify-content: flex-start;
    margin-top: 0.8rem;
  }

  .songwalk-list-item__cta {
    margin-top: 0.18rem;
  }

  .songwalk-footer__panel {
    font-size: 0.875rem;
    gap: 2rem;
    margin: 0 0 4rem;
    padding: 1.5rem;
  }

  .songwalk-footer__panel::after {
    aspect-ratio: 727 / 84;
    background-image: url("assets/images/logo-footer-mobile.png");
    display: none;
  }

  .songwalk-footer__top {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
  }

  .songwalk-footer__top::before {
    top: calc(100% + 1rem - 1px);
  }

  .songwalk-footer__item--brand {
    max-width: 100%;
    width: 100%;
  }

  .songwalk-logo-lockup {
    gap: 0.7rem;
    min-height: 40px;
  }

  .songwalk-logo-lockup__mark {
    border-radius: 0.7rem;
    height: 36px;
    width: 36px;
  }

  .songwalk-logo-lockup__word {
    font-size: 1rem;
  }

  .songwalk-footer__brand-mark {
    font-size: 0.88rem;
    max-width: 100%;
  }

  .songwalk-footer__bottom {
    align-items: center;
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .songwalk-container {
    width: calc(100vw - 1rem);
  }

  .songwalk-hero__overlay h1 {
    font-size: 2rem;
  }

  .songwalk-hero__overlay p {
    font-size: 1.05rem;
  }

  .songwalk-hero__actions {
    flex-direction: column;
  }

  .songwalk-hero__actions .songwalk-btn {
    width: 100%;
  }

  .songwalk-hero__fallback-copy {
    padding: 1.1rem;
  }

  .songwalk-hero__fallback-actions,
  .songwalk-empty__actions {
    flex-direction: column;
  }

  .songwalk-hero__fallback-actions .songwalk-btn,
  .songwalk-empty__actions .songwalk-btn {
    width: 100%;
  }

  .songwalk-postfeed-title h2,
  .songwalk-section h2 {
    font-size: 1.8rem;
  }

  .songwalk-content {
    border-radius: 1.25rem;
    padding: 1.2rem;
  }

  .songwalk-page-head--playlist-taxonomy .songwalk-page-image {
    max-height: 260px;
  }

  .songwalk-section--playlist-taxonomy-tracks {
    margin-top: 1.55rem;
  }

  .songwalk-list--songs {
    gap: 0.72rem;
  }

  .songwalk-list-item {
    border-radius: 1.05rem;
  }

  .songwalk-list-item__content {
    gap: 0.24rem;
  }

  .songwalk-list-item__eyebrow {
    gap: 0.18rem;
  }

  .songwalk-list-item__meta {
    font-size: 0.68rem;
  }

  .songwalk-list-item__excerpt {
    display: none;
  }

  .songwalk-list-item__cta {
    justify-self: flex-start;
  }

  .songwalk-footer__menu--inline {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
  }

  .songwalk-footer__menu--inline li:nth-child(3) {
    grid-column: auto;
  }
}

/* PW-S1B fidelity pass — interactive state chrome.
 * Scope: additive :focus-visible rings + disabled chrome across the three
 * reference surfaces. Closes MS-1 (hover/focus-visible), MS-3 (disabled),
 * MS-12 (focus-ring token substitute).
 * PW-S1C update: ring color migrated from var(--sw-accent) proxy to the
 * formal --color-focus-ring token declared in :root.
 */
.songwalk-btn:focus-visible,
.songwalk-card__link:focus-visible,
.songwalk-breadcrumbs a:focus-visible,
.songwalk-post-meta__pill:focus-visible,
.aside-link:focus-visible,
.songwalk-toc-item a:focus-visible,
.songwalk-mobile-toc summary:focus-visible,
.songwalk-list-item a:focus-visible,
.songwalk-pagination a:focus-visible,
.page-numbers:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.songwalk-btn[aria-disabled="true"],
.songwalk-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

/* PW-S1C hover chrome for secondary links (MS-21).
 * Scope: additive :hover rules for breadcrumb anchors and aside-list
 * links. Pattern: underline on hover, matching the content-body
 * link treatment established at style.css:833-838.
 */
.songwalk-breadcrumbs a:hover,
.aside-link-h:hover {
  color: var(--sw-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.songwalk-menu a:focus-visible,
.songwalk-menu a:hover,
.songwalk-lang-menu__link:hover,
.songwalk-lang-menu__link:focus-visible,
.songwalk-breadcrumbs a:focus-visible,
.page-numbers:hover,
.page-numbers:focus-visible {
  box-shadow: 0 0 0 1px rgba(31, 77, 184, 0.08);
}

/* PW-S1C pagination state chrome (MS-25).
 * Scope: explicit contrast for .page-numbers.current on the accent
 * background; .page-numbers hover for consistency. WP core pagination
 * previously relied on UA defaults.
 */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 var(--space-sm);
  border-radius: var(--sw-radius-sm);
  color: var(--sw-muted);
  font-weight: 600;
}

.page-numbers:hover {
  background: var(--sw-accent-soft);
  color: var(--sw-accent);
}

.page-numbers.current {
  background: var(--sw-accent);
  color: var(--color-ink-inverse);
}

/* PW-S1C targeted token adoption — meta labels (MS-9 partial).
 * Replaces raw font-size on two high-visibility meta lines with the
 * --type-meta + --leading-meta tokens so the pattern is set for future
 * migration of other raw font-size rows.
 */
.songwalk-hero__kicker,
.songwalk-section__eyebrow {
  font-size: var(--type-meta);
  line-height: var(--leading-meta);
}

/* PW-S2A reduced-motion accommodation (WCAG 2.3.3 related; user-pref respect).
 * Disables hover lift/scale transforms and animated transitions when the
 * user has requested reduced motion. The rule intentionally scopes only to
 * movement/scale-bearing properties so that non-motion transitions (color,
 * background, opacity) remain for legibility. No visual baseline change in
 * the default (no-preference) viewport used by the PW-S1D suite.
 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .songwalk-card:hover,
  .songwalk-card:hover .songwalk-card__thumb img,
  .songwalk-btn:hover {
    transform: none !important;
  }
}
