/*
 * This file contains styles that style dynamically created elements.
 * DE-DUPLICATED VERSION
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to right, #e8f4f4, #f8f2e8);
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

h3 > a:link,
h3 > a:visited {
    text-decoration: none !important;
    color: #2c3e50;
}

h3 > a:hover {
    color: #3498db;
}

ul,
ol {
    padding-left: 40px;
}

/*
 * Heading spacing - add breathing room in text flow
 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.25em;
    margin-top: 1em;
}

/*
 * Remove top margin when headings are first child of container
 */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

/*
 * Also remove top margin when headings immediately follow other headings
 */
h1+h1, h1+h2, h1+h3, h1+h4, h1+h5, h1+h6,
h2+h1, h2+h2, h2+h3, h2+h4, h2+h5, h2+h6,
h3+h1, h3+h2, h3+h3, h3+h4, h3+h5, h3+h6,
h4+h1, h4+h2, h4+h3, h4+h4, h4+h5, h4+h6,
h5+h1, h5+h2, h5+h3, h5+h4, h5+h5, h5+h6,
h6+h1, h6+h2, h6+h3, h6+h4, h6+h5, h6+h6 {
    margin-top: 0.6em;
}

/*
 * Add some spacing to paragraphs
 */
p+p {
    margin-top: 0.7em;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e1e1e1;
    padding: 20px 0;
}

.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2a26;
}

.header-title .target {
    font-size: 0.9rem;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

h3 a {
    color: #2c3e50;
    text-decoration: none;
}

h3 a:hover {
    color: #3498db;
}

nav a {
    color: #666;
    font-weight: 500;
    margin-left: 30px;
    text-decoration: none;
}

nav a:hover {
    color: #2c3e50;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
}

.nav a:hover {
    color: #000;
}

.nav .login {
    color: #0066cc;
    cursor: pointer;
}

/* Footer */
footer {
    border-top: 1px solid #e1e1e1;
    color: #666;
    font-size: 14px;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
}

.footer {
    text-align: left;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
    padding: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

.footer p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #0066cc;
}

.footer .copyright {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.footer-iframe-container {
    margin: 0;
    padding: 0;
    width: 100%;
}

.footer-iframe {
    border: none;
    display: block;
    height: auto;
    width: 100%;
}

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

.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    margin-top: 40px;
}

/* Grid Layouts */
.top-section {
    display: grid;
    gap: 40px;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 50px;
}

.equi-section {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .top-section {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .equi-section {
        gap: 30px;
        grid-template-columns: 1fr;
    }

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

    .blog-image {
        aspect-ratio: 3 / 2;
        height: auto;
        width: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 25px;
    }

    .community-info {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .blog-image {
        aspect-ratio: 3 / 2;
        height: auto;
        width: 40%;
    }
}

/* Logo */
.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
}

.logo a {
    color: #2c3e50;
    text-decoration: none;
}

.logo a:hover {
    color: #3498db;
}

/* Blog Section */
.blog-section {
    margin-top: 0;
}

.blog-section h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
}

.blog-post {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
}

.blog-image {
    align-items: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    display: flex;
    flex-shrink: 0;
    font-size: 14px;
    justify-content: center;
    text-align: center;
}

.blog-image img {
    border-radius: 4px;
    display: block;
    width: 100%;
}

.blog-content {
    flex: 1;
}

.blog-post h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-post h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post h3 a:hover {
    color: #3498db;
}

.blog-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: #555;
}

/* Tags */
.tag {
    background: #ecf0f1;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    padding: 3px 8px;
}

.making-of {
    background: #e8f4f8;
    color: #2980b9;
}

.philosophy {
    background: #fdf2e9;
    color: #e67e22;
}

/* Boxes */
.tools-box {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.tools-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
}

.tools-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.tool-list {
    list-style: none;
}

.tool-list li {
    margin-bottom: 12px;
}

.tool-list a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.tool-list a:hover {
    color: #2980b9;
}

.about-box {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.about-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

.about-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    font-size: 14px;
}

.card p:last-child {
    margin-top: auto;
}

.card-deck {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
}

/* Coming Soon / Not Yet States */
.coming-soon {
    color: #7f8c8d;
    font-style: italic;
}

.notyet {
    background: #ddd;
}

.notyet .tag {
    background: #ccc;
    cursor: default;
    pointer-events: none;
}

.notyet a {
    cursor: default;
    pointer-events: none;
}

