
  :root {
    --bg: #f4f3ee;
    --card: #4b8cb8;
    --ink: #18244e;
    --muted: #3d4a6b;
    --accent: #164e34;
    --line: #18244e;
    --sky: #8fbbe3;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    background-color: #183024;
    background-image: url("plaid.png");
    background-size: 194px 194px;
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 32px;
    min-height: 100%;
  }
  main {
    width: 100%;
    max-width: 680px;
    margin: auto 0;
    background: var(--bg);
    border-radius: 18px;
    padding: 44px 36px 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
  }
  h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 8vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }
  .logo { display: block; margin: 0 auto 24px; max-width: 460px; width: 100%; }
  .logo img { display: block; width: 100%; height: auto; }
  .lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 30em;
    margin: 0 auto 40px;
  }
  .verse {
    background: var(--card);
    color: #ffffff;
    box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px #f4f3ee;
    border: 1px solid #3c7299;
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 16px;
  }
  .verse + .verse { margin-bottom: 40px; }
  .verse p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.4;
  }
  .verse cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    font-weight: 500;
  }
  .coming h2 {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 16px;
  }
  .coming ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .coming li a {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #d9dbe3;
    border-top: 4px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
  }
  .go { display: inline-block; margin-left: 4px; transition: transform .15s; }
  .coming li a:hover, .coming li a:focus-visible {
    border-color: #b9c3cf;
    border-top-color: var(--accent);
    box-shadow: 0 4px 14px rgba(24,36,78,0.15);
    transform: translateY(-2px);
  }
  .coming li a:hover .go, .coming li a:focus-visible .go { transform: translateX(3px); }
  .coming li.wide { grid-column: 1 / -1; }
  .coming li a span:not(.go) {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
  }
  main footer {
    margin-top: 40px;
  }
  footer {
    margin-top: 48px;
    font-size: 0.8rem;
    color: var(--muted);
  }
  @media (max-width: 520px) {
    main { padding: 32px 20px 24px; }
    .coming ul { grid-template-columns: 1fr; text-align: left; }
  }

  .logo-link { display: block; }
  .logo.small { max-width: 300px; margin-bottom: 20px; }
  .page-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.1;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .soon {
    background: var(--card);
    color: #ffffff;
    box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px #f4f3ee;
    border: 1px solid #3c7299;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    font-size: 1rem;
  }
  .soon strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
  .back {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 999px;
    padding: 8px 20px;
  }
  .back:hover, .back:focus-visible { background: var(--accent); color: #ffffff; }
  .covers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
  .cover {
    background: #ffffff;
    border: 1px solid #d9dbe3;
    border-top: 4px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
  }
  .cover.wide { grid-column: 1 / -1; }
  .cover a { display: block; }
  .cover img { display: block; width: 100%; height: auto; transition: opacity .15s; }
  .cover a:hover img, .cover a:focus-visible img { opacity: .9; }
  .cover figcaption {
    padding: 10px 12px 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
  }
  .cover figcaption span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
  }
  @media (max-width: 520px) {
    .covers { grid-template-columns: 1fr; }
  }
  .cover.solo { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  @media (max-width: 520px) { .cover.solo { width: 100%; } }

  .coming li { grid-column: span 2; }

  @media (max-width: 520px) { .coming li { grid-column: 1 / -1; } }

  .song-cover { margin: 8px auto 28px; max-width: 460px; border-radius: 12px; overflow: hidden; border-top: 4px solid var(--accent); box-shadow: 0 6px 22px rgba(24,36,78,.18); }
  .song-cover img { display: block; width: 100%; height: auto; }
  .song-block { background: #ffffff; border: 1px solid #d9dbe3; border-top: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; text-align: left; }
  .song-block h2 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
  .clip-soon, .details-soon { color: var(--muted); font-size: 0.98rem; }
  .song-page .verse { margin: 0 0 18px; }
  .song-nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
  .cover a { position: relative; }

  .song-intro { color: var(--ink); margin-bottom: 14px; }
  .scripture-map dt { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e6e8ee; }
  .scripture-map dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
  .scripture-map dd { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
  .scripture-map dd strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
  .kjv-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

  .clip { display: block; width: 100%; margin-top: 4px; }
  .clip-note { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }

  .top-nav { display: flex; justify-content: space-between; gap: 10px; margin: -20px -12px 14px; }
  .top-nav a { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-decoration: none; padding: 6px 14px; border: 1.5px solid var(--accent); border-radius: 999px; background: #fff; }
  .top-nav a:hover, .top-nav a:focus-visible { background: var(--accent); color: #fff; }
  .top-nav a:only-child { margin-right: auto; }
  @media (max-width: 520px) { .top-nav { margin: -12px -4px 12px; } .top-nav a { font-size: 0.85rem; padding: 5px 12px; } }

  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-search { position: relative; margin: 0 auto 22px; max-width: 460px; text-align: left; }
  .site-search input { width: 100%; font: inherit; font-size: 0.95rem; padding: 10px 16px 10px 40px; border: 1.5px solid #c9ced8; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23164e34' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5l4 4'/%3E%3C/svg%3E") no-repeat 14px center; color: var(--ink); }
  .site-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,78,52,.15); }
  .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #d9dbe3; border-radius: 12px; box-shadow: 0 10px 28px rgba(24,36,78,.18); list-style: none; padding: 6px; z-index: 20; max-height: 360px; overflow-y: auto; }
  .search-results a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
  .search-results a:hover, .search-results a:focus { background: #eef3f0; }
  .search-results strong { display: block; color: var(--accent); font-weight: 600; }
  .search-results span { font-size: 0.85rem; color: var(--muted); }
  .search-results .none { padding: 10px 12px; color: var(--muted); font-size: 0.9rem; }
  .song-count { margin: -26px auto 26px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
  .cover[hidden] { display: none; }
  .nav-right { display: flex; gap: 8px; }
  footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
  footer a:hover { text-decoration: underline; }
  @media (max-width: 520px) { .top-nav { flex-wrap: wrap; } }

  .protected .song-page { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .protected .song-page input { -webkit-user-select: text; user-select: text; }
  .protected .song-page blockquote.verse, .protected .song-page .about-song { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
  @media print {
    .protected body * { display: none !important; }
    .protected body { background: #fff !important; }
    .protected body::after { content: "Printing is not available for this page. Visit werdouglas.org to listen."; display: block; padding: 40px; font: 16px sans-serif; color: #000; }
  }
  .site-search input { background-color: #164e34; border-color: #164e34; color: #ffffff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5l4 4'/%3E%3C/svg%3E"); }
  .site-search input::placeholder { color: rgba(255,255,255,0.78); }
  .site-search input:focus { border-color: #0f3a26; box-shadow: 0 0 0 3px rgba(22,78,52,.3); }
  .site-search input::-webkit-search-cancel-button { filter: invert(1) brightness(2); }

  /* larger logo (+20%) */
  .logo { max-width: 552px; }
  .logo.small { max-width: 360px; }
  /* wider list pages with plaid border kept */
  body { padding-left: 32px; padding-right: 32px; }
  main.list-page { max-width: 1180px; }
  main.list-page .covers { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
  main.list-page .cover.solo { grid-column: auto; justify-self: stretch; width: auto; }
  main.list-page .lead, main.list-page .soon { max-width: 720px; margin-left: auto; margin-right: auto; }
  @media (max-width: 720px) { body { padding-left: 16px; padding-right: 16px; } }
  @media (max-width: 520px) { main.list-page .covers { grid-template-columns: 1fr 1fr; gap: 12px; } .cover figcaption { font-size: 0.85rem; } }
  main.list-page .cover { display: flex; flex-direction: column; }
  main.list-page .cover a { aspect-ratio: 4 / 5; background: #eceee9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  main.list-page .cover img { width: 100%; height: 100%; object-fit: contain; }
  main.list-page .cover figcaption { flex: 1; }
  main.list-page .cover.wide { grid-column: span 2; }
  main.list-page .cover.wide a { aspect-ratio: auto; height: 100%; max-height: none; }
  @media (max-width: 520px) { main.list-page .cover.wide { grid-column: 1 / -1; } }

  footer .legal { margin: 10px auto 0; max-width: 620px; font-size: 0.7rem; line-height: 1.5; color: var(--muted); opacity: 0.85; }

  .top-nav { align-items: center; }
  .top-nav .site-search { margin: 0 0 0 auto; flex: 0 1 360px; max-width: 360px; }
  .top-nav .site-search input { padding-top: 8px; padding-bottom: 8px; }
  @media (max-width: 520px) { .top-nav .site-search { flex: 1 1 100%; max-width: none; margin: 4px 0 0; } }
  .cover figcaption { color: #4b8cb8; }
  .cover figcaption span { color: var(--muted); }
  main:not(.song-page) .logo.small { max-width: 432px; }

  .kids-page .logo.small { margin-bottom: 6px; }
  .kids-page .eyebrow { margin-bottom: 6px; }
  .kids-page .page-title { margin-bottom: 4px; }
  .sung-by { font-size: 1.05rem; color: var(--muted); margin-bottom: 14px; }
  .sung-by span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.5rem; color: #4b8cb8; margin-left: 4px; }

  .partner { display: block; margin: 28px auto 0; max-width: 460px; padding: 16px 20px; border-radius: 14px; background: var(--card); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px #f4f3ee; border: 1px solid #3c7299; transition: transform .15s, box-shadow .15s; }
  .partner:hover, .partner:focus-visible { transform: translateY(-2px); }
  .partner-lead { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
  .partner-link { display: block; margin-top: 4px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; }

  .partner { display: flex; align-items: center; gap: 16px; text-align: left; }
  .partner-logo { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
  .partner-text { display: block; }
  @media (max-width: 420px) { .partner-logo { width: 60px; height: 60px; } .partner-link { font-size: 1.3rem; } }

  img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

  .top-nav .nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .top-nav .nav-right .site-search { margin: 0; }
  .home-nav { justify-content: flex-end; }
  .share { position: relative; }
  .share-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--accent); background: #fff; border: 1.5px solid var(--accent); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
  .share-btn:hover, .share-btn:focus-visible { background: var(--accent); color: #fff; }
  .share-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #d9dbe3; border-radius: 12px; box-shadow: 0 10px 28px rgba(24,36,78,.18); padding: 6px; min-width: 170px; z-index: 30; text-align: left; }
  .share-menu button, .share-menu a { display: block; width: 100%; font: inherit; font-size: 0.92rem; text-align: left; padding: 8px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer; }
  .share-menu button:hover, .share-menu a:hover { background: #eef3f0; color: var(--accent); }
  .share-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; z-index: 50; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
  @media (max-width: 520px) { .share-btn span { display: none; } .share-btn { padding: 7px 9px; } .top-nav .nav-right { flex-wrap: wrap; justify-content: flex-end; } }

  .top-nav .nav-right { flex-wrap: nowrap; }
  .home-nav .nav-right { width: 100%; justify-content: flex-end; }
  .home-nav .site-search { flex: 0 1 360px; max-width: 360px; margin: 0 auto 0 0; }
  @media (max-width: 520px) {
    .top-nav { flex-wrap: wrap; row-gap: 10px; }
    .top-nav .nav-right { flex-wrap: wrap; justify-content: flex-end; }
    .top-nav .nav-right .site-search { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
    .top-nav .nav-right .share { order: 1; }
    .list-page .top-nav, .home-nav { flex-wrap: nowrap; }
    .list-page .top-nav .nav-right, .home-nav .nav-right { display: contents; }
    .list-page .top-nav .share, .home-nav .share { margin-left: auto; }
    .list-page .top-nav { flex-wrap: wrap; }
    .home-nav { flex-wrap: wrap; }
    .home-nav .share { order: 1; }
    .home-nav .site-search { order: 5; flex: 1 1 100%; }
  }
  @media (max-width: 520px) {
    .song-page .top-nav { flex-wrap: nowrap; gap: 6px; }
    .song-page .top-nav .nav-right { display: contents; }
    .song-page .top-nav > a:first-child { margin-right: auto; }
    .song-page .top-nav a, .song-page .share-btn { font-size: 0.78rem; padding: 5px 9px; white-space: nowrap; }
    .song-page .share-btn { padding: 5px 7px; }
  }

  .search-results em { display: block; font-style: normal; font-size: 0.8rem; color: var(--ink); opacity: 0.8; margin-top: 2px; line-height: 1.35; }
  .search-results { max-height: 420px; }
  .top-nav .search-results a { border: 0; background: none; border-radius: 8px; padding: 8px 12px; font-weight: 400; font-size: 0.95rem; color: var(--ink); }
  .top-nav .search-results a:hover, .top-nav .search-results a:focus { background: #eef3f0; color: var(--ink); }
  .top-nav .search-results span { font-weight: 400; }

  footer .fb-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 16px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
  footer .fb-link:hover, footer .fb-link:focus-visible { background: #0f5fd0; color: #fff; text-decoration: none; }
  .song-step { display: flex; gap: 12px; margin: -10px auto 24px; max-width: 560px; }
  .song-step .step { flex: 1 1 0; display: flex; flex-direction: column; padding: 10px 14px; background: #fff; border: 1px solid #d9dbe3; border-top: 3px solid var(--accent); border-radius: 10px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
  .song-step .prev { text-align: left; }
  .song-step .next { text-align: right; }
  .song-step .step:hover, .song-step .step:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(24,36,78,.15); }
  .step-dir { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
  .step-title { font-size: 0.95rem; color: #4b8cb8; font-weight: 600; margin-top: 2px; }
  .coming li { position: relative; }
  .coming li.has-sample > a:first-child { padding-bottom: 60px; }
  .coming li a.sample { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); height: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: #f4f3ee; border: 1px solid #d9dbe3; border-top: 1px solid #d9dbe3; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; }
  .coming li a.sample img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; display: block; }
  .coming li a.sample span { display: inline; color: #4b8cb8; font-weight: 600; font-size: 0.8rem; }
  .coming li a.sample:hover, .coming li a.sample:focus-visible { transform: translateX(-50%) translateY(-2px); border-top-color: #b9c3cf; }
  @media (max-width: 520px) { .coming li a.sample { left: 10px; transform: none; } .coming li a.sample:hover { transform: translateY(-2px); } }
  @media (min-width: 521px) {
    .coming li.has-sample > a:first-child { padding-bottom: 92px; }
    .coming li a.sample { flex-direction: column; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
    .coming li a.sample img { width: 56px; height: 56px; border-radius: 8px; box-shadow: 0 2px 8px rgba(24,36,78,.2); }
    .coming li a.sample span { font-size: 0.78rem; }
    .coming li a.sample:hover, .coming li a.sample:focus-visible { box-shadow: none; }
  }
  .coming li.has-sample > a:first-child { padding-bottom: 82px; }
  .coming li a.sample img { width: 60px; height: 60px; }
  @media (min-width: 521px) {
    .coming li.has-sample > a:first-child { padding-bottom: 122px; }
    .coming li a.sample img { width: 84px; height: 84px; }
  }
  .about-song p { line-height: 1.65; color: var(--ink); }
  .ai-note { margin-top: 10px; font-size: 0.8rem; color: var(--muted); font-style: italic; }
  .status-key { list-style: none; position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 8px 12px; background: #fff; border: 1px solid #d9dbe3; border-radius: 10px; text-align: left; white-space: nowrap; z-index: 5; box-shadow: 0 2px 8px rgba(24,36,78,.08); }
  .status-key li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink); line-height: 1.9; }
  .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
  .dot.red { background: #d93025; }
  .dot.yellow { background: #f5c400; }
  .dot.green { background: #1e9e4a; }
  @media (max-width: 520px) { .status-key { padding: 6px 9px; } .status-key li { font-size: 0.72rem; line-height: 1.7; } .dot { width: 10px; height: 10px; } }
  @media (max-width: 520px) {
    main > .status-key { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; box-shadow: none; margin: 0 auto 12px; width: fit-content; max-width: 100%; white-space: normal; }
  }
  .title-row { position: relative; }
  .title-row .status-key { top: 50%; right: 0; transform: translateY(-50%); }
  @media (max-width: 860px) {
    .title-row .status-key { position: static; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; box-shadow: none; margin: 4px auto 12px; width: fit-content; max-width: 100%; white-space: normal; }
  }
  .title-row .status-key { border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 26px; box-shadow: none; }
  @media (max-width: 860px) { .title-row .status-key { padding: 6px 18px; } }
  .cover figcaption .dot { display: inline-block; vertical-align: 1px; margin: 0 7px 0 0; width: 11px; height: 11px; }
  .status-key.key-center { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; width: fit-content; max-width: 100%; margin: 4px auto 16px; padding: 6px 20px; border: 1.5px solid var(--accent); border-radius: 999px; box-shadow: none; white-space: normal; }
  .spotify-link { display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; margin: 28px auto 0; padding: 12px 28px 12px 18px; background: #1DB954; color: #fff; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(29,185,84,.35); transition: transform .15s, box-shadow .15s, background .15s; }
  .spotify-link:hover, .spotify-link:focus-visible { background: #1aa34a; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(29,185,84,.45); }
  .spotify-link svg { width: 34px; height: 34px; flex: none; }
  .sp-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
  .sp-lead { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .9; }
  .sp-main { font-size: 1.05rem; font-weight: 600; }
  .tap-play { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 0.95rem; color: #fff; background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; animation: tapPulse 1.6s ease-in-out infinite; }
  .tap-play[hidden] { display: none; }
  .tap-play:hover { background: #0f3a26; }
  @keyframes tapPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,78,52,.45); } 50% { box-shadow: 0 0 0 8px rgba(22,78,52,0); } }
  @media (prefers-reduced-motion: reduce) { .tap-play { animation: none; } }
  .song-step { align-items: stretch; }
  .song-step.solo { justify-content: center; }
  .stream-now { position: relative; flex: none; display: flex; align-items: center; }
  .sn-btn { display: inline-flex; align-items: center; gap: 7px; height: 100%; min-height: 44px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--accent); background: #fff; border: 1.5px solid var(--accent); border-radius: 999px; cursor: pointer; white-space: nowrap; }
  .sn-btn:hover, .sn-btn:focus-visible, .sn-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
  .sn-btn .dot { width: 10px; height: 10px; }
  .sn-caret { font-size: 0.75rem; }
  .sn-menu { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); min-width: 210px; background: #fff; border: 1px solid #d9dbe3; border-radius: 12px; box-shadow: 0 10px 28px rgba(24,36,78,.18); padding: 6px; z-index: 30; text-align: left; }
  .sn-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
  .sn-menu a:hover, .sn-menu a:focus-visible { background: #eef3f0; color: var(--accent); }
  .sn-menu a::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: #999; vertical-align: 0; }
  .sn-menu .sn-spotify::before { background: #1DB954; }
  .sn-menu .sn-apple::before { background: #fa2d48; }
  .sn-menu .sn-amazon::before { background: #25d1da; }
  .sn-menu .sn-youtube::before { background: #ff0000; }
  .sn-note { font-size: 0.85rem; color: var(--muted); padding: 8px 12px 4px; margin: 0; }
  @media (max-width: 520px) {
    .song-step { flex-wrap: wrap; }
    .stream-now { order: 3; flex: 1 1 100%; justify-content: center; }
    .sn-btn { width: 100%; justify-content: center; min-height: 40px; }
  }
  .sn-btn { height: auto; }
  .spotify-wrap { position: relative; width: fit-content; margin: 28px auto 0; }
  .spotify-wrap .spotify-link { margin: 0; border: 0; font: inherit; cursor: pointer; }
  .spotify-wrap .sn-caret { font-size: 0.8rem; margin-left: 2px; }
  .spotify-menu { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); min-width: 230px; background: #fff; border: 1px solid #d9dbe3; border-radius: 14px; box-shadow: 0 10px 28px rgba(24,36,78,.2); padding: 6px; z-index: 30; text-align: left; }
  .spotify-menu a { display: flex; flex-direction: column; padding: 10px 14px 10px 36px; border-radius: 10px; text-decoration: none; position: relative; }
  .spotify-menu a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #1DB954; }
  .spotify-menu a:hover, .spotify-menu a:focus-visible { background: #eef8f1; }
  .sm-name { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
  .sm-sub { font-size: 0.8rem; color: var(--muted); }
  .listen-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
  .listen-row .spotify-wrap { margin: 0; }
  .apple-link { background: linear-gradient(135deg, #fa233b, #fb5c74) !important; box-shadow: 0 4px 14px rgba(250,35,59,.3) !important; }
  .apple-link:hover, .apple-link:focus-visible { background: linear-gradient(135deg, #e01a31, #f04a63) !important; box-shadow: 0 6px 18px rgba(250,35,59,.4) !important; }
  .apple-link svg { width: 30px; height: 30px; }
  .apple-menu a::before { background: #fa233b; }
  .apple-menu a:hover, .apple-menu a:focus-visible { background: #fdeef0; }
  @media (max-width: 520px) { .listen-row { flex-direction: column; align-items: center; } .listen-row .spotify-link { min-width: 270px; justify-content: flex-start; } }
  .listen-row .spotify-link { gap: 10px; padding: 9px 21px 9px 13px; }
  .listen-row .spotify-link svg { width: 26px; height: 26px; }
  .listen-row .apple-link svg { width: 22px; height: 22px; }
  .listen-row .sp-lead { font-size: 0.58rem; }
  .listen-row .sp-main { font-size: 0.8rem; }
  .listen-row .sn-caret { font-size: 0.65rem; }
  @media (max-width: 520px) { .listen-row .spotify-link { min-width: 205px; } }
  .amazon-link { background: linear-gradient(135deg, #0a7ccf, #25d1da) !important; box-shadow: 0 4px 14px rgba(13,140,210,.3) !important; }
  .amazon-link:hover, .amazon-link:focus-visible { background: linear-gradient(135deg, #0868b0, #1fb8c0) !important; box-shadow: 0 6px 18px rgba(13,140,210,.4) !important; }
  .listen-row .amazon-link svg { width: 22px; height: 22px; }
  .amazon-menu a::before { background: #13a6d8; }
  .amazon-menu a:hover, .amazon-menu a:focus-visible { background: #e9f7fb; }
  .youtube-link { background: linear-gradient(135deg, #e00000, #ff4e45) !important; box-shadow: 0 4px 14px rgba(224,0,0,.3) !important; }
  .youtube-link:hover, .youtube-link:focus-visible { background: linear-gradient(135deg, #c40000, #f03a31) !important; box-shadow: 0 6px 18px rgba(224,0,0,.4) !important; }
  .listen-row .youtube-link svg { width: 24px; height: 24px; }
  .youtube-menu a::before { background: #ff0000; }
  .youtube-menu a:hover, .youtube-menu a:focus-visible { background: #fdeeee; }
  @media (min-width: 521px) {
    .listen-row { display: grid; grid-template-columns: repeat(2, 230px); justify-content: center; }
    .listen-row .spotify-wrap { width: 100%; }
    .listen-row .spotify-link { width: 100%; justify-content: flex-start; }
  }

  /* top buttons follow the viewer while scrolling */
  .top-nav { position: sticky; top: 0; z-index: 40; background: var(--bg); padding: 8px 12px; margin: -28px -24px 6px; border-radius: 0 0 14px 14px; transition: box-shadow .2s; }
  .top-nav.stuck { box-shadow: 0 6px 16px rgba(0,0,0,.18); }
  @media (max-width: 520px) { .top-nav { padding: 8px 10px; margin: -20px -14px 4px; } }
  /* phone: share button sits to the left of a slimmer search bar, on one line */
  @media (max-width: 520px) {
    .home-nav, .list-page .top-nav { flex-wrap: nowrap; gap: 8px; }
    .top-nav.home-nav .nav-right .share, .list-page .top-nav .nav-right .share, .list-page .top-nav .share { order: 6; margin-left: 0; }
    .list-page .top-nav > a:first-child { order: 0; }
    .home-nav .site-search, .list-page .top-nav .site-search { order: 5; flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; }
    .home-nav .site-search input, .list-page .top-nav .site-search input { padding-top: 6px; padding-bottom: 6px; font-size: 0.88rem; }
  }
  @media (max-width: 520px) { .list-page .top-nav > a:first-child { white-space: nowrap; flex: none; } }
  /* Back to Top on the All Songs page */
  html:has(.to-top) { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html:has(.to-top) { scroll-behavior: auto; } }
  .page-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .about-story { max-width: 720px; margin: 8px auto 28px; }
  .about-story p { line-height: 1.7; color: var(--ink); margin-bottom: 12px; }
  .story-placeholder { color: var(--muted) !important; font-style: italic; }
  .fam-heading { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--accent); margin: 8px 0 4px; }
  .fam-songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 18px 0 28px; }
  .fam-song { background: #fff; border: 1px solid #d9dbe3; border-top: 4px solid var(--accent); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
  .fam-song img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  .fam-song h3 { font-size: 1.05rem; color: #4b8cb8; font-weight: 600; padding: 12px 14px 6px; }
  .fam-song { scroll-margin-top: 90px; }
  .fam-song h3 .dot { display: inline-block; vertical-align: 1px; margin: 0 7px 0 0; width: 11px; height: 11px; }
  .fam-song audio { width: calc(100% - 20px); margin: 0 10px 14px; }
  @media (max-width: 520px) { .fam-songs { grid-template-columns: 1fr; } }
  .about-story { width: 100%; }
  .fam-songs { display: flex; flex-wrap: wrap; justify-content: center; }
  .fam-song { flex: 0 1 300px; }
  @media (max-width: 520px) { .fam-song { flex-basis: 100%; } }
  .fam-song.tall img { aspect-ratio: 1; object-fit: contain; background: #fff; }
