/* ================================================================
   I Get AI With a Little Help From My Friends
   Shared Stylesheet — v1.0 — March 2026
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ======================== DESIGN TOKENS ======================== */
:root {
    /* Backgrounds */
    --bg: #FFFCF7;
    --bg-warm: #FFF8EE;
    --bg-card: #FFFFFF;

    /* Text */
    --text: #3D3629;
    --text-mid: #6B5E4D;
    --text-light: #9A8E7E;
    --heading: #2A2118;

    /* Accent colours */
    --accent: #D4772C;
    --accent-light: #FFF0E2;
    --accent-hover: #B8621E;
    --teal: #2A8C82;
    --teal-light: #E6F5F3;
    --teal-hover: #1F706A;
    --coral: #E07A5F;
    --coral-light: #FFF0EC;
    --plum: #7B5EA7;
    --plum-light: #F3EEF8;

    /* Borders and shadows */
    --border: #E8E0D4;
    --border-light: #F0EAE0;
    --shadow-sm: 0 1px 3px rgba(58,42,18,0.06);
    --shadow-md: 0 4px 16px rgba(58,42,18,0.08);
    --shadow-lg: 0 8px 30px rgba(58,42,18,0.1);

    /* Radii */
    --radius: 12px;
    --radius-lg: 20px;

    /* Fonts */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Prompt blocks */
    --prompt-bg: #F8F4FF;
    --prompt-border: #9B7FCC;
    --prompt-text: #4A3366;

    /* Info / blockquotes */
    --info-bg: #EFF6FF;
    --info-border: #5B9BD5;
    --info-text: #1E3A5F;

    /* Tips */
    --tip-bg: var(--teal-light);
    --tip-border: var(--teal);
    --tip-text: #14524D;

    /* Warnings */
    --warning-bg: #FFF8EB;
    --warning-border: #E6A23C;
    --warning-text: #7A5A1E;

    /* Tables */
    --table-header: #FAF7F2;
    --table-border: var(--border);

    /* Sidebar (interior pages) */
    --sidebar-width: 300px;
    --sidebar-bg: #FAF8F5;
    --sidebar-border: var(--border-light);
    --sidebar-text: #5C5245;
    --sidebar-hover: #F3EDE4;
    --sidebar-active-bg: var(--accent-light);
    --sidebar-active-text: var(--accent);
    --sidebar-section: var(--text-light);
}


/* ======================== RESET AND BASE ======================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    font-size: 16.5px;
}


/* ======================== TOP NAV (shared) ======================== */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,252,247,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s;
}
.nav-links a:hover {
    color: var(--heading);
    background: var(--accent-light);
}
.nav-links .nav-cta {
    background: var(--accent);
    color: white;
    font-weight: 600;
}
.nav-links .nav-cta:hover {
    background: var(--accent-hover);
    color: white;
}

/* ======================== DROPDOWN MENUS ======================== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    cursor: pointer;
}
.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.5;
    transition: transform 0.2s;
}
.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    z-index: 300;
    animation: dropFade 0.15s ease;
}
@keyframes dropFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.1s;
}
.dropdown-menu a:hover {
    color: var(--heading);
    background: var(--accent-light);
}
.dropdown-menu a .nav-icon {
    margin-right: 6px;
    font-size: 0.9em;
}
/* Prevent dropdown going off-screen on far-right items */
.nav-dropdown:last-of-type .dropdown-menu,
.nav-dropdown:nth-last-of-type(2) .dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
}
.nav-dropdown:last-of-type .dropdown-menu {
    animation: dropFadeRight 0.15s ease;
}
@keyframes dropFadeRight {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Sub-group labels within dropdown menus */
.dropdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding: 0.6rem 1rem 0.2rem;
    pointer-events: none;
}
.dropdown-label:first-child {
    padding-top: 0.3rem;
}
.dropdown-grouped {
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
}

/* Mobile full nav (homepage) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 100px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 190;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}


/* ======================== QUICK-ACCESS TOOLBAR ======================== */
.quick-access-bar {
    position: fixed;
    top: 56px; left: 0; right: 0;
    z-index: 195;
    background: var(--accent);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    height: 44px;
    display: flex;
    align-items: center;
}
.quick-access-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}
.quick-access-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.12));
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: all 0.15s;
    white-space: nowrap;
}
.quick-access-link:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.38), rgba(255,255,255,0.22));
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.quick-access-icon {
    font-size: 1em;
}
@media (max-width: 768px) {
    .quick-access-bar { height: 40px; }
    .quick-access-inner { gap: 8px; padding: 0 12px; }
    .quick-access-link { font-size: 0.78rem; padding: 5px 12px; }
}
@media (max-width: 400px) {
    .quick-access-inner { gap: 6px; }
    .quick-access-link { padding: 4px 10px; font-size: 0.75rem; }
}


