#page-cgeb {
    --teal: #1aada7;
    --teal-dim: #12807b;
    --teal-glow: rgba(26,173,167,0.15);
    --amber: #e8a020;
    --amber-dim: #b87c18;
    --dark: #0b0e17;
    --dark-2: #0f1320;
    --dark-3: #151a28;
    --dark-4: #1c2235;
    --mid: #2a3248;
    --line: rgba(255,255,255,0.07);
    --line-strong: rgba(255,255,255,0.13);
    --text-primary: #edf0f7;
    --text-secondary: #8c96b0;
    --text-muted: #4f5a72;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --max: 1200px;
    --wide: 1200px;
    
    background: var(--dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
}

#page-cgeb::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    display: none;
}
#page-cgeb.active::before { display: block; }

#page-cgeb #progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    z-index: 1000;
    transition: width 0.1s linear;
    display: none;
}
#page-cgeb.active #progress-bar { display: block; }

#page-cgeb #side-nav {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
#page-cgeb.active #side-nav.visible { opacity: 1; pointer-events: auto; }
#page-cgeb .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mid); cursor: pointer; transition: all 0.3s; position: relative; }
#page-cgeb .nav-dot:hover, #page-cgeb .nav-dot.active { background: var(--teal); transform: scale(1.5); }
#page-cgeb .nav-dot-label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--teal); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#page-cgeb .nav-dot:hover .nav-dot-label { opacity: 1; }

#page-cgeb .cover { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 40px; position: relative; overflow: hidden; z-index: 1; }
#page-cgeb .cover-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%); }
#page-cgeb .cover-glow { position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(26,173,167,0.12) 0%, transparent 65%); pointer-events: none; }
#page-cgeb .cover-glow-2 { position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,160,32,0.07) 0%, transparent 65%); pointer-events: none; }
#page-cgeb .cover-inner { max-width: var(--wide); margin: 0 auto; width: 100%; position: relative; }

#page-cgeb .cover-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 28px; opacity: 0; animation: fadeUpCGEB 0.8s 0.2s forwards; display: flex; align-items: center; gap: 12px; }
#page-cgeb .cover-label::before { content: ''; display: block; width: 40px; height: 1px; background: var(--teal); }

#page-cgeb .cover-title { font-family: var(--font-display); font-size: clamp(38px, 7vw, 82px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 12px; opacity: 0; animation: fadeUpCGEB 0.8s 0.35s forwards; }
#page-cgeb .cover-title .accent { color: var(--teal); }
#page-cgeb .cover-title .accent-2 { color: var(--amber); }

#page-cgeb .cover-subtitle { font-family: var(--font-display); font-size: clamp(14px, 2.5vw, 22px); font-weight: 500; color: var(--text-secondary); margin-bottom: 60px; line-height: 1.4; opacity: 0; animation: fadeUpCGEB 0.8s 0.5s forwards; }
#page-cgeb .cover-meta { display: flex; gap: 48px; flex-wrap: wrap; opacity: 0; animation: fadeUpCGEB 0.8s 0.65s forwards; }
#page-cgeb .meta-item { display: flex; flex-direction: column; gap: 4px; }
#page-cgeb .meta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
#page-cgeb .meta-value { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); }

#page-cgeb .cover-scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeInCGEB 1s 1.5s forwards; }
#page-cgeb .scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--teal), transparent); animation: scrollPulseCGEB 2s 2s infinite; }
#page-cgeb .scroll-text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; }

#page-cgeb .section { padding: 100px 40px; position: relative; z-index: 1; }
#page-cgeb .section-inner { max-width: var(--max); margin: 0 auto; }
#page-cgeb .section-inner.wide { max-width: var(--wide); }

#page-cgeb .section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
#page-cgeb .section-label span { color: var(--text-muted); font-size: 9px; }

#page-cgeb h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 32px; color: var(--text-primary); }
#page-cgeb h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
#page-cgeb h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
#page-cgeb p { color: var(--text-secondary); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
#page-cgeb p strong { color: var(--text-primary); font-weight: 500; }

#page-cgeb .divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0 40px; }

#page-cgeb .abstract-box { background: var(--dark-3); border: 1px solid var(--line-strong); border-left: 3px solid var(--teal); padding: 36px 40px; margin-bottom: 40px; position: relative; overflow: hidden; }
#page-cgeb .abstract-box::before { content: 'ABSTRACT'; position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.25em; color: var(--text-muted); }
#page-cgeb .abstract-box p { font-size: 15px; font-style: italic; color: var(--text-secondary); margin: 0; line-height: 1.9; }

