/* ===== PROTOGONY GLOBAL STYLES – MINIMAL HORIZONTAL LAYOUT ===== */
/* Date: February 2026 – Updated with click‑to‑open dropdowns */

/* ===== VARIABLES ===== */
:root {
    --earth: #8B7355;
    --field: #4A7C59;
    --sky: #8FBC8F;
    --path: #D4B483;
    --stone: #A9A9A9;
    --text: #2F4F4F;
    --light: #FAF3E0;
    --shadow: rgba(0, 0, 0, 0.05);
    --deep-green: #3F5E44;
    --protogony-green: #2E7D32;
    --protogony-light: #4CAF50;
    --protogony-dark: #1B5E20;
    --warning: #d4a55a;
    --danger: #e63946;
    --success: #4A7C59;
    --info: #457b9d;
    --action-blue: #2c5282;
    --action-light: #bee3f8;
    --kenya-orange: #e67e22;
    --contributor-blue: #3498db;

    --card-bg: white;
    --card-border: 1px solid rgba(139, 115, 85, 0.12);
    --card-radius: 6px;
    --card-padding: 1.25rem;
    --card-padding-mobile: 1rem;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.03);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.05);
    --card-transition: all 0.2s ease;

    --grid-gap: 1.25rem;
    --container-max-width: 1100px;
    --container-padding: 1.5rem;
    --container-padding-mobile: 1rem;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', serif;
}

