/* Yalnızca fotosentez laboratuvarı; ortak sayfa stilleri korunur. */
.photo-lab { --lab-green: #b4d5a1; --lab-gold: #e6c885; padding: 76px 0; background: #0e110e; border-block: 1px solid #30372d; font-size: 17px; line-height: 1.75; }
.photo-lab [hidden] { display: none; }
.photo-lab h2,.photo-lab h3,.photo-lab h4 { line-height: 1.18; letter-spacing: -.045em; font-weight: 550; }
.lab-heading { max-width: 790px; }
.lab-heading h2 { margin: 18px 0 24px; font-size: clamp(36px,5vw,62px); }
.lab-heading h2 span { color: var(--lab-green); }
.photo-lab p { color: #c0c5ba; }
.photo-lab .lab-kicker { color: #b4c6a9; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.lab-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0 32px; }
.lab-nav a { min-height: 44px; align-content: center; border-bottom: 1px solid #58674e; font-size: 15px; color: #d8e2d1; }
.lab-panel { scroll-margin-top: 100px; border: 1px solid #343c30; border-radius: 18px; background: #141813; padding: clamp(20px,3.5vw,40px); margin: 0 0 24px; }
.lab-panel h3 { font-size: clamp(27px,3vw,37px); margin: 8px 0 18px; }
.lab-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.photo-lab button,.photo-lab select { font: inherit; color: #e7ecdf; background: #232b20; border: 1px solid #637457; border-radius: 9px; min-height: 46px; padding: 10px 16px; cursor: pointer; }
.photo-lab button { transition: background .18s ease; }
.photo-lab button:hover { background: #34422c; }
.photo-lab :is(button,a,input,select,summary,[role="button"]):focus-visible { outline: 3px solid var(--lab-gold); outline-offset: 4px; }
.lab-simulation { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); gap: 36px; }
.lab-controls label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 600; }
.lab-controls output { color: var(--lab-gold); font-variant-numeric: tabular-nums; }
.lab-controls input[type="range"] { display: block; width: 100%; min-height: 44px; accent-color: var(--lab-green); cursor: pointer; margin: 4px 0; }
.lab-controls > p { font-size: 13px; margin: 0 0 26px; }
.lab-reading { background: #1e291b; border-left: 3px solid var(--lab-green); padding: 20px; }
.lab-reading > span { font-size: 11px; letter-spacing: .12em; color: #bbcdb0; }
.lab-reading strong { display: block; font-size: 39px; line-height: 1.5; font-weight: 500; color: var(--lab-green); font-variant-numeric: tabular-nums; }
.lab-reading p { font-size: 15px; margin-bottom: 0; }
.lab-chart { min-width: 0; align-self: start; padding: 20px; border: 1px solid #343c30; border-radius: 12px; background: #10140f; }
.lab-chart > label { display: block; font-size: 14px; margin-bottom: 8px; }
.lab-chart select { width: 100%; }
#photo-graph { width: 100%; height: auto; display: block; margin-top: 20px; overflow: visible; }
.graph-grid { stroke: #30392b; stroke-dasharray: 3 5; fill: none; }
.graph-axis { stroke: #94a18a; fill: none; }
.graph-labels { fill: #c2cbb9; font-size: 15px; }
.lab-chart-key { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.lab-chart-key span:first-child { color: var(--lab-green); }
.lab-chart-key span:last-child { color: var(--lab-gold); }
#graph-context { font-size: 14px; }
.photo-lab .lab-note { font-size: 14px; color: #bdc7b5; border-top: 1px solid #38432f; margin-top: 26px; padding-top: 18px; }
.lab-task { margin-top: 24px; }
.photo-lab summary { cursor: pointer; padding: 10px 0; color: #e2e8dd; }
.lab-discovery { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 28px; align-items: start; }
.chloroplast-map { display: block; width: 100%; height: auto; }
.chloroplast-map text { fill: #e0e8d8; font-size: 14px; pointer-events: none; }
.chloroplast-map [role="button"] { cursor: pointer; }
.chloroplast-map [aria-pressed="true"] > :is(rect,circle) { stroke: var(--lab-gold); stroke-width: 3px; }
.lab-part-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-part-buttons button { font-size: 14px; }
.lab-part-buttons [aria-pressed="true"] { background: #34442c; border-color: var(--lab-green); }
.lab-explanation { background: #1b2218; border: 1px solid #3c4933; padding: 24px; border-radius: 12px; }
.lab-explanation h4 { font-size: 25px; margin: 14px 0; }
.lab-explanation p { font-size: 16px; }
.photo-flow { stroke-dasharray: 5 4; animation: photo-flow 3s ease-in-out infinite; }
@keyframes photo-flow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.lab-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.lab-card { border: 1px solid #3d4636; border-radius: 12px; padding: 14px 22px; background: #1a2017; }
.lab-card summary { list-style-position: inside; font-size: 19px; }
.lab-card summary span { display: block; color: var(--lab-green); font-size: 13px; margin-bottom: 12px; }
.lab-card summary small { display: block; color: #b5bea9; font-size: 12px; margin-top: 18px; }
.lab-card p { border-top: 1px solid #3d4636; padding-top: 16px; font-size: 16px; }
#photo-quiz fieldset { border: 0; border-bottom: 1px solid #3d4636; margin: 26px 0; padding: 12px 0 26px; min-width: 0; }
#photo-quiz legend { color: #e8ecdf; font-size: 19px; padding: 0; font-weight: 550; }
#photo-quiz fieldset label { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border: 1px solid #3b4533; border-radius: 8px; margin-top: 10px; cursor: pointer; background: #1a2017; }
#photo-quiz fieldset label:has(input:checked) { border-color: var(--lab-green); background: #263322; }
#photo-quiz input { accent-color: var(--lab-green); flex-shrink: 0; width: 18px; height: 18px; }
.lab-quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lab-quiz-actions button[type="submit"] { background: #c0d4ae; color: #182212; font-weight: 650; }
.photo-lab .quiz-feedback { padding: 16px; border-left: 3px solid var(--lab-gold); background: #30291b; color: #f0dfbb; }
.photo-lab .quiz-feedback.is-correct { border-color: var(--lab-green); background: #23301d; color: #d8ebca; }
#quiz-result { font-size: 21px; color: var(--lab-green); }
@media (max-width: 850px) { .lab-simulation,.lab-discovery { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 540px) { .photo-lab { padding: 48px 0; font-size: 16px; } .lab-panel-head { align-items: start; flex-direction: column; } .lab-panel { padding: 20px 16px; } .lab-chart { padding: 12px 8px; } .lab-cards { grid-template-columns: minmax(0,1fr); } .lab-explanation { padding: 20px; } .lab-nav { gap: 8px 18px; } .lab-nav a { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .photo-flow { animation: none; } .photo-lab button { transition: none; } }
/* Bu konu sayfasında mevcut mobil gezinmenin ve görselin taşmasını önler. */
.topic-page .topic-hero__figure { margin-inline: 0; }
.topic-page .lesson-sidebar,.topic-page .lesson-chapters { min-width: 0; }

/* Aşama 5 · optik deney tezgâhı. Tüm yeni kurallar laboratuvarla sınırlıdır. */
.photo-lab {
  --lab-green: #83d9b0; --lab-gold: #f0ce7e; --lab-cyan: #7dd9d3;
  color: #e6f0f5; background-color: #080f1c;
  background-image: radial-gradient(ellipse at 90% 5%, #14314c88, transparent 40%), linear-gradient(#37567712 1px, transparent 1px), linear-gradient(90deg, #37567712 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  border-block: 1px solid #36536a; padding-block: 96px;
}
.photo-lab p { color: #b7c9d7; }
.photo-lab .lab-kicker { color: #8cc9d1; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .13em; }
.photo-lab .lab-heading { max-width: 940px; border-left: 3px solid var(--lab-cyan); padding-left: clamp(18px,3vw,36px); }
.photo-lab .lab-heading h2 { font-size: clamp(40px,5.7vw,78px); font-weight: 600; line-height: 1.06; }
.photo-lab .lab-heading h2 span { color: var(--lab-cyan); }
.photo-lab .lab-heading > p:last-child { max-width: 660px; font-size: 18px; }
.photo-lab .lab-nav { gap: 10px; padding-block: 32px 40px; }
.photo-lab .lab-nav a { border: 1px solid #31475b; background: #101f30; padding: 10px 18px; border-radius: 6px; color: #c6dce6; transition: background .2s, border-color .2s; }
.photo-lab .lab-nav a:hover { background: #183447; border-color: var(--lab-cyan); }
.photo-lab .lab-panel { position: relative; background: linear-gradient(135deg,#14263bed,#0b1625f5 65%); border-color: #354c64; border-radius: 14px; box-shadow: 0 20px 60px #02071355, inset 0 1px #b1d4e212; margin-bottom: 32px; }
.photo-lab .lab-panel:target { border-color: #6dadae; }
.photo-lab .lab-panel-head { margin-bottom: 20px; }
.photo-lab .lab-panel h3 { color: #e8f2f7; font-weight: 600; }
.photo-lab button,.photo-lab select { background: #152c40; border-color: #49657b; color: #e1edf5; transition: background .2s, border-color .2s, box-shadow .2s; }
.photo-lab button:hover { background: #21465a; border-color: #84bbb9; }
.photo-lab .lab-bench { position: relative; isolation: isolate; margin: 0 0 30px; padding: 18px 24px 14px; border: 1px solid #34536b; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 45% 50%,#274b573d,transparent 65%), #081522; box-shadow: inset 0 0 60px #020b1777; }
.photo-lab .lab-bench::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 45% 20%,#edd28d20, transparent 55%); opacity: .35; transition: opacity .4s; }
.photo-lab .lab-bench figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 12px; color: #94b5c3; }
.photo-lab .lab-bench img { display: block; width: min(100%,800px); height: auto; margin-inline: auto; animation: lab-breathe 6s ease-in-out infinite; }
.photo-lab .lab-bench p { margin: 0; text-align: center; font-size: 12px; color: #a1bbc9; }
.photo-lab:has(.lab-controls input:focus) .lab-bench::before { opacity: 1; }
.photo-lab .lab-simulation { grid-template-columns: minmax(0,.9fr) minmax(0,1.25fr); gap: 28px; }
.photo-lab .lab-controls { min-width: 0; padding: 22px; border: 1px solid #30485f; border-radius: 10px; background: #0b1828; }
.photo-lab .lab-controls label { font-size: 15px; }
.photo-lab .lab-controls output { font-family: ui-monospace, monospace; font-size: 14px; }
.photo-lab label[for="photo-light"],.photo-lab #light-value { color: #f0ce7e; }
.photo-lab label[for="photo-co2"],.photo-lab #co2-value { color: #83d9b0; }
.photo-lab label[for="photo-temperature"],.photo-lab #temperature-value { color: #f2af7e; }
.photo-lab #photo-light { accent-color: #f0ce7e; }
.photo-lab #photo-co2 { accent-color: #83d9b0; }
.photo-lab #photo-temperature { accent-color: #f2af7e; }
.photo-lab .lab-controls > p { color: #9eb4c7; font-size: 12px; }
.photo-lab .lab-reading { border: 1px solid #3a706c; border-left: 3px solid var(--lab-cyan); border-radius: 8px; padding: 20px; background: linear-gradient(120deg,#163d3e88,#0a202a); box-shadow: inset 0 1px #b3f1dc15; }
.photo-lab .lab-reading > span { color: #a1c9ce; font-family: ui-monospace,monospace; font-size: 10px; }
.photo-lab .lab-reading strong { font-family: ui-monospace,monospace; color: #9fe3c4; font-size: clamp(26px,3vw,42px); letter-spacing: -.05em; transition: color .3s; }
.photo-lab .lab-controls:has(input:active) .lab-reading strong { color: #dcfff0; }
.photo-lab .lab-reading p { color: #bdd8d8; font-size: 13px; }
.photo-lab .lab-chart { background: #091523; border-color: #344e65; padding: 24px; box-shadow: inset 0 1px #aecedd0d; }
.photo-lab .lab-chart > .lab-kicker { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #2c4256; }
.photo-lab .graph-grid { stroke: #2a4054; stroke-dasharray: 2 5; }
.photo-lab .graph-axis { stroke: #69869b; }
.photo-lab .graph-labels { fill: #b5cbd9; font-family: ui-monospace,monospace; }
.photo-lab #graph-curve { stroke: var(--lab-cyan); stroke-width: 3; transition: d .28s ease; }
.photo-lab #graph-point { fill: var(--lab-gold); stroke: #152638; transition: cx .28s ease, cy .28s ease; }
.photo-lab .lab-chart-key { border-block: 1px solid #263e52; padding-block: 12px; }
.photo-lab .lab-chart-key span:first-child { color: var(--lab-cyan); }
.photo-lab #graph-context { font-size: 13px; }
.photo-lab .lab-note { border-color: #31475b; color: #a7bdcb; }
.photo-lab .lab-task { border: 1px dashed #436274; border-radius: 8px; padding: 8px 18px; background: #102334; }
.photo-lab .chloroplast-map { border: 1px solid #304c60; border-radius: 10px; background: radial-gradient(ellipse,#16454a44,transparent 75%),#091622; margin-bottom: 18px; }
.photo-lab .chloroplast-map [data-part="envelope"] > rect:first-child { fill: #102b30; stroke: #7fbaa9; }
.photo-lab .chloroplast-map [data-part="exchange"] > rect { fill: #15353e; }
.photo-lab .lab-explanation { background: #102534; border-color: #37556a; box-shadow: inset 0 2px #72c3b93b; }
.photo-lab .lab-part-buttons [aria-pressed="true"] { background: #204d4c; border-color: #83d9b0; }
.photo-lab .lab-card { background: #102133; border-color: #344d64; padding: 20px 24px; transition: background .2s,border-color .2s; }
.photo-lab .lab-card:hover,.photo-lab .lab-card[open] { background: #162f40; border-color: #639394; }
.photo-lab .lab-card p { border-color: #36556a; }
.photo-lab .lab-card summary small { color: #a6bacb; }
.photo-lab #photo-quiz fieldset { border-color: #344d64; }
.photo-lab #photo-quiz fieldset label { background: #102133; border-color: #344d64; transition: background .2s,border-color .2s; }
.photo-lab #photo-quiz fieldset label:hover { background: #193247; }
.photo-lab #photo-quiz fieldset label:has(input:checked) { background: #1c4143; border-color: #83d9b0; }
.photo-lab .lab-quiz-actions button[type="submit"] { background: #91d9c2; color: #0b2527; border-color: #91d9c2; }
.photo-lab .lab-quiz-actions button[type="submit"]:hover { background: #b0ead7; }
.photo-lab details[open] > p,.photo-lab .quiz-feedback:not([hidden]) { animation: lab-reveal .25s ease-out; }
@keyframes lab-breathe { 0%,100% { opacity: .92; } 50% { opacity: 1; } }
@keyframes lab-reveal { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 850px) { .photo-lab .lab-simulation { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 540px) { .photo-lab { padding-block: 56px; } .photo-lab .lab-bench { padding: 14px 8px; } .photo-lab .lab-bench figcaption { padding-inline: 6px; } .photo-lab .lab-controls { padding: 16px; } .photo-lab .lab-chart { padding: 18px 10px; } .photo-lab .lab-nav a { padding: 8px 12px; } .photo-lab .lab-card { padding: 16px; } .photo-lab .lab-reading { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .photo-lab *, .photo-lab *::before, .photo-lab *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
