/* ===========================
   Learning Design Toolkit - Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --bg-color: #E6D1B9;
    --color-home: #F26530;
    --color-plan: #6E9C6F;
    --color-design: #6B8EBE;
    --color-teach: #DBBA38;
    --color-assess: #D57469;
    --color-about: #A975B2;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --font-family: 'Google Sans', 'Product Sans', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-content a,
.tool-section a,
.placeholder-content a,
.guide-section a {
    color: var(--color-home);
}

.about-content a:visited,
.tool-section a:visited,
.placeholder-content a:visited,
.guide-section a:visited {
    color: var(--color-home);
}

/* ===========================
   Navigation
   =========================== */

.nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 24px 40px;
    background-color: var(--bg-color);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 8px 16px;
    position: relative;
    transition: text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    text-shadow: 3px 3px 0px var(--hover-color);
}

.nav-link[data-section="home"] { --hover-color: var(--color-home); }
.nav-link[data-section="plan"] { --hover-color: var(--color-plan); }
.nav-link[data-section="design"] { --hover-color: var(--color-design); }
.nav-link[data-section="teach"] { --hover-color: var(--color-teach); }
.nav-link[data-section="assess"] { --hover-color: var(--color-assess); }
.nav-link[data-section="about"] { --hover-color: var(--color-about); }

/* Hamburger menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links {
    display: contents;
}

/* ===========================
   Main Content
   =========================== */

.site-title {
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
    transition: text-shadow 0.3s ease;
}

.site-title:hover {
    text-shadow: 5px 5px 0px var(--color-home);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    max-width: 700px;
    margin-top: 30px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Section pages (with .section-layout) should align from top, not center */
.main-content:has(.section-layout) {
    justify-content: flex-start;
    padding-top: 50px;
}

/* Home page with scenarios should also align from top */
.main-content:has(.scenarios-section) {
    justify-content: flex-start;
    padding-top: 50px;
}

/* Home hero - image left, buttons right */
.home-hero {
    display: flex;
    align-items: center;
    gap: 80px;
}

.compass-image {
    flex-shrink: 0;
    width: 420px;
    height: auto;
}

.site-byline {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.compass-link {
    flex-shrink: 0;
    display: block;
}

.compass-link:hover .compass-image {
    transform: scale(1.02);
}

.compass-image {
    transition: transform 0.2s ease;
}

.home-divider {
    width: 100%;
    max-width: 900px;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 50px 0 10px;
}

/* ===========================
   Home Page - Common Scenarios
   =========================== */

.scenarios-section {
    width: 100%;
    max-width: 900px;
    margin-top: 60px;
}

.scenarios-heading {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: text-shadow 0.3s ease;
}

.scenarios-heading:hover {
    text-shadow: 5px 5px 0px var(--color-home);
}

.scenarios-intro {
    font-family: var(--font-body);
    font-size: 1.4rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.scenarios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.scenario[open] {
    background: rgba(255, 255, 255, 0.25);
}

.scenario__trigger {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s ease;
}

.scenario__trigger::-webkit-details-marker {
    display: none;
}

.scenario__trigger::after {
    content: '+';
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-home);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.scenario[open] .scenario__trigger::after {
    content: '\2212';
}

.scenario__trigger:hover {
    color: var(--color-home);
}

.scenario__content {
    padding: 0 24px 24px;
}

.scenario__content > p {
    font-family: var(--font-body);
    font-size: 1.35rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.scenario__resources {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario__group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario__group h4 svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light);
    flex-shrink: 0;
}

.scenario--help {
    background: rgba(242, 101, 48, 0.08);
    border-color: rgba(242, 101, 48, 0.2);
}

.scenario--help .scenario__trigger {
    color: var(--color-home);
}

.scenario--help .scenario__content > p {
    margin-bottom: 12px;
}

.scenario--help a {
    color: var(--color-home);
    font-weight: 500;
}

.scenario__group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario__group li {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.5;
    padding: 6px 0;
    color: var(--text-dark);
}

.scenario__group a {
    color: var(--color-home);
    text-decoration: none;
    font-family: 'Google Sans', 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
}

.scenario__group a:visited {
    color: var(--color-home);
}

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

@media (max-width: 700px) {
    .scenarios-section {
        margin-top: 40px;
    }

    .scenario__trigger {
        font-size: 1.25rem;
        padding: 14px 18px;
    }

    .scenario__content {
        padding: 0 18px 18px;
    }
}

/* ===========================
   Home Page - Button Grid
   =========================== */

.button-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
}

/* ===========================
   Circle Buttons - text with decorative circle behind
   =========================== */

.circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    line-height: 1.15;
    padding: 20px;
    transition: transform 0.2s ease;
}

.circle-btn:hover {
    transform: translateY(-3px);
}

.circle-btn:active {
    transform: translateY(1px);
}

/* The decorative circle */
.circle-btn::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-70%, -60%);
    transition: transform 0.2s ease;
}