body {
    background: linear-gradient(to bottom, var(--sky) 0%, var(--light) 100%);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding: 0.75rem;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.8rem; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: var(--container-padding-mobile);
    box-shadow: var(--card-shadow);
    border: none;
    overflow-x: hidden;
}
@media (min-width: 768px) {
    body { padding: 1rem; }
    .container {
        padding: var(--container-padding);
        box-shadow: 0 2px 8px var(--shadow);
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
}
@media (min-width: 992px) {
    body { font-size: 15px; padding: 1.5rem; }
    .container { padding: 1.75rem; }
}
@media (min-width: 1200px) {
    .container { max-width: 1100px; }
}

/* ===== TOP-RIGHT CONTACT BUTTON ===== */
.protogony-contact-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    opacity: 0.9;
}
.protogony-contact-button a {
    background: var(--protogony-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--card-transition);
    border: 1px solid var(--protogony-dark);
}
.protogony-contact-button a:hover {
    background: var(--protogony-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(46, 125, 50, 0.25);
}

/* ===== GLOBAL NAVIGATION ===== */
.global-nav {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 6px 6px 0 0;
    margin-bottom: 1.5rem;
    border: none;
    border-bottom: 1px solid var(--protogony-dark);
    box-shadow: none;
}
.nav-header { margin-bottom: 0.75rem; }
.nav-header h1 {
    color: var(--protogony-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.nav-header p {
    color: var(--earth);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 115, 85, 0.08);
}

.nav-link {
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    color: var(--protogony-dark);
    font-weight: 500;
    transition: var(--card-transition);
    font-size: 0.85rem;
    white-space: nowrap;
}
@media (min-width: 769px) {
    .nav-link {
        background: #E8F5E9;
        border-radius: 4px;
    }
    .nav-link:hover {
        background: var(--protogony-light);
        color: white;
    }
    .nav-link.active {
        background: var(--protogony-green);
        color: white;
    }
}

/* ===== DROPDOWN CONTAINER (CLICK‑TO‑OPEN) ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button – make it look like a button */
.dropbtn {
    background: none;
    border: none;
    color: var(--protogony-dark);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    border-radius: 4px;
}
.dropbtn:hover {
    background: rgba(74, 124, 89, 0.1);
    color: var(--field);
}

/* Dropdown content – hidden by default, shown when .active */
.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;              /* directly below the button */
    left: 0;                 /* align left edge (can change to right:0 if needed) */
    background-color: white;
    min-width: 260px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid var(--path);
    padding: 0.5rem 0;
}

.nav-dropdown.active .dropdown-content {
    display: block;
}

/* ===== CATEGORY DROPDOWN (flyout submenus) – click‑based ===== */
.dropdown-categories {
    /* no extra styling needed */
}

.dropdown-category {
    position: relative;
}

.category-heading {
    padding: 0.5rem 1rem;
    color: var(--earth);
    font-weight: 600;
    cursor: pointer;         /* changed to pointer to indicate click */
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-heading:hover {
    background: var(--light);
}
.category-heading::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.dropdown-category.active .category-heading::after {
    transform: rotate(180deg);
}

/* Submenu – hidden by default, shown when parent category has .active */
.category-submenu {
    display: none;
    background: white;
    border: 1px solid var(--path);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-left: 1rem;       /* indent on desktop, optional */
    position: static;
}

/* On desktop, submenu appears to the right of the category (optional) */
@media (min-width: 769px) {
    .dropdown-category {
        position: relative;
    }
    .category-submenu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 0;
        display: none;
    }
    .dropdown-category.active .category-submenu {
        display: block;
    }
}

/* Show submenu when category is active */
.dropdown-category.active .category-submenu {
    display: block;
}

.category-submenu a {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--earth);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.category-submenu a:hover {
    background: var(--light);
    color: var(--protogony-dark);
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-content {
        right: auto;
        left: 0;
        min-width: 100%;
    }
    .category-submenu {
        position: static;
        margin-left: 1rem;
        border: none;
        box-shadow: none;
        padding-left: 0;
    }
    .category-heading::after {
        content: "▼";
    }
}

/* ===== DATA SOVEREIGNTY NOTICE ===== */
.data-sovereignty-notice {
    background: #E8F5E9;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin: 0.75rem 0 1.5rem 0;
    border: none;
    border-bottom: 1px solid var(--protogony-dark);
    font-size: 0.9rem;
}
.data-sovereignty-notice a {
    color: var(--protogony-dark);
    font-weight: bold;
    text-decoration: underline;
}
.data-sovereignty-notice a:hover { color: var(--deep-green); }

/* ===== WORKSHOP NAVIGATION ===== */
.workshop-nav {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 115, 85, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.workshop-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--deep-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.workshop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.workshop-link {
    padding: 0.25rem 0.7rem;
    background: var(--light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--card-transition);
    font-size: 0.75rem;
}
.workshop-link:hover,
.workshop-link.active {
    background: var(--field);
    color: white;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--card-transition);
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}
.btn-primary,
.copy-button,
.library-link-button {
    background: var(--protogony-green);
    color: white;
    border-color: var(--protogony-dark);
}
.btn-primary:hover,
.copy-button:hover,
.library-link-button:hover {
    background: var(--protogony-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(27, 94, 32, 0.2);
}
.btn-secondary {
    background: #E8F5E9;
    color: var(--protogony-dark);
    border-color: var(--protogony-light);
}
.btn-secondary:hover {
    background: var(--protogony-light);
    color: white;
}
.btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}
.btn-outline {
    background: white;
    color: var(--field);
    border: 2px solid var(--field);
}
.btn-outline:hover {
    background: var(--field);
    color: white;
}
.btn-advanced {
    background-color: var(--protogony-dark);
    color: white;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}
.btn-warning {
    background: var(--warning);
    color: white;
    border: 2px solid #e65100;
}
.btn-warning:hover { background: #e65100; }
.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}
.btn-cancel:hover { background: #e0e0e0; }
.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ===== CARD STYLES – minimal, with left accent on laptop ===== */
.dashboard-card,
.tool-card,
.clickable-card,
.map-card,
.pattern-card,
.operational-card {
    background: white;
    border: none;
    border-radius: var(--card-radius);
    padding: 1.25rem;
    transition: var(--card-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 0.5rem;
}
.dashboard-card:hover,
.tool-card:hover,
.clickable-card:hover,
.map-card:hover,
.pattern-card:hover,
.operational-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
@media (min-width: 769px) {
    .dashboard-card,
    .tool-card,
    .clickable-card,
    .map-card,
    .pattern-card,
    .operational-card {
        border-left: 2px solid var(--field);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.12);
}
.card-header h3 {
    color: var(--field);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== DATA CONTROL SECTION ===== */
.data-control {
    text-align: center;
}
.data-control h3 {
    color: var(--field);
    margin-bottom: 10px;
    text-align: center;
}
.data-control p {
    color: var(--earth);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}
.data-control .tool-icon {
    font-size: 2rem;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}
.data-control .btn {
    margin: 0.25rem;
}
.right-of-exit-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--stone);
    text-align: center;
}

/* ===== PILL CARDS ===== */
.pill-card {
    background: white;
    border: 1px solid var(--path);
    border-radius: 30px;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    min-height: 36px;
}
.pill-card:hover {
    transform: translateY(-1px);
    border-color: var(--field);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    background: #f8f9f7;
}
.pill-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}
.pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--path);
}
.pill-title {
    font-weight: 500;
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.2;
    flex: 1;
}
.pill-card .click-indicator {
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
    margin-left: 0.3rem;
    flex-shrink: 0;
}
.pill-card:hover .click-indicator { opacity: 1; }