/* ======================== SIDEBAR (interior pages) ======================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: fixed;
    top: 100px; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-search {
    padding: 16px 16px 8px;
    position: sticky;
    top: 0;
    background: var(--sidebar-bg);
    z-index: 2;
}
.sidebar-search input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.15s;
}
.sidebar-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.sidebar-search input::placeholder { color: var(--text-light); }

.sidebar-nav { padding: 4px 0 24px; }

.nav-section-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section);
    padding: 20px 16px 6px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.nav-section-title:hover {
    color: var(--heading);
}
.nav-section-title .section-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-right: 4px;
    opacity: 0.5;
}
.nav-section-title.collapsed .section-chevron {
    transform: rotate(-90deg);
}
.nav-section-group {
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.nav-section-group.collapsed {
    max-height: 0 !important;
}

.nav-icon {
    display: inline-block;
    width: 22px;
    text-align: center;
    font-size: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}
.nav-section-title .nav-icon {
    font-size: 11px;
    width: 18px;
    margin-right: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 7px 14px 7px 20px;
    line-height: 1.4;
    transition: all 0.12s;
    border-radius: 8px;
    margin: 1px 8px;
}
.nav-link:hover {
    color: var(--heading);
    background: var(--sidebar-hover);
}
.nav-link.active {
    color: var(--sidebar-active-text);
    font-weight: 600;
    background: var(--sidebar-active-bg);
    border-left: 3px solid var(--accent);
    padding-left: 17px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 100px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* Sidebar collapse toggle */
.sidebar-collapse-btn {
    position: fixed;
    top: 66px;
    left: calc(var(--sidebar-width) - 14px);
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-mid);
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease, transform 0.3s ease;
}
.sidebar-collapse-btn:hover {
    background: var(--accent-light);
    color: var(--heading);
    border-color: var(--accent);
}
.sidebar-collapse-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Collapsed state */
.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}
.sidebar.collapsed ~ .sidebar-collapse-btn,
.sidebar-collapse-btn.collapsed {
    left: -14px;
    left: 10px;
}
.sidebar-collapse-btn.collapsed svg {
    transform: rotate(180deg);
}
body.sidebar-collapsed .content-area {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}
body.sidebar-collapsed .on-this-page {
    right: 20px;
}
body:not(.sidebar-collapsed) .content-area {
    transition: margin-left 0.3s ease;
}


/* ======================== LAYOUT (interior pages) ======================== */
.page-wrapper {
    display: flex;
    padding-top: 100px;
    min-height: 100vh;
}

.content-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}


/* ======================== BREADCRUMB ======================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }


/* ======================== PAGE HEADER ======================== */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.page-header .page-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 640px;
}


/* ======================== TYPOGRAPHY ======================== */
h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 28px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    margin: 52px 0 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    padding-top: 8px;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading);
    margin: 36px 0 12px;
    line-height: 1.3;
}

p { margin: 0 0 18px; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(212,119,44,0.3);
    text-underline-offset: 3px;
    transition: all 0.12s;
}
a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

/* Keep nav/ui links clean */
.nav-link, .nav-link:hover,
.breadcrumb a, .breadcrumb a:hover,
.page-nav a, .page-nav a:hover,
.nav-logo, .nav-logo:hover,
.explore-card, .explore-card:hover,
.path-card, .path-card:hover {
    text-decoration: none;
}

strong { font-weight: 600; color: var(--heading); }
em { font-style: italic; }


/* ======================== PROMPT BLOCKS ======================== */
.prompt {
    background: var(--prompt-bg);
    border-left: 4px solid var(--prompt-border);
    padding: 20px 24px;
    margin: 20px 0 28px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-style: normal;
    color: var(--prompt-text);
    line-height: 1.75;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    overflow-x: auto;
}
.prompt::before {
    content: 'PROMPT';
    position: absolute;
    top: 0; right: 0;
    background: var(--prompt-border);
    color: white;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 0 var(--radius) 0 6px;
}


/* ======================== BLOCKQUOTES ======================== */
blockquote {
    background: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 20px 24px;
    margin: 20px 0 24px;
    font-size: 0.93rem;
    color: var(--info-text);
    border-radius: 0 var(--radius) var(--radius) 0;
}


