/* =================================================================
   Bluegrass 101 — hub + article styles
   ================================================================= */

/* ---- Shared shell ------------------------------------------------ */
.pg-101-hub,
.pg-101-article-shell {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px 80px;
    box-sizing: border-box;
}

/* ================================================================
   HUB PAGE — two-column: cover/intro left, expandable TOC right
   ================================================================ */

.pg-101-hub {
    max-width: 1280px;
    padding-top: 40px;
}

.pg-101-hub__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

/* --- Left column: cover ----------------------------------------- */

.pg-101-hub__cover {
    position: sticky;
    top: 32px;
}

.pg-101-hub__kicker {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--pg-text-muted, #6b7280);
    margin-bottom: 6px;
}

.pg-101-hub__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pg-text-primary, #111827);
    margin: 0 0 16px;
    line-height: 1;
}

.pg-101-hub__title-num {
    font-style: italic;
    font-weight: 400;
    color: var(--pg-accent, #1E4F75);
}

.pg-101-hub__tagline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--pg-text-secondary, #374151);
    margin: 0 0 24px;
    line-height: 1.5;
    font-style: italic;
}

.pg-101-hub__hero-image {
    margin: 0 0 20px;
}

.pg-101-hub__hero-image img {
    width: 100%;
    height: clamp(220px, 26vw, 320px);
    object-fit: cover;
    object-position: center 25%;
    display: block;
    filter: grayscale(8%);
    /* Soften the hard rectangle: rounded corners, a hairline frame, and
       a soft drop shadow so the photo lifts off the page. */
    border-radius: 10px;
    border: 1px solid var(--pg-border, #e5e7eb);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.pg-101-hub__hero-credit {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    color: var(--pg-text-muted, #6b7280);
    margin-top: 6px;
}

.pg-101-hub__intro p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pg-text-primary, #111827);
    margin: 0 0 12px;
}

.pg-101-hub__intro p:last-child {
    margin-bottom: 0;
}

/* --- Right column: TOC ----------------------------------------- */