.card-preview {
    color: var(--earth);
    font-size: 0.9rem;
    margin: 10px 0;
    flex: 1;
    line-height: 1.5;
}
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--light);
    color: var(--earth);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--path);
}
.click-indicator {
    font-size: 0.75rem;
    color: var(--stone);
    text-align: right;
    margin-top: 10px;
    font-style: italic;
    border-top: 1px dashed var(--path);
    padding-top: 8px;
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.summary-metrics {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: var(--light);
    border-radius: 8px;
    flex-wrap: wrap;
}
.metric-item {
    text-align: center;
    flex: 1;
    min-width: 60px;
}
.metric-label {
    font-size: 0.7rem;
    color: var(--stone);
    text-transform: uppercase;
}
.metric-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--field);
}

/* Riverbank gauge */
.riverbank-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}
.gauge-visual {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--success) 0deg, var(--warning) 0deg, var(--danger) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gauge-mask {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gauge-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--protogony-dark);
}

/* Quick log button */
.quick-log-btn {
    background: var(--field);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}
.quick-log-btn:hover {
    background: var(--protogony-green);
}

/* Philosophy toggle */
.philosophy-toggle {
    width: 100%;
    padding: 15px;
    background: var(--light);
    border: 1px solid var(--path);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--card-transition);
    margin-top: 15px;
    color: #000000;
}
.philosophy-toggle:hover {
    background: var(--protogony-light);
    border-color: var(--field);
}
.philosophy-toggle.expanded {
    background: var(--protogony-light);
    border-color: var(--field);
}
.philosophy-content {
    display: none;
    margin-top: 20px;
}
.philosophy-content.expanded {
    display: block;
}
.arrow {
    transition: transform 0.3s ease;
}

/* Prompt category */
.prompt-category {
    margin: 2.5rem 0;
}
.prompt-category-title {
    font-size: 1.5rem;
    color: var(--protogony-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--field);
}

/* Modal internal components */
.protocol-step {
    background: #f8f9f7;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid var(--field);
    position: relative;
    counter-increment: step-counter;
}
.protocol-step::before {
    content: counter(step-counter);
    background: var(--field);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    top: -12px;
    left: -12px;
    font-size: 0.75rem;
}
.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}
.matrix-column {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--path);
}
.matrix-column.green {
    border-top: 4px solid var(--success);
}
.matrix-column.red {
    border-top: 4px solid var(--danger);
}
.check-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9rem;
}
.check-item::before {
    content: "✓";
    color: var(--success);
    margin-right: 8px;
    font-weight: bold;
}
.check-item.warning::before {
    content: "⚠";
    color: var(--warning);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 6px solid var(--info);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.notification-success { border-left-color: var(--success); }
.notification-error { border-left-color: var(--danger); }
.notification-warning { border-left-color: var(--warning); }
.notification-info { border-left-color: var(--info); }

/* Modal quick log */
.modal-quick-log {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--protogony-dark);
    margin: 0 0 1rem 0;
    background: transparent;
}
.content-section:last-child {
    border-bottom: none;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.3rem;
    color: var(--protogony-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--protogony-dark);
}

