/* Global Styles & Reset */
@import url('academic-platform.css?v=20260923a');

:root {
    --bg-dark: #070a13;
    --bg-dark-accent: #0f1526;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    
    --color-f: #00e5ff; /* Foresight - Teal */
    --color-i: #ff007f; /* Innovation - Rose */
    --color-t: #7c4dff; /* Transformation - Purple */
    --color-cla: #ffaa00; /* CLA - Neon Gold/Orange */
    --color-wheel-red: #ff3300; /* Futures Wheel - Crisis Red */
    --color-backcast: #00ff88; /* Backcasting - Neon Mint/Green */
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --glow-f: 0 0 20px rgba(0, 229, 255, 0.35);
    --glow-i: 0 0 20px rgba(255, 0, 127, 0.35);
    --glow-t: 0 0 20px rgba(124, 77, 255, 0.35);
    --glow-cla: 0 0 20px rgba(255, 170, 0, 0.35);
    --glow-wheel-red: 0 0 20px rgba(255, 51, 0, 0.35);
    --glow-backcast: 0 0 20px rgba(0, 255, 136, 0.35);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    font-size: 16px;
    overflow-x: clip;
    max-width: 100%;
}

[id] {
    scroll-margin-top: 96px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-fa);
    overflow-x: clip;
    max-width: 100%;
    line-height: 1.7;
    position: relative;
}

/* Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
}

/* Hide empty JS mounts — no layout flash before locales load */
#fitness-history:empty,
#method-history:empty,
#fitness-theory:empty,
#fitness-tracks:empty {
    display: none;
}

/* Utility Containers */
.container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.highlight {
    background: linear-gradient(135deg, var(--color-f) 0%, var(--color-t) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-accent);
    border-radius: 4px;
    border: 1px solid var(--card-border);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Common Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 32px;
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--card-hover-border);
}

.article-list-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border-inline-start: 3px solid var(--color-cla);
    color: inherit;
    text-decoration: none;
    align-items: stretch;
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .article-list-card {
    direction: ltr;
    text-align: left;
}

.article-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 170, 0, 0.35);
}

.article-list-media {
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    min-height: 134px;
}

.article-list-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-list-content {
    min-width: 0;
}

.article-card-author {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.container.article-body {
    --article-top-gap: 28px;
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--sfh-header-offset, 96px) + var(--article-top-gap)) 24px 72px;
}

.article-body {
    max-width: 820px;
    margin: 0 auto;
    --article-top-gap: 28px;
    padding: calc(var(--sfh-header-offset, 96px) + var(--article-top-gap)) 24px 72px;
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .article-body {
    direction: ltr;
    text-align: left;
}

.page-hero {
    --page-top-gap: 28px;
    padding: calc(var(--sfh-header-offset, 96px) + var(--page-top-gap)) 24px 40px;
    text-align: center;
    direction: rtl;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.2rem);
    color: var(--text-primary);
    margin: 12px 0;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-hero .section-tag {
    display: inline-block;
}

html[dir="ltr"] .page-hero {
    direction: ltr;
}

/* Readable method narrative (prose over bullet dumps) */
.method-prose {
    max-width: min(42rem, 100%);
    width: 100%;
    margin-inline: auto;
    text-align: justify;
    min-width: 0;
}

.method-prose-lead,
.method-prose-p.method-prose-lead {
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 2;
    margin-bottom: 1.25rem;
}

.method-prose-p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 2;
    margin-bottom: 1.15rem;
}

.method-prose-p:last-child {
    margin-bottom: 0;
}

.method-prose-section {
    margin-top: 2rem;
}

.method-prose-section-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    max-width: 42rem;
    margin-inline: auto;
}

.method-callout {
    max-width: 42rem;
    margin: 1.75rem auto 0;
    padding: 1.25rem 1.35rem;
    border-inline-start: 3px solid #00e5ff;
    text-align: justify;
}

.method-callout-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.method-callout p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.9;
    margin: 0;
}

.method-deep-dive {
    max-width: 52rem;
    margin: 1.25rem auto 0;
    padding: 0;
    overflow: hidden;
}

.method-deep-dive-summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.method-deep-dive-summary::-webkit-details-marker {
    display: none;
}

.method-deep-dive-summary::before {
    content: '▸';
    display: inline-block;
    margin-inline-end: 0.5rem;
    color: #00e5ff;
    transition: transform 0.2s;
}

.method-deep-dive[open] .method-deep-dive-summary::before {
    transform: rotate(90deg);
}

.method-deep-dive-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.method-prose-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.method-prose-pillar h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.method-prose-pillar p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.type2-theory-article {
    max-width: 52rem;
    margin: 0 auto;
}

.type2-theory-article > .section-tag {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.type2-theory-article > h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    margin: 0 0 1.5rem;
}

.page-content {
    padding-bottom: 80px;
}

.article-hero {
    margin-bottom: 12px;
    direction: rtl;
    text-align: right;
}

.article-hero-copy {
    min-width: 0;
}

.article-content.glass-card .article-cover-card {
    margin-bottom: 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.article-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin: 12px 0 14px;
    max-width: none;
}

.article-hero p {
    max-width: none;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-body .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4em 0.55em;
    direction: rtl;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 14px;
    line-height: 1.6;
}

.article-meta-sep {
    color: var(--text-muted);
    opacity: 0.65;
    user-select: none;
}

.article-meta-brand {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: var(--font-en);
    letter-spacing: 0.04em;
}

html[dir="ltr"] .article-body .article-meta {
    direction: ltr;
    text-align: left;
    justify-content: flex-start;
}

html[dir="ltr"] .article-hero {
    direction: ltr;
    text-align: left;
}

.article-cover-card {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(124, 77, 255, 0.22);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.article-cover-card img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 200px;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

.founder-portrait-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.founder-portrait-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center 28%;
}

.founder-portrait-card figcaption {
    display: grid;
    gap: 3px;
    padding: 14px 16px 16px;
}

.founder-portrait-card strong {
    color: var(--text-primary);
    font-family: var(--font-en);
    font-size: 0.98rem;
}

.founder-portrait-card span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.article-content {
    margin-top: 8px;
    max-width: 820px;
    margin-inline: auto;
    border-radius: 14px;
    direction: rtl;
    text-align: right;
}

.article-content.glass-card {
    padding: 0;
    overflow: hidden;
}

.article-content.glass-card > div[data-i18n-html] {
    padding: 4px 22px 26px;
}

html[dir="ltr"] .article-content {
    direction: ltr;
    text-align: left;
}

.article-content h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 34px 0 12px;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 18px;
}

.article-content .article-lead {
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 2.05;
    margin-bottom: 22px;
}

.article-content h3 {
    color: var(--text-primary);
    font-size: 1.12rem;
    font-weight: 600;
    margin: 32px 0 14px;
}

.article-content a {
    color: var(--color-f);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content .article-source {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.8;
}

.article-content strong {
    color: var(--text-primary);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 40px 0;
}

.article-content ol,
.article-content ul {
    color: var(--text-secondary);
    line-height: 2;
    margin: 0 1.25rem 22px;
    padding-inline-start: 1.25rem;
}

.article-content li {
    margin-bottom: 10px;
}

/* Typography EN Override */
.hero-title, .logo-text, .letter, .node-number, .score-number, .radar-ring-label, .radar-quadrant-label, .accordion-num, .layer-num, .preview-tag, .ex-badge, .lbl, .w-order, .lbl-order {
    font-family: var(--font-en);
    font-weight: 700;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-f) 0%, var(--color-t) 100%);
    color: #000;
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--card-hover-border);
    transform: translateY(-3px);
}

.btn-primary-sm {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-f);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-primary-sm:hover {
    background: var(--color-f);
    color: #000;
    box-shadow: var(--glow-f);
}

.w-full {
    width: 100%;
}

/* Header Styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    direction: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 20px;
    padding: 16px 32px;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: padding var(--transition-normal);
}

.main-header .logo-link,
.main-header > .logo {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

.main-header .nav-links {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
    max-width: min(100%, 720px);
}

.main-header .header-actions {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
}

html[dir="rtl"] .main-header .nav-links {
    gap: 8px 12px;
}

html[dir="rtl"] .nav-links a,
html[dir="rtl"] .nav-links .nav-lang-toggle {
    font-size: 0.8125rem;
    padding: 4px 0;
}

.main-header.scrolled {
    padding: 10px 32px;
    background: rgba(7, 10, 19, 0.85);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--color-f);
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 8px var(--color-f));
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a,
.nav-links .nav-lang-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 6px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-links a::after,
.nav-links .nav-lang-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-f), var(--color-t));
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .nav-lang-toggle:hover {
    color: var(--text-primary);
}

.nav-links a.active::after,
.nav-links a:hover::after,
.nav-links .nav-lang-toggle:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* Section Header Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--color-f);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.type2-page .section-tag,
.type2-page .type2-hero-tag {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.section-tag-cla {
    font-size: 0.85rem;
    color: var(--color-cla);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a1a8c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Section Styling */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 80px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.badge-container {
    margin-bottom: 24px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 30%, #a2b4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-f);
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

/* 3D Sphere/Orbit Animation */
.sphere-container {
    width: 350px;
    height: 350px;
    position: relative;
}

.sphere-core {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--color-f) 0%, var(--color-t) 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
    z-index: 2;
    animation: pulseCore 4s ease-in-out infinite alternate;
}

.sphere-glow {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.orbit-1, .orbit-2, .orbit-3 {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: rotateOrbit 12s linear infinite;
}

.orbit-1::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-f);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow-f);
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation: rotateOrbit 20s linear infinite reverse;
}

.orbit-2::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-i);
    border-radius: 50%;
    position: absolute;
    bottom: -8px;
    left: 30%;
    box-shadow: var(--glow-i);
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation: rotateOrbit 30s linear infinite;
}

.orbit-3::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-t);
    border-radius: 50%;
    position: absolute;
    top: 20%;
    right: 10%;
    box-shadow: var(--glow-t);
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseCore {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 35px rgba(0, 229, 255, 0.4); }
    100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 65px rgba(124, 77, 255, 0.8); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 10;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-f);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s ease-in-out infinite;
}