.circle-btn:hover::before {
    transform: translate(-70%, -63%);
}

/* Home page uses larger buttons - 2x2 grid */
.button-grid--home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 100px;
    justify-items: center;
}

.button-grid--home .circle-btn {
    font-size: 3.2rem;
    padding: 30px;
}

.button-grid--home .circle-btn::before {
    width: 130px;
    height: 130px;
    transform: translate(-10%, -20%);
}

.button-grid--home .circle-btn:hover::before {
    transform: translate(-10%, -23%);
}

/* Section-specific circle colors */
.circle-btn--plan::before { background-color: var(--color-plan); }
.circle-btn--design::before { background-color: var(--color-design); }
.circle-btn--teach::before { background-color: var(--color-teach); }
.circle-btn--assess::before { background-color: var(--color-assess); }

/* ===========================
   Section Pages - Layout with containers
   =========================== */

.section-layout {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 30px;
}

.section-container {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    padding: 30px;
}

.section-container--tools {
    grid-column: 1;
    grid-row: 1;
}

.section-container--guides {
    grid-column: 2;
    grid-row: 1;
}

.section-container--training {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Variant without training section - tools and guides share full width */
.section-layout--no-training {
    grid-template-rows: auto;
}

.section-container h3 {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.container-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

/* Items inside containers: circle stacked above text */
.container-items .circle-btn {
    flex-direction: column;
    font-size: 1.1rem;
    padding: 10px 15px;
    gap: 10px;
}

.container-items .circle-btn::before {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.container-items .circle-btn:hover::before {
    transform: none;
}

/* Section items - vertical list layout */
.section-group {
    margin-bottom: 12px;
}

.section-group:last-child {
    margin-bottom: 0;
}

.section-group__heading {
    font-family: 'Google Sans', 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px 6px;
}

.section-items {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.section-item {
    display: table-row;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.section-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.section-item__cell {
    display: table-cell;
    padding: 14px 0;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-item:last-child .section-item__cell {
    border-bottom: none;
}

.section-item__cell--icon {
    width: 56px;
    padding-left: 20px;
    padding-right: 12px;
}

.section-item__cell--title {
    width: 280px;
    padding-right: 24px;
}

.section-item__cell--blurb {
    padding-right: 20px;
}

.section-item__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-item__circle svg {
    width: 22px;
    height: 22px;
    fill: var(--bg-color);
}

/* Section page titles with drop shadow */
.section-title {
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: text-shadow 0.3s ease;
}

.section-title:hover {
    text-shadow: 5px 5px 0px var(--section-color);
}

.section-title--plan { --section-color: var(--color-plan); }
.section-title--design { --section-color: var(--color-design); }
.section-title--teach { --section-color: var(--color-teach); }
.section-title--assess { --section-color: var(--color-assess); }

.section-item__circle--plan { background-color: var(--color-plan); }
.section-item__circle--design { background-color: var(--color-design); }
.section-item__circle--teach { background-color: var(--color-teach); }
.section-item__circle--assess { background-color: var(--color-assess); }
.section-item__circle--home { background-color: var(--color-home); }

.section-item__title {
    font-family: 'Google Sans', 'Segoe UI', Roboto, sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.section-item__blurb {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.4;
}

@media (max-width: 700px) {
    .section-items {
        display: flex;
        flex-direction: column;
    }

    .section-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .section-item:last-child {
        border-bottom: none;
    }

    .section-item__cell {
        display: contents;
    }

    .section-item__cell--icon,
    .section-item__cell--title,
    .section-item__cell--blurb {
        width: auto;
        padding: 0;
    }

    .section-item__blurb {
        flex-basis: 100%;
        padding-left: 58px;
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .section-item__blurb {
        padding-left: 0;
    }

    .section-item__circle {
        width: 40px;
        height: 40px;
    }

    .section-item__circle svg {
        width: 18px;
        height: 18px;
    }

    .section-item__cell--title {
        width: auto;
    }
}

/* ===========================
   Tool Pages
   =========================== */

.tool-page {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.tool-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    transition: text-shadow 0.3s ease;
}

.tool-page-title:hover {
    text-shadow: 4px 4px 0px var(--title-shadow);
}

.tool-page-title--home { --title-shadow: var(--color-home); }
.tool-page-title--plan { --title-shadow: var(--color-plan); }
.tool-page-title--design { --title-shadow: var(--color-design); }
.tool-page-title--teach { --title-shadow: var(--color-teach); }
.tool-page-title--assess { --title-shadow: var(--color-assess); }

.tool-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.tool-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tool-section h3 {
    font-size: 1.6rem;
    margin-top: 24px;
    margin-bottom: 6px;
}

.tool-section p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.tool-section label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.tool-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--font-family);
    font-size: 1.2rem;
    color: var(--text-dark);
    resize: vertical;
    transition: border-color 0.2s ease;
}

.tool-section textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Percentage input rows in assess sections */
.percentage-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 1.1rem;
}

.percentage-row input[type="number"] {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--font-family);
    font-size: 1.1rem;
    text-align: center;
}

.percentage-row input[type="number"]:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Balance check display values (read-only, synced from section inputs) */
.balance-display {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 30px;
    display: inline-block;
    text-align: right;
}

/* Section heading accent colors */
.design-section h2 { color: #3a5a8c; }
.deliver-section h2 { color: #8b5a2a; }
.assess-section h2 { color: #4a6a3a; }
.teach-tool-section h2 { color: var(--color-teach); }
.assess-tool-section h2 { color: var(--color-assess); }

/* ===========================
   Balance Check
   =========================== */

.balance-check {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.balance-check h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.balance-row label {
    flex: 0 0 220px;
    font-weight: 500;
    font-size: 1.15rem;
}

.balance-row input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--font-family);
    font-size: 1.1rem;
    text-align: center;
}

.balance-row input[type="number"]:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
}

.balance-row span {
    font-size: 1.1rem;
}

.balance-total {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 1.2rem;
}

.balance-total .total-value {
    font-size: 1.3rem;
    min-width: 60px;
}

.balance-total .total-value.over { color: #c0392b; }
.balance-total .total-value.perfect { color: #27ae60; }
.balance-total .total-value.under { color: #e67e22; }

.balance-note {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
    line-height: 1.4;
}

/* ===========================
   Yes/No Checkboxes for Assess
   =========================== */

.yes-no-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.yes-no-row label {
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Checklist rows (checkbox left, text right) */
.checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.5;
}

.checklist-row input[type="checkbox"] {
    margin-top: 6px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Rubric table responsive wrapper */
.rubric-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

.rubric-table-wrapper .rubric-table {
    margin: 0;
    min-width: 800px;
}

/* Rubric download button */
.rubric-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-left: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.rubric-download-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Radio Group (modality selection)
   =========================== */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.radio-option:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.radio-option input[type="radio"] {
    margin-top: 5px;
    flex-shrink: 0;
}

/* ===========================
   Export Buttons
   =========================== */

.export-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.export-btn {
    padding: 14px 32px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.export-btn:active {
    transform: translateY(1px);
}

/* ===========================
   Guide Pages (web-formatted guide content)
   =========================== */

.guide-layout {
    display: flex;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

.guide-sidebar {
    position: sticky;
    top: 20px;
    flex: 0 0 200px;
    padding: 16px 0;
}

.guide-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guide-sidebar a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.15rem;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.35;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.guide-sidebar .sub-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
}

.guide-sidebar .sub-nav a {
    font-size: 1.05rem;
    padding: 5px 12px;
    border-left-width: 2px;
}

.guide-sidebar a:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.3);
}

.guide-sidebar a.active {
    color: var(--text-dark);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
}

.guide-sidebar--home a.active { border-left-color: var(--color-home); }
.guide-sidebar--plan a.active { border-left-color: var(--color-plan); }
.guide-sidebar--design a.active { border-left-color: var(--color-design); }
.guide-sidebar--teach a.active { border-left-color: var(--color-teach); }
.guide-sidebar--assess a.active { border-left-color: var(--color-assess); }

.guide-page {
    flex: 1;
    min-width: 0;
    padding: 0 0 60px;
}

@media (max-width: 900px) {
    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        position: static;
        flex: none;
        width: 100%;
        padding: 0 0 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
    }

    .guide-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .guide-sidebar a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
        font-size: 1.05rem;
    }

    .guide-sidebar .sub-nav {
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .guide-sidebar .sub-nav a {
        font-size: 0.95rem;
        padding: 4px 8px;
    }

    .guide-sidebar--home a.active { border-left-color: transparent; border-bottom-color: var(--color-home); }
    .guide-sidebar--plan a.active { border-left-color: transparent; border-bottom-color: var(--color-plan); }
    .guide-sidebar--design a.active { border-left-color: transparent; border-bottom-color: var(--color-design); }
    .guide-sidebar--teach a.active { border-left-color: transparent; border-bottom-color: var(--color-teach); }
    .guide-sidebar--assess a.active { border-left-color: transparent; border-bottom-color: var(--color-assess); }
}

.guide-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.guide-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.guide-section h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 12px;
}

.guide-section h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 8px;
}

.guide-section p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.6;
}

.guide-section ul, .guide-section ol {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.6;
}

.guide-section li {
    margin-bottom: 6px;
}

.guide-section .modality-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.guide-section .modality-card h4 {
    margin-top: 0;
}

.guide-section .example-box {
    background: rgba(255, 255, 255, 0.25);
    border-left: 3px solid rgba(0, 0, 0, 0.15);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.guide-section .example-box h4 {
    margin-top: 0;
    font-style: italic;
}

.guide-section .rubric-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 1.25rem;
}

.guide-section .rubric-table th,
.guide-section .rubric-table td {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.guide-section .rubric-table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.guide-home h2 { color: var(--color-home); }
.guide-plan h2 { color: var(--color-plan); }
.guide-design h2 { color: var(--color-design); }
.guide-teach h2 { color: var(--color-teach); }
.guide-assess h2 { color: var(--color-assess); }

/* Guide figures (images within guide pages) */
.guide-figure {
    margin: 24px 0;
    text-align: center;
}

.guide-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-figure figcaption {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
}

/* ===========================
   About page
   =========================== */

.about-content {
    max-width: 1000px;
    width: 100%;
    padding: 40px;
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-hero-img {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 8px;
    cursor: pointer;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.about-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-compass-img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .about-intro {
        flex-direction: column;
        align-items: center;
    }
    .about-compass-img {
        width: 160px;
    }
}

/* ===========================
   Placeholder pages
   =========================== */

.placeholder-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
    padding: 60px 40px;
}

.placeholder-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.placeholder-content p {
    font-family: var(--font-body);
    font-size: 1.35rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
    .home-hero {
        flex-direction: column;
        gap: 40px;
    }

    .compass-image {
        width: 320px;
    }

    .site-title,
    .section-title {
        font-size: 3rem;
    }

    .site-byline {
        font-size: 1.3rem;
    }

    .button-grid {
        gap: 40px;
    }

    .button-grid--home {
        grid-template-columns: 1fr 1fr;
        gap: 30px 60px;
    }

    .button-grid--home .circle-btn {
        font-size: 2.4rem;
    }

    .button-grid--home .circle-btn::before {
        width: 100px;
        height: 100px;
    }

    .nav-link {
        font-size: 1.3rem;
    }
}

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

    .section-container--tools {
        grid-column: 1;
    }

    .section-container--guides {
        grid-column: 1;
        grid-row: 2;
    }

    .section-container--training {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 600px) {
    .nav-bar {
        padding: 16px 20px;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-bar {
        position: relative;
    }

    .nav-link {
        font-size: 1.6rem;
        padding: 12px 20px;
    }

    .button-grid {
        flex-direction: column;
        gap: 30px;
    }

    .button-grid--home {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .button-grid--home .circle-btn {
        font-size: 3rem;
        width: 100%;
        padding: 24px 30px;
        justify-content: flex-start;
        flex-direction: row;
        gap: 24px;
    }

    .button-grid--home .circle-btn::before {
        position: relative;
        width: 80px;
        height: 80px;
        top: auto;
        left: auto;
        transform: none;
        flex-shrink: 0;
    }

    .button-grid--home .circle-btn:hover::before {
        transform: none;
    }

    .compass-image {
        width: 340px;
    }

    .site-byline {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .tool-page-title {
        font-size: 2rem;
    }

    .section-title,
    .site-title {
        font-size: 2.5rem;
    }
}

/* ===========================
   Tool/Guide Acknowledgement
   =========================== */

.tool-acknowledgement {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 30px auto 10px;
    padding: 0 20px;
    line-height: 1.5;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .nav-bar,
    .nav-toggle,
    .export-bar,
    .site-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .main-content {
        padding: 0;
        min-height: auto;
        justify-content: flex-start;
    }

    .tool-page {
        max-width: 100%;
        padding: 10px;
    }

    .tool-section {
        page-break-inside: avoid;
        border-color: #ccc;
    }

    .tool-section textarea {
        overflow: visible;
        height: auto !important;
        min-height: 0;
        border: 1px solid #ccc;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .tool-page-title {
        text-shadow: none;
    }
}
