/* ============================================================================
   Mousecamp Company Website CSS
   Modern, clean design for online shop
   ============================================================================ */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #0066cc;
    --light-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --highlight: #0066cc;
    --error-high: #c41e3a;
    --error-medium: #ff8c00;
    --header-bg: #1a1a1a;
    --header-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #f5f5f5;
        --secondary-color: #e0e0e0;
        --light-bg: #1a1a1a;
        --text-dark: #f5f5f5;
        --text-muted: #aaa;
        --border-color: #333;
        --header-bg: #111111;
        --header-text: #ffffff;
    }
}

/* ============================================================================
   Global Styles
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-shadow: none;
}

h1 {
    font-size: 2.5em;
    letter-spacing: 0;
}

h2 {
    font-size: 2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-top: 2em;
}

h3 {
    font-size: 1.5em;
    color: var(--text-dark);
}

h4 {
    font-size: 1.1em;
    color: var(--text-dark);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
    text-align: left;
}

a {
    color: var(--highlight);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    border-bottom: none;
    text-shadow: none;
}

strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */

header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1.5em 2em;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1em;
}

.logo-container {
    flex-shrink: 0;
}

.logo-link {
    border: none;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    box-shadow: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title-container {
    flex-grow: 1;
}

.title-container h1 {
    color: var(--header-text);
    font-size: 1.8em;
    text-shadow: none;
    margin-bottom: 0.1em;
}

.subtitle {
    color: var(--header-text);
    font-size: 0.95em;
    font-weight: 400;
    text-shadow: none;
}

/* Main Navigation */

.main-nav {
    border-top: none;
    padding-top: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--header-text);
    border: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 0.75em 1.5em;
    border-radius: 0;
    transition: all 0.2s ease;
    display: block;
}

.main-nav a:hover {
    color: var(--accent-color);
    text-shadow: none;
}

/* ============================================================================
   Main Container
   ============================================================================ */

main.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3em 2em;
}

/* ============================================================================
   Sections
   ============================================================================ */

section {
    margin-bottom: 3em;
}

.intro-section {
    background-color: transparent;
    padding: 2em 0;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2em;
}

.intro-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

/* ============================================================================
   About Section
   ============================================================================ */

.about-section {
    background-color: transparent;
    padding: 2em 0;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2em;
}

.about-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-top: 0;
}

/* ============================================================================
   Shop Section
   ============================================================================ */

.shop-section {
    background-color: transparent;
    padding: 2em 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2em;
}

.shop-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-top: 0;
}

.shop-intro {
    font-size: 1em;
    margin-bottom: 1.5em;
}

.shop-links {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.shop-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-bg);
    padding: 0.75em 1.5em;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.shop-button:hover {
    background: var(--highlight);
    transform: none;
    box-shadow: none;
    color: var(--light-bg);
}

.products-placeholder {
    padding: 2em;
    background-color: var(--light-bg);
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* ============================================================================
   Shop Page Styles
   ============================================================================ */

.products-section {
    margin-top: 2em;
}

.products-section h2 {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.3em;
}

/* Filter and Sort Controls */

.filter-section,
.sort-section {
    margin-bottom: 1.5em;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    display: inline-block;
    margin-right: 1.5em;
}

.filter-section {
    margin-right: 1.5em;
}

.sort-section {
    margin-right: 0;
}

.filter-section label,
.sort-section label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.4em;
    font-size: 0.9em;
}

.category-filter,
.sort-select {
    padding: 0.5em 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    background-color: var(--light-bg);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover,
.sort-select:hover,
.category-filter:focus,
.sort-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Product Grid */

.product-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.product-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.product-link {
    display: block;
    padding: 1.5em;
    text-decoration: none;
    color: inherit;
    border: none;
    height: 100%;
}

.product-card h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.1em;
    border-bottom: none;
    padding-bottom: 0;
}

.product-description {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 1em;
    line-height: 1.5;
}

.product-format {
    font-size: 0.8em;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1em;
}

/* ============================================================================
   Product Detail Page Styles
   ============================================================================ */