@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* Comparison Section Styling */
.switch-container {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 6px;
    border-radius: 9999px;
    width: fit-content;
    margin: 0 auto 48px;
}

.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

#btn-readiness.active {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-f);
}

#btn-fitness.active {
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.15);
    border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--color-i);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.comp-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.comp-card:hover {
    transform: translateY(-5px);
}

.comp-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-f);
    margin-bottom: 20px;
    transition: color var(--transition-normal);
}

.comp-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.comp-content-wrapper {
    position: relative;
    min-height: 120px;
}

.comp-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.comp-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.comp-content h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.comp-content.readiness h4 {
    color: var(--color-f);
}

.comp-content.fitness h4 {
    color: var(--color-i);
}

.comp-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Examples Section Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.example-card {
    position: relative;
    padding-top: 48px !important;
}

.ex-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ex-badge.success { background: rgba(76, 175, 80, 0.1); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.ex-badge.failure { background: rgba(244, 67, 54, 0.1); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }
.ex-badge.historical { background: rgba(255, 170, 0, 0.1); color: var(--color-cla); border: 1px solid rgba(255, 170, 0, 0.3); }

.example-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.example-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Formula Section Styling */
.formula-display {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 48px;
}

#fitness-rohrbeck-dims {
    min-height: 120px;
}

#fitness-rohrbeck-dims:empty::after {
    content: '';
    display: block;
    min-height: 1px;
}

.formula-letter-box {
    width: 140px;
    height: 140px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.formula-letter-box:hover {
    transform: translateY(-8px);
}

.letter-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.formula-letter-box:hover .letter-glow, .formula-letter-box.active .letter-glow {
    opacity: 1;
}

.f-glow { background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%); }
.i-glow { background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, transparent 70%); }
.t-glow { background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%); }

.formula-letter-box.active {
    transform: scale(1.05) translateY(-5px);
}

.formula-letter-box.active:nth-child(1) { border-color: var(--color-f); box-shadow: var(--glow-f); }
.formula-letter-box.active:nth-child(3) { border-color: var(--color-i); box-shadow: var(--glow-i); }
.formula-letter-box.active:nth-child(5) { border-color: var(--color-t); box-shadow: var(--glow-t); }

.letter {
    font-size: 3.5rem;
    line-height: 1;
    z-index: 2;
}

.formula-letter-box:nth-child(1) .letter { color: var(--color-f); }
.formula-letter-box:nth-child(3) .letter { color: var(--color-i); }
.formula-letter-box:nth-child(5) .letter { color: var(--color-t); }

.letter-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 6px;
    z-index: 2;
}

.letter-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    z-index: 2;
}

.formula-operator {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.formula-detail-panel {
    max-width: 800px;
    margin: 0 auto;
    min-height: 220px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: border-color var(--transition-normal);
}

.formula-detail-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    transform: translateY(10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.formula-detail-content.active {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.prompt-text {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.f-bg { background: rgba(0, 229, 255, 0.1); color: var(--color-f); }
.i-bg { background: rgba(255, 0, 127, 0.1); color: var(--color-i); }
.t-bg { background: rgba(124, 77, 255, 0.1); color: var(--color-t); }

.detail-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.formula-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.detail-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.detail-list li i {
    flex-shrink: 0;
    margin-top: 4px;
}

.f-text { color: var(--color-f); }
.i-text { color: var(--color-i); }
.t-text { color: var(--color-t); }

/* Technology Radar Section */
.radar-interactive-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.radar-plot-wrapper {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

#radar-svg {
    transform: rotate(0deg);
}

.radar-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1.5;
    transition: stroke var(--transition-normal);
}

.radar-ring:hover {
    stroke: rgba(255, 255, 255, 0.12);
}

.radar-axis {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.radar-ring-label {
    fill: var(--text-muted);
    font-size: 9px;
    text-anchor: middle;
    pointer-events: none;
}

.radar-quadrant-label {
    fill: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
}

.radar-dot {
    cursor: pointer;
    transition: r var(--transition-fast), filter var(--transition-fast);
    animation: pulseDot 2s infinite ease-in-out;
}

.radar-dot:hover {
    r: 12px;
}

.ai-dot { fill: var(--color-f); filter: drop-shadow(0 0 4px var(--color-f)); }
.net-dot { fill: var(--color-i); filter: drop-shadow(0 0 4px var(--color-i)); }
.comp-dot { fill: var(--color-t); filter: drop-shadow(0 0 4px var(--color-t)); }
.bio-dot { fill: #4caf50; filter: drop-shadow(0 0 4px #4caf50); }

@keyframes pulseDot {
    0% { r: 7px; opacity: 0.8; }
    50% { r: 10px; opacity: 1; }
    100% { r: 7px; opacity: 0.8; }
}

.radar-dot:nth-child(odd) {
    animation-delay: 0.7s;
}

.radar-info-sidebar {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radar-info-default {
    text-align: center;
    display: none;
}

.radar-info-default.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.radar-pulse-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-f);
    animation: pulseIcon 2.5s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.2); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.radar-info-default h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.radar-info-default p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.radar-info-detail {
    display: none;
    position: relative;
}

.radar-info-detail.active {
    display: block;
    animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn-close {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-primary);
}

.tech-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-f);
    background: rgba(0, 229, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.radar-info-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.tech-meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.tech-meta-row .meta-label {
    color: var(--text-muted);
}

.tech-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tech-action-card {
    background: rgba(255, 255, 255, 0.02);
    border-right: 3px solid var(--color-f);
    padding: 16px;
    border-radius: 4px 12px 12px 4px;
}

.tech-action-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tech-action-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CLA SECTION STYLING */
.cla-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
    margin-top: 24px;
    width: 100%;
}

.pyramid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px 0 16px;
    overflow: visible;
}

.pyramid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: none;
    width: min(100%, 430px);
    max-width: 100%;
    margin: 0 auto;
}

.pyramid-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-size: clamp(0.78rem, 2.4vw, 1rem);
    font-weight: 500;
    line-height: 1.35;
    opacity: 1;
    min-height: 48px;
    height: auto;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: border-color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.layer-1 { width: 58%; background: rgba(0, 229, 255, 0.15); border-color: rgba(0, 229, 255, 0.3); z-index: 10; }
.layer-2 { width: 72%; background: rgba(76, 175, 80, 0.15); border-color: rgba(76, 175, 80, 0.3); z-index: 9; }
.layer-3 { width: 86%; background: rgba(255, 170, 0, 0.15); border-color: rgba(255, 170, 0, 0.3); z-index: 8; }
.layer-4 { width: 100%; background: rgba(255, 0, 127, 0.15); border-color: rgba(255, 0, 127, 0.3); z-index: 7; }

.layer-num {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.85;
}

.layer-name {
    flex: 1 1 auto;
    min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .pyramid-layer:hover {
        transform: translateY(-2px);
    }

    .pyramid-layer.active {
        transform: translateY(-3px);
    }
}

.layer-1.active { border-color: var(--color-f); box-shadow: var(--glow-f), 0 10px 28px rgba(0, 0, 0, 0.45); background: rgba(0, 229, 255, 0.3); color: var(--text-primary); }
.layer-2.active { border-color: #4caf50; box-shadow: 0 0 20px rgba(76, 175, 80, 0.4), 0 10px 28px rgba(0, 0, 0, 0.45); background: rgba(76, 175, 80, 0.3); color: var(--text-primary); }
.layer-3.active { border-color: var(--color-cla); box-shadow: var(--glow-cla), 0 10px 28px rgba(0, 0, 0, 0.45); background: rgba(255, 170, 0, 0.3); color: var(--text-primary); }
.layer-4.active { border-color: var(--color-i); box-shadow: var(--glow-i), 0 10px 28px rgba(0, 0, 0, 0.45); background: rgba(255, 0, 127, 0.3); color: var(--text-primary); }

.cla-info-card {
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cla-layer-detail {
    display: none;
}

.cla-layer-detail.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.cla-detail-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 20px;
}

.l1-badge { background: rgba(0, 229, 255, 0.1); color: var(--color-f); border: 1px solid rgba(0, 229, 255, 0.2); }
.l2-badge { background: rgba(76, 175, 80, 0.1); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.2); }
.l3-badge { background: rgba(255, 170, 0, 0.1); color: var(--color-cla); border: 1px solid rgba(255, 170, 0, 0.2); }
.l4-badge { background: rgba(255, 0, 127, 0.1); color: var(--color-i); border: 1px solid rgba(255, 0, 127, 0.2); }

.cla-layer-detail h3 {
    font-size: clamp(1.05rem, 3.5vw, 1.5rem);
    margin-bottom: 16px;
    line-height: 1.45;
}

.cla-layer-detail p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.975rem;
    line-height: 1.7;
}

.cla-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cla-meta-box {
    background: rgba(255, 255, 255, 0.01);
    border-right: 3px solid var(--color-cla);
    padding: 12px 16px;
    border-radius: 4px 8px 8px 4px;
}

#cla-detail-litany .cla-meta-box { border-color: var(--color-f); }
#cla-detail-systemic .cla-meta-box { border-color: #4caf50; }
#cla-detail-worldview .cla-meta-box { border-color: var(--color-cla); }
#cla-detail-myth .cla-meta-box { border-color: var(--color-i); }

.cla-meta-box strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.cla-meta-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* CLA CASE STUDIES STYLING */
.cases-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.case-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 0.925rem;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.case-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--card-hover-border);
}

.case-tab.active {
    background: rgba(255, 170, 0, 0.08);
    color: var(--color-cla);
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: var(--glow-cla);
}

.case-content-display {
    min-height: 400px;
}

.case-rendered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.case-level-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    padding-top: 48px;
}

.case-level-card:hover {
    transform: translateY(-5px);
}

.case-level-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.c-l1 { border-top: 3px solid var(--color-f); }
.c-l1 .case-level-num { background: rgba(0, 229, 255, 0.1); color: var(--color-f); }