#page-cgeb .toc { background: var(--dark-3); border: 1px solid var(--line); padding: 36px 40px; margin-bottom: 0; }
#page-cgeb .toc-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
#page-cgeb .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
#page-cgeb .toc-list li a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--text-secondary); font-size: 14px; padding: 6px 0; border-bottom: 1px solid transparent; transition: all 0.2s; }
#page-cgeb .toc-list li a:hover { color: var(--teal); }
#page-cgeb .toc-num { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); min-width: 24px; }
#page-cgeb .toc-dots { flex: 1; border-bottom: 1px dotted var(--mid); position: relative; top: -2px; }

#page-cgeb .pull-quote { margin: 48px 0; padding: 0 0 0 28px; border-left: 3px solid var(--amber); position: relative; }
#page-cgeb .pull-quote p { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--text-primary); margin: 0; font-style: italic; }

#page-cgeb .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; margin: 40px 0; border: 1px solid var(--line); }
#page-cgeb .stat-card { background: var(--dark-3); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; border: none; }
#page-cgeb .stat-card:hover { background: var(--dark-4); }
#page-cgeb .stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--teal); line-height: 1; }
#page-cgeb .stat-num.amber { color: var(--amber); }
#page-cgeb .stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

#page-cgeb .param-grid { display: flex; flex-direction: column; gap: 2px; margin: 40px 0; }
#page-cgeb .param-card { background: var(--dark-3); border: 1px solid var(--line); padding: 28px 32px; display: grid; grid-template-columns: 60px 1fr auto; align-items: start; gap: 24px; transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden; }
#page-cgeb .param-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
#page-cgeb .param-card.p1::after { background: #1aada7; }
#page-cgeb .param-card.p2::after { background: #e8a020; }
#page-cgeb .param-card.p3::after { background: #5b8dee; }
#page-cgeb .param-card.p4::after { background: #c46be3; }
#page-cgeb .param-card.p5::after { background: #3dc972; }
#page-cgeb .param-card:hover { background: var(--dark-4); border-color: var(--line-strong); }

#page-cgeb .param-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text-muted); line-height: 1; opacity: 0.4; display:block; margin: 0; }
#page-cgeb .param-body h3 { margin-bottom: 8px; font-size: 18px; }
#page-cgeb .param-body p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
#page-cgeb .param-weight { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-muted); white-space: nowrap; text-align: right; line-height: 1; }

#page-cgeb .index-diagram { background: var(--dark-3); border: 1px solid var(--line); padding: 48px 40px; margin: 48px 0; position: relative; }
#page-cgeb .index-formula { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
#page-cgeb .formula-term { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#page-cgeb .formula-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--teal); }
#page-cgeb .formula-val.amber { color: var(--amber); }
#page-cgeb .formula-val.blue { color: #5b8dee; }
#page-cgeb .formula-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; text-align:center; }
#page-cgeb .formula-op { font-family: var(--font-display); font-size: 24px; font-weight: 300; color: var(--text-muted); padding-top: 4px; }

#page-cgeb .method-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 32px 0; }
#page-cgeb .method-table th { background: var(--dark-4); padding: 12px 16px; text-align: left; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line); }
#page-cgeb .method-table td { padding: 14px 16px; border: 1px solid var(--line); color: var(--text-secondary); vertical-align: top; line-height: 1.6; }
#page-cgeb .method-table tr:hover td { background: var(--dark-3); }
#page-cgeb .method-table td:first-child { font-weight: 500; color: var(--text-primary); white-space: nowrap; }

#page-cgeb .process-list { display: flex; flex-direction: column; gap: 0; margin: 40px 0; position: relative; }
#page-cgeb .process-list::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--teal), var(--mid), transparent); }
#page-cgeb .process-step { display: flex; gap: 28px; padding: 28px 0; align-items: flex-start; position: relative; }
#page-cgeb .step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--dark-4); border: 1px solid var(--teal); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--teal); flex-shrink: 0; position: relative; z-index: 1; }
#page-cgeb .step-body h3 { font-size: 16px; margin-bottom: 6px; }
#page-cgeb .step-body p { font-size: 14px; margin: 0; }

#page-cgeb .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
#page-cgeb .tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 12px; border: 1px solid var(--line-strong); color: var(--text-muted); letter-spacing: 0.05em; border-radius: 4px; }
#page-cgeb .tag.teal { border-color: rgba(26,173,167,0.4); color: var(--teal); }
#page-cgeb .tag.amber { border-color: rgba(232,160,32,0.4); color: var(--amber); }