/* ===== WORKSHOP & DASHBOARD HEADERS ===== */
.dashboard-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px dashed var(--field);
    margin-bottom: 1.5rem;
}
.dashboard-header h1 {
    color: var(--protogony-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }
}
.dashboard-header p {
    color: var(--earth);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}
@media (max-width: 768px) {
    .dashboard-header p {
        font-size: 1rem;
    }
}

/* ===== CONSTITUTIONAL BADGE ===== */
.constitutional-badge {
    display: inline-block;
    background: var(--field);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--protogony-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.constitutional-badge-light {
    background: white;
    color: var(--field);
    border: 2px solid var(--field);
}

/* ===== GRID LAYOUTS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
    width: 100%;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.cards-grid,
.cooperation-projects,
.resource-sharing,
.pathway-options,
.impact-grid,
.perspective-container,
.communication-bridges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin: 1.5rem 0;
}
.comparison-grid,
.approach-steps,
.comparison-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap);
    margin: 1.5rem 0;
}

/* ===== MODAL SYSTEM ===== */
.depth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}
@media (min-width: 768px) { .depth-modal { padding: 20px; } }
.depth-modal .modal-content {
    position: relative;
    background-color: white;
    margin: 20px auto;
    padding: 0;
    width: 95%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--path);
    animation: modalFadeIn 0.3s ease;
}
@media (min-width: 768px) { .depth-modal .modal-content { margin: 40px auto; width: 90%; } }
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.depth-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--path);
    background: linear-gradient(135deg, var(--protogony-dark) 0%, var(--protogony-green) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}
@media (max-width: 480px) { .depth-modal .modal-header { padding: 0.75rem 1rem; } }
.depth-modal .modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}
.depth-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}
@media (max-width: 480px) { .depth-modal .modal-body { padding: 1rem; } }
.depth-modal .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: white;
    transition: color 0.2s;
}
.depth-modal .close-modal:hover { color: #ffcdd2; }
.depth-modal .modal-section { margin-bottom: 1.5rem; }
.depth-modal .modal-section h3 {
    color: var(--protogony-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--path);
    padding-bottom: 0.25rem;
}
.depth-modal ul, .depth-modal ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.depth-modal li { margin-bottom: 0.25rem; }
.depth-modal .modal-step,
.depth-modal .value-breakdown,
.modal-step {
    background: #f8f9f7;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 4px solid var(--field);
    font-size: 0.9rem;
}
.depth-modal .principle-box,
.principle-box {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid var(--info);
    font-size: 0.9rem;
}
.depth-modal .example-box,
.example-box {
    background: #fff8e1;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid var(--warning);
    font-size: 0.9rem;
}
.depth-modal .success-box,
.success-box {
    background: #E8F5E9;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid var(--success);
    font-size: 0.9rem;
}

/* ===== PROMPT BOX ===== */
.prompt-box {
    background: #f8f9f7;
    border: 1px solid var(--path);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}
.copy-button {
    background: var(--field);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.5rem;
}
.copy-button:hover { background: var(--protogony-dark); }

/* ===== FOOTER ===== */
.gate-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--protogony-dark);
    text-align: center;
    color: var(--stone);
    font-size: 0.8rem;
}
.gate-footer a {
    color: var(--protogony-dark);
    font-weight: 700;
    text-decoration: underline;
}
.gate-footer a:hover { color: var(--protogony-green); }
.gate-footer p { margin: 0.25rem 0; }
.footer-principles-btn {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.4rem 1rem;
    background: #E8F5E9;
    color: var(--protogony-dark);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid var(--path);
    transition: var(--card-transition);
}
.footer-principles-btn:hover {
    background: var(--protogony-light);
    color: white;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--field);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.25);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.back-to-top:hover {
    background: var(--protogony-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(74, 124, 89, 0.35);
}
.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* ===== UTILITY CLASSES ===== */
.text-small { font-size: 0.8rem; }
.text-muted { color: var(--stone); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .protogony-contact-button, 
    .btn, 
    .nav-link,
    .data-sovereignty-controls, 
    .import-modal,
    .footer-principles-btn,
    .copy-btn, 
    .table-of-contents, 
    .toc-item {
        display: none !important;
    }
    .protogony-card, 
    .dashboard-card, 
    .map-card, 
    .pattern-card, 
    .operational-card, 
    .pathway-option, 
    .cooperation-project, 
    .resource-card, 
    .impact-box,
    .step-card,
    .tool-card,
    .collab-card,
    .principle-card,
    .example-card,
    .approach-card,
    .learning-lab-banner, 
    .advanced-content,
    .sovereignty-banner {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    .container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin: 0 !important;
        padding: 0.5rem !important;
    }
    a { color: black !important; text-decoration: underline !important; }
    .regional-hub-banner,
    .sovereignty-banner,
    .advanced-toggle {
        border: 1px solid #999 !important;
        background: #f0f0f0 !important;
        color: black !important;
    }
    .value-flow { grid-template-columns: 1fr !important; }
}

/* ===== PROGRESS BARS & SLIDERS ===== */
.progress-display { margin: 1rem 0; }
.progress-bar {
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
    border: 1px solid rgba(139, 115, 85, 0.08);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--field), var(--success));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}