/* ======================== TIP / WARNING BOXES ======================== */
.tip {
    background: var(--tip-bg);
    border-left: 4px solid var(--tip-border);
    padding: 20px 24px;
    margin: 20px 0 24px;
    font-size: 0.93rem;
    color: var(--tip-text);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Collapsible example sections */
details.example-output {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 16px 0 24px;
    box-shadow: var(--shadow-sm);
}
details.example-output summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--heading);
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
details.example-output summary::-webkit-details-marker { display: none; }
details.example-output summary::before {
    content: '▶';
    font-size: 0.7em;
    color: var(--accent);
    transition: transform 0.2s ease;
    display: inline-block;
}
details.example-output[open] summary::before {
    transform: rotate(90deg);
}
details.example-output .example-content {
    padding: 4px 24px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.7;
}
details.example-output .example-content h2 {
    font-size: 1.15rem;
    margin-top: 24px;
}
details.example-output .example-content ul {
    margin: 12px 0;
    padding-left: 24px;
}
details.example-output .example-content li {
    margin-bottom: 8px;
}
details.example-output .example-meta {
    font-size: 0.82rem;
    color: var(--text-mid);
    font-style: italic;
    margin-bottom: 12px;
}

.warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 20px 24px;
    margin: 20px 0 24px;
    font-size: 0.93rem;
    color: var(--warning-text);
    border-radius: 0 var(--radius) var(--radius) 0;
}


/* ======================== TABLES ======================== */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--table-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--bg-card);
}
th, td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--table-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}
th {
    background: var(--table-header);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-warm); }
td:first-child {
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
}


/* ======================== LISTS ======================== */
ul, ol { margin: 10px 0 22px 24px; }
li {
    margin: 8px 0;
    padding-left: 6px;
    line-height: 1.7;
}
li::marker { color: var(--accent); }


/* ======================== HR ======================== */
hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 44px 0;
}


/* ======================== CODE ======================== */
code {
    background: var(--bg-warm);
    color: var(--heading);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border-light);
}


/* ======================== TOOL CARDS ======================== */
.tool-nav {
    background: var(--bg-warm);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 18px 0 28px;
    font-size: 0.88rem;
    border: 1px solid var(--border);
}
.tool-grid { display: grid; gap: 14px; margin: 18px 0 36px; }
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.2s;
}
.tool-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.tool-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}
.tool-name a { color: var(--heading); text-decoration: none; }
.tool-name a:hover { color: var(--accent); }
.tool-desc { font-size: 0.9rem; color: var(--text); line-height: 1.55; margin-bottom: 6px; }
.tool-url { font-size: 0.78rem; color: var(--text-light); }


/* ======================== PAGE NAV (prev/next) ======================== */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    gap: 16px;
}
.page-nav a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-nav a:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.page-nav .prev::before { content: '\2190  '; }
.page-nav .next::after { content: '  \2192'; }


/* ======================== PAGE ILLUSTRATION ======================== */
.page-illustration {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    margin: 0 0 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--teal-light) 50%, var(--plum-light) 100%);
    padding: 24px;
}


/* ======================== FOOTER (shared) ======================== */
.site-footer {
    padding: 36px 40px;
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid var(--border-light);
    max-width: 780px;
    margin: 0 auto;
}
.site-footer strong { color: var(--text-mid); font-weight: 600; }
.site-footer a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(212,119,44,0.3);
}
.site-footer a:hover { color: var(--accent-hover); }


/* ======================== ON-THIS-PAGE (right sidebar, wide screens) ======================== */
.on-this-page {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 200px;
    font-size: 0.78rem;
    color: var(--text-light);
    display: none;
}
.on-this-page .otp-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.on-this-page a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--border-light);
    transition: all 0.15s;
    line-height: 1.45;
}
.on-this-page a:hover,
.on-this-page a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

@media (min-width: 1300px) {
    .on-this-page { display: block; }
    .content-area { margin-right: 240px; }
}


/* ================================================================
   HOMEPAGE-ONLY STYLES
   Apply these classes only on index.html
   ================================================================ */