.c-l2 { border-top: 3px solid #4caf50; }
.c-l2 .case-level-num { background: rgba(76, 175, 80, 0.1); color: #4caf50; }

.c-l3 { border-top: 3px solid var(--color-cla); }
.c-l3 .case-level-num { background: rgba(255, 170, 0, 0.1); color: var(--color-cla); }

.c-l4 { border-top: 3px solid var(--color-i); }
.c-l4 .case-level-num { background: rgba(255, 0, 127, 0.1); color: var(--color-i); }

.case-level-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.case-level-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CLA WORKSPACE STYLING */
.workspace-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.workspace-controls h3 {
    font-size: 1.35rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.input-group, .step-input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label, .step-input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group select, .input-group input, .step-input-group textarea {
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: var(--font-fa);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group select:focus, .input-group input:focus, .step-input-group textarea:focus {
    border-color: var(--color-cla);
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.2);
}

.rendered-cla-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 170, 0, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glow-cla);
    position: sticky;
    top: 100px;
}

.card-render-header {
    margin-bottom: 24px;
}

.preview-tag {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--color-cla);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.rendered-cla-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.divider {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cla), var(--color-i));
    border-radius: 2px;
}

.render-layers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.render-layer-box {
    background: rgba(255, 255, 255, 0.01);
    border-right: 3px solid var(--color-cla);
    padding: 12px 16px;
    border-radius: 4px 8px 8px 4px;
}

.render-layer-box .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.render-layer-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.r-l1 { border-color: var(--color-f); }
.r-l1 .lbl { color: var(--color-f); }

.r-l2 { border-color: #4caf50; }
.r-l2 .lbl { color: #4caf50; }

.r-l3 { border-color: var(--color-cla); }
.r-l3 .lbl { color: var(--color-cla); }

.r-l4 { border-color: var(--color-i); }
.r-l4 .lbl { color: var(--color-i); }

.card-render-footer {
    border-top: 1px dashed var(--card-border);
    padding-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   NEW FUTURES WHEEL SECTION STYLING
   ========================================================================== */
.wheel-interactive-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    min-width: 0;
}

/* Demo mode: hint → chart → detail (stacked — no sidebar overlap) */
.wheel-interactive-container:not(.workshop-layout) .wheel-viz-column {
    order: 2;
    width: 100%;
}

.wheel-interactive-container:not(.workshop-layout) .wheel-sidebar {
    order: 1;
    min-height: 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 51, 0, 0.04);
    border: 1px solid rgba(255, 51, 0, 0.14);
}

.wheel-interactive-container:not(.workshop-layout).wheel-has-selection .wheel-sidebar {
    order: 3;
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.18);
}

.wheel-interactive-container:not(.workshop-layout) .wheel-sidebar-default h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.wheel-interactive-container:not(.workshop-layout) .wheel-sidebar-default p {
    font-size: 0.88rem;
}

.wheel-interactive-container:not(.workshop-layout) .wheel-pulse-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
}

.wheel-interactive-container.workshop-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 32px;
    align-items: start;
}

.wheel-viz-column {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Mode tabs */
.wheel-mode-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wheel-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.wheel-mode-btn:hover {
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--text-primary);
}

.wheel-mode-btn.active {
    background: rgba(255, 51, 0, 0.1);
    border-color: rgba(255, 51, 0, 0.45);
    color: var(--text-primary);
    box-shadow: var(--glow-wheel-red);
}

/* Workshop panel */
.wheel-workshop-panel[hidden] {
    display: none !important;
}

.wheel-workshop-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 620px;
    overflow-y: auto;
    padding-inline-end: 4px;
}

.wheel-workshop-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.wheel-workshop-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ws-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-f);
}

.ws-field input,
.ws-branch-card input,
.ws-o3-title {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}

.ws-field input:focus,
.ws-branch-card input:focus {
    outline: none;
    border-color: var(--color-f);
}

.ws-branches-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

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

.ws-branch-card {
    padding: 14px !important;
    border-color: rgba(0, 229, 255, 0.15) !important;
}

.ws-branch-head,
.ws-o2-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ws-branch-num {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-f);
}

.ws-o1-title { margin-bottom: 8px; }

.ws-o2-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    padding-inline-start: 10px;
    border-inline-start: 2px solid rgba(124, 77, 255, 0.3);
}

.ws-o2-row {
    padding: 10px;
    border-radius: 8px;
    background: rgba(124, 77, 255, 0.04);
    border: 1px solid rgba(124, 77, 255, 0.12);
}

.ws-o2-head span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-t);
}

.ws-o3-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    padding-inline-start: 8px;
    border-inline-start: 2px solid rgba(255, 0, 127, 0.25);
}

.ws-o3-title {
    font-size: 0.8rem !important;
}

.ws-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.ws-remove-btn:hover { color: var(--color-wheel-red); }

.ws-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-ghost-sm:hover {
    border-color: var(--color-f);
    color: var(--color-f);
}

/* Cascade visualization */
.wheel-cascade-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    padding-bottom: 12px;
}

.wheel-cascade-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.wheel-cascade {
    width: max-content;
    min-width: 100%;
}

.cascade-grid {
    display: grid;
    grid-template-columns: minmax(112px, 128px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-width: 0;
}

.cascade-col-hub {
    display: flex;
    align-items: center;
    padding-inline-end: 0;
    min-width: 0;
}

.cascade-hub-card {
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 51, 0, 0.25), rgba(58, 11, 0, 0.9));
    border: 2px solid var(--color-wheel-red);
    box-shadow: var(--glow-wheel-red);
    text-align: center;
}

.cascade-hub-tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 200, 180, 0.9);
    margin-bottom: 8px;
}

.cascade-hub-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
}

.cascade-hub-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 6px 0 0;
    line-height: 1.4;
}

.cascade-col-body {
    min-width: 0;
}

.cascade-header-row {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) 20px minmax(104px, 1fr) 20px minmax(104px, 1fr);
    gap: 0;
    padding: 0 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cascade-header-row span:nth-child(1) { color: var(--color-f); }
.cascade-header-row span:nth-child(3) { color: var(--color-t); }
.cascade-header-row span:nth-child(5) { color: var(--color-i); }

.cascade-lanes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cascade-lane {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) 20px minmax(104px, 1fr) 20px minmax(104px, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.25s, border-color 0.25s;
}

.cascade-lane.active {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.25);
    opacity: 1;
}

.cascade-lanes.has-selection .cascade-lane:not(.active) {
    opacity: 0.55;
}

.cascade-lane > .cascade-clickable,
.cascade-lane > .cascade-node.order-1 {
    align-self: center;
}

.cascade-lane > .cascade-connector {
    align-self: center;
}

.cascade-chain {
    grid-column: 3 / 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cascade-chain-row {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) 20px minmax(104px, 1fr);
    gap: 0;
    align-items: center;
}

.cascade-node {
    padding: 10px 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.35;
}

.cascade-clickable {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cascade-clickable:hover {
    transform: translateY(-2px);
}

.cascade-order {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    opacity: 0.85;
}

.cascade-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.order-1.cascade-node,
.order-1.cascade-clickable {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--color-f);
}

.order-1 .cascade-order { color: var(--color-f); }

.cascade-lane.active .order-1 {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--color-f);
    box-shadow: var(--glow-f);
}

.order-2.cascade-node {
    background: rgba(124, 77, 255, 0.08);
    border: 1px solid rgba(124, 77, 255, 0.35);
}

.order-2 .cascade-order { color: var(--color-t); }

.order-3.cascade-node {
    background: rgba(255, 0, 127, 0.06);
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.order-3 .cascade-order { color: var(--color-i); }

.cascade-n3-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cascade-connector {
    position: relative;
    align-self: center;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(0,229,255,0.5));
}

html[dir="rtl"] .cascade-connector {
    background: linear-gradient(270deg, rgba(255,255,255,0.15), rgba(0,229,255,0.5));
}

.cascade-connector-sm {
    width: 20px;
}

.cascade-connector::after {
    content: '';
    position: absolute;
    inset-inline-end: -2px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-inline-start-color: rgba(0, 229, 255, 0.6);
}

.cascade-empty-row,
.cascade-empty {
    opacity: 0.4;
}

.cascade-empty-msg {
    font-size: 0.78rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 8px;
}

/* Legacy radial nodes — kept for reference pages */

.wheel-visualizer-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing central hub - Climate change crisis */
.wheel-center-hub {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-wheel-red) 0%, #3a0b00 100%);
    border: 2px solid var(--color-wheel-red);
    box-shadow: var(--glow-wheel-red);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    z-index: 10;
    position: relative;
    animation: breatheHub 4s infinite alternate ease-in-out;
}

@keyframes breatheHub {
    from { transform: scale(0.97); box-shadow: 0 0 15px rgba(255, 51, 0, 0.4); }
    to { transform: scale(1.03); box-shadow: 0 0 35px rgba(255, 51, 0, 0.8); }
}

.hub-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hub-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Outer Consequence Nodes */
.wheel-node {
    position: absolute;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 9;
    text-align: center;
    min-width: 180px;
    transition: all var(--transition-normal);
}

.w-order {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-f);
    display: block;
    margin-bottom: 2px;
}

.w-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Position nodes radially — JS handles layout; reset legacy static positions */
.w-node-drought,
.w-node-food,
.w-node-dust,
.w-node-heat {
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
}

.w-node-drought:hover, .w-node-drought.active-node { transform: translate(-50%, -50%) scale(1.05); }

/* Node Hover Actions */
.wheel-node:hover, .wheel-node.active-node {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--color-f);
    box-shadow: var(--glow-f);
    transform: translate(-50%, -50%) scale(1.05);
}
.wheel-sidebar {
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wheel-sidebar-default {
    text-align: center;
    display: none;
}

.wheel-sidebar-default.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.wheel-pulse-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 51, 0, 0.05);
    border: 1px solid rgba(255, 51, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-wheel-red);
    animation: pulseWheelIcon 2.5s infinite;
}