.pg-101-hub__toc {
    /* Enclose the contents in a soft off-white panel so it reads as one
       cohesive component (a printed-insert "sidebar") rather than text
       floating on the page. */
    background: var(--pg-surface-sunken, #f8fafb);
    border: 1px solid var(--pg-border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 12px 28px 20px;
    /* Drop the panel top edge down so it aligns with the Bluegrass 101
       wordmark on the left (kicker height + its margin ≈ 24px). */
    margin-top: 28px;
}

@media (max-width: 900px) {
    /* On the stacked mobile layout the cover sits above the TOC,
       so the anchor-alignment offset isn't needed. */
    .pg-101-hub__toc { margin-top: 0; }
}

@media (max-width: 640px) {
    .pg-101-hub__toc { padding: 10px 18px 16px; }
}

.pg-101-hub__toc-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--pg-text-muted, #6b7280);
    margin: 8px 0 4px;
}

.pg-101-toc-entry {
    border-bottom: 1px solid var(--pg-border, #e5e7eb);
    margin: 0;
}

.pg-101-toc-entry:last-child {
    border-bottom: none;
}

/* The summary / head row for each section */
.pg-101-toc-entry__head {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: baseline;
    /* Inset padding + slight negative margin lets the hover tint read as
       a soft card behind the row without shifting the text alignment. */
    padding: 18px 14px;
    margin: 0 -14px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
    color: inherit;
    user-select: none;
    transition: background 0.15s ease;
}

.pg-101-toc-entry__head::-webkit-details-marker { display: none; }
.pg-101-toc-entry__head::marker { content: ''; }

.pg-101-toc-entry__head:hover {
    background: var(--pg-hover-tint, rgba(30, 79, 117, 0.06));
}

.pg-101-toc-entry__head:hover .pg-101-toc-entry__title,
.pg-101-toc-entry__head:hover .pg-101-toc-entry__title-link {
    color: var(--pg-accent, #1E4F75);
}

/* Coming-soon row reads as inactive — no inviting hover. */
.pg-101-toc-entry.is-coming-soon .pg-101-toc-entry__head { cursor: default; }
.pg-101-toc-entry.is-coming-soon .pg-101-toc-entry__head:hover { background: transparent; }

.pg-101-toc-entry__head--link:hover {
    text-decoration: none;
}

.pg-101-toc-entry__num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 400;
    font-style: italic;
    /* Brand green — the page is otherwise all black-on-white; the
       numerals echo the green "Bluegrass" wordmark and give the
       contents list some color and presence. */
    color: var(--pg-green, #53A96B);
    text-align: right;
    line-height: 1.1;
}

.pg-101-toc-entry__title-block {
    min-width: 0;
    display: block;
}

.pg-101-toc-entry__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.9vw, 24px);
    font-weight: 700;
    color: var(--pg-text-primary, #111827);
    line-height: 1.2;
    transition: color 0.15s;
    display: inline;
}

.pg-101-toc-entry__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.pg-101-toc-entry__title-link:hover {
    color: var(--pg-accent, #1E4F75);
    text-decoration: none;
}

/* Section description — the substance under each title. Renders the
   section manifest copy that previously only appeared on the section
   pages; it gives the contents list body and balances the tall hero
   column on the left. */
.pg-101-toc-entry__desc {
    display: block;
    margin-top: 6px;
    max-width: 56ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: var(--pg-text-secondary, #4b5563);
}

.pg-101-toc-entry__meta {
    display: block;
    margin-top: 8px;
    font-family: var(--pg-font-sans, system-ui, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #9ca3af);
}

.pg-101-toc-entry__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-family: var(--pg-font-sans, system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    color: var(--pg-text-muted, #6b7280);
    background: var(--pg-surface-sunken, #f3f4f6);
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* Chevron for collapsible entries */
.pg-101-toc-entry__chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--pg-text-muted, #9ca3af);
    border-bottom: 1.5px solid var(--pg-text-muted, #9ca3af);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    align-self: center;
    margin-top: -2px;
}

details.pg-101-toc-entry[open] .pg-101-toc-entry__chevron {
    transform: rotate(45deg);
    margin-top: -6px;
}

.pg-101-toc-entry.is-coming-soon .pg-101-toc-entry__title {
    color: var(--pg-text-secondary, #4b5563);
}

/* Article list (revealed when section expanded) */
.pg-101-toc-entry__articles {
    margin: 0 0 16px 50px;
}

.pg-101-toc-entry__group-label {
    font-family: var(--pg-font-sans, system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #6b7280);
    margin: 14px 0 4px;
}

.pg-101-toc-entry__group-label:first-child {
    margin-top: 2px;
}

.pg-101-toc-entry__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-101-toc-entry__list li {
    margin: 0;
    padding: 2px 0;
}

.pg-101-toc-entry__list a {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: var(--pg-text-secondary, #374151);
    text-decoration: none;
    line-height: 1.45;
    padding: 3px 0;
    transition: color 0.1s;
}

.pg-101-toc-entry__list a:hover {
    color: var(--pg-accent, #1E4F75);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* --- Mobile: stack to single column ----------------------------- */

@media (max-width: 900px) {
    .pg-101-hub {
        padding-top: 24px;
    }
    .pg-101-hub__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pg-101-hub__cover {
        position: static;
    }
    .pg-101-hub__hero-image img {
        height: clamp(220px, 38vw, 320px);
    }
}

@media (max-width: 640px) {
    .pg-101-toc-entry__head {
        grid-template-columns: 28px 1fr auto;
        gap: 10px;
        padding: 14px 0;
    }
    .pg-101-toc-entry__articles {
        margin-left: 38px;
    }
}


/* ================================================================
   ARTICLE LAYOUT — two-column: sidebar + main
   ================================================================ */

.pg-101-article-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas: "sidebar main";
    gap: 0 48px;
    align-items: start;
    padding-top: 40px;
}

/* ---- Sidebar ---------------------------------------------------- */
.pg-101-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.pg-101-sidebar__back {
    display: block;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--pg-border, #e5e7eb);
    margin-bottom: 20px;
}

/* ================================================================
   BRAND MARK — pick icon + "Bluegrass 101" in theme colors.
   One element, two size variants: hub masthead and compact sidebar.
   ================================================================ */

.pg-101-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pg-101-brand:hover {
    text-decoration: none;
}

.pg-101-brand__pick {
    flex-shrink: 0;
    width: auto;
    height: 0.95em;
    display: inline-block;
    vertical-align: -0.08em;
}

.pg-101-brand__text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    white-space: nowrap;
}

.pg-101-brand__word-bluegrass {
    color: var(--pg-green, #53A96B);
}

.pg-101-brand__word-101 {
    color: var(--pg-blue, #1E4F75);
    font-style: italic;
    font-weight: 400;
    /* Georgia's old-style figures sit at x-height; scale "101" up so it
       reads at cap height alongside the uppercase "B". Use transform (not
       font-size) so it doesn't grow the line box and shove the title down.
       (lining-nums is a no-op here — system Georgia ships no lining figures.) */
    display: inline-block;
    transform: scale(1.4);
    transform-origin: left 88%;
}

/* Hub variant — large masthead. Inherits the existing
   .pg-101-hub__title font-size, so we just unset the wrapper margin. */
.pg-101-hub__title {
    line-height: 1;
}

.pg-101-brand--hub {
    font-size: inherit;
}

/* Compact variant — sidebar back-link.
   Bigger than the original 13px so the mark reads as a real branded
   element on every 101 sub-page, not a tiny back-link affordance. */
.pg-101-brand--compact {
    font-size: 22px;
    font-weight: 700;
    transition: opacity 0.15s;
}

.pg-101-brand--compact:hover {
    opacity: 0.75;
}

.pg-101-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Each top-level section in the sidebar is now a <details> so all sections
   are collapsible — not just the currently active one. */
details.pg-101-nav-section {
    margin: 0;
}

.pg-101-nav-section__summary {
    display: block;
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 22px; /* room for the chevron */
    border-radius: 6px;
    transition: background 0.1s;
}

.pg-101-nav-section__summary::-webkit-details-marker { display: none; }
.pg-101-nav-section__summary::marker { content: ''; }

/* Chevron on the right side of the summary, separate from the link so the
   link still navigates to the section page when clicked. */
.pg-101-nav-section__summary::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--pg-text-muted, #6b7280);
    border-bottom: 1.5px solid var(--pg-text-muted, #6b7280);
    transform: translateY(-65%) rotate(-45deg);
    transition: transform 0.15s ease;
    pointer-events: none;
}

details.pg-101-nav-section[open] > .pg-101-nav-section__summary::after {
    transform: translateY(-35%) rotate(45deg);
}

.pg-101-nav-section__label {
    display: block;
    font-size: var(--pg-text-base, 14px);
    font-weight: 600;
    color: var(--pg-text-secondary, #374151);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
}

.pg-101-nav-section__label:hover,
.pg-101-nav-section__label.is-current {
    background: var(--pg-surface-sunken, #f9fafb);
    color: var(--pg-accent, #1E4F75);
    text-decoration: none;
}

.pg-101-nav-section__label.is-current {
    font-weight: 700;
}

/* Coming-soon badge displayed inline next to the section label */
.pg-101-nav-section__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: var(--pg-text-xs, 11px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--pg-text-muted, #6b7280);
    background: var(--pg-surface-sunken, #f3f4f6);
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.02em;
    text-transform: none;
}

details.pg-101-nav-section.is-coming-soon > .pg-101-nav-section__summary .pg-101-nav-section__label {
    color: var(--pg-text-muted, #6b7280);
}

.pg-101-nav-section__placeholder {
    margin: 4px 0 8px 16px;
    padding: 6px 10px;
    font-size: var(--pg-text-sm, 12px);
    color: var(--pg-text-muted, #6b7280);
    font-style: italic;
    border-left: 2px solid var(--pg-border, #e5e7eb);
}

.pg-101-nav-section__children {
    margin: 2px 0 8px 16px;
    padding: 0;
    border-left: 2px solid var(--pg-border, #e5e7eb);
}

/* When children are a single flat list (no sub-groups), still indent under
   the section. The .pg-101-nav-section__children border-left handles that. */
.pg-101-nav-section__children > .pg-101-nav-group__list {
    margin: 4px 0 4px;
    padding: 2px 0;
}

/* Each sub-group (Chapters / Adjacent Genres / Themes) is a <details>
   so the user can collapse and expand it. */
.pg-101-nav-group {
    margin: 0;
}

.pg-101-nav-group + .pg-101-nav-group {
    margin-top: 4px;
}

.pg-101-nav-group__summary {
    display: block;
    cursor: pointer;
    font-size: var(--pg-text-xs, 11px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #6b7280);
    padding: 12px 10px 6px 22px;
    line-height: 1.4;
    list-style: none;
    position: relative;
    user-select: none;
    transition: color 0.1s ease;
}

.pg-101-nav-group__summary:hover {
    color: var(--pg-accent, #1E4F75);
}

/* Hide the default browser disclosure marker */
.pg-101-nav-group__summary::-webkit-details-marker { display: none; }
.pg-101-nav-group__summary::marker             { content: ''; }

/* Custom chevron that rotates when the group opens */
.pg-101-nav-group__summary::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(-45deg);
    transition: transform 0.15s ease;
}

.pg-101-nav-group[open] > .pg-101-nav-group__summary::before {
    transform: translateY(-35%) rotate(45deg);
}

.pg-101-nav-group__list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
}

.pg-101-nav-child {
    display: block;
    font-size: var(--pg-text-sm, 12px);
    color: var(--pg-text-muted, #6b7280);
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.1s;
    line-height: 1.4;
}

.pg-101-nav-child:hover,
.pg-101-nav-child.is-current {
    color: var(--pg-accent, #1E4F75);
    text-decoration: none;
}

.pg-101-nav-child.is-current {
    font-weight: 600;
}

/* ---- Main content ----------------------------------------------- */
.pg-101-content {
    grid-area: main;
    min-width: 0;
}

/* ---- Prose ------------------------------------------------------ */
.pg-101-prose__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pg-border, #e5e7eb);
}

.pg-101-prose__section-label {
    font-size: var(--pg-text-sm, 12px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #6b7280);
    margin-bottom: 8px;
}

.pg-101-prose__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--pg-text-primary, #111827);
    margin: 0;
    line-height: 1.2;
}

/* Prose body typography — optimised for longform reading */
.pg-101-prose__body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--pg-text-primary, #111827);
    max-width: 72ch;
}

.pg-101-prose__body p {
    margin: 0 0 1.4em;
}

/* Drop cap on the first paragraph — magazine-style chapter opener.
   Applied via :first-of-type so the markup can be plain <p> tags. */
.pg-101-prose__body > p:first-of-type::first-letter,
.pg-101-prose__body > .pg-101-banner + p::first-letter {
    float: left;
    font-size: 4.2em;
    line-height: 0.9;
    font-weight: 700;
    margin: 0.05em 0.08em 0 0;
    color: var(--pg-accent, #1E4F75);
    font-family: Georgia, "Times New Roman", serif;
}

.pg-101-prose__body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: var(--pg-text-primary, #111827);
}

.pg-101-prose__body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
    color: var(--pg-text-primary, #111827);
}

.pg-101-prose__body a {
    color: var(--pg-accent, #1E4F75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pg-101-prose__body ul,
.pg-101-prose__body ol {
    margin: 0 0 1.4em 1.5em;
    padding: 0;
}

.pg-101-prose__body li {
    margin-bottom: 0.4em;
}

.pg-101-prose__body blockquote {
    border-left: 3px solid var(--pg-accent, #1E4F75);
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    color: var(--pg-text-secondary, #374151);
    font-style: italic;
    font-size: 18px;
}

/* ---- Inline image embed [pg_101_image] -------------------------- */
/* All inline images — singles AND row members — share the same height
   so the page feels visually composed rather than variable. Width is
   automatic and the image centers in its container. */
.pg-101-image {
    margin: 1.6em auto;
    max-width: 100%;
    text-align: center;
}

.pg-101-image__img {
    display: block;
    height: 320px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 4px;
    background: var(--pg-surface-sunken, #f9fafb);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Hero / wide variant — slightly larger feature treatment when used
   on its own. Same height-capped centered approach. */
.pg-101-image--wide .pg-101-image__img {
    height: 360px;
}

.pg-101-image--wide .pg-101-image__caption {
    text-align: left;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Banner image [pg_101_banner] ------------------------------- */
/* Wide short landscape image used near the top of a chapter as the
   "magazine art" for the page. Sized for ~16:5 aspect crop. */
.pg-101-banner {
    margin: 0 0 2em;
    max-width: 100%;
}

.pg-101-banner__img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pg-101-banner__caption {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--pg-text-secondary, #374151);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-101-banner__credit {
    font-size: 10px;
    color: var(--pg-text-muted, #6b7280);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pg-101-image__caption {
    margin: 8px auto 0;
    max-width: 480px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pg-text-secondary, #374151);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.pg-101-image__text {
    color: var(--pg-text-secondary, #374151);
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
}

.pg-101-image__credit {
    font-size: 10px;
    color: var(--pg-text-muted, #6b7280);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Side-by-side rows for pairs / triples */
.pg-101-image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 1.6em 0;
    align-items: flex-start;
}

.pg-101-image-row .pg-101-image {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* In a row the per-image height matches the single-image height (320px)
   so the visual rhythm of the page stays consistent whether the photo
   is on its own or paired. */
.pg-101-image-row .pg-101-image__img {
    height: 320px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.pg-101-image-row .pg-101-image__caption {
    text-align: left;
    width: 100%;
}

@media (max-width: 560px) {
    .pg-101-image-row {
        flex-direction: column;
    }
    .pg-101-image-row .pg-101-image__img {
        height: 280px;
    }
}

/* ---- Inline song embed [pg_101_song] ----------------------------
   Magazine-card styling — soft shadow, refined typography. The Spotify
   iframe sits inside our own framing so the embed feels designed-in. */
.pg-101-song-embed {
    margin: 2.2em auto;
    border: 1px solid var(--pg-border, #e5e7eb);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Player slot — sits above the caption with no padding so iframes fill edge-to-edge */
.pg-101-song-embed__player {
    line-height: 0;
}

.pg-101-song-embed__player iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Spotify embeds use the platform's fixed compact height (152px) */
.pg-101-song-embed__iframe--spotify {
    height: 152px;
}

/* YouTube embeds wrap in a 16:9 aspect ratio container — most archival
   78rpm uploads use a static image but we still give them room. */
.pg-101-song-embed__yt-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.pg-101-song-embed__iframe--youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Legacy fallback for [pg_media_player] when no external embed is set */
.pg-101-song-embed__player > iframe:not(.pg-101-song-embed__iframe) {
    aspect-ratio: 16 / 9;
}

/* Caption / meta below the player */
.pg-101-song-embed__caption {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 18px;
    font-style: normal;
    border-top: 1px solid var(--pg-border, #e5e7eb);
}

.pg-101-song-embed__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg-101-song-embed__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pg-text-primary, #111827);
    line-height: 1.3;
    font-family: Georgia, "Times New Roman", serif;
}

.pg-101-song-embed__detail {
    font-size: 12px;
    color: var(--pg-text-muted, #6b7280);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pg-101-song-embed__note {
    font-size: 13px;
    color: var(--pg-text-secondary, #374151);
    font-style: italic;
    line-height: 1.5;
    margin-top: 4px;
    font-family: Georgia, "Times New Roman", serif;
}

/* Prominent CTA — "Learn it on Picker's Guide →"
   Styled as an outline-button link with accent color, hover-fills solid. */
.pg-101-song-embed__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-accent, #1E4F75);
    background: var(--pg-surface-raised, #fff);
    border: 1px solid var(--pg-accent, #1E4F75);
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.pg-101-song-embed__cta:hover,
.pg-101-song-embed__cta:focus-visible {
    background: var(--pg-accent, #1E4F75);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.pg-101-song-embed__cta span {
    transition: transform 0.12s ease;
}

.pg-101-song-embed__cta:hover span,
.pg-101-song-embed__cta:focus-visible span {
    transform: translateX(2px);
}

/* ---- Chapter prev/next nav ------------------------------------- */
.pg-101-chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--pg-border, #e5e7eb);
}

.pg-101-chapter-nav__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border: 1px solid var(--pg-border, #e5e7eb);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.pg-101-chapter-nav__item:hover {
    border-color: var(--pg-accent, #1E4F75);
    background: var(--pg-surface-sunken, #f9fafb);
    text-decoration: none;
    color: inherit;
}

.pg-101-chapter-nav__item--next {
    text-align: right;
}

.pg-101-chapter-nav__dir {
    font-size: var(--pg-text-xs, 11px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #6b7280);
}

.pg-101-chapter-nav__title {
    font-size: var(--pg-text-base, 14px);
    font-weight: 600;
    color: var(--pg-accent, #1E4F75);
}

/* ================================================================
   SECTION INDEX (e.g. /bluegrass-101/history/)
   ================================================================ */

.pg-101-section-index__header {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--pg-border, #e5e7eb);
}

.pg-101-section-index__title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 700;
    color: var(--pg-text-primary, #111827);
    margin: 0 0 14px;
    line-height: 1.15;
}

.pg-101-section-index__desc {
    font-size: 18px;
    line-height: 1.55;
    color: var(--pg-text-secondary, #374151);
    margin: 0;
    max-width: 60ch;
}

.pg-101-section-index__intro {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pg-text-primary, #111827);
    max-width: 70ch;
}

.pg-101-section-index__intro p {
    margin: 0 0 1em;
}

/* Sub-group heading above a grouped card list
   (e.g. "Sibling Musics" / "Themes" within a section index). */
.pg-101-section-index__group-label {
    margin: 36px 0 14px;
    font-size: var(--pg-text-sm, 12px);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--pg-text-muted, #6b7280);
    border-top: 1px solid var(--pg-border, #e5e7eb);
    padding-top: 22px;
}

/* First group-label has no top divider; section header above already serves */
.pg-101-section-index__group-label:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 8px;
}

/* Card list */
.pg-101-section-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pg-101-section-item;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-101-section-index__item {
    counter-increment: pg-101-section-item;
    margin: 0;
}

.pg-101-section-index__card {
    display: block;
    padding: 18px 22px;
    border: 1px solid var(--pg-border, #e5e7eb);
    border-radius: 10px;
    background: var(--pg-surface-raised, #fff);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.pg-101-section-index__card:hover,
.pg-101-section-index__card:focus-visible {
    border-color: var(--pg-accent, #1E4F75);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.pg-101-section-index__card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg-accent, #1E4F75);
    margin-bottom: 6px;
    line-height: 1.3;
}

.pg-101-section-index__card-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--pg-text-secondary, #374151);
    margin: 0;
    max-width: 70ch;
}

.pg-101-section-index__coming-soon {
    margin: 40px 0;
    padding: 32px;
    text-align: center;
    font-size: 16px;
    color: var(--pg-text-muted, #6b7280);
    font-style: italic;
    border: 1px dashed var(--pg-border, #e5e7eb);
    border-radius: 10px;
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 800px) {
    .pg-101-article-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sidebar"
            "main";
        gap: 24px 0;
    }

    .pg-101-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--pg-border, #e5e7eb);
    }

    /* Collapse sidebar nav to a horizontal scroll on mobile */
    .pg-101-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .pg-101-nav-section__children {
        display: none; /* hidden on mobile — nav is just section labels */
    }

    .pg-101-hub__sections {
        grid-template-columns: 1fr;
    }

    .pg-101-chapter-nav {
        grid-template-columns: 1fr;
    }

    .pg-101-chapter-nav__item--next {
        text-align: left;
    }

    .pg-101-section-index__header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .pg-101-section-index__card {
        padding: 14px 16px;
    }
}

/* ================================================================
   SUBSTYLE SCATTER DIAGRAM ([pg_101_scatter])
   ================================================================ */
.pg-101-scatter {
    margin: 32px 0 36px;
    padding: 0;
    max-width: 100%;
}

.pg-101-scatter svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.pg-101-scatter__caption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    color: var(--pg-text-secondary, #4b5563);
    line-height: 1.55;
    margin: 14px auto 0;
    max-width: 760px;
    text-align: left;
}

.pg-101-scatter__caption strong {
    font-style: normal;
    color: var(--pg-text-primary, #111827);
}

@media (max-width: 640px) {
    .pg-101-scatter__caption {
        font-size: 12.5px;
    }
}

/* ================================================================
   CORE + AXES-OF-INFLUENCE DIAGRAM ([pg_101_axes])
   ================================================================ */
.pg-101-axes {
    margin: 32px 0 36px;
    padding: 0;
    max-width: 100%;
}

.pg-101-axes svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.pg-101-axes__caption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    color: var(--pg-text-secondary, #4b5563);
    line-height: 1.55;
    margin: 14px auto 0;
    max-width: 760px;
    text-align: left;
}

.pg-101-axes__caption strong {
    font-style: normal;
    color: var(--pg-text-primary, #111827);
}

@media (max-width: 640px) {
    .pg-101-axes__caption {
        font-size: 12.5px;
    }
}