/* Hero */
.hero {
    padding: 184px 32px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,119,44,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(42,140,130,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px 6px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin: 0 auto 20px;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto 12px;
    line-height: 1.65;
}
.hero-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(212,119,44,0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(212,119,44,0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* Warning banner (homepage) */
.warning-banner {
    max-width: 800px;
    margin: 0 auto 0;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}
.warning-banner-inner {
    background: linear-gradient(135deg, var(--accent-light) 0%, #FFF6E8 100%);
    border: 1px solid #F0D9B5;
    border-radius: var(--radius);
    padding: 18px 24px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.65;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.warning-banner-inner .warning-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* Top 100 banner */
.top100-banner {
    display: block;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    text-decoration: none;
    color: inherit;
}
.top100-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: 12px;
    padding: 1.2rem 1.8rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.top100-banner:hover .top100-banner-inner {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.top100-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.top100-text {
    flex: 1;
}
.top100-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.top100-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #bbb;
}
.top100-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* Three traps cards */
.traps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.trap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.trap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.trap-card:nth-child(1)::before { background: var(--accent); }
.trap-card:nth-child(2)::before { background: var(--teal); }
.trap-card:nth-child(3)::before { background: var(--plum); }
.trap-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.trap-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}
.trap-card:nth-child(1) .trap-number { background: var(--accent-light); color: var(--accent); }
.trap-card:nth-child(2) .trap-number { background: var(--teal-light); color: var(--teal); }
.trap-card:nth-child(3) .trap-number { background: var(--plum-light); color: var(--plum); }
.trap-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 10px;
    line-height: 1.3;
}
.trap-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* Explore grid cards */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.explore-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.explore-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.explore-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-warm);
}
.explore-card-content h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}
.explore-card-content p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Section-specific icon colours */
.explore-card[data-section="getting-started"] .explore-icon { background: var(--accent-light); }
.explore-card[data-section="what-you-can-do"] .explore-icon { background: var(--teal-light); }
.explore-card[data-section="everyday"] .explore-icon { background: var(--coral-light); }
.explore-card[data-section="comparing"] .explore-icon { background: var(--plum-light); }
.explore-card[data-section="safety"] .explore-icon { background: #FFF0EC; }
.explore-card[data-section="frontier"] .explore-icon { background: #EFF0FF; }
.explore-card[data-section="reference"] .explore-icon { background: var(--bg-warm); }

/* Path cards */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.path-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.path-emoji { font-size: 2rem; margin-bottom: 14px; }
.path-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 8px;
}
.path-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 14px;
}
.path-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* Honesty section */
.honesty-section {
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.honesty-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.honesty-inner h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
}
.honesty-inner p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* Big quote */
.big-quote {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
}
.big-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
    letter-spacing: -0.02em;
    border: none;
    padding: 0;
    background: none;
}
.big-quote blockquote span { color: var(--accent); }


/* ======================== ANIMATIONS ======================== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablets */
@media (max-width: 1024px) {
    :root { --sidebar-width: 270px; }
    .content { padding: 40px 28px 70px; }
}

/* Medium breakpoint */
@media (max-width: 900px) {
    .traps-grid { grid-template-columns: 1fr; }
    .paths-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .section-title { font-size: 1.8rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .sidebar-toggle { display: block; }
    .mobile-menu-btn { display: block; }
    .sidebar-collapse-btn { display: none; }

    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }

    .content-area { margin-left: 0; }
    .content { padding: 32px 20px 60px; }

    .page-header h1 { font-size: 1.75rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .prompt { font-size: 0.8rem; padding: 16px 18px; }
    .table-wrapper { margin: 16px -4px; }

    .page-nav { flex-direction: column; }
    .page-nav a { justify-content: center; }

    .page-illustration { max-height: 180px; padding: 16px; }

    .nav-inner { padding: 0 16px; }
}

/* Small mobile */
@media (max-width: 640px) {
    .hero { padding: 156px 20px 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .section { padding: 56px 20px; }
    .section-title { font-size: 1.5rem; }
    .explore-grid { grid-template-columns: 1fr; }
    .warning-banner { padding: 0 20px; }
    .big-quote blockquote { font-size: 1.25rem; }
    .big-quote { padding: 56px 20px; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .trap-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.5rem; }
    .breadcrumb { font-size: 0.75rem; }
    .content { padding: 24px 16px 48px; }
}


/* ======================== MUSIC PLAYER ======================== */
.music-player {
    margin: 48px 0 32px;
    padding: 36px 32px;
    background: linear-gradient(135deg, #D4772C 0%, #2A8C82 55%, #7B5EA7 100%);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.music-player-header { text-align: center; margin-bottom: 24px; }

.music-player-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.music-player-subtitle {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.music-player-subtitle strong {
    color: #fff;
}

.music-player-body { max-width: 520px; margin: 0 auto; }

/* Now playing area */
.music-player-now-playing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.music-player-track-display { margin-bottom: 16px; }

.music-player-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading);
}

.music-player-number {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

/* Progress bar */
.music-player-progress {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 6px;
    position: relative;
}

.music-player-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.2s linear;
}

.music-player-progress:hover .music-player-progress-fill {
    background: var(--accent-hover);
}

.music-player-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

/* Playback buttons */
.music-player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.mp-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.mp-btn-play {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.mp-btn-play:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

/* Tracklist */
.music-player-tracklist {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-tracklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.15s;
    width: 100%;
}

.mp-tracklist-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.mp-tracklist-item.active {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 600;
}

.mp-tracklist-num {
    width: 22px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.mp-tracklist-item.active .mp-tracklist-num {
    color: #fff;
}

.mp-tracklist-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide the native audio element */
#mp-audio { display: none; }

@media (max-width: 480px) {
    .music-player { padding: 20px 16px; margin: 32px 0 24px; }
    .music-player-header h2 { font-size: 1.25rem; }
    .music-player-now-playing { padding: 16px; }
}
