/* Math5 ek bölümler ve ders akışı */
.home-section{margin-top:68px}.section-kicker{display:block;margin-bottom:8px;color:#9d611b;font-size:.76rem;font-weight:850;letter-spacing:.13em}.section-action{color:var(--teal);font-weight:750;text-underline-offset:4px}
.coming-tag{display:inline-block;margin:12px 0 0;padding:4px 9px;border-radius:999px;background:#f9edd6;color:#785516;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.card.upcoming{background:#faf9f4;border-style:dashed;box-shadow:none}.card.upcoming .number{background:#eee9dc;color:#725b36}.card.upcoming h3{margin-top:14px}.card.upcoming p{font-size:.98rem}
.portrait-feature{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:32px;margin-top:20px;padding:34px;background:linear-gradient(115deg,#eaf5ed,#fff5e7);border:1px solid #bdded4;border-radius:22px}.feature-week{display:inline-block;color:#92611f;font-weight:800;font-size:.78rem;letter-spacing:.07em}.portrait-feature h3{margin:8px 0 10px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.045em}.portrait-feature p{max-width:650px;color:#3e565c;font-size:1.1rem}.feature-cta{display:inline-block;margin-top:12px;color:var(--teal);font-weight:800;text-underline-offset:4px}.portrait-feature figure{margin:0;text-align:center}.portrait-feature img{width:210px;height:210px;object-fit:cover;border-radius:50%;border:6px solid #fffdf8;box-shadow:0 8px 22px #243b3b22}.portrait-feature figcaption{margin-top:8px;color:#52656a;font-size:.72rem;line-height:1.4}
.resource-intro{margin:4px 0 18px;color:var(--muted)}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.resource-card{display:flex;flex-direction:column;min-height:220px;padding:22px;background:var(--paper,#fffdf8);border:1px solid var(--line,#dce6e3);border-radius:18px}.resource-card.magazine{background:#fff8ec}.resource-type{color:#986018;font-size:.72rem;font-weight:850;letter-spacing:.09em}.resource-card h3{margin:12px 0 8px;font-size:1.25rem}.resource-card p{margin:0 0 16px;color:var(--muted,#52656a);font-size:.95rem}.resource-card a{margin-top:auto;color:var(--teal,#147d78);font-weight:800;text-underline-offset:4px}.resource-note{margin-top:16px;color:var(--muted);font-size:.85rem}
.lesson-next{margin:28px 0;padding:23px 25px;background:#fff1d8;border:1px solid #eacb8b;border-radius:16px}.lesson-next-label{display:block;margin-bottom:8px;color:#80591f;font-size:.73rem;font-weight:850;letter-spacing:.1em}.lesson-next a{display:inline-flex;align-items:center;gap:12px;color:#6b4a14;font-size:1.3rem;font-weight:800;text-decoration:none}.lesson-next a:hover{text-decoration:underline}.lesson-next .next-arrow{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e3a84d;color:#fff}.lesson-flow{display:flex;gap:12px;margin:24px 0}.lesson-flow a{flex:1;padding:16px 18px;border:1px solid #eacb8b;border-radius:13px;background:#fff4df;color:#6b4a14;text-decoration:none;font-weight:750}.lesson-flow a span{display:block;margin-bottom:4px;font-size:.69rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.lesson-flow a:hover,.lesson-flow a:focus-visible{border-color:#b07625;text-decoration:underline}
.story-shell{max-width:980px;margin:36px auto 76px;padding:0 24px}.story-shell .back-link{display:inline-block;margin-bottom:20px;color:var(--teal);font-weight:750}.story-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:32px}.story-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:center}.story-hero h1{font-size:clamp(2.3rem,6vw,4.1rem);letter-spacing:-.055em;line-height:1.04;margin:10px 0}.story-hero p{font-size:1.12rem}.story-hero figure{text-align:center;margin:0}.story-hero img{max-width:100%;border-radius:50%;background:#fff}.story-hero figcaption{font-size:.75rem;color:var(--muted);margin-top:8px}.story-card h2{margin-top:34px}.story-card p,.story-card li{max-width:76ch}.story-card li{margin:8px 0}.source-list{padding-left:20px;font-size:.9rem}.archive-list{list-style:none;padding:0}.archive-list li{padding:18px 0;border-top:1px solid var(--line)}.archive-list small{display:block;color:var(--muted)}.sieve-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;max-width:720px;margin:20px 0}.sieve-grid .sieve-cell{min-height:43px;border:1px solid #9ecdc1;border-radius:9px;background:#e7f3ed;color:#12665f;font:inherit;font-weight:750;cursor:default}.sieve-grid .sieve-cell[data-state="composite"]{background:#e7e8e3;color:#687571;text-decoration:line-through}.sieve-grid .sieve-cell[data-state="prime"]{background:#bbebdc;color:#07594f}.sieve-grid .sieve-cell[data-number="1"]{background:#fae2a8;color:#795019}.sieve-controls{display:flex;flex-wrap:wrap;gap:9px}.sieve-controls button{padding:9px 13px;border:1px solid #a6d7c7;border-radius:9px;background:#e8f5ee;color:#12665f;font:inherit;font-weight:750;cursor:pointer}.sieve-controls button:hover{background:#d4eadf}.sieve-status{font-weight:750;color:var(--teal)}
html[data-theme=dark] .card.upcoming{background:#3a4949;border-color:#798785}html[data-theme=dark] .card.upcoming .number{background:#5b6159;color:#f9e7bc}html[data-theme=dark] .coming-tag{background:#665438;color:#ffe0a0}html[data-theme=dark] .section-kicker,html[data-theme=dark] .resource-type,html[data-theme=dark] .feature-week{color:#ffd095}html[data-theme=dark] .portrait-feature{background:linear-gradient(115deg,#42665f,#495852);border-color:#7a9a90}html[data-theme=dark] .portrait-feature p,html[data-theme=dark] .portrait-feature figcaption{color:#e3ece6}html[data-theme=dark] .resource-card{background:#374e54;border-color:#738c89}html[data-theme=dark] .resource-card.magazine{background:#4c514a}html[data-theme=dark] .lesson-next,html[data-theme=dark] .lesson-flow a{background:#5a513f;border-color:#a18b5d}html[data-theme=dark] .lesson-next-label,html[data-theme=dark] .lesson-next a,html[data-theme=dark] .lesson-flow a{color:#ffe6b1}html[data-theme=dark] .story-card{background:var(--paper)}html[data-theme=dark] .sieve-grid .sieve-cell{background:#43665f;color:#e9f6ef}html[data-theme=dark] .sieve-grid .sieve-cell[data-state="composite"]{background:#58635f;color:#d1ddd7}html[data-theme=dark] .sieve-grid .sieve-cell[data-state="prime"]{background:#5b9e8d;color:#fff}html[data-theme=dark] .sieve-grid .sieve-cell[data-number="1"]{background:#8a7043;color:#fff0ca}html[data-theme=dark] .sieve-controls button{background:#395e57;color:#e8f8ed;border-color:#7baa99}
@media(max-width:820px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portrait-feature{grid-template-columns:1fr 170px}.portrait-feature img{width:160px;height:160px}.story-hero{grid-template-columns:1fr 190px}}
@media(max-width:620px){.resource-grid{grid-template-columns:1fr}.portrait-feature,.story-hero{grid-template-columns:1fr}.portrait-feature figure,.story-hero figure{order:-1}.portrait-feature{padding:24px}.portrait-feature img{width:150px;height:150px}.lesson-flow{flex-direction:column}.story-card{padding:22px}.sieve-grid{gap:3px}.sieve-grid .sieve-cell{min-height:35px;font-size:.85rem}}

.math-archive-preview{margin-top:26px;padding:24px;background:var(--paper,#fffdf8);border:1px solid var(--line,#dce6e3);border-radius:18px}
.math-archive-preview h3{margin:0 0 12px;font-size:1.15rem}
.math-archive-preview ul{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;margin:0;padding:0}
.math-archive-preview li{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.math-archive-preview a{color:var(--teal);font-weight:750}
.math-archive-preview span{color:var(--muted);font-size:.83rem}
.math-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;margin:0;padding:18px;border:1px solid #a9d5ca;border-radius:18px;background:linear-gradient(145deg,#e7f4ef,#fff0d8)}
.math-visual figcaption{text-align:center;margin-top:14px;font-size:.78rem}
.place-value-grid{display:flex;gap:7px}
.place-value-grid span{display:grid;place-items:center;min-width:66px;padding:7px 3px;border:1px solid #8dcaba;border-radius:11px;background:#fffefa;color:#146c65;font-size:.63rem;font-weight:800}
.place-value-grid strong{display:block;color:#192a37;font-size:2rem;line-height:1.2}
.sequence-visual{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:center}
.sequence-visual span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fffefa;color:#146c65;font-weight:800}
.sequence-visual b{color:#9b621b}
.steps-visual{list-style:none;counter-reset:step;display:grid;gap:7px;margin:0;padding:0}
.steps-visual li{counter-increment:step;margin:0;padding:4px 12px;border-radius:9px;background:#fffefa;color:#146c65;font-size:.78rem;font-weight:750}
.steps-visual li::before{content:counter(step) ". ";color:#a5691e}
.orbit-visual,.surface-visual{width:210px;max-width:100%;height:auto}
.sieve-grid .sieve-cell{display:grid;place-items:center}
.sieve-grid .sieve-cell[data-state="seven"]{background:#f8d995;border-color:#be8029;color:#74470d;text-decoration:line-through}
html[data-theme=dark] .math-archive-preview{background:#374e54}
html[data-theme=dark] .math-visual{background:linear-gradient(145deg,#355d57,#615845);border-color:#7da99c}
html[data-theme=dark] .sieve-grid .sieve-cell[data-state="seven"]{background:#9c743c;color:#fff6d9;border-color:#d8a355}
@media(max-width:620px){.math-archive-preview ul{grid-template-columns:1fr}.math-visual{min-height:190px}}
@media(max-width:420px){.sieve-grid .sieve-cell{font-size:.75rem;min-height:32px}}
