/* Multi-Stream Theme - Minimal Base Styles */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Charter, "Sitka Text", Georgia, "Palatino Linotype", "Book Antiqua", serif;
}

/* Light mode (default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border-color: #d2d2d7;
    --accent: #0071e3;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1d1d1f;
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --border-color: #424245;
        --accent: #2997ff;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

/* Hamburger toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Main content */
main {
    min-height: 60vh;
    padding: 0 0 40px 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    line-height: 1.2;
    margin-bottom: 0.5rem; /* Reduced by half */
    margin-top: 1rem;
}

/* Hero section */
.hero {
    padding: 60px 0 40px 0;
}

/* Mobile: drop photo and big title, keep tagline + social icons */
@media (max-width: 768px) {
    .hero-photo {
        display: none;
    }

    .hero h1 {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .hero-text {
        text-align: center;
    }

    .hero .tagline {
        color: var(--text-secondary);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.hero-photo {
    flex-shrink: 0;
    margin-right: 1rem;
}

.hero-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.hero-text {
    flex-shrink: 1;
    min-width: 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero .social {
    margin: 1rem 0 0 0;
}

.hero .social ul {
    justify-content: flex-start;
}

/* Stream columns */
.stream-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Increase gap on wider screens */
@media (min-width: 768px) {
    .stream-columns {
        gap: 2rem;
    }
}

/* Mobile: Stack Music on top, then Apps, then Bio */
@media (min-width: 768px) and (max-width: 1023px) {
    .stream-columns {
        grid-template-columns: 1fr;
    }

    /* Order on tablet: Music, Apps, Bio */
    .music-stream { order: 1; }
    .apps-stream { order: 2; }
    .bio-stream { order: 3; }
}

/* Desktop: Three columns */
@media (min-width: 1024px) {
    .stream-columns {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.stream-column h2 {
    margin-bottom: 1.5rem;
}

.stream-column h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.stream-column h2 a:hover {
    color: var(--accent);
}

.stream-content {
    /* Removed background - individual items will have their own containers */
}

/* Music preview on homepage */
.music-preview {
    position: relative;
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.music-preview:last-of-type {
    margin-bottom: 1rem;
}

/* Apps preview on homepage */
.app-preview {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.app-preview:last-of-type {
    margin-bottom: 1rem;
}

.app-preview h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.app-preview h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.app-preview h3 a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.app-preview .app-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.app-preview .app-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

/* Default: hide mobile link, show desktop link */
.view-all-link-mobile {
    display: none;
}

.view-all-link-desktop {
    display: inline-block;
}

/* Tablet horizontal layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .music-preview {
        display: flex;
        flex-wrap: wrap;
        gap: 0.1rem;
        align-items: flex-start;
    }

    .embed-preview {
        flex-basis: 100%;
        margin-top: 0;
    }

    .music-preview-image {
        flex-shrink: 0;
        margin-right: 0.75rem;
    }

    .music-preview-image a {
        display: block;
    }

    .music-preview-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .music-preview-image img:hover {
        opacity: 0.85;
    }

    .music-preview-content {
        flex: 1;
        min-width: 0;
    }
}

/* Full width image on wide screens */
@media (min-width: 1024px) {
    .music-preview-image {
        margin-bottom: 1rem;
    }

    .music-preview-image a {
        display: block;
    }

    .music-preview-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 8px;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .music-preview-image img:hover {
        opacity: 0.85;
    }
}

.music-preview h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.music-preview h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.music-preview h3 a:hover {
    color: var(--accent);
}

.music-preview-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.music-preview-meta .artist {
    font-weight: 500;
}

.embed-preview {
    margin-top: 0;
}

.embed-preview iframe {
    border-radius: 8px;
}

.stream-footer {
    margin-top: 0;
    text-align: center;
}

.view-all-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Show all 3 music previews on all screen sizes */

/* Post content */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: large;
}

/* Ensure all embedded media within post content are responsive */
.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

.post-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content p {
    text-indent: 0; /* Removed text indentation */
    margin-bottom: 0.45rem; /* Increased by 50% from 0.3rem */
}

.post-content blockquote,
.stream-content blockquote,
.section-intro blockquote,
.post-summary blockquote {
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.post-content blockquote::before,
.stream-content blockquote::before,
.section-intro blockquote::before,
.post-summary blockquote::before {
    content: '“';
    position: absolute;
    top: -0.2em;
    left: 0.1em;
    font-size: 4em;
    color: var(--border-color);
    opacity: 0.6;
    line-height: 1;
}

.post-content blockquote p,
.stream-content blockquote p,
.section-intro blockquote p,
.post-summary blockquote p {
    text-indent: 0;
    margin-bottom: 0;
}

.post-content ul,
.post-content ol {
    margin: 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0;
}

.post-content li p {
    text-indent: 0;
}

.post-content table,
.stream-content table,
.section-intro table {
    width: 100%;
    border-collapse: separate; /* Allows for border-spacing */
    border-spacing: 0; /* Vertical spacing between rows */
    margin-bottom: 1rem;
}

.post-content th,
.post-content td,
.stream-content th,
.stream-content td,
.section-intro th,
.section-intro td {
    padding: 0 0.25rem; /* Further reduced horizontal padding for column margin */
    text-align: left;
    vertical-align: top;
}

.post-content th,
.stream-content th,
.section-intro th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.post-content tr:nth-child(even),
.stream-content tr:nth-child(even),
.section-intro tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.post-header {
    margin-bottom: 2rem;
}

.post-illustration {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
}

.post-illustration img {
    width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
    max-height: 720px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Post cards */
.post-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    overflow: hidden; /* To contain child elements with border-radius */
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-card-image {
    flex-shrink: 0;
    width: 200px; /* Adjust as needed */
    border-radius: 8px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-posts-list .post-card-content {
    display: flex;
    flex-direction: column;
}

.blog-posts-list .read-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 500;
    color: var(--accent);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content .post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.post-card-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0; /* No top margin */
}

.post-card-content .post-description {
}

/* Bio stream content */
.bio-stream .stream-content {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
}

.bio-stream .stream-content h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.bio-stream .stream-content h2:first-child {
    margin-top: 0;
}

.bio-stream .stream-content p {
    margin-bottom: 1rem;
}


.stream-content ul,
.stream-content ol,
main ul,
main ol
{
    margin: 0;
    padding-left: 1.5rem;
}

.stream-content li {
    margin-bottom: 0;
}

.bio-stream .stream-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
    opacity: 0.5;
}

/* Social links */
.social {
    margin: 1.5rem 0;
}

.social ul {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.social li {
    margin: 0;
}

.social a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.social a:hover {
    color: var(--accent);
}

.social a.bluesky-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    position: relative;
    top: 0.25em;
}

/* Music page */
.music-page {
    padding: 2rem 0;
}

.testflight-banner {
    background: #28A745;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.testflight-banner a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
}

.testflight-banner a:hover {
    opacity: 0.9;
}

.app-category {
    color: var(--text-secondary);
}

.apps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .apps-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.app-card-header {
    margin-bottom: 0.75rem;
}

.app-card-header h2 {
    margin: 0 0 0.25rem;
}

.app-card .app-description {
    margin: 0 0 1rem;
}

.app-card .app-download-banner {
    margin-top: 1rem;
}

.app-download-banner {
    background: #28A745;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.app-download-banner a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.app-download-banner a:hover {
    opacity: 0.9;
}

.app-download-banner .download-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.app-download-banner .download-caption {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.appstore-badge-banner {
    margin-top: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.appstore-badge-banner a img {
    transform: scale(2);
    transform-origin: center;
}

.music-listen-banner {
    background: #28A745;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.music-listen-banner a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.music-listen-banner a:hover {
    opacity: 0.9;
}

.section-header {
    margin-bottom: 2rem;
}

.section-intro {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-intro p {
    margin: 0 0 1rem 0;
}

.section-intro p:last-child {
    margin-bottom: 0;
}

.section-intro ul,
.section-intro ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.section-intro li {
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.music-productions {
    max-width: 800px;
    margin: 0 auto;
}

/* Two-column grid on wide screens */
@media (min-width: 1024px) {
    .music-productions {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .music-productions .music-card {
        margin-bottom: 0;
    }
}

.music-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    break-inside: avoid;
}

.music-image {
    margin-bottom: 1.5rem;
}

.music-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.music-header h2 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.music-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.music-meta .artist {
    font-weight: 500;
}

.music-description {
    margin: 1rem 0;
}

.music-credits {
    margin: 1rem 0;
    font-size: 0.95rem;
}

.music-credits ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.music-credits li {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.music-links {
    margin-top: 1.5rem;
}

.embed {
    margin: 1rem 0;
}

.embed iframe {
    max-width: 100%;
    border-radius: 8px;
}

.instagram-link a,
.streaming-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.instagram-link a:hover,
.streaming-link a:hover {
    opacity: 0.9;
}

.music-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Reminders shortcode */
.reminders-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.reminder-card {
    flex: 1;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.reminder-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reminder-body {
    font-size: 1rem;
    color: var(--text-secondary);
}

.reminder-body p {
    text-indent: 0;
    margin-bottom: 0;
}

/* Priority Task shortcode */
.priority-task-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reminder-card.priority-task {
    max-width: 300px; /* Or adjust as needed */
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content .post-meta {
    font-size: 0.8rem; /* Small text */
    color: var(--text-secondary); /* Secondary color */
    margin-bottom: 0.2rem; /* Keep close to title */
}

.post-card-content h3 {
    font-size: 1.25rem;
    margin-top: 0; /* Keep close to date */
    margin-bottom: 0.5rem; /* Space below title */
}

.post-card-content .post-description {
    margin-top: auto; /* Push description to bottom to ensure consistent card height */
}


/*
   ==============================================
   Mobile Styles (up to 768px)
   ==============================================
*/
@media (max-width: 768px) {
    /*
       ----------------------------------------------
       General Mobile Styles
       ----------------------------------------------
    */
    /* Header */
    .site-header {
        padding: 10px 0;
    }

    /* Mobile navigation */
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
        flex-direction: column;
        gap: 1rem;
        min-width: 200px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        display: block;
        padding: 0.5rem;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero section */
    .hero {
        padding: 15px 0 10px 0;
    }

    /* Stream columns */
    .music-stream h2,
    .apps-stream h2 {
        display: none;
    }

    /* Music preview on homepage */
    .music-preview {
        display: flex;
        flex-wrap: wrap;
        gap: 0.1rem;
        align-items: flex-start;
    }
    .embed-preview {
        flex-basis: 100%;
        margin-top: 0;
    }
    .music-preview-image {
        flex-shrink: 0;
        margin-right: 0.75rem;
    }
    .music-preview-image a {
        display: block;
    }
    .music-preview-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .music-preview-image img:hover {
        opacity: 0.85;
    }
    .music-preview-content {
        flex: 1;
        min-width: 0;
    }
    .music-preview-desktop-only {
        display: none;
    }
    .view-all-link-mobile {
        display: inline-block !important;
    }
    .view-all-link-desktop {
        display: none !important;
    }

    /* Post content */
    .post-content img {
        width: 100%;
        margin: 1rem 0;
    }

    /* Reminders shortcode */
    .reminders-container {
        flex-direction: column;
    }

    .posts-list {
	gap: 0.25rem;
    }

    .post-card {
	background: none;
	margin-bottom: 0; /* no margins on narrow screens */
	padding: 0;
    }

    .post-card .post-meta {
	margin-bottom: 0;
    }

    .post-card-content .post-description {
	/* Don't display the description on narrow screens. */
        display: none;
    }

    /*
       ----------------------------------------------
       Blog Mobile Styles
       ----------------------------------------------
    */
    .blog-posts-list .post-card-image {
        width: 100%;
        max-height: 200px; /* Adjust as needed */
    }

    .blog-posts-list img {
    }

    .blog-posts-list .post-card {
        flex-direction: column;
        padding: 1.25rem; /* Restore padding for jogger cards */
        background: var(--bg-secondary); /* Restore background for jogger cards */
        border-radius: 12px; /* Restore border-radius for jogger cards */
        margin-bottom: 1rem; /* Restore margin for jogger cards */
        border-bottom: none; /* Remove the generic border */
    }

    .blog-posts-list .post-card:hover {
        transform: translateY(-5px); /* Restore hover effect */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .blog-posts-list .post-card .post-meta,
    .blog-posts-list .post-card .post-description {
        display: block; /* Restore meta and description for jogger cards */
    }
}

/* ================================================
   Projects feature
   ================================================ */

/* Projects strip on /music/ page */
.music-projects-section {
    margin-bottom: 2.5rem;
}

.music-section-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.music-section-label a {
    color: inherit;
    text-decoration: none;
}

.music-section-label a:hover {
    color: var(--accent);
}

.music-projects-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s;
}

.project-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.project-chip:hover .project-chip-years {
    color: rgba(255, 255, 255, 0.8);
}

.project-chip-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.project-chip-more {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
}

.project-chip-more:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

.project-chip-more:hover .project-chip-years {
    color: var(--accent);
}

.project-chip-years {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Active / Past section headings on projects list */
.projects-section-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 2rem 0 1rem;
}

.projects-section-label:first-of-type {
    margin-top: 0;
}

/* Project cards grid on /music/projects/ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.project-card-header h2 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}

.project-years {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.project-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.25rem;
}

.project-stats span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-people {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* "More from this project" link on music cards and previews */
.music-project-link {
    margin-top: 2rem;
}

.music-project-link a {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
}

.music-project-link a:hover {
    text-decoration: underline;
}

/* Wide columns: pin to the card's bottom-right corner instead of inline */
@media (min-width: 768px) {
    .music-preview {
        padding-bottom: 4rem;
    }

    .music-project-link {
        position: absolute;
        bottom: 1.25rem;
        right: 1.25rem;
        margin-top: 0;
    }
}

/* Individual project page */
.music-project-page {
    padding: 2rem 0;
}

.music-project-page .section-header dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.music-project-page .section-header dt {
    color: var(--text-secondary);
    font-weight: 500;
}

.music-project-page .section-header dd {
    margin: 0;
}

.music-project-page section {
    margin-top: 2.5rem;
}

.music-project-page section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.music-project-page section ul {
    list-style: none;
    padding: 0;
}

.music-project-page section ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.music-project-page section ul li:last-child {
    border-bottom: none;
}

/* ============================================================
   Simple performances table (/music/performances/)
   ============================================================ */

.performances-simple-table {
    width: 100%;
    border-collapse: collapse;
}

.performances-simple-table td {
    padding: 0.3em 0.8em 0.3em 0;
    vertical-align: top;
    border-bottom: 1px solid var(--muted-border-color, #e0e0e0);
    font-size: 0.95rem;
}

.performances-simple-table td.perf-date {
    white-space: nowrap;
    color: var(--secondary);
    width: 10em;
}

.performances-simple-table td.perf-name {
    font-weight: 500;
}

.performances-simple-table td.perf-venue {
    color: var(--secondary);
}

/* ============================================================
   Music Activity Report (/music/report/)
   ============================================================ */

.music-report {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.6;
}

.report-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid currentColor;
}

.report-header h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.report-meta {
    border-collapse: collapse;
    margin-bottom: 1.2rem;
}

.report-meta td {
    padding: 0.15em 1.5em 0.15em 0;
    vertical-align: top;
    font-size: 0.95rem;
}

.report-meta td:first-child {
    color: var(--secondary);
    white-space: nowrap;
}

.report-intro {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.report-print-link {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.report-section {
    margin-bottom: 3rem;
}

.report-section h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 0.3rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-count {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Summary tables */
.report-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.report-summary-table th {
    text-align: left;
    padding: 0.4em 0.5em;
    border-bottom: 1px solid currentColor;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-summary-table td {
    padding: 0.35em 0.5em;
    border-bottom: 1px solid var(--muted-border-color, #ddd);
}

.report-summary-table td:nth-child(3),
.report-summary-table td:nth-child(4),
.report-summary-table th:nth-child(3),
.report-summary-table th:nth-child(4) {
    text-align: right;
}

/* Projects table */
.report-projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.report-projects-table th {
    text-align: left;
    padding: 0.4em 0.5em;
    border-bottom: 1px solid currentColor;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-projects-table td {
    padding: 0.5em 0.5em;
    vertical-align: top;
    border-bottom: 1px solid var(--muted-border-color, #ddd);
}

.report-details-cell {
    padding: 0 !important;
}

.report-detail-section {
    display: block;
    padding: 0.4em 0.5em;
    border-bottom: 1px solid var(--muted-border-color, #eee);
    font-size: 0.88rem;
}

.report-detail-section:last-child {
    border-bottom: none;
}

.report-detail-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.2em;
}

.report-detail-value {
    display: block;
}

.report-releases-list {
    margin: 0;
    padding-left: 1.2em;
}

.report-releases-list li {
    word-break: break-all;
}

/* Performances list */
.report-perf-list {
    list-style: decimal;
    padding-left: 2.2em;
    margin: 0;
}

.report-perf-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--muted-border-color, #eee);
}

.report-perf-item:last-child {
    border-bottom: none;
}

.report-perf-header {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.report-perf-date {
    font-weight: bold;
    font-family: var(--font-sans);
}

.report-perf-name {
    font-weight: 600;
}

.report-perf-venue {
    color: var(--secondary);
}

.report-perf-details {
    font-size: 0.85rem;
    color: var(--secondary);
    font-family: var(--font-sans);
}

.report-perf-details span::after {
    content: " · ";
}

.report-perf-details span:last-child::after {
    content: "";
}

/* Print styles */
@media print {
    nav, .site-header, .site-footer, .report-print-link, .no-print {
        display: none !important;
    }

    .music-report {
        max-width: 100%;
        padding: 0;
        font-size: 10pt;
        line-height: 1.5;
        color: #000;
    }

    .report-header h1 { font-size: 16pt; }
    .report-section h2 { font-size: 12pt; }

    .report-perf-item {
        break-inside: avoid;
    }

    .report-section {
        break-before: auto;
    }

    a { color: #000; text-decoration: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