.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--stone);
    margin-top: 0.25rem;
}
.protogony-slider {
    -webkit-appearance: none;
    width: 140px;
    height: 6px;
    background: var(--light);
    border-radius: 3px;
    outline: none;
    margin: 0 0.75rem;
    border: 1px solid rgba(139, 115, 85, 0.1);
}
.protogony-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--protogony-green);
    border: 2px solid var(--protogony-dark);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--card-transition);
}
.protogony-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--protogony-green);
    border: 2px solid var(--protogony-dark);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--card-transition);
}

.slider-value {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    color: var(--protogony-dark);
    background: #E8F5E9;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    margin: 0 0.5rem;
    border: 1px solid rgba(139, 115, 85, 0.1);
    font-size: 0.85rem;
}

/* ===== STATUS BADGES ===== */
.status {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}
.good { background: #e8f5e8; color: var(--success); border-color: rgba(74, 124, 89, 0.3); }
.warning { background: #fff3cd; color: #856404; border-color: rgba(212, 165, 90, 0.3); }
.critical { background: #f8d7da; color: var(--danger); border-color: rgba(230, 57, 70, 0.3); }
.info { background: #e7f1ff; color: var(--info); border-color: rgba(69, 123, 157, 0.3); }

/* ===== FORM ELEMENTS ===== */
.form-input,
.category-name-input,
.category-amount-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--card-transition);
    background: white;
}
.form-input:focus {
    outline: none;
    border-color: var(--field);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.1);
}
.form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* ===== RESOURCE ITEMS ===== */
.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(27, 94, 32, 0.2);
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.resource-label {
    flex: 1;
    font-weight: 500;
    min-width: 100px;
    color: var(--text);
}
.metric-input-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 2;
}

/* ===== SKILL TAGS ===== */
.skill-tag,
.skill-filter {
    display: inline-block;
    background: var(--light);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin: 0.15rem;
    font-size: 0.8rem;
    border: 1px solid var(--path);
    cursor: pointer;
    transition: var(--card-transition);
}
.skill-tag:hover,
.skill-filter:hover,
.skill-filter.active {
    background: var(--field);
    color: white;
    border-color: var(--protogony-dark);
}

/* ===== FINANCIAL TABS ===== */
.financial-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.12);
    padding-bottom: 0.25rem;
    flex-wrap: wrap;
}
.financial-tab {
    padding: 0.4rem 0.8rem;
    background: var(--light);
    border: 1px solid var(--path);
    border-radius: 4px 4px 0 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--card-transition);
    color: var(--earth);
    border-bottom: none;
}
.financial-tab.active {
    background: var(--protogony-green);
    color: white;
    border-color: var(--protogony-dark);
}
.financial-tab:hover:not(.active) { background: var(--path); }
.tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}
.tab-content.active { display: block; }

/* ===== FIRST VISIT / NOTE BOXES ===== */
.first-visit,
.teaching-section,
.try-this,
.implementation-path {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #E8F5E9;
    border-radius: 4px;
    border-left: 3px solid var(--action-blue);
    font-size: 0.8rem;
}
.first-visit strong { color: var(--action-blue); font-weight: 600; }