@keyframes pulseWheelIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 0, 0.2); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 51, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 0, 0); }
}

.wheel-sidebar-default h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.wheel-sidebar-default p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.wheel-sidebar-detail {
    display: none;
    position: relative;
}

.wheel-sidebar-detail.active {
    display: block;
    animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wheel-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-f);
    background: rgba(0, 229, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.wheel-sidebar-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.wheel-chain-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.wheel-chain-card {
    background: rgba(255, 255, 255, 0.01);
    padding: 16px;
    border-radius: 4px 12px 12px 4px;
    border-right: 3px solid var(--color-cla);
}

.w-c2 {
    border-color: var(--color-t);
}

.w-c3 {
    border-color: var(--color-i);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.05);
}

.lbl-order {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.w-c2 .lbl-order { color: var(--color-t); }
.w-c3 .lbl-order { color: var(--color-i); }

.wheel-chain-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Accordion Section */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
    cursor: pointer;
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.accordion-num {
    font-size: 1.1rem;
    color: var(--color-f);
    opacity: 0.7;
    margin-left: 20px;
}

.accordion-trigger h3 {
    font-size: 1.2rem;
    font-weight: 500;
    flex-grow: 1;
    transition: color var(--transition-fast);
}

.accordion-icon {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.accordion-item:hover .accordion-trigger h3 {
    color: var(--color-f);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 10px 0 16px;
    line-height: 1.7;
}

.accordion-content .solution {
    border-top: 1px dashed var(--card-border);
    padding-top: 12px;
    color: var(--text-primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-trigger h3 {
    color: var(--color-f);
}

/* Footer Section Styling */
.main-footer {
    background: #04060c;
    border-top: 1px solid var(--card-border);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-profile {
    width: 450px;
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-f);
}

.profile-title h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.profile-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-links {
    display: flex;
    gap: 12px;
}

.profile-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.profile-link-btn:not(.btn-outline) {
    background: var(--color-f);
    color: #000;
}

.profile-link-btn:not(.btn-outline):hover {
    box-shadow: var(--glow-f);
}

.profile-link-btn.btn-outline {
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.profile-link-btn.btn-outline:hover {
    border-color: var(--card-hover-border);
    background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsiveness overrides */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        padding-top: 140px;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .radar-interactive-container, .cla-grid, .workspace-grid,
    .wheel-interactive-container.workshop-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .wheel-interactive-container.workshop-layout {
        display: flex;
        flex-direction: column;
    }

    #cla-pyramid {
        overflow-x: clip;
    }

    .cla-info-card {
        padding: clamp(20px, 4vw, 28px);
    }

    .case-rendered-grid {
        grid-template-columns: 1fr;
    }

    .case-content-display {
        min-height: 0;
    }
    
    .rendered-cla-card {
        position: relative;
        top: 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-profile {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 16px;
    }
    
    .main-header {
        padding: 16px 24px;
    }
    
    .main-header.scrolled {
        padding: 10px 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .comparison-grid, .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .formula-display {
        flex-direction: column;
        gap: 16px;
    }
    
    .formula-operator {
        transform: rotate(90deg);
    }
    
    .results-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-wrapper {
        width: 280px;
        height: 280px;
    }
}

/* CLA Category Tabs */
.category-tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cat-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.cat-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 170, 0, 0.3);
    color: var(--text-primary);
}

.cat-tab.active {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15) 0%, rgba(255, 0, 127, 0.05) 100%);
    color: var(--color-cla);
    border-color: var(--color-cla);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
}

/* Futures Wheel Model Tabs */
.models-tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.model-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 0.925rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.model-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-hover-border);
    color: var(--text-primary);
}

.model-tab.active {
    background: rgba(0, 229, 255, 0.08);
    color: var(--color-f);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--glow-f);
}

.model-content-card {
    min-height: 250px;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.model-content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-f);
}

.model-content-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.model-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.model-detail-box {
    background: rgba(255, 255, 255, 0.01);
    border-right: 3px solid var(--color-f);
    padding: 12px 16px;
    border-radius: 4px 8px 8px 4px;
}

.model-detail-box strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.model-detail-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Futures Wheel Visualizer Nodes Positioning and Line Styling */
.wheel-node-group {
    position: absolute;
    width: 100%;
    height: 100%;
}

.w-node-1st {
    z-index: 10;
}

.w-node-2nd {
    background: rgba(124, 77, 255, 0.05);
    border: 1px solid rgba(124, 77, 255, 0.25);
    min-width: 140px;
    max-width: 170px;
    font-size: 0.825rem;
    z-index: 8;
}

.w-node-2nd .w-order {
    color: var(--color-t) !important;
}

.w-node-2nd:hover {
    background: rgba(124, 77, 255, 0.15);
    border-color: var(--color-t);
    box-shadow: var(--glow-t);
    transform: scale(1.05) translate(-50%, -50%) !important;
}

.w-node-3rd {
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.25);
    min-width: 130px;
    max-width: 160px;
    font-size: 0.8rem;
    z-index: 7;
}

.w-node-3rd .w-order {
    color: var(--color-i) !important;
}

.w-node-3rd:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--color-i);
    box-shadow: var(--glow-i);
    transform: scale(1.05) translate(-50%, -50%) !important;
}

/* Active Node Overrides */
.wheel-node.active-node {
    background: rgba(0, 229, 255, 0.2) !important;
    border-color: var(--color-f) !important;
    box-shadow: var(--glow-f) !important;
}

/* SVG Line details */
#wheel-lines-svg {
    pointer-events: none;
    overflow: visible;
}

.wheel-svg-line {
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.line-1st {
    stroke: rgba(255, 255, 255, 0.08);
}

.line-1st.active-line {
    stroke: var(--color-f);
    stroke-width: 3;
    filter: drop-shadow(0 0 4px var(--color-f));
}

.line-1st.dimmed-line {
    stroke: rgba(255, 255, 255, 0.02);
}

.line-2nd {
    stroke: var(--color-t);
    stroke-dasharray: 4 4;
    filter: drop-shadow(0 0 3px var(--color-t));
    animation: dashWheelFlow 15s linear infinite;
}

.line-3rd {
    stroke: var(--color-i);
    stroke-dasharray: 4 4;
    filter: drop-shadow(0 0 3px var(--color-i));
    animation: dashWheelFlow 15s linear infinite;
}

@keyframes dashWheelFlow {
    to {
        stroke-dashoffset: -100;
    }
}

/* Homepage Hub Cards */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.hub-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-category {
    margin-bottom: 56px;
}

.catalog-category-header h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.catalog-category-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 6px;
}

.catalog-method-card {
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.catalog-method-card--static {
    cursor: default;
}

.catalog-method-card--static:hover {
    transform: none;
}

.catalog-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid currentColor;
    margin-bottom: 10px;
}

.catalog-status-badge--interactive {
    color: var(--color-f);
}

.catalog-status-badge--lesson {
    color: var(--color-cla);
}

.catalog-status-badge--catalog {
    color: var(--text-muted);
    border-color: var(--card-border);
}

.catalog-method-founder {
    font-size: 0.78rem;
    color: var(--color-f);
    margin-bottom: 6px;
}

.catalog-method-media {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-method-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-method-media--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--method-color, var(--color-f));
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.catalog-method-media--icon i,
.catalog-method-media--icon svg {
    width: 42px;
    height: 42px;
    opacity: 0.85;
}

.catalog-method-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-8px);
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* Card Specific Glows & Accents */
.card-fitness:hover {
    border-color: var(--color-f);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15), var(--glow-f);
}
.card-fitness .card-icon {
    color: var(--color-f);
    background: rgba(0, 229, 255, 0.05);
}

.card-cla:hover {
    border-color: var(--color-cla);
    box-shadow: 0 10px 30px rgba(255, 170, 0, 0.15), var(--glow-cla);
}
.card-cla .card-icon {
    color: var(--color-cla);
    background: rgba(255, 170, 0, 0.05);
}

.card-wheel:hover {
    border-color: var(--color-wheel-red);
    box-shadow: 0 10px 30px rgba(255, 51, 0, 0.15), var(--glow-wheel-red);
}
.card-wheel .card-icon {
    color: var(--color-wheel-red);
    background: rgba(255, 51, 0, 0.05);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform var(--transition-normal);
}

.hub-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.hub-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.hub-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.hub-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: auto;
    text-underline-offset: 5px;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--transition-fast), transform var(--transition-fast);
}

.hub-card:hover .hub-card-link {
    text-decoration-color: var(--color-f);
    transform: translateX(-3px); /* For RTL */
}

/* Scholarly citation block style */
.citation-box {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 3px solid var(--text-muted);
    border-radius: 4px 8px 8px 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.citation-box a {
    color: var(--color-f);
    text-decoration: none;
    transition: text-shadow var(--transition-fast);
}

.citation-box a:hover {
    text-shadow: var(--glow-f);
}

/* Backcasting Custom Styles */
.card-backcast:hover {
    border-color: var(--color-backcast);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15), var(--glow-backcast);
}
.card-backcast .card-icon {
    color: var(--color-backcast);
    background: rgba(0, 255, 136, 0.05);
}

