/* Unbiased Science archive styles, ported from the prototype's styles.css. */

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

:root {
    --primary-teal: #0B7FA0;
    --primary-teal-dark: #065880;
    --secondary-green: #7FB342;
    --secondary-green-dark: #6FA032;
    --accent-light: #E8F4F8;
    --text-color: #333;
    --text-light: #666;
    --border-color: #E0E0E0;
    --bg-light: #F9F9F9;
    --youtube-red: #FF0000;
    --substack-orange: #FF6D00;
    --instagram-gradient: linear-gradient(135deg, #FD5949 0%, #D6249F 50%, #285AEB 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.6;
}

a {
    color: var(--primary-teal);
}

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

/* Header: a copy of the main site's Squarespace navbar (measured from its computed styles). */
.site-header {
    --nav-text: #4d4d4d;
    --nav-blue: #1e7399;
    --nav-green: #90c446;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1vw 3vw;
    background: #fff;
    box-shadow: 0 12px 12px 0 rgba(77, 77, 77, 0.15);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: top 0.3s ease;
}

/* main.js slides the header away while scrolling down and back on scrolling up. */
.site-header.is-hidden {
    top: calc(-1 * var(--header-height, 100px) - 24px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    max-width: 1540px;
    margin: 0 auto;
}

/* Squarespace's logo 20% + nav 60% inside an 80% wrapper, both growing, comes out at 24/56/20. */
.site-logo {
    flex: 0 0 24%;
}

.site-logo img {
    display: block;
    width: 204px;
    height: auto;
}

.site-logo .site-logo-white {
    display: none;
}

.site-nav {
    display: flex;
    flex: 0 0 56%;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a {
    margin: 0 0.75vw;
    padding: 0.1em 0;
    color: var(--nav-text);
    line-height: 1.8;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-header-action {
    display: flex;
    flex: 0 0 20%;
    justify-content: flex-end;
}

.site-header-cta,
.site-menu-cta {
    display: inline-block;
    padding: 0.5em 1.2em;
    border-radius: 300px;
    background: var(--nav-blue);
    color: #fff;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.1s linear;
}

.site-header-cta:hover,
.site-menu-cta:hover {
    opacity: 0.8;
}

.site-menu {
    display: none;
}

@media (max-width: 1024px) {
    .site-logo,
    .site-nav,
    .site-header-action {
        flex: 1 1 0;
    }
}

@media (max-width: 1023px) {
    .site-header {
        font-size: 16px;
    }
}

/* Mobile: logo and burger, links in a full-screen overlay. Same breakpoint as Squarespace. */
@media (max-width: 799px), (pointer: coarse) and (max-width: 1024px) {
    .site-header {
        padding: 6vw;
    }

    .site-header-inner {
        justify-content: space-between;
    }

    .site-logo {
        flex: 0 0 auto;
        width: auto;
    }

    .site-nav,
    .site-header-action {
        display: none;
    }

    .site-menu {
        display: block;
    }

    .site-menu-toggle {
        position: relative;
        z-index: 1;
        display: block;
        padding: 1px 6px;
        cursor: pointer;
        list-style: none;
    }

    .site-menu-toggle::-webkit-details-marker {
        display: none;
    }

    /* Two-line burger that turns into an X. */
    .site-menu-burger {
        position: relative;
        display: block;
        width: 35px;
        height: 35px;
    }

    .site-menu-burger::before,
    .site-menu-burger::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--nav-text);
        transition: transform 0.25s ease, top 0.25s ease;
    }

    .site-menu-burger::before {
        top: 11px;
    }

    .site-menu-burger::after {
        top: 22px;
    }

    .site-menu[open] .site-menu-burger::before,
    .site-menu[open] .site-menu-burger::after {
        top: 16.5px;
        height: 1.5px;
        background: #fff;
    }

    .site-menu[open] .site-menu-burger::before {
        transform: rotate(45deg) scaleX(0.75);
    }

    .site-menu[open] .site-menu-burger::after {
        transform: rotate(-45deg) scaleX(0.75);
    }

    /* The overlay sits behind the logo and burger, which stay in the header. */
    .site-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: var(--header-height, 120px);
        overflow-y: auto;
        background: var(--nav-blue);
        text-align: center;
        animation: site-menu-fade 0.3s ease;
    }

    .site-menu-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-menu-nav a {
        margin: 2vw 5vw;
        color: #fff;
        font-size: min(8.5vw, 54px);
        line-height: 1;
        text-decoration: none;
    }

    .site-menu-cta {
        margin: 4vw 6vw 6vw;
        padding: 8px 1em;
        background: var(--nav-green);
        font-size: 1.2em;
    }

    .site-header:has(.site-menu[open]) {
        box-shadow: none;
    }

    .site-header:has(.site-menu[open]) .site-logo-color {
        display: none;
    }

    .site-header:has(.site-menu[open]) .site-logo-white {
        display: block;
    }

    body:has(.site-menu[open]) {
        overflow: hidden;
    }
}

@keyframes site-menu-fade {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-menu-burger::before,
    .site-menu-burger::after {
        transition: none;
    }

    .site-menu-overlay {
        animation: none;
    }
}

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

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    color: var(--primary-teal);
    margin-bottom: 10px;
    padding-top: 30px;
}