.breadcrumb {
    margin-bottom: 2em;
    padding: 1em;
    background-color: var(--light-bg);
    border-radius: 4px;
    font-size: 0.95em;
    border: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--highlight);
}

.product-detail {
    margin-top: 2em;
}

.product-detail h1 {
    color: var(--highlight);
    font-size: 2.5em;
    margin-bottom: 0.3em;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.3em;
}

.product-meta {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2em;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2em;
    margin-top: 2em;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

.product-gallery {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2em;
    text-align: center;
}

.placeholder-image {
    background: transparent;
    padding: 4em 2em;
    border-radius: 4px;
    color: var(--text-muted);
}

.placeholder-image p {
    margin: 0;
    font-style: italic;
}

.product-info {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

.product-info h2 {
    margin-top: 0;
    border: none;
    padding: 0;
    font-size: 1.5em;
    color: var(--primary-color);
}

.product-info h3 {
    margin-top: 1.5em;
    font-size: 1.1em;
    color: var(--highlight);
}

.product-specs,
.product-features {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

.product-specs li,
.product-features li {
    padding: 0.5em 0;
    border-bottom: 1px solid var(--border-color);
}

.product-specs li:last-child,
.product-features li:last-child {
    border-bottom: none;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.purchase-box {
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.purchase-box h3 {
    margin-top: 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
}

.related-products {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

.related-products h3 {
    margin-top: 0;
    color: var(--highlight);
}

.related-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-products li {
    margin-bottom: 0.8em;
}

.related-products a {
    color: var(--highlight);
    transition: all 0.3s ease;
}

.related-products a:hover {
    color: var(--primary-color);
}

/* ============================================================================
   Responsive Product Page Styles
   ============================================================================ */

@media (max-width: 768px) {
    .filter-section,
    .sort-section {
        display: block;
        margin-bottom: 1em;
        margin-right: 0;
    }

    .product-listing {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5em;
    }

    .product-content {
        grid-template-columns: 1fr;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .filter-section,
    .sort-section {
        padding: 1em;
    }

    .category-filter,
    .sort-select {
        width: 100%;
    }

    .product-listing {
        grid-template-columns: 1fr;
    }

    .product-detail h1 {
        font-size: 1.8em;
    }
}

/* ============================================================================
   Errata Section
   ============================================================================ */

.errata-entry {
    background-color: transparent;
    padding: 1.5em 0;
    margin-bottom: 1.5em;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.errata-entry:hover {
    box-shadow: none;
    transform: none;
}

.errata-entry h3 {
    margin-top: 0;
    color: var(--highlight);
}

.errata-meta {
    display: flex;
    gap: 2em;
    margin-bottom: 1.5em;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.date {
    color: var(--text-muted);
    font-style: italic;
}

.severity {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.severity.high {
    background-color: var(--error-high);
    color: var(--light-bg);
}

.severity.medium {
    background-color: var(--error-medium);
    color: var(--light-bg);
}

.errata-content {
    margin-bottom: 1.5em;
    padding: 1em 0;
    background-color: transparent;
    border-left: none;
    border-radius: 0;
}

.errata-content h4 {
    margin-top: 0;
    color: var(--text-dark);
}

.errata-content p {
    margin-bottom: 0.8em;
    text-align: left;
    font-size: 0.98em;
    line-height: 1.7;
}

/* ============================================================================
   Updates Section
   ============================================================================ */

.update-item {
    background-color: transparent;
    padding: 1.5em 0;
    margin-bottom: 1.5em;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.2s ease;
}

.update-item:hover {
    background-color: transparent;
    box-shadow: none;
}

.update-item h3 {
    margin-top: 0;
    color: var(--highlight);
    font-size: 1.3em;
}

.update-item p {
    margin-bottom: 0;
    text-align: left;
}

/* ============================================================================
   Contact Section
   ============================================================================ */

.contact-section {
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.contact-section ul {
    margin-left: 2em;
    margin-bottom: 1.5em;
}

.contact-section li {
    margin-bottom: 0.8em;
    text-align: left;
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 2em;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin-bottom: 0.6em;
    text-align: center;
}

.footer-note {
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
    font-size: 0.85em;
}

.footer-links a {
    color: var(--accent-color);
    margin: 0 0.5em;
}

/* ============================================================================
   Legal Pages (Privacy Policy, Terms of Service)
   ============================================================================ */

.legal-content {
    background-color: transparent;
    padding: 2em 0;
    border-left: none;
    border-radius: 0;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--text-dark);
    font-size: 2.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}

.legal-content h2 {
    color: var(--text-dark);
    font-size: 1.4em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border: none;
    padding: 0;
}

.legal-content h3 {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.legal-content p {
    margin-bottom: 1em;
    text-align: left;
}

.legal-content ul {
    margin: 1em 0 1em 2em;
    padding-left: 0;
}

.legal-content li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

.legal-content a {
    color: var(--highlight);
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 2em;
}

/* ============================================================================
   Extras Page (Content Library)
   ============================================================================ */

.extras-section {
    margin-top: 2em;
}

.extras-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
}

.content-menu {
    display: flex;
    gap: 0.5em;
    margin: 2em 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.content-tab {
    padding: 0.6em 1.2em;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-tab:hover {
    background-color: var(--accent-color);
    color: var(--light-bg);
    border-color: var(--accent-color);
}

.content-tab.active {
    background-color: var(--accent-color);
    color: var(--light-bg);
    border-color: var(--accent-color);
}

.content-controls {
    display: flex;
    gap: 1.5em;
    margin: 1.5em 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.sort-controls {
    display: flex;
    gap: 0.8em;
    align-items: center;
}

.sort-controls label {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    font-size: 0.9em;
}

.sort-select {
    padding: 0.6em 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    background-color: var(--light-bg);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--accent-color);
}

.sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.content-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5em;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background-color: var(--light-bg);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8em;
    gap: 1em;
}

.content-card h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.1em;
    flex-grow: 1;
}

.content-category {
    background-color: var(--accent-color);
    color: var(--light-bg);
    padding: 0.3em 0.6em;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.content-description {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 0.8em;
    font-weight: 400;
}

.content-creator {
    color: var(--text-muted);
    font-size: 0.8em;
    font-style: italic;
    margin-bottom: 1em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--border-color);
}

.content-body {
    color: var(--text-dark);
    font-size: 0.85em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
}

.content-card:hover .content-body {
    max-height: 300px;
    opacity: 1;
    margin-top: 1em;
    overflow-y: auto;
}

.content-body strong {
    color: var(--text-dark);
}

/* Submit Content Section */

.submit-content-section {
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-top: 3em;
}

.submit-content-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-top: 0;
}

.submit-content-section ol {
    margin: 1em 0 1em 2em;
    line-height: 1.8;
}

.submit-content-section li {
    margin-bottom: 0.8em;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
        word-wrap: break-word;
    }

    h3 {
        font-size: 1.3em;
    }

    header {
        padding: 1.5em 1em;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1em;
        max-width: 100%;
    }

    .logo-container {
        display: flex;
        justify-content: center;
    }

    .title-container {
        max-width: 100%;
    }

    .title-container h1 {
        font-size: 1.8em;
        margin-bottom: 0.25em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .main-nav {
        padding: 0;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5em;
        max-width: 100%;
    }

    .main-nav a {
        font-size: 0.9em;
        padding: 0.5em 0.75em;
        text-align: center;
    }

    main.container {
        padding: 2em 1em;
        max-width: 100%;
    }

    section {
        margin-bottom: 2em;
    }

    .product-listing {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1em;
    }

    .product-card {
        border-radius: 4px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2em;
    }

    .content-card {
        min-height: auto;
        padding: 1.2em;
    }

    .content-controls {
        flex-direction: column;
        gap: 1em;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-section,
    .sort-section {
        display: block;
        width: 100%;
        margin-bottom: 1em;
        margin-right: 0;
    }

    .sort-controls {
        width: 100%;
        flex-direction: column;
    }

    .sort-select {
        flex: 1;
        width: 100%;
    }

    .category-filter {
        width: 100%;
    }

    .errata-meta {
        flex-direction: column;
        gap: 0.5em;
    }

    p {
        text-align: left;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
        word-wrap: break-word;
    }

    h3 {
        font-size: 1.2em;
    }

    header {
        padding: 1em;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75em;
        max-width: 100%;
    }

    .logo-container {
        display: flex;
        justify-content: center;
    }

    .title-container h1 {
        font-size: 1.5em;
        margin-bottom: 0.2em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    header {
        padding: 1em;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.3em;
        max-width: 100%;
    }

    .main-nav a {
        font-size: 0.85em;
        padding: 0.5em 0.75em;
        text-align: center;
    }

    main.container {
        padding: 1.5em 1em;
        max-width: 100%;
    }

    section {
        margin-bottom: 1.5em;
    }

    .content-menu {
        flex-direction: column;
        gap: 0.6em;
    }

    .content-tab {
        width: 100%;
        padding: 0.6em 1em;
        font-size: 0.85em;
    }

    .content-controls {
        flex-direction: column;
        gap: 0.8em;
        justify-content: flex-start;
    }

    .search-input {
        padding: 0.6em;
        font-size: 16px;
        width: 100%;
    }

    .filter-section,
    .sort-section {
        display: block;
        width: 100%;
        margin-bottom: 0.8em;
        margin-right: 0;
    }

    .sort-controls {
        width: 100%;
        gap: 0.5em;
        flex-direction: column;
    }

    .sort-controls label {
        white-space: nowrap;
        font-size: 0.85em;
    }

    .sort-select {
        flex: 1;
        font-size: 16px;
        padding: 0.6em;
        width: 100%;
    }

    .category-filter {
        width: 100%;
        font-size: 16px;
    }

    .errata-entry,
    .contact-section {
        padding: 1em;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .content-card {
        padding: 1.2em;
        min-height: 240px;
    }

    .content-header {
        flex-direction: column;
        gap: 0.5em;
    }

    .content-card h3 {
        font-size: 1.1em;
    }

    .content-body {
        max-height: 250px;
    }

    .errata-content {
        padding: 0.8em;
    }

    .designer-container {
        grid-template-columns: 1fr;
    }

    .designer-preview {
        position: static;
    }

    .form-section h3 {
        font-size: 1.1em;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .product-listing {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .product-detail h1 {
        font-size: 1.8em;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    header, footer, .main-nav {
        background: white;
        color: black;
        border: 1px solid black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .errata-entry {
        page-break-inside: avoid;
    }
}

/* ============================================================================
   Life Path Creator Hooks
   ============================================================================ */

.life-path-wizard {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5em;
    background: var(--light-bg);
}

.life-path-attributes {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25em;
    margin-bottom: 1.5em;
}

.life-path-attribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75em;
    margin: 0.75em 0 1em;
}

.life-path-attribute {
    display: grid;
    gap: 0.35em;
    font-weight: 600;
}

.life-path-attribute input {
    padding: 0.5em 0.6em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.life-path-derived {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    font-weight: 600;
}

.life-path-phase-title h2 {
    margin-top: 0;
}

.life-path-trail {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 1em;
}

.life-path-backstory {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 1.25em;
}

.life-path-backstory-actions {
    margin-bottom: 1.5em;
}

.life-path-ancestry {
    margin-bottom: 1em;
}

.life-path-ancestry-select {
    margin-left: 0.5em;
    padding: 0.45em 0.6em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.life-path-options {
    display: grid;
    gap: 0.75em;
    padding-left: 1.2em;
}

.life-path-option {
    line-height: 1.4;
}

.life-path-option-label {
    display: inline-flex;
    gap: 0.5em;
    align-items: flex-start;
}

.life-path-option-input {
    margin-top: 0.2em;
}

.life-path-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-top: 1.5em;
}

.life-path-result {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5em;
    background: var(--light-bg);
}

.life-path-sheet {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.life-path-notice {
    color: var(--text-muted);
}