.section-tag-bc {
    font-size: 0.85rem;
    color: var(--color-backcast);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

/* Timeline */
.bc-timeline-wrapper {
    position: relative;
    padding: 40px 0;
    margin: 30px 0;
}
.bc-timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}
.bc-timeline-progress {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 0%; /* Dynamic */
    height: 4px;
    background: linear-gradient(90deg, var(--color-backcast), var(--color-f));
    box-shadow: var(--glow-backcast);
    transform: translateY(-50%);
    z-index: 2;
    transition: width var(--transition-normal);
}
.bc-timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    padding: 0 5%;
}
.bc-timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}
.bc-node-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark-accent);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
}
.bc-timeline-node:hover .bc-node-dot,
.bc-timeline-node.active .bc-node-dot {
    border-color: var(--color-backcast);
    background: var(--color-backcast);
    box-shadow: var(--glow-backcast);
}
.bc-node-label {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}
.bc-timeline-node.active .bc-node-label {
    color: var(--text-primary);
}
.bc-node-year {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.bc-timeline-node.active .bc-node-year {
    color: var(--color-backcast);
}

/* Details Box */
.bc-details-card {
    margin-top: 30px;
    min-height: 200px;
}
.bc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .bc-details-grid {
        grid-template-columns: 1fr;
    }
}
.bc-detail-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 16px;
    transition: border-color var(--transition-normal);
}
.bc-detail-box:hover {
    border-color: rgba(0, 255, 136, 0.15);
}
.bc-detail-box strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.bc-detail-box strong i {
    color: var(--color-backcast);
    width: 18px;
    height: 18px;
}
.bc-detail-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Comparison Table */
.bc-comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}
.bc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.9rem;
}
.bc-table th, .bc-table td {
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
}
.bc-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-weight: 700;
}
.bc-table td strong {
    color: var(--text-primary);
}
.bc-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}
.bc-table td:nth-child(2) {
    color: var(--color-f);
}
.bc-table td:nth-child(3) {
    color: var(--color-backcast);
}

/* Canvas Preview */
.rendered-bc-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color var(--transition-normal);
}
.bc-render-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    position: relative;
    padding-right: 20px;
}
.bc-render-timeline::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255,255,255,0.05);
}
.bc-render-step {
    position: relative;
    padding-right: 20px;
}
.bc-render-step::before {
    content: '';
    position: absolute;
    right: -19px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-backcast);
    box-shadow: var(--glow-backcast);
}
.bc-render-step:nth-child(even)::before {
    background: var(--color-f);
    box-shadow: var(--glow-f);
}
.bc-render-step h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.bc-render-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Integration Flow Section */
.integration-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}
.integration-step {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}
.integration-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
}
.integration-step .step-num {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-f), var(--color-t));
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3);
}
.integration-step h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    margin-top: 5px;
}
.integration-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.integration-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    align-self: center;
}
@media (max-width: 992px) {
    .integration-flow {
        flex-direction: column;
        gap: 30px;
    }
    .integration-arrow {
        transform: rotate(-90deg);
        margin: -10px 0;
    }
}

/* ==========================================================================
   i18n, Mobile Nav, Visual Enhancements
   ========================================================================== */

body.lang-en {
    font-family: var(--font-en);
}

html[lang="en"] body {
    font-family: var(--font-en);
}

html[lang="en"] .hero-subtitle,
html[lang="en"] .section-header p,
html[lang="en"] .hub-card p,
html[lang="en"] .nav-links a {
    font-family: var(--font-en);
}

body.lang-en .hero-subtitle,
body.lang-en .section-header p,
body.lang-en .hub-card p,
body.lang-en .nav-links a {
    font-family: var(--font-en);
}

html[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .nav-links a.active::after,
html[dir="ltr"] .nav-links a:hover::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .hub-card:hover .hub-card-link {
    transform: translateX(3px);
}

html[dir="ltr"] .integration-arrow i {
    transform: scaleX(-1);
}

html[dir="ltr"] .glass-card[style*="border-right"] {
    border-right: none !important;
    border-left: inherit;
}

html[dir="ltr"] .workspace-grid {
    direction: ltr;
}

html[dir="ltr"] .cla-meta-box,
html[dir="ltr"] .render-layer-box,
html[dir="ltr"] .model-detail-box,
html[dir="ltr"] .wheel-chain-card,
html[dir="ltr"] .tech-action-card,
html[dir="ltr"] .citation-box {
    border-right: none;
    border-left: 3px solid var(--color-cla);
}

html[dir="ltr"] .bc-table {
    text-align: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 44px;
}

.lang-toggle-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--color-f);
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    border-color: var(--card-hover-border);
    background: rgba(255, 255, 255, 0.08);
}

/* Visual containers — fix clipped shapes */
.visual-scroll-wrap {
    position: relative;
    width: 100%;
}

.visual-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.wheel-visualizer-wrapper {
    min-height: 520px;
    height: auto;
    overflow: visible;
    padding: 24px;
}

#wheel-lines-svg {
    overflow: visible;
}

.wheel-center-hub {
    width: 140px;
    height: 140px;
    box-shadow: 0 0 40px rgba(255, 51, 0, 0.6), inset 0 0 30px rgba(255, 51, 0, 0.2);
}

.wheel-node {
    background: rgba(7, 10, 19, 0.85);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.w-node-2nd {
    background: rgba(7, 10, 19, 0.9) !important;
    border-width: 2px;
}

.w-node-3rd {
    background: rgba(7, 10, 19, 0.9) !important;
    border-width: 2px;
}

.line-1st {
    stroke: rgba(0, 229, 255, 0.25);
    stroke-width: 2;
}

.line-1st.dimmed-line {
    stroke: rgba(255, 255, 255, 0.12);
}

.line-1st.active-line {
    stroke: var(--color-f);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px var(--color-f));
}

.line-2nd {
    stroke: var(--color-t);
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
    opacity: 0.9;
}

.line-3rd {
    stroke: var(--color-i);
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
    opacity: 0.9;
}

/* Radar — stronger visibility */
.radar-ring {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 2;
}

.radar-axis {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
}

.radar-ring-label {
    fill: var(--text-secondary);
    font-size: 11px;
}

.radar-quadrant-label {
    fill: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.radar-dot {
    r: 10;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
}

.radar-dot:hover,
.radar-dot.active-dot {
    r: 14;
    stroke-width: 3;
    stroke: #fff;
}

.radar-plot-wrapper {
    min-height: 320px;
    max-width: 480px;
    margin: 0 auto;
}

/* Method depth sections */
.method-depth-section {
    margin-top: 48px;
}

.depth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.depth-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
}

.depth-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
}

.depth-card .depth-num {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-f);
    margin-bottom: 8px;
}

.depth-card h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.depth-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.bilingual-block [data-lang-block] {
    display: none;
}

.bilingual-block.lang-fa [data-lang-block="fa"],
.bilingual-block.lang-en [data-lang-block="en"] {
    display: block;
}