#page-cgeb .info-box { background: var(--dark-3); border: 1px solid var(--line); border-top: 2px solid var(--teal); padding: 28px 32px; margin: 32px 0; }
#page-cgeb .info-box.amber-top { border-top-color: var(--amber); }
#page-cgeb .info-box h4 { margin-bottom: 12px; }
#page-cgeb .info-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin-left: 0; max-width: 100%;}
#page-cgeb .info-box ul li { font-size: 14px; color: var(--text-secondary); padding-left: 20px; position: relative; line-height: 1.6; }
#page-cgeb .info-box ul li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-size: 12px; }

#page-cgeb .cite { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); background: var(--dark-3); border: 1px solid var(--line); padding: 12px 16px; margin: 24px 0; line-height: 1.7; }

#page-cgeb .bar-chart { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; }
#page-cgeb .bar-row { display: grid; grid-template-columns: 200px 1fr 48px; gap: 16px; align-items: center; }
#page-cgeb .bar-label { font-size: 13px; color: var(--text-secondary); text-align: right; }
#page-cgeb .bar-track { background: var(--dark-4); height: 8px; border-radius: 4px; overflow: hidden; }
#page-cgeb .bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
#page-cgeb .bar-fill.p1 { background: linear-gradient(90deg, #1aada7, #23d6ce); }
#page-cgeb .bar-fill.p2 { background: linear-gradient(90deg, #e8a020, #f0c060); }
#page-cgeb .bar-fill.p3 { background: linear-gradient(90deg, #5b8dee, #7ba8f5); }
#page-cgeb .bar-fill.p4 { background: linear-gradient(90deg, #c46be3, #d890f0); }
#page-cgeb .bar-fill.p5 { background: linear-gradient(90deg, #3dc972, #60e090); }
#page-cgeb .bar-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-align: right; }

#page-cgeb .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
#page-cgeb .reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUpCGEB { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeInCGEB { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulseCGEB { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

@media (max-width: 900px) {
    #page-cgeb #side-nav { display: none !important; }
    #page-cgeb .param-card { grid-template-columns: 1fr auto; }
    #page-cgeb .param-num { display: none; }
    #page-cgeb .cover-meta { gap: 28px; }
    #page-cgeb .section { padding: 70px 24px; }
}
@media (max-width: 600px) {
    #page-cgeb .cover { padding: 80px 24px; }
    #page-cgeb .index-formula { gap: 10px; }
    #page-cgeb .formula-val { font-size: 20px; }
    #page-cgeb .bar-row { grid-template-columns: 120px 1fr 40px; }
    #page-cgeb .bar-label { font-size: 11px; }
}

/* OVERRIDE LIGHT MODE AESTHETICS SO THIS PAGE CAN ALWAYS STAY DARK OR BLEND WELL */
body.light-mode #page-cgeb {
    background: #ffffff;
    color: #18181B;
}
body.light-mode #page-cgeb .cover-grid {
    background-image: linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
}
body.light-mode #page-cgeb h2, body.light-mode #page-cgeb h3, body.light-mode #page-cgeb .cover-title, body.light-mode #page-cgeb .meta-value, body.light-mode #page-cgeb p strong {
    color: #18181B;
}
body.light-mode #page-cgeb p {
    color: #52525B;
}
body.light-mode #page-cgeb .abstract-box, body.light-mode #page-cgeb .toc, body.light-mode #page-cgeb .stat-card, body.light-mode #page-cgeb .info-box, body.light-mode #page-cgeb .index-diagram, body.light-mode #page-cgeb .cite, body.light-mode #page-cgeb .param-card {
    background: #F8F9FA;
    border-color: rgba(0,0,0,0.1);
}
body.light-mode #page-cgeb .stat-card:hover, body.light-mode #page-cgeb .param-card:hover { background: #fff; }
body.light-mode #page-cgeb .method-table th { background: #F8F9FA; border-color: rgba(0,0,0,0.1); color: #52525B; }
body.light-mode #page-cgeb .method-table td { border-color: rgba(0,0,0,0.1); }
body.light-mode #page-cgeb .method-table td:first-child { color: #18181B; }
body.light-mode #page-cgeb .method-table tr:hover td { background: rgba(0,0,0,0.03); }
body.light-mode #page-cgeb .tag { border-color: rgba(0,0,0,0.1); }
