/*
 * AUTO-GENERATED FILE - DO NOT EDIT
 * Source files: static/css/*.css
 * Edit those files instead, then restart server (or save in dev mode).
 */

/* === 00-variables.css === */
/* Reset and CSS Custom Properties */

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

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: white;
    --text-primary: #333;
    --text-secondary: #555;
    --text-heading: #222;
    --border-color: #ddd;
    --border-light: #eee;
    --accent-color: #0066cc;
    --accent-hover: #0052a3;
    --shadow: rgba(0, 0, 0, 0.1);
    --line-height-body: 1.6;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --info-bg: #f0f0f0;
    --info-border: #e0e0e0;
    --figure-bg: #e8e8e8;
    /* Image layout */
    --image-edge-buffer: 8px;
    --float-inner-margin: 1.5em;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-heading: #f0f0f0;
        --border-color: #444;
        --border-light: #333;
        --accent-color: #4a9eff;
        --accent-hover: #3a8eef;
        --shadow: rgba(0, 0, 0, 0.3);
        --line-height-body: 1.6;
        --error-bg: #4a1f1f;
        --error-text: #ffb3ba;
        --error-border: #6a2f2f;
        --success-bg: #1f3a1f;
        --success-text: #b3ffb3;
        --success-border: #2f4a2f;
        --info-bg: #3a3a3a;
        --info-border: #4a4a4a;
        --figure-bg: #2a2a2a;
    }
}


/* === 01-typography.css === */
/* Typography - Instrument Sans and Serif */

.instrument-sans-400 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.instrument-sans-500 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.instrument-sans-600 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.instrument-sans-700 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.instrument-serif-regular {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.instrument-serif-regular-italic {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
}

body {
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: var(--line-height-body);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Global link colors */
a {
    color: var(--accent-color);
}

a:visited {
    color: var(--accent-color);
}

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

h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-heading);
    text-align: center;
}

h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 39px;
    line-height: 1.1;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-heading);
    text-align: center;
}

p {
    margin-bottom: 15px;
    text-align: center;
}


/* === 02-layout.css === */
/* Layout - Container, Site Header, Footer */

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

@media (max-width: 640px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 35px;
    }
}

/* Info box */
.info-box {
    margin-top: 2em;
    padding: 1em;
    background-color: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 4px;
}

.info-box p {
    text-align: left;
}

.info-box form {
    margin-top: 1em;
}

/* Site header */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.site-header .header-nav {
    order: -1;
    align-self: flex-end;
    margin-bottom: 12px;
}

/* On mobile, back-link and nav sit side-by-side */
@media (max-width: 640px) {
    .site-header:has(.back-link) {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .site-header:has(.back-link) .header-nav {
        order: 0;
        margin-bottom: 0;
    }
}

.back-link,
.back-link:visited {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.back-link:hover {
    color: var(--accent-color);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    margin: -8px -12px;
}

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

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 12px;
    margin: -8px -12px;
}

.btn-link:hover {
    color: var(--accent-color);
}

/* Site title (for list page) */
.site-title {
    font-family: "Instrument Serif", serif;
    font-size: 4.5rem;
    color: var(--text-heading);
}

/* Home page hero */
.home-hero {
    text-align: center;
    margin-bottom: 30px;
}

.home-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.home-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.home-about {
    margin-top: 30px;
    text-align: center;
}

.home-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 16px;
}

.home-features {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 400px;
    text-align: left;
    font-size: 15px;
    color: var(--text-secondary);
}

.home-features li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 6px;
}

.home-features li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 0;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 0.25em;
}

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

/* Content display area */
.content {
    text-align: center;
    padding: 40px 0;
}

.content p {
    font-size: 18px;
}

/* Manage link */
.manage-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.manage-link a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Unsubscribe section */
.unsubscribe-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
}

/* Google Photos section */
.google-photos-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.google-photos-section h2 {
    text-align: center;
}

.google-photos-section p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.oauth-connections {
    margin-bottom: 20px;
}

.oauth-connection {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
}

.connection-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
}