@media (max-width: 992px) {
    .main-header {
        padding: 14px 20px;
        gap: 12px;
        grid-template-columns: 1fr auto;
    }

    .main-header.scrolled {
        padding: 10px 20px;
    }

    .header-actions .btn-primary-sm {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        flex-direction: column;
        background: rgba(7, 10, 19, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--card-border);
        padding: 16px 24px 24px;
        gap: 4px;
        z-index: 999;
    }

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

    .nav-links a {
        padding: 12px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .main-header .logo-link,
    .main-header > .logo,
    html[dir="rtl"] .main-header .logo-link,
    html[dir="rtl"] .main-header > .logo {
        grid-column: 1;
        justify-self: start;
    }

    .main-header .header-actions,
    html[dir="rtl"] .main-header .header-actions {
        grid-column: 2;
        justify-self: end;
    }

    .main-header .nav-links,
    html[dir="rtl"] .main-header .nav-links {
        grid-column: 1 / -1;
    }

    .article-body,
    .container.article-body {
        --article-top-gap: 32px;
        padding: calc(var(--sfh-header-offset, 110px) + var(--article-top-gap)) 16px 64px;
    }

    .article-hero {
        margin-bottom: 18px;
    }

    .article-content .article-cover-card {
        margin-bottom: 20px;
    }

    .article-hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .article-list-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-list-media {
        min-height: 210px;
    }

    .founder-portrait-card {
        max-width: 520px;
        width: 100%;
    }

    .hero-section {
        padding: 120px 24px 40px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .sphere-container {
        width: 260px;
        height: 260px;
    }

    .orbit-3 {
        width: 260px;
        height: 260px;
    }

    .orbit-2 {
        width: 200px;
        height: 200px;
    }

    .orbit-1 {
        width: 140px;
        height: 140px;
    }

    .wheel-visualizer-wrapper {
        min-height: 420px;
        padding: 16px;
    }

    .category-tabs-container,
    .cases-tabs-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 6px;
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .cat-tab,
    .case-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.84rem;
        padding: 9px 14px;
    }

    .pyramid-wrapper {
        width: min(100%, 380px);
        gap: 8px;
    }

    .pyramid-layer {
        min-height: 52px;
        padding: 12px 10px;
        font-size: 0.84rem;
        border-width: 2px;
    }

    .layer-1 { width: 64%; }
    .layer-2 { width: 78%; }
    .layer-3 { width: 92%; }
    .layer-4 { width: 100%; }

    .cla-detail-badge {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .cla-layer-detail p,
    .cla-meta-box p {
        font-size: 0.84rem;
    }

    .rendered-cla-card {
        padding: 20px;
    }

    .wheel-interactive-container.glass-card {
        padding: 20px 16px;
    }

    .hub-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 48px 16px;
    }

    .main-header {
        padding: 12px 14px;
    }

    .logo-text {
        font-size: 0.95rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-toggle-btn,
    .mobile-nav-toggle {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .article-body,
    .container.article-body {
        --article-top-gap: 28px;
        padding: calc(var(--sfh-header-offset, 110px) + var(--article-top-gap)) 16px 56px;
    }

    .article-list-media {
        min-height: 180px;
    }

    .article-hero h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .article-hero p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .founder-portrait-card {
        border-radius: 12px;
    }

    .founder-portrait-card figcaption {
        padding: 12px 14px 14px;
    }

    .article-content {
        margin-top: 12px;
    }

    .article-content.glass-card > div[data-i18n-html] {
        padding: 4px 16px 20px;
    }

    .article-cover-card img {
        max-height: 170px;
    }

    .article-content h2 {
        font-size: 1.14rem;
        margin: 28px 0 10px;
    }

    .article-content p {
        font-size: 0.96rem;
        line-height: 1.9;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .wheel-cascade-scroll {
        margin: 0 -8px;
        padding: 0 8px 8px;
    }

    .cascade-grid {
        min-width: 480px;
    }

    .cascade-col-hub {
        flex: 0 0 120px;
    }

    .cascade-hub-title {
        font-size: 0.8rem;
    }

    .formula-letter-box {
        width: 110px;
        height: 110px;
    }

    .letter {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 20px;
    }

    .integration-step {
        padding: 20px 16px;
    }

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

    .pyramid-wrapper {
        width: 100%;
    }

    .pyramid-layer {
        min-height: 54px;
        font-size: 0.78rem;
        padding: 10px 8px;
    }

    .layer-1 { width: 68%; }
    .layer-2 { width: 80%; }
    .layer-3 { width: 94%; }

    #cla-pyramid .section-header h2 {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .cla-meta-grid {
        gap: 12px;
    }

    .workspace-controls h3 {
        font-size: 1.15rem;
    }
}

/* ── Lesson / classroom module ── */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.founder-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    align-items: flex-start;
}

.founder-photo-wrap {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--founder-accent, var(--color-f));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.founder-name {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 4px;
}

.founder-role {
    color: var(--founder-accent, var(--color-f));
    font-size: 0.78rem;
    margin: 0 0 8px;
    line-height: 1.4;
}

.founder-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.method-history-box .history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.method-history-box .history-prose,
.method-history-box .method-prose,
.method-history-box .method-prose-p,
.method-history-box .history-title {
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
}

.method-history-box {
    padding: 24px;
    margin-bottom: 32px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.history-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.history-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.history-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.lesson-section {
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.lesson-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    justify-content: center;
}

.lesson-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-prereq-block,
.lesson-assessment-block {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-prereq,
.lesson-assessment-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 8px 0 0;
}

.lesson-meta-chip i {
    width: 16px;
    height: 16px;
    color: var(--color-f);
}

.lesson-diagram-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.lesson-diagram {
    max-width: 100%;
    max-height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.lesson-grid--bottom {
    margin-bottom: 0;
}

.lesson-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0 0 16px;
}

.lesson-block-title i {
    width: 20px;
    height: 20px;
    color: var(--color-t);
}

.lesson-objectives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-objectives li {
    position: relative;
    padding: 10px 12px 10px 36px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-inline-start: 3px solid var(--color-f);
}

.lesson-objectives li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 12px;
    color: var(--color-f);
    font-weight: 700;
}

.lesson-outline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-outline-item {
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

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

.lesson-outline-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.lesson-outline-step {
    font-weight: 700;
    color: var(--color-f);
    font-size: 0.85rem;
}

.lesson-outline-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.lesson-outline-title {
    color: var(--text-primary);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}

.lesson-outline-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.lesson-readings {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-readings li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.reading-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-cla);
    background: rgba(124, 77, 255, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    margin-inline-end: 8px;
}

.lesson-block--assignment {
    background: rgba(0, 229, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.lesson-assignment {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin: 0;
}

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

    .founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Type-2 Fuzzy page + workshop */
.method-history-box--plain {
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.type2-page {
    scroll-padding-top: calc(var(--sfh-header-offset, 110px) + 16px);
}

.type2-page .type2-hero {
    --page-top-gap: 32px;
    padding: calc(var(--sfh-header-offset, 110px) + var(--page-top-gap)) 24px 24px;
    text-align: center;
}

.type2-hero-tag {
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.2);
}

.type2-hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin: 12px 0;
}

.type2-hero-sub {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.05rem;
}

.type2-section {
    padding-bottom: 40px;
}

.type2-theory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.type2-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.type2-muted {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.type2-compare-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.type2-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.type2-compare-table th,
.type2-compare-table td {
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    text-align: start;
    vertical-align: top;
    line-height: 1.5;
}

.type2-compare-table th {
    background: rgba(0, 229, 255, 0.06);
    color: var(--text-primary);
    font-weight: 600;
}

.type2-compare-table td {
    color: var(--text-secondary);
}

.type2-timeline {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type2-timeline li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-timeline-year {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(124, 77, 255, 0.15);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.type2-workflow-block,
.type2-stack-block,
.type2-limits-block,
.type2-memo-block {
    padding: 20px;
}

.type2-workflow,
.type2-stack-list,
.type2-memo-list {
    margin: 0;
    padding-inline-start: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type2-workflow li,
.type2-stack-list li,
.type2-memo-list li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-limits-block p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.type2-tracks-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.type2-track-nav {
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.type2-track-nav-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.type2-track-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type2-track-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.type2-track-tab:hover {
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--text-primary);
}

.type2-track-tab.is-active {
    border-color: rgba(124, 77, 255, 0.55);
    background: rgba(124, 77, 255, 0.15);
    color: var(--text-primary);
}

.type2-track-tab.is-active[data-type2-tab="industry"] {
    border-color: rgba(76, 175, 80, 0.55);
    background: rgba(76, 175, 80, 0.12);
}

.type2-track-panel.is-hidden {
    display: none;
}

.type2-track-heading {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(124, 77, 255, 0.35);
}

.type2-track-heading--industry {
    border-bottom-color: rgba(76, 175, 80, 0.35);
}

.type2-industry-header {
    border-top: 3px solid rgba(76, 175, 80, 0.45);
}

.type2-agenda-block {
    display: inline-block;
    font-size: 0.72rem;
    color: #4caf50;
    margin-bottom: 8px;
    font-weight: 600;
}

.type2-agenda-card h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin: 0 0 8px;
}

.type2-agenda-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.type2-deliver-list,
.type2-pitch-list,
.type2-checklist {
    margin: 12px 0 0;
    padding-inline-start: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type2-deliver-list li,
.type2-pitch-list li,
.type2-checklist li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-industry-deliver {
    padding: 22px;
}

/* ── Type-2 academic / university syllabus ── */
.type2-academic-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.type2-course-header {
    padding: 28px;
}

.type2-course-header h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 10px 0 12px;
}

.type2-course-intro {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.95rem;
    max-width: 820px;
    margin-bottom: 20px;
}

.type2-course-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0;
}

.type2-meta-row {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
}

.type2-meta-row dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-f);
    margin-bottom: 4px;
}

.type2-meta-row dd {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.type2-sessions-block,
.type2-pipeline-block,
.type2-glossary-block,
.type2-homework-block,
.type2-exam-block,
.type2-rubric-block {
    padding: 24px;
}

.type2-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.type2-session-card {
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
}

.type2-session-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.type2-session-num {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(124, 77, 255, 0.2);
    color: #c4b5fd;
    font-weight: 700;
    font-size: 0.9rem;
}

.type2-session-head h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin: 0 0 4px;
    line-height: 1.4;
}

.type2-session-time {
    font-size: 0.75rem;
    color: var(--color-f);
}

.type2-session-topics {
    margin: 0 0 10px;
    padding-inline-start: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-session-activity,
.type2-session-reading {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 6px 0 0;
}

.type2-pipeline {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.type2-pipeline li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.type2-pipeline-step {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type2-pipeline li strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.type2-pipeline li p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-deepdive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.type2-deepdive-card {
    padding: 18px;
}

.type2-deepdive-card h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.type2-deepdive-card p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 8px;
}

.type2-deepdive-note {
    font-size: 0.78rem !important;
    color: #ffaa00 !important;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 170, 0, 0.25);
}

.type2-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.type2-table-block {
    padding: 22px;
    min-width: 0;
}

.type2-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.type2-case-study {
    padding: 18px;
}

.type2-case-study h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.type2-case-study p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}

.type2-case-takeaway {
    color: var(--text-primary) !important;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.type2-glossary {
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.type2-glossary-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.type2-glossary-row dt {
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
}

.type2-glossary-row dd {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.type2-teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.type2-teaching-block {
    padding: 22px;
}

.type2-discussion-list,
.type2-instructor-list,
.type2-exam-list {
    margin: 12px 0 0;
    padding-inline-start: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type2-discussion-list li,
.type2-instructor-list li,
.type2-exam-list li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.type2-exam-list li p {
    margin: 0 0 4px;
    color: var(--text-primary);
}

.type2-exam-hint {
    font-size: 0.75rem;
    color: var(--color-f);
}

.type2-homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.type2-hw-card {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
}

.type2-hw-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.type2-hw-head h4 {
    color: var(--text-primary);
    font-size: 0.88rem;
    margin: 0;
}

.type2-hw-weight {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    white-space: nowrap;
}

.type2-hw-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 8px;
}

.type2-hw-deliver {
    font-size: 0.78rem !important;
}

.type2-rubric-table th,
.type2-rubric-table td {
    font-size: 0.78rem;
}

.type2-theory-copy h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 10px 0 16px;
}

.type2-theory-copy p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.type2-subhead {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 20px 0 10px;
}

.type2-ladder {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.type2-ladder li {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.type2-ladder strong {
    color: var(--color-f);
    margin-inline-end: 6px;
}

.type2-foresight-block {
    padding: 22px;
}

.type2-foresight-block h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 8px 0 14px;
}

.type2-foresight-item {
    margin-bottom: 14px;
}

.type2-foresight-item h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.type2-foresight-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.type2-workshop-shell {
    padding: 32px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    background: linear-gradient(160deg, rgba(0, 229, 255, 0.04) 0%, rgba(124, 77, 255, 0.03) 100%);
}

.type2-workshop-header h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 8px 0;
}

.type2-workshop-header p {
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 680px;
    font-size: 0.92rem;
}

.type2-workshop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
    gap: 24px;
    margin-top: 28px;
    align-items: start;
}

.type2-workshop-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.type2-signal-panel {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.type2-field {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.type2-field-custom {
    margin-top: 0;
}

.type2-signal-or {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 10px 0;
    opacity: 0.7;
}

.type2-select,
.type2-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.type2-select:focus,
.type2-input:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.type2-select option {
    background: #0d1f35;
    color: #fff;
}

.type2-signal-active {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 14px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.type2-signal-active i,
.type2-signal-active svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #00e5ff;
    margin-top: 2px;
}

.type2-experts-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type2-experts-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
    padding-inline: 4px;
}

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

.type2-expert-row {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.type2-expert-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.type2-expert-badge {
    font-size: 0.82rem;
    color: var(--ex-color, var(--color-f));
    font-weight: 700;
}

.type2-expert-values {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-en);
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.type2-band-preview {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
    overflow: hidden;
}

.type2-band-preview-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    opacity: 0.75;
    transition: left 0.12s ease, width 0.12s ease;
}

.type2-slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.type2-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.type2-slider-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.type2-slider-val {
    font-size: 0.75rem;
    color: var(--ex-color, var(--color-f));
    font-family: var(--font-en);
    font-weight: 600;
}

.type2-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    margin-bottom: 4px;
}

.type2-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ex-color, #00e5ff);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
    transition: transform 0.15s;
}

.type2-range::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

.type2-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ex-color, #00e5ff);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

.type2-range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.type2-reset-btn {
    align-self: flex-start;
    margin-top: 4px;
}

.type2-viz-card {
    padding: 20px 22px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    position: sticky;
    top: calc(var(--sfh-header-offset, 110px) + 16px);
}

.type2-viz-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.type2-chart-title {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.type2-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.type2-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.type2-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.type2-legend-agg {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.5), rgba(124, 77, 255, 0.5));
    border: 1px solid #00e5ff;
}

.type2-chart-wrap {
    padding: 8px 4px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 16px;
}

.type2-fou-svg {
    width: 100%;
    height: auto;
    min-height: 180px;
    display: block;
}

.type2-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.type2-stat {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.type2-stat span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.type2-stat strong {
    font-size: 1.35rem;
    color: var(--color-f);
    font-family: var(--font-en);
    font-weight: 700;
}

.type2-verdict {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(124, 77, 255, 0.08);
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.type2-verdict-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.type2-verdict p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.75;
}

.type2-intro-card {
    padding: 28px;
    margin-bottom: 28px;
}

.type2-intro-card h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.type2-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.type2-case-card {
    padding: 24px;
}

.type2-case-card h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.type2-case-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.type2-back-link {
    text-align: center;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .type2-theory-grid,
    .type2-workshop-grid,
    .type2-case-grid,
    .type2-tables-row,
    .type2-teaching-grid {
        grid-template-columns: 1fr;
    }

    .type2-glossary-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .type2-viz-card {
        position: static;
    }

    .type2-workshop-shell {
        padding: 20px 16px;
    }
}

/* ===== Fitness page · industry track + IT2 bridge ===== */
.fitness-page {
    scroll-padding-top: calc(var(--sfh-header-offset, 110px) + 16px);
}

.fitness-page .fitness-hero {
    --page-top-gap: 20px;
    padding: calc(var(--sfh-header-offset, 110px) + var(--page-top-gap)) 24px 12px;
    text-align: start;
}

.fitness-page > .container.fitness-history-wrap {
    padding-top: 0;
    padding-bottom: 8px;
}

.fitness-page .method-history-box {
    margin-bottom: 12px;
}

.fitness-page .method-history-compact {
    margin-bottom: 0;
}

.fitness-page section.container.fitness-section {
    padding-top: 12px;
    padding-bottom: 28px;
}

.fitness-page section.container:not(.fitness-hero):not(.fitness-section) {
    padding-top: 32px;
    padding-bottom: 40px;
}

.method-history-compact {
    margin-bottom: 20px;
}

.history-meta--top {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-founders-inline {
    margin-bottom: 16px;
}

.lesson-founders-inline .founders-grid {
    grid-template-columns: 1fr;
}

.lesson-founders-inline .founder-card {
    width: 100%;
}

.type2-page > .container:has(#method-history),
.fitness-page > .container.fitness-history-wrap {
    padding-top: 0;
}

.fitness-hero-tag {
    background: rgba(0, 229, 255, 0.08);
    color: var(--color-f);
    border-color: rgba(0, 229, 255, 0.2);
}

.fitness-page .fitness-hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin: 12px 0;
}

.fitness-hero-sub {
    max-width: 820px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.05rem;
}

.fitness-page .fitness-section {
    padding-top: 24px;
    padding-bottom: 32px;
}

.fitness-theory-card {
    padding: 32px;
    margin-bottom: 8px;
}

.fitness-industry-section {
    margin-bottom: 24px;
}

.fitness-fuzzy-bridge {
    padding: 32px;
    margin-bottom: 24px;
    border-color: rgba(224, 64, 251, 0.15);
}

.fitness-fuzzy-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.fitness-fuzzy-example {
    padding: 20px;
}

.fitness-fuzzy-example h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.fitness-fuzzy-link-wrap {
    margin-top: 20px;
}

.fitness-depth-card {
    padding: 40px;
}

.fitness-industry-shell .type2-course-intro {
    line-height: 1.75;
}

.fitness-uni-diagram {
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.fitness-uni-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fitness-uni-block {
    padding: 24px;
    margin-bottom: 20px;
}

.fitness-tracks-shell {
    margin-bottom: 8px;
}

.type2-modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.type2-module-card .type2-module-example {
    color: var(--color-f);
    margin-top: 6px;
}

.fitness-bib-category + .fitness-bib-category {
    margin-top: 16px;
}

.fitness-seminar-case {
    padding: 18px;
}

.fitness-uni-notes {
    border-color: rgba(124, 77, 255, 0.15);
}

.fitness-module-shell {
    padding: 1.5rem;
}

.fitness-module-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.fitness-module-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.fitness-module-picker {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 7rem;
    padding: 0.65rem 0.85rem;
    text-align: start;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.fitness-module-picker:hover {
    border-color: rgba(124, 77, 255, 0.35);
    color: var(--text-primary);
}

.fitness-module-picker.is-active {
    background: rgba(124, 77, 255, 0.12);
    border-color: rgba(124, 77, 255, 0.45);
    color: var(--text-primary);
}

.fitness-module-picker-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-t);
}

.fitness-module-picker-label {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.fitness-module-view {
    scroll-margin-top: calc(var(--sfh-header-offset, 88px) + 16px);
    border-top: 1px solid var(--card-border);
    padding-top: 1.25rem;
}

.fitness-module-panel {
    display: none;
}

.fitness-module-panel.is-active {
    display: block;
}

.fitness-module-panel[hidden] {
    display: none !important;
}

.fitness-module-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fitness-module-panel-num {
    flex-shrink: 0;
}

.fitness-module-panel-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
}

.fitness-module-meta {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.fitness-module-meta div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.fitness-module-meta dt {
    color: var(--color-f);
    font-weight: 600;
}

.fitness-module-meta dd {
    color: var(--text-secondary);
    margin: 0;
}

.fitness-module-extra {
    margin-bottom: 1.25rem;
}

.fitness-module-sessions {
    margin-top: 0.75rem;
}

.fitness-module-visual {
    margin: 0 0 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

.fitness-module-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #070a13;
}

.fitness-module-visual figcaption {
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid var(--card-border);
}

.fitness-module-rich {
    margin-bottom: 1.25rem;
}

.fitness-module-case {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-color: rgba(124, 77, 255, 0.2);
}

.fitness-module-deliverable {
    margin-top: 20px;
    margin-bottom: 1.25rem;
    padding: 16px 20px;
    border-right: 3px solid var(--color-f);
    background: rgba(0, 229, 255, 0.04);
    border-radius: 12px;
}

.fitness-deck {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fitness-deck-viewport {
    position: relative;
    min-height: min(72vh, 640px);
    max-height: min(78vh, 720px);
    background: linear-gradient(145deg, rgba(12, 16, 28, 0.95) 0%, rgba(8, 10, 18, 0.98) 100%);
}

.fitness-deck-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

.fitness-deck-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    min-height: min(72vh, 640px);
    max-height: min(78vh, 720px);
}

.fitness-deck-slide-inner {
    height: 100%;
    max-height: min(78vh, 720px);
    overflow-y: auto;
    padding: 2rem 2.25rem 1.5rem;
    scrollbar-width: thin;
    text-align: right;
    direction: rtl;
}

.fitness-deck-slide-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b388ff;
    background: rgba(124, 77, 255, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.fitness-deck-slide-title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.35;
}

.fitness-deck-slide-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.fitness-deck-slide-intro,
.fitness-deck-slide-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: justify;
}

.fitness-deck-slide-body .method-prose-p,
.fitness-deck-slide-intro p {
    margin-bottom: 0.85rem;
}

.fitness-deck-title-layout {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.fitness-deck-title-layout.has-visual {
    grid-template-columns: 1fr minmax(200px, 38%);
}

.fitness-deck-title-visual img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.fitness-deck-title-visual figcaption {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.fitness-deck-readings {
    margin-top: 0.5rem;
}

.fitness-deck-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.35);
}

.fitness-deck-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-fa);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.fitness-deck-btn:hover:not(:disabled) {
    background: rgba(124, 77, 255, 0.15);
    border-color: rgba(124, 77, 255, 0.4);
}

.fitness-deck-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fitness-deck-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.fitness-deck-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.fitness-deck-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.fitness-deck-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.fitness-deck-dot.is-active {
    background: #b388ff;
    transform: scale(1.25);
}

.fitness-module-panel:has(.fitness-deck) .fitness-deck {
    border-radius: 16px;
}

@media (max-width: 768px) {
    .fitness-deck-title-layout.has-visual {
        grid-template-columns: 1fr;
    }

    .fitness-deck-slide-inner {
        padding: 1.25rem 1rem 1rem;
    }

    .fitness-deck-btn span {
        display: none;
    }

    .fitness-deck-viewport,
    .fitness-deck-slide.is-active {
        min-height: min(65vh, 520px);
    }
}

.fitness-lecture-article {
    padding: 28px 32px;
    margin-bottom: 24px;
    text-align: right;
    direction: rtl;
}

.fitness-lecture-article-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.fitness-lecture-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 12px 0 0;
}

.fitness-lecture-section {
    margin-bottom: 32px;
}

.fitness-lecture-section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(124, 77, 255, 0.35);
}

.fitness-lecture-section .method-prose-section p,
.fitness-lecture-section p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 14px;
    text-align: justify;
}

.fitness-lecture-table {
    margin: 20px 0;
}

.fitness-lecture-callout {
    margin: 24px 0;
    padding: 18px 22px;
    border-right: 4px solid var(--color-f);
    background: rgba(0, 229, 255, 0.05);
}

.fitness-lecture-callout h4 {
    font-size: 1rem;
    color: var(--color-f);
    margin: 0 0 10px;
}

.fitness-lecture-assignment {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid rgba(76, 175, 80, 0.3);
}

.fitness-session-timeline {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.fitness-session-timeline summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fitness-lecture-article {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.fitness-lecture-article-head {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.fitness-lecture-lead {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
    text-align: justify;
}

.fitness-lecture-section {
    margin-bottom: 2rem;
}

.fitness-lecture-section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(124, 77, 255, 0.35);
}

.fitness-lecture-section .method-prose-section,
.fitness-lecture-section .method-prose-article p,
.fitness-lecture-section p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 1rem;
}

.fitness-lecture-section p strong {
    color: #e8eaed;
}

.fitness-lecture-table {
    margin: 1.25rem 0;
}

.fitness-lecture-callout {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-right: 3px solid var(--color-f);
    background: rgba(0, 229, 255, 0.04);
}

.fitness-lecture-callout h4 {
    font-size: 1rem;
    color: var(--color-f);
    margin: 0 0 0.75rem;
}

.fitness-lecture-assignment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.fitness-session-timeline {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--card-border);
    border-radius: 10px;
}

.fitness-session-timeline summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fitness-session-timeline[open] summary {
    margin-bottom: 1rem;
}

.fitness-lecture-intro {
    margin-bottom: 24px;
    padding: 20px 24px;
}

.fitness-slides-deck {
    margin-bottom: 28px;
}

.fitness-slides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.fitness-slide-card {
    padding: 18px 20px;
    border-top: 3px solid var(--color-i);
}

.fitness-slide-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.fitness-slide-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 77, 255, 0.15);
    color: #b388ff;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.85rem;
}