.hero p {
    font-size: 16px;
    color: var(--text-light);
}

/* Search */
.search-section {
    padding: 30px;
    margin-bottom: 30px;
}

#search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-wrapper label,
.filter-group label,
.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.filters {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 1fr) 130px;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group.filter-group-toggle {
    gap: 10px;
    width: 130px;
}

.filter-group select {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: var(--text-color);
}

.search-submit {
    align-self: flex-start;
}

/* main.js searches as you type, so the button is only needed without JS. */
.js .search-submit {
    display: none;
}

/* Selected topics */
.selected-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-teal);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.topic-pill-remove {
    color: white;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.2s;
}

.topic-pill-remove:hover {
    opacity: 0.8;
}

/* Topic mode toggle */
.toggle-switch {
    display: inline-flex;
    width: 100%;
    height: 40px;
}

/* Visually hidden but still focusable, so the toggle works from the keyboard. */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.toggle-label {
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.toggle-label:hover,
.toggle-checkbox:focus-visible + .toggle-label {
    border-color: var(--primary-teal);
    background: linear-gradient(135deg, #f0f8fb 0%, #e8f2f7 100%);
    box-shadow: 0 2px 8px rgba(11, 127, 160, 0.15);
}

.toggle-option {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-light);
}

.toggle-slider {
    width: calc(50% - 6px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 4px;
    position: absolute;
    left: 4px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.toggle-checkbox:checked + .toggle-label {
    background: linear-gradient(135deg, #E8F4F8 0%, #D4E8F0 100%);
    border-color: var(--primary-teal);
    box-shadow: 0 2px 8px rgba(11, 127, 160, 0.2);
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
    left: calc(50% + 2px);
}

.toggle-checkbox:checked + .toggle-label .toggle-option-on,
.toggle-checkbox:not(:checked) + .toggle-label .toggle-option-off {
    color: var(--primary-teal);
}

/* Results */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-list.is-loading {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.results-controls {
    padding: 20px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.results-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.results-info {
    color: var(--text-light);
    font-size: 13px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Result card */
.result-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 20px;
    border: 3px solid var(--border-color);
    border-radius: 4px;
    transition: box-shadow 0.3s, transform 0.3s;
    background: white;
}

.result-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.result-thumbnail {
    display: block;
    height: 150px;
    max-width: 270px;
    object-fit: cover;
    border-radius: 4px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    align-items: center;
}

.result-title {
    font-size: 18px;
}

.result-card a {
    color: var(--primary-teal);
    text-decoration: none;
}

.result-card a:hover {
    text-decoration: underline;
}

.result-summary {
    color: var(--text-light);
    font-size: 14px;
}

.result-topics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-card .topic-tag,
.topic-tag {
    display: inline-block;
    background: var(--secondary-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.result-card .topic-tag:hover {
    background: var(--secondary-green-dark);
    text-decoration: none;
}

.result-link {
    font-weight: 600;
    width: fit-content;
    font-size: 14px;
}

mark {
    background-color: #FFEB3B;
    color: inherit;
    border-radius: 3px;
    font-weight: 600;
}

/* Platform badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.platform-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.platform-youtube {
    background-color: var(--youtube-red);
}

.platform-substack {
    background-color: var(--substack-orange);
}

.platform-instagram {
    background: var(--instagram-gradient);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination-nav {
    padding: 30px 0 20px;
    border-top: 2px solid #e9ecef;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-inline {
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
}

a.page-link:hover {
    color: var(--primary-teal);
    background-color: #f8f9fa;
    border-color: var(--primary-teal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pagination-inline .page-link {
    border: none;
    background: none;
}

.page-item.active .page-link {
    color: #ffffff;
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    box-shadow: 0 2px 6px rgba(0, 162, 145, 0.25);
}

.page-item.disabled .page-link {
    color: #6c757d;
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
}

.btn-secondary {
    background-color: var(--secondary-green);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-green-dark);
}

/* Post page */
.post-detail {
    padding: 40px;
}

.post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.post-header h1 {
    font-size: 36px;
    line-height: 1.3;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-summary {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.post-summary-claude {
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-teal);
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--accent-light);
    border-left: 4px solid var(--primary-teal);
    font-style: italic;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.media-section {
    margin: 40px 0;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.image-container {
    display: flex;
    justify-content: center;
}

.post-image {
    max-width: min(600px, 100%);
    max-height: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-body {
    line-height: 1.8;
}

.post-body > section {
    margin-bottom: 40px;
}

.post-body > section > h2 {
    font-size: 24px;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.topic-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topic-badge {
    display: inline-block;
    background: var(--secondary-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.topic-badge:hover {
    background: var(--secondary-green-dark);
}

/* Chapters */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}

.chapter-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: start;
}

.chapter-timestamp {
    background: var(--secondary-green);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.chapter-timestamp:hover {
    background: var(--secondary-green-dark);
}

.chapter-content h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.chapter-content h3 a {
    color: var(--primary-teal);
    text-decoration: none;
}

.chapter-content h3 a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.chapter-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Chapter headings flash when a chapter link jumps to them. */
.markdown-content :target {
    animation: pulse-highlight 2s ease-in-out;
    scroll-margin-top: 20px;
}

@keyframes pulse-highlight {
    0% { background-color: rgba(127, 179, 66, 0.15); }
    50% { background-color: rgba(127, 179, 66, 0.3); }
    100% { background-color: transparent; }
}

/* Sources */
.sources-list {
    list-style: none;
}

.sources-list li {
    padding: 10px 10px 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary-green);
    background: var(--bg-light);
}

.sources-list a {
    overflow-wrap: anywhere;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.sources-list a:hover {
    text-decoration: underline;
}

.doi {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 10px;
}

.doi a {
    color: var(--text-light);
}

/* Instagram post body (HTML from the extractor) */
.instagram-author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--accent-light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.author-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 16px;
}

.author-info p {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.instagram-caption {
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.instagram-cta-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.instagram-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--instagram-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 89, 73, 0.3);
}

.instagram-read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 89, 73, 0.4);
}

/* Rendered markdown (Substack bodies and transcripts) */
.markdown-content {
    line-height: 1.8;
    font-size: 16px;
}

.markdown-h1,
.markdown-h2,
.markdown-h3,
.markdown-h4 {
    margin: 1.5rem 0 0.5rem;
}

.markdown-h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.markdown-h2 {
    font-size: 2rem;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 0.75rem;
}

.markdown-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
}

.markdown-h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
}

.markdown-p {
    margin: 1rem 0;
}

.markdown-strong {
    color: #1a1a1a;
}

.markdown-em {
    color: #555;
}

.markdown-link {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: color 0.2s ease;
}

.markdown-link:hover {
    color: #2980b9;
    border-bottom-style: solid;
}

.markdown-list {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-list li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.markdown-list li .markdown-p {
    margin: 0;
}

.markdown-blockquote {
    border-left: 4px solid #95a5a6;
    background-color: #f8f9fa;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #555;
}

.markdown-img {
    display: block;
    margin: 2rem auto 0.75rem;
    max-width: min(600px, 100%);
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Similar posts */
.similar-posts-section {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.similar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post footer */
.post-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.post-footer p + p {
    margin-top: 10px;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 48px;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Copy confirmation shown by main.js */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-green);
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--primary-teal);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
}

.site-footer p + p {
    margin-top: 10px;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-version {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1,
    .post-header h1 {
        font-size: 28px;
    }

    .hero h1 {
        padding-top: 30px;
    }

    .filters,
    .result-card {
        grid-template-columns: 1fr;
    }

    .filter-group.filter-group-toggle {
        width: 100%;
    }

    .result-thumbnail {
        max-width: 100%;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 12px;
    }

    .chapter-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chapter-timestamp {
        width: fit-content;
    }

    .post-detail {
        padding: 20px 0;
    }

    .markdown-content {
        font-size: 15px;
    }

    .markdown-h1 {
        font-size: 1.8rem;
    }

    .markdown-h2 {
        font-size: 1.5rem;
    }

    .markdown-h3 {
        font-size: 1.2rem;
    }
}

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

    .search-section {
        padding: 15px 0;
    }

    .hero h1 {
        font-size: 24px;
        padding-top: 30px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