/* Discord */
.discord-link {
    align-items: center;
    background: #4A5568;
    border-radius: 4px;
    color: white;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.discord-link:hover {
    background: #5865F2;
}

.discord-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.discord-info {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 40px;
}

.discord-info h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.discord-info p {
    color: #555;
    margin-bottom: 15px;
}

.discord-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    margin: 30px 0;
    padding: 40px;
    text-align: center;
}

.discord-button {
    align-items: center;
    background: white;
    border-radius: 8px;
    color: #2c3e50;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 600;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.discord-button:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Community Access */
.community-access {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    padding: 20px;
}

.community-access h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.community-access p {
    color: #8a6914;
    font-size: 14px;
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.hamburger div {
    background: #333;
    height: 3px;
    margin: 5px 0;
    transition: 0.3s;
    width: 25px;
}

.nav-menu {
    background: white;
    border-bottom: 1px solid #e1e1e1;
    display: none;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
}

.nav-menu a:hover {
    background: #f8f9fa;
}

.nav-menu a:last-child {
    border-bottom: none;
}

/* Tool Interface */
.tool-header {
    margin-bottom: 40px;
    text-align: center;
}

.tool-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

.tool-interface {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 30px;
}

.input-section {
    margin-bottom: 30px;
}

.input-section label {
    color: #2c3e50;
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.path-input {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    padding: 12px 16px;
    transition: border-color 0.3s;
    width: 100%;
}

.path-input:focus {
    border-color: #3498db;
    outline: none;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.help-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

.help-link:hover {
    color: #555;
    text-decoration: underline;
}

.generate-btn {
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 24px;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #2980b9;
}

.output-section {
    margin-top: 30px;
}

.output-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.preview {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    align-items: center;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.breadcrumb-item {
    border-radius: 4px;
    color: #3498db;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    background: #ecf0f1;
    color: #2980b9;
}

.breadcrumb-item:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-weight: bold;
    margin: 0 8px;
}

/* Code Output */
.code-output {
    background: #2c3e50;
    border-radius: 8px;
    color: #ecf0f1;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 20px;
    position: relative;
    white-space: pre-wrap;
}

.copy-btn {
    background: #34495e;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.copy-btn:hover {
    background: #4a6741;
}

/* Content Section */
.content-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 40px;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.content-section p {
    color: #555;
    margin-bottom: 0px;
}

/* Info Boxes with Left Border */
.future-features {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin-top: 40px;
    padding: 20px;
}

.future-features h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.future-features p {
    color: #8a6914;
    font-size: 14px;
}

.patreon-info {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    padding: 20px;
}

.patreon-info h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.patreon-info p {
    color: #8a6914;
    font-size: 14px;
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin: 40px 0;
    text-align: center;
}

.join-section h2 {
    color: white;
    margin-bottom: 15px;
}

.join-section p {
    color: #ecf0f1;
    margin-bottom: 25px;
}

/* Blank Space Utility */
.blank-space {
    height: 0.5em;
}

/* Blockquote */
blockquote {
    background: #f5f0eb;
    border-left: 8px solid #c9a882;
    padding: 20px 25px;
    margin: 10px 0px;
    color: #4a4035;
    border-radius: 3px;
}

/* CTA Buttons */
.cta_buttonsx a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta_buttonsx a:hover {
    background-color: #0056b3;
}

.cta_buttons a {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
}

.cta_buttons a:hover {
    text-decoration: underline;
}

.cta {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.cta:hover {
    text-decoration: underline;
}

/* Tables */
table {
    border-collapse: collapse;
    width: auto;
    margin-bottom: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

thead {
    background-color: #f5f5f5;
    font-weight: 600;
    width: auto;
}

tr:hover {
    background-color: #fafafa;
}

/* Hero Section */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.hero-image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.hero-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(to right, #e8f5e9, #e3f2fd, #fff3e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
    border: 1px solid #e0e0e0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-text {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.75rem;
}

.hero-text .subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Tagline */
.tagline {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.tagline h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111;
}

/* Paths Section */
.paths {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 700px) {
    .paths {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 200px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .how-it-works {
        padding: 1.25rem 1.5rem;
    }

    .preview-section {
        grid-template-columns: 1fr;
    }

    .air-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

.path-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.path-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.path-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
}

.path-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1rem;
}

.path-card .description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.path-card .features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.path-card .features li {
    font-size: 0.9rem;
    color: #555;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.path-card .features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #888;
}

.path-card .cta {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
}

.path-card .cta:hover {
    text-decoration: underline;
}

.path-card.primary {
    border-top: 3px solid #0066cc;
}

.path-card .price-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Company Section */
.company-section {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
}

.company-inner {
    border-left: 3px solid #d0d0d0;
    padding-left: 1.5rem;
}

.company-inner h3,
.company-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

.company-inner p,
.company-section p {
    color: #555;
    max-width: 700px;
    font-size: 0.95rem;
}

.company-inner a,
.company-section a {
    color: #0066cc;
}

/* Product Grid */
.product-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .domain {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
}

.product-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1rem;
}

.product-card .problem {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-card .stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
}

.stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.product-card .cta {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.product-card .cta:hover {
    text-decoration: underline;
}

/* AIR Section */
.air-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.air-section h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

.air-section p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.air-section .cta {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.air-section .cta:hover {
    text-decoration: underline;
}

/* AIR Main Layout */
.air-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

/* Track Sections */
.track {
    margin-bottom: 2.5rem;
}

.track-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.track-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.track-header .track-status {
    font-size: 0.75rem;
    color: #888;
}

.track-header .track-status.coming {
    color: #b26a00;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.track-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s ease;
}

.track-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.track-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.25rem;
}

.track-item h3 a {
    color: inherit;
    text-decoration: none;
}

.track-item h3 a:hover {
    color: #0066cc;
}

.track-item .summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.track-item .meta {
    font-size: 0.8rem;
    color: #888;
}

.track-item .meta a {
    color: #0066cc;
    text-decoration: none;
}

.track-item .meta a:hover {
    text-decoration: underline;
}

.track-item.external {
    border-left: 3px solid #d0d0d0;
}

.track-item .attribution {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.track-item .catalase-adds {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.track-item .catalase-adds .label {
    font-weight: 500;
    color: #333;
}

.track-item .catalase-adds a {
    color: #0066cc;
    text-decoration: none;
}

.track-item .catalase-adds a:hover {
    text-decoration: underline;
}

.track-item.coming-soon {
    background: #fafafa;
    border-style: dashed;
}

.track-item.coming-soon h3 {
    color: #666;
}

.track-item.coming-soon .summary {
    color: #888;
}

.track-item.gated {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.track-item.gated::after {
    content: "Subscriber";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    background: #e8e8e8;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Tools Section */
.tools-section {
    margin-bottom: 2.5rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-link {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-link:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.tool-link .tool-desc {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Archive Section */
.archive-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.archive-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}

.archive-section .intro {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    max-width: 700px;
}

.archive-teaser {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.archive-file {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
}

.archive-file .redacted {
    color: #bbb;
}

.archive-file .revealed {
    color: #111;
}

.archive-section .note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.archive-section .note a {
    color: #0066cc;
}

/* How It Works */
.how-it-works {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 28px;
    height: 28px;
    border: 1.5px solid #bbb;
    color: #888;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.step p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Preview Section */
.preview-section {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.preview-text h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.75rem;
}

.preview-text p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.preview-text ul {
    list-style: none;
    margin-bottom: 0.75rem;
}

.preview-text li {
    font-size: 0.85rem;
    color: #555;
    padding: 0.2rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.preview-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 0.8rem;
}

/* Character Card */
.character-card {
    background: linear-gradient(145deg, #fdfcfa 0%, #f5f4f0 100%);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    font-family: 'Source Serif 4', Georgia, serif;
}

.character-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.character-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2a26;
}

.character-domain {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #555;
}

.stat-blobs {
    display: flex;
    gap: 3px;
}

.stat-blob {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
}

.stat-blob.filled {
    background: #2d2a26;
}

.stat-blob.half {
    background: linear-gradient(to right, #2d2a26 50%, #e0e0e0 50%);
}

.character-note {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Assessments Section */
.assessments-section {
    margin-bottom: 2.5rem;
}

.assessments-section h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.assessment-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.assessment-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #ccc;
}

.assessment-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.2rem;
}

.assessment-card h3 a {
    color: inherit;
    text-decoration: none;
}

.assessment-card h3 a:hover {
    color: #0066cc;
}

.assessment-card .attribution {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.assessment-card .summary {
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.assessment-card .meta {
    font-size: 0.75rem;
    color: #999;
}

.assessment-card.coming-soon {
    background: #fafafa;
    border-style: dashed;
}

.assessment-card.coming-soon h3 {
    color: #666;
}

/* Honour Note */
.honour-note {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #888;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.honour-note h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.honour-note p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Back Link */
.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #333;
}

/* Phase Indicator */
.phase-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.phase-dot.active {
    background: #2d2a26;
}

.phase-dot.complete {
    background: #22c55e;
}

/* Assessment Panel */
.assessment-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.panel-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.toggle-switch {
    position: relative;
    width: 32px;
    height: 18px;
    background-color: #ddd;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch.active {
    background-color: #2d2a26;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active::after {
    transform: translateX(14px);
}

/* Term Columns */
.term-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #eee;
}

.term-column {
    border-right: 1px solid #eee;
}

.term-column:last-child {
    border-right: none;
}

.column-header {
    padding: 0.75rem 1rem;
    background: #faf9f7;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.column-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #888;
    cursor: pointer;
}

.column-check input {
    width: 14px;
    height: 14px;
    accent-color: #2d2a26;
}

.term-list {
    max-height: 520px;
    overflow-y: auto;
}

.term-item {
    padding: 0.4rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.15s;
}

.term-item:hover {
    background-color: #faf9f7;
}

.term-item.flagged {
    background-color: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding-left: calc(1rem - 3px);
}

.term-item input[type="checkbox"] {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: #2d2a26;
    flex-shrink: 0;
}

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

.term-name {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.term-definition {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    display: none;
}

.term-item.show-definition .term-definition {
    display: block;
}

/* Inline Answer */
.inline-answer {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 4px;
    font-size: 0.8rem;
}

.inline-answer-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.inline-answer-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.inline-answer-option input {
    accent-color: #2d2a26;
}

/* Panel Actions */
.panel-actions {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf9f7;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
}

.next-btn {
    padding: 0.6rem 1.25rem;
    background: #2d2a26;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.next-btn:hover {
    background: #3d3a36;
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dedicated Box */
.dedicated-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.box-header {
    padding: 0.75rem 1rem;
    background: #faf9f7;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.box-content {
    padding: 1rem;
}

.box-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
}

/* Spot Check */
.spot-check {
    font-size: 0.9rem;
    line-height: 1.6;
}

.spot-check-question {
    color: #333;
    margin-bottom: 0.75rem;
}

.spot-check-context {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

/* AIR Says */
.air-says {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #0066cc;
    border-radius: 0 6px 6px 0;
}

.air-says .box-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.air-says .air-gentle {
    margin-bottom: 0.75rem;
}

.air-says .air-suggestion {
    font-size: 0.85rem;
    color: #0066cc;
}

/* Results Panel */
.results-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: none;
}

.results-panel.active {
    display: block;
}

.results-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.results-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 0.25rem;
}

.results-header p {
    font-size: 0.9rem;
    color: #666;
}

.results-body {
    padding: 1.5rem;
}

/* Readiness Section */
.readiness-section {
    margin-bottom: 2rem;
}

.readiness-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.readiness-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.readiness-label {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.readiness-bar {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.bar-block {
    width: 12px;
    height: 16px;
    background: #e8e8e8;
    border-radius: 2px;
}

.bar-block.filled {
    background: #22c55e;
}

.bar-block.partial {
    background: linear-gradient(to right, #22c55e 50%, #e8e8e8 50%);
}

.readiness-item.general .bar-block.filled {
    background: #eab308;
}

.readiness-item.general .bar-block.partial {
    background: linear-gradient(to right, #eab308 50%, #e8e8e8 50%);
}

.readiness-percent {
    font-size: 0.8rem;
    color: #888;
    width: 36px;
    text-align: right;
}

/* Gap Resources */
.gap-resources {
    margin-top: 1.5rem;
}

.gap-resources h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.gap-item {
    padding: 0.75rem 1rem;
    background: #faf9f7;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.gap-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.gap-item-desc {
    font-size: 0.8rem;
    color: #666;
}

.gap-item-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left:30px;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    padding: 0.25rem 0;
}

.user-menu-button:hover {
    color: #000;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown .menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.user-menu-dropdown .menu-header .name {
    font-weight: 500;
    color: #111;
    font-size: 0.9rem;
}

.user-menu-dropdown .menu-header .email {
    font-size: 0.8rem;
    color: #888;
}

.user-menu-dropdown .menu-header .badge {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-menu-dropdown a:hover {
    background: #f5f5f5;
    color: #111;
}

.user-menu-dropdown .menu-divider {
    border-top: 1px solid #e0e0e0;
    margin: 0.25rem 0;
}

.user-menu-dropdown .logout {
    color: #888;
}

/* This Page Navigation */
.this-page {
    color: #666;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px; /* adjusts gap between text and line */
}

/* This is where we need it! */
.nav a.this-page {
    color: #666;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Section indicator in header (breadcrumb style) */
.logo-divider {
    color: #ccc;
    font-weight: 400;
    margin: 0 0.25rem;
}

.logo-section {
    color: #666;
    font-weight: 500;
}