.fitness-slide-card h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.fitness-slide-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--card-border);
}

.fitness-module-assignment {
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px solid rgba(124, 77, 255, 0.25);
}

.fitness-assignment-steps {
    margin: 16px 0;
}

.fitness-assignment-format {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.radar-bio-note {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-right: 3px solid #4caf50;
    background: rgba(76, 175, 80, 0.06);
    border-radius: 8px;
}

.fitness-module-diagram {
    margin: 1rem 0;
    padding: 1rem;
}

.type2-track-heading--workshop {
    border-bottom-color: rgba(0, 229, 255, 0.35);
}

.fitness-workshop-tab-intro {
    margin: -8px 0 20px;
}

.fitness-workshop-mount {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fitness-workshop-mount .fitness-workshop-block {
    padding-top: 20px;
    padding-bottom: 28px;
}

.fitness-workshop-mount #fitness-workshop {
    display: none;
}

.fitness-workshop-source[hidden] {
    display: none !important;
}

.fitness-page .section-header--start,
.fitness-university-shell,
.fitness-industry-shell,
.fitness-theory-card,
.fitness-workshop-intro {
    text-align: start;
}

.fitness-page .section-header--start {
    max-width: none;
    margin: 0 0 28px;
}

.fitness-workshop-intro {
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 8px;
}

.fitness-workshop-block {
    padding-top: 20px;
}

.fitness-course-resources {
    padding: 0;
    border: 1px solid rgba(124, 77, 255, 0.2);
    overflow: hidden;
}

.fitness-course-resources-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(124, 77, 255, 0.08);
}