.connection-settings {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-settings label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.connection-settings select {
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.settings-status {
    font-size: 12px;
    margin-left: 8px;
}

.status-success {
    color: var(--success-color, #2e7d32);
    animation: fadeOut 2s ease-in-out forwards;
}

.status-error {
    color: var(--error-color, #c62828);
}

.status-info {
    color: var(--text-color);
}

.status-muted {
    color: var(--text-secondary);
}

.sync-btn.syncing {
    opacity: 0.7;
    cursor: wait;
}

.sync-btn:disabled {
    pointer-events: none;
}

.sync-status .status-success {
    animation: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.connection-email {
    font-family: monospace;
    font-size: 14px;
}

.connection-album-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.album-pending {
    font-style: italic;
}

.connect-form {
    margin-top: 16px;
}

.connect-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.google-icon {
    flex-shrink: 0;
}

/* Logout section */
.logout-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.logout-section h2 {
    text-align: center;
}

.logout-section p {
    text-align: center;
}


/* === 03-forms.css === */
/* Forms - Inputs, Buttons, Messages */

.subscribe-form,
.manage-form,
.unsubscribe-section form {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

/* Inline form row (email + button) */
.form-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.form-row input[type="email"] {
    flex: 1;
    max-width: 280px;
    text-align: left;
}

.form-row .btn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        align-items: center;
    }

    .form-row input[type="email"] {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .form-row .btn {
        width: 100%;
        max-width: 280px;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: normal;
}

.checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary,
a.btn-primary,
a.btn-primary:visited {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover,
a.btn-primary:hover {
    background-color: var(--accent-hover);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Messages */
.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--error-border);
    margin-bottom: 20px;
}

.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--success-border);
    margin-bottom: 20px;
    text-align: left;
}

.success-message {
    text-align: center;
}

.success-message h1 {
    margin-bottom: 20px;
}

.success-message p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 10px 0;
}

/* Centered forms (manage page) */
.centered-form {
    text-align: center;
}

/* OAuth Login */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-oauth:hover {
    background-color: var(--bg-primary);
    border-color: var(--text-secondary);
}

.btn-oauth:visited {
    color: var(--text-primary);
}

.oauth-icon {
    flex-shrink: 0;
}

/* Email login toggle */
.auth-toggle {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.auth-toggle:hover {
    color: var(--text-primary);
}

.auth-toggle-link {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-toggle-link:hover {
    text-decoration: underline;
}

/* Collapsible email form */
.email-form-container {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 300px;
    opacity: 1;
}

.email-form-container.collapsed {
    max-height: 0;
    opacity: 0;
}


/* === 04-posts.css === */
/* Post List and Post Page Styles */

/* Post grid - wide breakout, responsive columns */
.post-grid {
    /* Wide breakout - same as .wide class */
    --edge-buffer: calc(var(--image-edge-buffer) * 2);
    --breakout: min(25%, max(0px, calc(100vw - 100% - var(--edge-buffer))));
    width: calc(100% + var(--breakout));
    max-width: 100vw;
    margin-left: calc(-0.5 * var(--breakout));
    margin-right: calc(-0.5 * var(--breakout));

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
    row-gap: 32px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

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

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-cover {
    aspect-ratio: 3 / 2;
    background-color: var(--figure-bg);
    overflow: hidden;
    margin-bottom: 12px;
}

.post-card-cover picture {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.post-card-link:hover .post-card-cover img {
    opacity: 0.9;
}

/* Privacy pill for inner-circle posts */
.post-card-cover {
    position: relative;
}

.post-card-privacy-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;

    padding: 3px 8px;

    background: var(--accent-color);
    border-radius: 3px;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
    text-decoration: none;

    cursor: pointer;
    transition: background 0.15s ease;
}

.post-card-privacy-pill:hover {
    background: var(--accent-hover);
}

/* Grid privacy modal (JS-triggered variant of privacy modal) */
#grid-privacy-modal.active {
    opacity: 1;
    visibility: visible;
}

#grid-privacy-modal.active .privacy-modal {
    transform: translateY(0);
}

.post-card-info h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 4px;
    text-align: left;
    color: var(--text-heading);
    line-height: 1.3;
}

@media (max-width: 600px) {
    .post-card-info h2 {
        font-size: 3rem;
    }
}

.post-card-link:hover h2 {
    color: var(--accent-color);
}

.post-card-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.post-card-info p {
    text-align: left;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Post header */
.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    text-align: left;
    margin-bottom: 8px;
}

.post-header .post-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Post pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.pagination-prev,
.pagination-next {
    max-width: 45%;
}

.pagination-next {
    text-align: right;
}

.post-pagination a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
}

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

.pagination-arrow {
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.pagination-title {
    font-family: "Instrument Serif", serif;
    font-size: 1.25rem;
    color: var(--text-heading);
    display: block;
    line-height: 1.3;
}

.post-pagination a:hover .pagination-title,
.post-pagination a:hover .pagination-date {
    color: var(--accent-color);
}

.pagination-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}


/* === 05-content.css === */
/* Content Page - Prose Styles for Post Content */

.content-page {
    text-align: left;
    line-height: 1.8;
}

.content-page h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 56px;
    margin-bottom: 30px;
    text-align: left;
}

.content-page h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 42px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.content-page h3 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 35px;
    line-height: 1.1;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.content-page p {
    margin-bottom: 20px;
    text-align: left;
}

.content-page ul, .content-page ol {
    margin-bottom: 20px;
}

.content-page ul {
    margin-left: 30px;
}

.content-page ol {
    margin-left: 0;
    padding-left: 0;
    list-style-position: inside;
}

.content-page li {
    margin-bottom: 10px;
    line-height: var(--line-height-body);
}

.content-page a {
    color: var(--accent-color);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.content-page strong {
    font-weight: 600;
    color: var(--text-heading);
}

.content-page em {
    font-style: italic;
}

.content-page code {
    background-color: var(--info-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.content-page hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

.content-page blockquote {
    border-left: 3px solid var(--border-color);
    margin: 20px 0;
    padding: 0 0 0 20px;
    color: var(--text-secondary);
}

.content-page blockquote p:last-child {
    margin-bottom: 0;
}

/* Clear float after content */
.content-page::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 640px) {
    .content-page h1 {
        font-size: 46px;
    }

    .content-page h2 {
        font-size: 35px;
    }

    .content-page h3 {
        font-size: 32px;
    }
}


/* === 06-images.css === */
/* Image Styles - Figure, Wide, Fullbleed, Narrow */

/* Post images - prevent layout shift */
figure {
    margin: 1.5em 0;
    max-width: 100%;
    overflow: hidden;
    background-color: var(--figure-bg);
}

/* Use CSS custom property for aspect-ratio (set via inline style) */
figure[style*="--aspect-ratio"] {
    aspect-ratio: var(--aspect-ratio);
}

figure picture {
    display: block;
    width: 100%;
    height: 100%;
}

figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fade in to hide LQIP background smoothly */
    animation: imgFadeIn 0.3s ease-out;
}

@keyframes imgFadeIn {
    from { opacity: 0.85; }
    to { opacity: 1; }
}

/* Pulse LQIP background while image loads (using pseudo-element so loaded images don't pulse) */
figure[style*="background-image"] {
    position: relative;
    background-size: cover;
}

figure[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    animation: lqipPulse 1.5s ease-in-out infinite;
    z-index: 0;
}

figure[style*="background-image"] picture {
    position: relative;
    z-index: 1;
}

@keyframes lqipPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

figure figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: center;
}

/* Wide images - break out ~25% beyond content width */
.wide {
    /* Extend into margins but keep buffer from viewport edge (unlike fullbleed) */
    --edge-buffer: calc(var(--image-edge-buffer) * 2); /* both sides */
    --breakout: min(25%, max(0px, calc(100vw - 100% - var(--edge-buffer))));
    width: calc(100% + var(--breakout));
    max-width: 100vw;
    margin-left: calc(-0.5 * var(--breakout));
    margin-right: calc(-0.5 * var(--breakout));
}

.wide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wide figcaption {
    padding: 0 calc(0.5 * var(--breakout));
}

/* Full-bleed images - break out of container */
.fullbleed {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.fullbleed img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.fullbleed figcaption {
    max-width: 800px;
    margin: 0.5em auto 0;
    padding: 0 20px;
}

/* Narrow images - smaller than content width, centered */
.narrow {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

.narrow img {
    width: 100%;
    height: auto;
}

/* On mobile, narrow expands to full width */
@media (max-width: 600px) {
    .narrow {
        max-width: 100%;
    }
}


/* === 07-carousel.css === */
/* Carousel Component */

.carousel {
    position: relative;
    margin: 1.5em 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-color: var(--figure-bg);
}

.carousel-slide[style*="--aspect-ratio"] {
    aspect-ratio: var(--aspect-ratio);
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    z-index: 10;
    opacity: 0;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-btn.hidden {
    display: none;
}

/* Hide arrow buttons on touch devices */
@media (pointer: coarse), (hover: none) {
    .carousel-btn {
        display: none;
    }

    /* Full-bleed carousel on touch with peek of adjacent slides
     *
     * - Carousel spans full viewport
     * - Each slide is content-width (viewport minus container padding)
     * - No gap between slides so adjacent images touch
     * - When snapped, focused image aligns with content column
     * - Adjacent images peek into the container padding area
     */
    .carousel {
        --gutter: 16px; /* Matches mobile container padding */
        width: 100vw;
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
    }

    .carousel-track {
        scroll-padding-left: var(--gutter);
    }

    .carousel-slide {
        /* Content-width: viewport minus both gutters */
        flex: 0 0 calc(100vw - var(--gutter) * 2);
    }

    .carousel-slide:first-child {
        margin-left: var(--gutter);
    }

    .carousel-slide:last-child {
        margin-right: var(--gutter);
    }
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.carousel-dot.active {
    background: var(--accent-color);
}

.carousel-dot:hover {
    background: var(--accent-hover);
}

/* Larger tap targets on mobile */
@media (pointer: coarse) {
    .carousel-dot {
        width: 12px;
        height: 12px;
        padding: 16px;
        background-clip: content-box;
    }
}

/* Carousel bleed options */
.carousel--bleed-wide {
    --edge-buffer: calc(var(--image-edge-buffer) * 2);
    --breakout: min(25%, max(0px, calc(100vw - 100% - var(--edge-buffer))));
    width: calc(100% + var(--breakout));
    max-width: 100vw;
    margin-left: calc(-0.5 * var(--breakout));
    margin-right: calc(-0.5 * var(--breakout));
}

/* On touch devices, wide behaves like normal carousel with peek effect */
@media (pointer: coarse), (hover: none) {
    .carousel--bleed-wide {
        width: 100vw;
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
    }
}

.carousel--bleed-full {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.carousel--bleed-narrow {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

/* On touch devices, narrow behaves like normal carousel with peek effect */
@media (pointer: coarse), (hover: none) {
    .carousel--bleed-narrow {
        max-width: none;
        /* Reset margins to match base carousel touch rules for peek effect */
        width: 100vw;
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
    }
}


/* === 08-grid.css === */
/* Image Grid Component */

.image-grid {
    display: grid;
    margin: 1.5em 0;
}

.image-grid--cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.image-grid--cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.image-grid--cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.image-grid--cols-5 {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.image-grid--cols-6 {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

/* Fixed grid - force column count regardless of screen size */
.image-grid--fixed.image-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid--fixed.image-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-grid--fixed.image-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.image-grid--fixed.image-grid--cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.image-grid--fixed.image-grid--cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.image-grid--gap-none {
    gap: 0;
}

.image-grid--gap-sm {
    gap: 8px;
}

.image-grid--gap-md {
    gap: 16px;
}

.image-grid--gap-lg {
    gap: 24px;
}

/* Bleed options - extend grid beyond content width */
.image-grid--bleed-wide {
    --edge-buffer: calc(var(--image-edge-buffer) * 2);
    --breakout: min(25%, max(0px, calc(100vw - 100% - var(--edge-buffer))));
    width: calc(100% + var(--breakout));
    max-width: 100vw;
    margin-left: calc(-0.5 * var(--breakout));
    margin-right: calc(-0.5 * var(--breakout));
}

.image-grid--bleed-full {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.image-grid--bleed-narrow {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .image-grid--bleed-narrow {
        max-width: 100%;
    }

    /* Reduce gaps on wide bleed grids for mobile */
    .image-grid--bleed-wide.image-grid--gap-sm { gap: 4px; }
    .image-grid--bleed-wide.image-grid--gap-md { gap: 8px; }
    .image-grid--bleed-wide.image-grid--gap-lg { gap: 12px; }
}

.image-grid--fit .grid-item img {
    object-fit: contain;
}

.image-grid--fill .grid-item img {
    object-fit: cover;
}

.image-grid--cover .grid-item {
    aspect-ratio: 1 / 1;
}

.image-grid--cover .grid-item img {
    object-fit: cover;
}

.grid-item {
    margin: 0;
    overflow: hidden;
    background-color: var(--figure-bg);
}

.grid-item[style*="--aspect-ratio"] {
    aspect-ratio: var(--aspect-ratio);
}

.grid-item img {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-item figcaption {
    margin-top: 0.25em;
    font-size: 0.85em;
}


/* === 09-float.css === */
/* Float Images */

.float-image {
    --float-margin-top: 0.4rem;
    margin-top: 0;
    margin-bottom: 1em;
}

.float-image--right {
    float: right;
    width: var(--float-width, 40%);
    margin-left: var(--float-inner-margin);
    margin-bottom: 0.5em;
}

.float-image--left {
    float: left;
    width: var(--float-width, 40%);
    margin-right: var(--float-inner-margin);
    margin-bottom: 0.5em;
}

.float-image figure {
    margin-top: var(--float-margin-top);
    margin-bottom: 0;
}

.float-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Clear float after content */
.float-image + * {
    clear: none;
}

/* Mobile: disable float, center image */
@media (max-width: 600px) {
    .float-image--right,
    .float-image--left {
        float: none;
        width: 100%;
        margin: 1em 0;
    }

    /* Fixed floats preserve float behavior with tighter margin */
    .float-image--fixed.float-image--right {
        float: right;
        width: var(--float-width, 40%);
        margin-top: 0;
        margin-left: calc(var(--float-inner-margin) / 2);
        margin-bottom: 0.5em;
    }

    .float-image--fixed.float-image--left {
        float: left;
        width: var(--float-width, 40%);
        margin-top: 0;
        margin-right: calc(var(--float-inner-margin) / 2);
        margin-bottom: 0.5em;
    }
}

/* Extended float - extends into margin on float side */
.float-image.float-image--wide {
    margin-top: var(--float-margin-top);
}

.float-image.float-image--wide figure {
    margin-top: 0;
    margin-bottom: 0;
}

.float-image--left.float-image--wide {
    --available: calc((100vw - 100%) / 2 - var(--image-edge-buffer));
    --extend: min(12.5%, max(0px, var(--available)));
    margin-left: calc(-1 * var(--extend));
    margin-right: var(--image-edge-buffer);
    width: calc(var(--float-width, 40%) + var(--extend));
}

.float-image--left.float-image--wide figure {
    margin-top: 0;
    margin-bottom: 0;
}

.float-image--right.float-image--wide {
    --available: calc((100vw - 100%) / 2 - var(--image-edge-buffer));
    --extend: min(12.5%, max(0px, var(--available)));
    margin-right: calc(-1 * var(--extend));
    margin-left: var(--image-edge-buffer);
    width: calc(var(--float-width, 40%) + var(--extend));
}

.float-image--right.float-image--wide figure {
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobile: wide floats stay floating, extending to edge buffer */
@media (max-width: 640px) {
    .float-image--left.float-image--wide {
        --extend: max(0px, calc((100vw - 100%) / 2 - var(--image-edge-buffer)));
        float: left;
        width: calc(var(--float-width, 40%) + var(--extend));
        margin-top: var(--float-margin-top);
        margin-bottom: 0;
        margin-left: calc(-1 * var(--extend));
        margin-right: var(--image-edge-buffer);
    }

    .float-image--right.float-image--wide {
        --extend: max(0px, calc((100vw - 100%) / 2 - var(--image-edge-buffer)));
        float: right;
        width: calc(var(--float-width, 40%) + var(--extend));
        margin-top: var(--float-margin-top);
        margin-bottom: 0;
        margin-right: calc(-1 * var(--extend));
        margin-left: var(--image-edge-buffer);
    }
}


/* === 10-lightbox.css === */
/* Lightbox Modal */

.lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.lightbox-trigger img {
    transition: opacity 0.2s;
}

.lightbox-trigger:hover img {
    opacity: 0.9;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    z-index: 1000;
}

.lightbox.active {
    visibility: visible;
}

/* Only fade the image, not the overlay */
.lightbox picture,
.lightbox > img {
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active picture,
.lightbox.active > img {
    opacity: 1;
}

.lightbox img {
    max-width: calc(100vw - 32px);
    max-width: calc(100dvw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    object-fit: contain;
}

.lightbox picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100vw - 32px);
    width: calc(100dvw - 32px);
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

.lightbox picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

/* Lightbox image passes clicks through to close overlay */
.lightbox picture,
.lightbox > img {
    position: relative;
    z-index: 1;
    pointer-events: none;
}


/* === 11-misc.css === */
/* Miscellaneous - Parallax, TOC, HTMX Flash, RSS */

/* Parallax */
.parallax {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: var(--parallax-height, 60vh);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.parallax--slow {
    background-attachment: fixed;
}

.parallax--medium {
    background-attachment: fixed;
}

.parallax--fast {
    background-attachment: fixed;
}

/* iOS Safari: background-attachment: fixed is broken, fallback to static */
@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Also disable on touch devices for better performance */
@media (pointer: coarse) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Table of Contents */
nav.toc {
    margin: 0.5em 0 1.5em 0;
    font-size: 0.9em;
    line-height: 1.6;
}

nav.toc > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.toc ul ul {
    list-style: none;
    padding-left: 1.25em;
    margin: 0.25em 0 0 0;
}

nav.toc ul ul ul {
    display: none;
}

nav.toc li {
    margin: 0.3em 0;
}

nav.toc a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

nav.toc a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* HTMX live update flash message */
.flash-saved {
    color: var(--success-text);
    font-size: 14px;
    margin-left: 10px;
    animation: flash-fade 2s ease-out forwards;
}

.flash-error {
    color: var(--error-text);
    font-size: 14px;
    margin-left: 10px;
}

@keyframes flash-fade {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* RSS URL inline display (for HTMX partial) */
.rss-url-inline {
    margin-top: 10px;
    margin-left: 28px;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rss-url-inline .rss-url {
    word-break: break-all;
    flex: 1;
    min-width: 150px;
}

.rss-regenerate-form {
    display: inline;
    margin: 0;
}


/* === 12-admin.css === */
/* Admin Interface Styles */

/* Section dividers */
.admin-section {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.admin-section:first-child {
    border-top: none;
    padding-top: 0;
}

/* Compact inline stats */
.stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-inline .stat {
    white-space: nowrap;
}

.stats-inline .stat-value {
    font-weight: 600;
    color: var(--text-heading);
}

.stats-inline .stat-label {
    color: var(--text-secondary);
}

/* Admin list styling */
.admin-list {
    list-style: none;
    margin: 20px 0;
}

.admin-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.admin-list li:last-child {
    border-bottom: none;
}

/* Button group */
.button-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search form */
.search-form {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.search-form input[type="text"] {
    flex: 1;
    max-width: none;
    text-align: left;
}

.search-form .btn {
    flex-shrink: 0;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-secondary);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    background-color: var(--info-bg);
    font-weight: 600;
    color: var(--text-heading);
    border-bottom: 2px solid var(--border-color);
}

.admin-table tr:hover {
    background-color: var(--info-bg);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Tier badges */
.admin-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge.tier-free {
    background-color: var(--info-bg);
    color: var(--text-secondary);
}

.admin-badge.tier-supporter {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.admin-badge.tier-patron {
    background-color: #e8d7ff;
    color: #5a1f8f;
}

@media (prefers-color-scheme: dark) {
    .admin-badge.tier-patron {
        background-color: #3a1f4f;
        color: #d4b3ff;
    }
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination .current {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Read-only field display */
.readonly-value {
    display: block;
    padding: 12px;
    background-color: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 14px;
}

/* Status indicators */
.status-complete {
    color: var(--success-text);
    font-weight: 500;
}

.status-disabled {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Small button variant */
.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Post summary styling */
.post-summary {
    background-color: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 4px;
    padding: 16px;
    margin: 20px 0;
}

.post-summary p {
    margin-bottom: 8px;
    text-align: left;
}

.post-summary p:last-child {
    margin-bottom: 0;
}


/* === 13-mosaic.css === */
/* Mosaic Component - Flexible image layouts with rows or columns */

.mosaic {
    display: flex;
    margin: 1.5em 0;
}

/* Direction modifiers */
.mosaic--row {
    flex-direction: column;
}

.mosaic--col {
    flex-direction: row;
}

/* Gap modifiers */
.mosaic--gap-none {
    gap: 0;
}

.mosaic--gap-sm {
    gap: 8px;
}

.mosaic--gap-md {
    gap: 16px;
}

.mosaic--gap-lg {
    gap: 24px;
}

/* Bleed modifiers - extend beyond content width */
.mosaic--bleed-wide {
    --edge-buffer: calc(var(--image-edge-buffer) * 2);
    --breakout: min(25%, max(0px, calc(100vw - 100% - var(--edge-buffer))));
    width: calc(100% + var(--breakout));
    max-width: 100vw;
    margin-left: calc(-0.5 * var(--breakout));
    margin-right: calc(-0.5 * var(--breakout));
}

.mosaic--bleed-full {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mosaic--bleed-narrow {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   Section Base Styles
   =========================================== */
.mosaic-section {
    display: flex;
    gap: inherit;
}

.mosaic--row .mosaic-section {
    flex-direction: row;
}

.mosaic--col .mosaic-section {
    flex-direction: column;
    min-width: 0;
}

/* ===========================================
   ROW LAYOUTS (on="row")
   - Rows stack vertically, images flow horizontally in each row
   - items=fill: rows fill width, variable row heights
   - items=start/center/end: uniform row heights
   =========================================== */

/* Row items=fill: images flex based on aspect ratio */
.mosaic--row.mosaic--items-fill .mosaic-section {
    width: 100%;
}

.mosaic--row.mosaic--items-fill .mosaic-item {
    flex: var(--aspect-ratio, 1) 1 0%;
    min-width: 0;
}

/* Row items=start/center/end: uniform heights, aligned content */
.mosaic--row:not(.mosaic--items-fill) .mosaic-section {
    justify-content: var(--items-align, center);
}

.mosaic--row:not(.mosaic--items-fill) .mosaic-item {
    flex: 0 0 auto;
    width: calc(100% / var(--max-aspect-sum, 1) * var(--aspect-ratio, 1));
}

/* ===========================================
   COLUMN LAYOUTS (on="col")
   - Equal-width columns, native aspect ratio images
   - Use items="start/center/end" for alignment
   =========================================== */

.mosaic--col .mosaic-section {
    flex: 1 1 0%;
    justify-content: var(--items-align, flex-start);
}

.mosaic--col .mosaic-item {
    width: 100%;
    aspect-ratio: auto;
}

.mosaic--col .mosaic-item picture,
.mosaic--col .mosaic-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
}

/* Mosaic item base styles */
.mosaic-item {
    margin: 0;
    overflow: hidden;
    background-color: var(--figure-bg);
}

.mosaic-item[style*="--aspect-ratio"] {
    aspect-ratio: var(--aspect-ratio);
}

.mosaic-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* Disable captions in mosaic context */
.mosaic-item figcaption {
    display: none;
}

/* Responsive behavior */
@media (max-width: 600px) {
    /* Non-fixed mosaics collapse to single column on mobile */
    .mosaic:not(.mosaic--fixed) .mosaic-section {
        flex-wrap: wrap;
    }

    .mosaic--row:not(.mosaic--fixed) .mosaic-item {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .mosaic--col:not(.mosaic--fixed) .mosaic-section {
        flex-direction: row;
    }

    .mosaic--col:not(.mosaic--fixed) .mosaic-item {
        flex: 1 1 100% !important;
        height: auto !important;
    }

    /* Reduce gaps on mobile for bleed mosaics */
    .mosaic--bleed-wide.mosaic--gap-sm { gap: 4px; }
    .mosaic--bleed-wide.mosaic--gap-md { gap: 8px; }
    .mosaic--bleed-wide.mosaic--gap-lg { gap: 12px; }

    .mosaic--bleed-full.mosaic--gap-sm { gap: 4px; }
    .mosaic--bleed-full.mosaic--gap-md { gap: 8px; }
    .mosaic--bleed-full.mosaic--gap-lg { gap: 12px; }

    .mosaic--bleed-narrow {
        max-width: 100%;
    }
}

/* Fixed mode - maintain structure on all screen sizes */
.mosaic--fixed .mosaic-section {
    flex-wrap: nowrap;
}


/* === 14-pullquote.css === */
/* Pullquote */

.pullquote {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-primary);
    text-align: center;
    margin: 1.5em 0;
}

.pullquote p {
    margin-bottom: 0;
}

/* Float variants */
.pullquote--left {
    float: left;
    width: var(--pullquote-width, 40%);
    margin-right: var(--float-inner-margin);
    margin-bottom: 0.5em;
    text-align: left;
}

.pullquote--right {
    float: right;
    width: var(--pullquote-width, 40%);
    margin-left: var(--float-inner-margin);
    margin-bottom: 0.5em;
    text-align: left;
}

/* Mobile: disable float, center */
@media (max-width: 600px) {
    .pullquote--left,
    .pullquote--right {
        float: none;
        width: 100%;
        margin: 1.5em 0;
        text-align: center;
    }

    /* Fixed floats preserve float behavior */
    .pullquote--fixed.pullquote--left {
        float: left;
        width: var(--pullquote-width, 40%);
        margin-right: calc(var(--float-inner-margin) / 2);
        margin-bottom: 0.5em;
        text-align: left;
    }

    .pullquote--fixed.pullquote--right {
        float: right;
        width: var(--pullquote-width, 40%);
        margin-left: calc(var(--float-inner-margin) / 2);
        margin-bottom: 0.5em;
        text-align: left;
    }
}

/* Bleed: wide - extends into margins */
.pullquote--wide {
    --available: calc((100vw - 100%) / 2 - var(--image-edge-buffer));
    --extend: min(15%, max(0px, var(--available)));
    margin-left: calc(-1 * var(--extend));
    margin-right: calc(-1 * var(--extend));
}

/* Bleed: full - full viewport width */
.pullquote--full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: var(--image-edge-buffer);
    padding-right: var(--image-edge-buffer);
}


/* === 15-privacy-banner.css === */
/* Privacy Banner - floating reminder for inner-circle posts */

/* Add top padding to header when privacy banner is present (mobile only) */
@media (max-width: 1100px) {
    .privacy-modal-toggle ~ .container .site-header {
        padding-top: 1rem;
    }
}

/* Hidden checkbox for modal toggle - fixed position prevents scroll jump */
.privacy-modal-toggle {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* Default: centered top bar when at top of page */
.privacy-banner {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;

    padding: 0.5rem 1rem;

    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px var(--shadow);

    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);

    cursor: pointer;
    transition: top 0.2s ease, left 0.2s ease, right 0.2s ease,
                transform 0.2s ease, border-radius 0.2s ease,
                max-width 0.2s ease, background 0.15s ease;
}

.privacy-banner:hover {
    background: var(--bg-primary);
}

.privacy-banner strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-banner span {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* Scrolled state: floating bookmark in right margin */
.privacy-banner.scrolled {
    top: 50%;
    left: auto;
    right: 1rem;
    transform: translateY(-50%);

    flex-direction: column;
    gap: 0.25rem;

    max-width: 10rem;
    padding: 0.75rem 1rem;

    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-radius: 4px;

    text-align: center;
}

/* Mobile: always compact, just changes position */
@media (max-width: 1100px) {
    .privacy-banner {
        padding: 0.4rem 0.75rem;
    }

    .privacy-banner strong {
        font-size: 0.7rem;
    }

    .privacy-banner span {
        display: none;
    }

    .privacy-banner.scrolled {
        top: 1rem;
        left: auto;
        right: 1rem;
        transform: none;
        flex-direction: row;
        max-width: none;
        text-align: left;
    }
}

/* Modal overlay - hidden by default */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Backdrop (clickable to close) */
.privacy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Modal dialog */
.privacy-modal {
    position: relative;
    max-width: 28rem;
    margin: 1rem;
    padding: 1.5rem 2rem;

    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow);

    transform: translateY(-1rem);
    transition: transform 0.2s ease;
}

.privacy-modal h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-heading);
    text-align: center;
}

.privacy-modal p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.privacy-modal p:last-of-type {
    margin-bottom: 0;
}

/* Close button */
.privacy-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;

    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease;
}

.privacy-modal-close:hover {
    color: var(--text-primary);
}

/* Show modal when checkbox is checked */
.privacy-modal-toggle:checked ~ .privacy-modal-overlay {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-toggle:checked ~ .privacy-modal-overlay .privacy-modal {
    transform: translateY(0);
}


/* === 16-sessions.css === */
/* Session management styles */

.sessions-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.sessions-section h2 {
    text-align: center;
}

.sessions-section > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.session-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
}

.session-device {
    font-weight: 500;
    color: var(--text-primary);
}

.session-ip {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.session-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .session-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-item .btn {
        align-self: flex-end;
    }
}