/* ===== MOBILE CONDENSED LAYOUT ===== */
@media (max-width: 768px) {
    :root {
        --grid-min-card: 100%;
        --card-padding: 1rem;
    }
    .container { padding: 0.5rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    /* Remove left accents on mobile */
    .dashboard-card,
    .tool-card,
    .clickable-card,
    .map-card,
    .pattern-card,
    .operational-card {
        border-left: none !important;
        padding: 0.75rem;
    }

    /* Tighter grids */
    .dashboard-grid,
    .tool-grid,
    .pill-grid {
        gap: 0.5rem;
    }

    /* Condensed sections */
    .content-section {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Smaller section titles */
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        padding-bottom: 0.2rem;
    }

    /* Navigation stacked, no backgrounds */
    .nav-links {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.5rem 0;
    }
    .nav-link {
        display: block;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        background: transparent;
        border-radius: 0;
        text-align: left;
    }
    .nav-link:hover,
    .nav-link.active {
        background: var(--protogony-light);
        color: white;
    }

    /* Smaller contact button */
    .protogony-contact-button {
        top: 0.5rem;
        right: 0.5rem;
    }
    .protogony-contact-button a {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    /* Back to top button smaller */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Sliders smaller */
    .protogony-slider {
        width: 80px;
    }
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Remove borders from data notice, global nav on mobile? keep bottom border */
    .global-nav {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .data-sovereignty-notice {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }

    /* Mobile adjustments for new dashboard elements */
    .summary-metrics {
        margin: 8px 0;
        padding: 5px;
    }
    .metric-value { font-size: 0.9rem; }
    .gauge-visual { width: 120px; height: 120px; }
    .gauge-mask { width: 90px; height: 90px; }
    .gauge-value { font-size: 1.3rem; }
    .matrix-grid { grid-template-columns: 1fr; gap: 10px; }
    .prompt-category { margin: 1.5rem 0; }
    .prompt-category-title { font-size: 1.3rem; }
}

/* ===== COMMUNITY PAGE SPECIFIC ===== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.role-card {
    background: white;
    border: 1px solid var(--path);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 4px solid var(--field);
}
.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--protogony-green);
}
.role-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}
.role-name {
    font-weight: 600;
    color: var(--field);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.role-desc {
    font-size: 0.85rem;
    color: var(--earth);
    line-height: 1.4;
}
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.flow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f8f9f7;
    padding: 1rem;
    border-radius: 8px;
}
.flow-step-number {
    width: 30px;
    height: 30px;
    background: var(--field);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.flow-step-content {
    flex: 1;
}
.mutual-aid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
@media (max-width: 768px) {
    .mutual-aid-grid {
        grid-template-columns: 1fr;
    }
}
.aid-principle {
    background: #f8f9f7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--field);
}
.steward-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.steward-role {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--path);
    text-align: center;
    border-top: 4px solid var(--info);
}

/* ===== NAVIGATION MAP SPECIFIC ===== */
.sovereignty-banner {
    background: linear-gradient(135deg, var(--light) 0%, #f0f7f0 100%);
    border: 2px solid var(--protogony-green);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}
.sovereignty-banner .principle-item {
    display: inline-block;
    background: white;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--protogony-dark);
    border: 1px solid var(--path);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.data-sovereignty-controls {
    background: var(--bg-light);
    border: 1px solid var(--path);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    border-left: 6px solid var(--info);
}
.data-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--path);
}
.visual-map {
    background: white;
    border: 1px solid var(--path);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.map-nodes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.map-node {
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}
.node-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--path);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.node-label {
    font-weight: 600;
    color: var(--earth);
    font-size: 0.9rem;
}
.map-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--path);
    padding: 25px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}