.fitness-course-resources-summary::-webkit-details-marker {
    display: none;
}

.fitness-course-resources-summary::before {
    content: '▸ ';
    color: var(--color-f);
}

.fitness-course-resources[open] .fitness-course-resources-summary::before {
    content: '▾ ';
}

.fitness-course-resources-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fitness-course-resources-body .fitness-uni-block,
.fitness-course-resources-body .type2-table-block {
    padding: 0;
    border: none;
    background: transparent;
}

@media (max-width: 640px) {
    .fitness-module-meta div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .fitness-module-picker {
        min-width: calc(50% - 0.25rem);
        flex: 1 1 calc(50% - 0.25rem);
    }
}

@media (max-width: 768px) {
    .fitness-page .fitness-hero {
        padding: calc(var(--sfh-header-offset, 110px) + 16px) 16px 20px;
    }
}

/* ===== Global responsive fixes (all method + article pages) ===== */
.container > *,
.glass-card,
.lesson-section,
.method-history-box,
.type2-theory-article,
.type2-academic-shell,
.type2-industry-shell,
.hub-cards-grid,
.workspace-grid,
.cla-grid,
article,
section {
    min-width: 0;
    max-width: 100%;
}

img,
video,
svg:not(.type2-fou-svg),
canvas:not(#particles-canvas),
iframe {
    max-width: 100%;
    height: auto;
}

.type2-compare-wrap,
.bc-comparison-table-wrapper,
.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.type2-compare-table,
.bc-table {
    min-width: 0;
}

@media (max-width: 768px) {
    .type2-page .type2-hero {
        --page-top-gap: 20px;
        padding-inline: 16px;
    }

    .type2-theory-article,
    .method-prose-section-title,
    .method-callout {
        max-width: 100%;
        padding-inline: 0;
    }

    .lesson-section {
        padding: 20px 16px;
        margin-bottom: 28px;
    }

    .method-history-box {
        padding: 16px;
        margin-bottom: 24px;
    }

    .lesson-founders-block {
        margin-bottom: 20px;
    }

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

    .founder-card {
        flex-direction: column;
        align-items: stretch;
        text-align: start;
    }

    .hub-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .workspace-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .workspace-grid[style*="1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    section.container[style*="padding-top: 130px"],
    section.container[style*="padding-top:130px"] {
        padding-top: calc(var(--sfh-header-offset, 110px) + 16px) !important;
        padding-inline: 16px !important;
    }

    section.container[style*="padding-top: 130px"] .glass-card,
    section.container[style*="padding-top:130px"] .glass-card,
    .glass-card[style*="padding: 40px"],
    .glass-card[style*="padding:40px"],
    .glass-card[style*="padding: 32px"],
    .glass-card[style*="padding:32px"],
    .glass-card[style*="padding: 30px"],
    .glass-card[style*="padding:30px"] {
        padding: 18px 16px !important;
    }

    .method-prose-lead,
    .method-prose-p {
        font-size: 0.98rem;
        line-height: 1.85;
        text-align: start;
    }

    .type2-track-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .type2-track-tabs {
        width: 100%;
    }

    .type2-track-tab {
        flex: 1 1 auto;
        justify-content: center;
    }

    .type2-course-header,
    .type2-session-card,
    .type2-deepdive-card,
    .type2-case-study {
        padding: 16px;
    }

    .type2-sessions-grid,
    .type2-homework-grid,
    .type2-cases-grid,
    .type2-deepdive-grid {
        grid-template-columns: 1fr;
    }

    .type2-compare-table {
        font-size: 0.75rem;
    }

    .method-deep-dive-summary {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }

    .method-deep-dive-body {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 12px;
    }

    .main-header {
        padding: 10px 12px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .history-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .history-pill {
        width: 100%;
    }

    .lesson-meta-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lesson-meta-chip {
        justify-content: center;
    }
}

/* ─────────────────── light theme ─────────────────── */
/* Applied via <html data-theme="light"> (js/core/shared.js + head bootstrap).
   Base palette flips; accents get darker variants to stay readable on light. */

html[data-theme="light"] {
    --bg-dark: #eef1f7;
    --bg-dark-accent: #ffffff;
    --card-bg: rgba(15, 23, 42, 0.03);
    --card-border: rgba(15, 23, 42, 0.12);
    --card-hover-border: rgba(15, 23, 42, 0.28);

    --color-f: #0e7490;
    --color-i: #be0a5c;
    --color-t: #6d28d9;
    --color-cla: #a16207;
    --color-wheel-red: #c2410c;
    --color-backcast: #047857;

    --text-primary: #0f172a;
    --text-secondary: #374151;
    --text-muted: #6b7280;

    --glow-f: 0 0 18px rgba(14, 116, 144, 0.16);
    --glow-i: 0 0 18px rgba(190, 10, 92, 0.16);
    --glow-t: 0 0 18px rgba(109, 40, 217, 0.16);
    --glow-cla: 0 0 18px rgba(161, 98, 7, 0.16);
    --glow-wheel-red: 0 0 18px rgba(194, 65, 12, 0.16);
    --glow-backcast: 0 0 18px rgba(4, 120, 87, 0.16);
}

html[data-theme="light"] body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

html[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 992px) {
    html[data-theme="light"] .nav-links {
        background: rgba(248, 250, 252, 0.98);
        border-bottom-color: rgba(15, 23, 42, 0.1);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    }

    html[data-theme="light"] .nav-links a {
        border-bottom-color: rgba(15, 23, 42, 0.08);
    }
}

html[data-theme="light"] .main-footer {
    background: #ffffff;
}

html[data-theme="light"] #particles-canvas {
    opacity: 0.1;
}

/* inputs that hardcode dark wells */
html[data-theme="light"] .ws-field input,
html[data-theme="light"] .ws-branch-card input,
html[data-theme="light"] .ws-o3-title,
html[data-theme="light"] .input-group select,
html[data-theme="light"] .input-group input,
html[data-theme="light"] .step-input-group textarea {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

html[data-theme="light"] .type2-select,
html[data-theme="light"] .type2-input {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

html[data-theme="light"] .type2-select option {
    background: #ffffff;
    color: #0f172a;
}

/* theme toggle button icons: sun in dark (goes light), moon in light */
.nav-theme-toggle .theme-ico--moon {
    display: none;
}

html[data-theme="light"] .nav-theme-toggle .theme-ico--moon {
    display: inline-flex;
}

html[data-theme="light"] .nav-theme-toggle .theme-ico--sun {
    display: none;
}

.nav-theme-toggle svg {
    width: 16px;
    height: 16px;
    display: inline-flex;
    vertical-align: middle;
}