.map-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.map-card .card-icon {
    font-size: 2rem;
}
.map-card h3 {
    color: var(--protogony-dark);
    margin: 0;
    font-size: 1.3rem;
}
.starting-points, .connection-paths {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9f7;
    border-radius: 8px;
}
.starting-points h4, .connection-paths h4 {
    color: var(--field);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.path-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.path-link {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--path);
    color: var(--earth);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.path-link:hover {
    background: var(--protogony-light);
    border-color: var(--protogony-green);
    color: var(--protogony-dark);
}
.map-card.individual { border-top: 6px solid var(--protogony-green); }
.map-card.regional { border-top: 6px solid var(--info); }
.map-card.community { border-top: 6px solid var(--success); }
.map-card.financial { border-top: 6px solid var(--warning); }
.map-card.leverage { border-top: 6px solid var(--field); }
.map-card.contributions { border-top: 6px solid var(--earth); }
.map-card.patterns { border-top: 6px solid var(--danger); }
.map-card.constitution { border-top: 6px solid var(--protogony-dark); }
.sovereignty-reminder {
    background: #fff8e1;
    border: 2px solid var(--warning);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}
.optional-pathways {
    background: white;
    border: 1px solid var(--path);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
}
.pathway-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}
.pathway-option {
    background: #f8f9f7;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}
.pathway-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}
.import-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.import-modal.active {
    display: flex;
}
.import-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
.import-warning {
    background: #ffebee;
    border-left: 6px solid var(--danger);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}
.btn-warning {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-warning:hover {
    background: #c0392b;
}
.btn-cancel {
    background: var(--stone);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-cancel:hover {
    background: #5a5a5a;
}

/* ===== CLICK INDICATOR HOVER ===== */
.click-indicator {
    transition: all 0.2s ease;
    border-top: 1px dashed var(--path);
    padding-top: 8px;
    margin-top: 10px;
    text-align: right;
    color: var(--field);
    font-style: italic;
    font-size: 0.75rem;
}
.clickable-card:hover .click-indicator,
.pill-card:hover .click-indicator,
.role-card:hover .click-indicator,
.map-card:hover .click-indicator,
.tool-card:hover .click-indicator,
.dashboard-card:hover .click-indicator,
.operational-card:hover .click-indicator,
.pattern-card:hover .click-indicator {
    background: var(--protogony-dark);
    color: white;
    border-top-color: white;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px;
    text-align: center;
}
.clickable-card:hover,
.pill-card:hover,
.role-card:hover,
.map-card:hover,
.tool-card:hover,
.dashboard-card:hover,
.operational-card:hover,
.pattern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: transparent !important;
    border-color: var(--field) !important;
}

/* ===== DATA BUTTONS ===== */
.data-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== SCORE SLIDER (READ‑ONLY GAUGE) ===== */
.protogony-slider.score-slider {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    pointer-events: none;
}
.protogony-slider.score-slider::-webkit-slider-thumb {
    cursor: default;
}
.protogony-slider.score-slider::-moz-range-thumb {
    cursor: default;
}
.score-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--field);
    margin-top: 0.25rem;
}

/* ===== TINY TWEAK FOR TRY THIS FIRST BADGE ===== */
.try-first-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--action-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tool-card {
    position: relative;
}

/* ===== COVER / GATE STYLES ===== */
.cover-gate {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border-bottom: 4px solid var(--field);
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}
.cover-gate h1 {
    font-size: 3rem;
    color: var(--protogony-dark);
    margin-bottom: 1rem;
    font-weight: normal;
}
.cover-gate .subtitle {
    font-size: 1.3rem;
    color: var(--earth);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}
.cover-gate .gate-text {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-style: italic;
    border-left: 3px solid var(--field);
    padding-left: 1.5rem;
    text-align: left;
}
.cover-gate .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
}

/* ===== BRIEFCASE INTRO CARD ===== */
.briefcase-intro {
    background: #fff8e1;
    border-left: 6px solid #d4a55a;
    border-radius: var(--card-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.briefcase-intro h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.briefcase-intro p {
    color: #5D4037;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}
/* Floating print button – bottom left, smaller */
.print-button {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 9998 !important;
}

.print-button button {
    background: var(--protogony-green);
    color: white;
    padding: 8px 12px !important;  /* smaller padding */
    border: none;
    border-radius: 30px !important; /* slightly rounded */
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem !important;  /* smaller font */
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    transition: all 0.2s ease;
    border: 1px solid var(--protogony-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.print-button button:hover {
    background: var(--protogony-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

@media print {
    .print-button {
        display: none !important;
    }
}